Performance Analysis of Natural γ-Ray Coal Seam Thickness Sensor and Its Application in Automatic Adjustment of Shearer’s Arms

.e technology of coal-rock interface recognition is the core of realizing the automatic heightening technology of shearer’s rocker. Only by accurately and quickly identifying the interface of coal and rock can we realize the fully automatic control of shearer. As the only one used in the actual detection of coal mining machine drum cutting coal seam after the thickness of the remaining coal seam detection method, natural c-ray has a very practical advantage. Based on the relationship between the attenuation of the natural c-ray passing through the coal seam and the thickness of the coal seam, the mathematical model of the attenuation of the natural c-ray penetrating coal seam is established. By comparing the attenuation intensity of c-ray with or without brackets, it is verified that the hydraulic girders will absorb some natural c-rays. Finally, this paper uses the ground simulation experiment and the field experiment to verify the correctness of the mathematical model and finally develop the natural c-ray seam thickness sensor. .e sensor has the function of indicating the thickness of the coal seam, measuring the natural c-ray intensity, and storing and processing the data.


Introduction
Coal is the main energy source in China; the safe and efficient mining of coal is important for China's economic development. With the rapid development of modern control technology and the improvement of coal mining face automation, underground coal mining work has achieved high yield and high efficiency [1,2]. But how to achieve the underground unmanned longwall face automation mining has always plagued the researchers. Coal mining machine as a key tool for coal mining face, how to achieve its automatic control is of great significance. To achieve fully automatic control of the shearer, we must first solve the problem of how to accurately determine the interface of coal and rock; only in this way, we can effectively solve the problem of shearer cutting drum increase automatically according to the coal seam ups and downs.
At present, it is judged that the interface between the coal and the rock is mainly controlled by the eye of the operator and the cutting sound to judge whether the cutting is a coal seam or a rock formation, so as to manually adjust the drum height.
en, due to the fact that the underground coal mining face environment is very bad, with large coal dust and low visibility, the eye observation to judge will lead to a large occurrence of a miscarriage of justice. e noisy environment of the scene also makes the cutting sound cannot be judged as an effective condition. e method of judging the interface between the coal and the workers is not only easy to reduce the use cycle of the cutting gear, increase the possibility of the gas explosion, decrease the quality of the coal and so on, but also greatly threaten the safety of the workers in the field. erefore, it is of great significance to realize the precise identification of the interface of coal and rock, so as to realize the fully automatic control of unmanned face.
For decades, many countries' research institutions and researchers have made a lot of meaningful ways to accurately identify coal and rock interfaces. ese methods are mainly divided into the detection method based on coal seam thickness and the detection method based on the coal-rock interface.
However, because the artificial c-ray method will cause harm to the human body, it has been abandoned for a long time; the radar detection method does not apply to the thick coal seam face; the passive infrared detection method is more sensitive to ambient temperature. Cutting stress method's accuracy is not high enough; the mechanical vibration method is more susceptible to interference due to the underground transport machine vibration and other noisy sounds and due to underground dust and low visibility, making the camera shooting have poor results. In addition, there is often water or slime in the fieldwork, because of the mud cover, making coal and gangue more difficult to distinguish.
c-ray is a kind of electromagnetic radiation with short wavelength and high frequency. e wavelength is 1.4 × 10 − 9 ∼5 × 10 − 11 cm. e energy of c-ray of natural radioactive elements is generally tens of keV to several MeV. Natural c-ray can be radiated from both rock and coal seams, and the intensity of c-ray radiation in rock stratum is much greater than that in the coal seam. Reference [16] identifies the gangue mixed in the top-coal caving when it is drawn by measuring the c-ray radiation intensity in the process of top-coal caving. e natural c-ray method can measure the residual radiation intensity of c-ray from rock stratum after the attenuation of the coal seam, and the thickness of the top-coal seam can be determined according to its attenuation law, so as to achieve the purpose of coalrock interface identification. And the natural c-ray method is the only way to be applied to the actual mining industry so far. Although the natural c-ray method was used in coal mines in the United Kingdom and the United States in the 1980s, there were differences in the radioactivity of coal and top-bottom rocks, the stability of coal ash, and the stability of top-bottom rocks in Chinese coal mines and Anglo-American mines. e natural c-ray detector designed by British and American countries cannot be well applied to the Chinese coal mines; China in particular needs to design a natural c-ray residual coal thickness detector which is in line with the situation of the Chinese coal mine.
In this paper, the mathematic model of the interface identification of coal and rock is proposed by establishing the relationship between the natural c-ray attenuation intensity and the thickness of the coal seam, the presence of the brackets, and the natural c-ray attenuation law. Using the ground simulation experiment and field experiment, the correctness of the data model is verified and finally developed into a natural c -ray coal thickness sensor.

Derivation of Attenuation Law of Natural c-Ray through
Coal Seam. In the coal mining face, after the shearer worked, the coal seam can be left, and there is a roof rock natural c-ray radiation through the coal seam. Natural c-ray through the coal seam has a certain attenuation law; this section deduced the attenuation law, so as to provide a theoretical basis for sensor design and development. Figure 1 shows the radiation pattern of the radiation on the coal face. Assuming that the thickness of the ABCD at the top and bottom of the rock is l, the radioactive material (mainly uranium, thorium, and potassium) in the rock is uniform.
ere is a coal seam with a thickness of h below the rock. e instrument on the point P was measured. Since the attenuation of the c-ray in the air is weak, the attenuation in the air below the coal seam is ignored. e concentration of radioactive material in the rock is expressed by q Curie/g, the attenuation coefficient of the radioactive material c-ray in the rock itself is expressed by k, and the attenuation coefficient in the coal seam is expressed by μ. e thickness of the hydraulic support roof beam is h 0 . e attenuation coefficient of the beam of the hydraulic support roof beam is μ e .
In the rock, we take an infinitesimal volume dv (parallelepiped b-c-d-e-i-l-m-n), the volume of radiation emitted through the rock thickness is bf � r − r 2 , through the thickness of the coal seam, it is fg � r 2 − r 1 � h sec Ψ, and through the hydraulic support column, the steel plate thickness is g 0 g � h 0 sec Ψ 0 .
When the ray passes through the rock and the coal seam, the radiation intensity of the voxel dv at the point p is shown in the following expression: where K ′ is the proportionality coefficient and ρ is the rock density.
When the ray passes through the rock, coal crust, and support beam steel plate, the radiation intensity produced by the voxel dv at the point p is shown in the following expression: As can be seen from Figure 1, dv � r 2 sin ψdψdjdr.
Due to the attenuation of natural gamma rays by hydraulic support beam steel plate, for the case of Figure 1, the expression (4) of radiation intensity J h of point p is as follows: e physical meaning of this formula is that after the natural c-ray passes through the coal seam and the top beam of the brackets, the radiation intensity J h at point p is decomposed into two parts, part of which is the radiation intensity J − J p of the coal passing through the uncoated roof beam and the other part is the radiation intensity J e of the beam and the top beam of the brackets covered by the brackets, where we have the following.
J is the radiation intensity of the natural c-ray passing through the coal seam at the point p in the absence of hydraulic support, as described in [17] J p is the radiation intensity of the natural c-ray which is in the rock at the top of the hydraulic support roof beam through the coal seam at the point p.
J e is the radiation intensity of the natural c-ray which is in the rock at the top of the hydraulic support roof beam through the coal seam and bracket top beam at the point p.
J − J p is the intensity of the radiation at the point p after the natural c-ray through the coal seam in the part of the rock that is not covered by the hydraulic support.
Next, the expression of J p and J e can be derived from Figure 1, where the expression is as follows: Substituting r 2 − r 3 � l sec Ψ into (6) and introducing the Ginger function [18] yield the expression (7) as follows: e expression of J e is shown by the following equation: Similarly, substituting r 2 − r 3 � l sec Ψ into (8) and introducing the Ginger function yield the expression (9) as follows: where θ 0 is the angle occupied by the projection of the cover of the hydraulic support in the plane and ψ 1 is the angle between the centerline of the radiation cone and the edge of the top beam of the hydraulic support. e above results deduce the radiation intensity formula of the natural c-ray in the upper rock of the top of the hydraulic support through the coal seam and through the coal seam and the support beam. e derivation analysis of these key parameters can get the attenuation law of the ray.

Effect of Brackets on the Attenuation of Natural c-Rays.
In the previous section, the formulas of natural c-ray radiation intensity in the case of no roof beam and with roof beam are derived, respectively. After determining other parameters, the variation law of c-ray radiation intensity with coal seam thickness can be obtained. Because the comprehensive mining face is covered by hydraulic support, the radiation intensity of natural c-ray, which passes Journal of Electrical and Computer Engineering through the roof rock of the hydraulic support beam, is affected. erefore, for the more complicated ray attenuation in coal mining face, through the numerical calculation of formulas (4) to (9), the attenuation law of natural c-ray can be obtained under two different conditions, namely, the bracket beam and the nonsupport beam roof. By comparing the difference between them, the influence of the support roof beam on the measurement accuracy of the coal seam thickness is analyzed.
In the study of the effect of brackets on the attenuation of natural c-rays, respectively, we take μ � 0.0075, k � 0.0167, l � 600 mm, μ e � 0.0585, h 0 � 41 mm, and ρ � 2.63 g/cm 3 , and we take ψ 0 � 60°and ψ 0 � 45°, corresponding to ψ 1 � 50°and ψ 1 � 35°. After setting these parameters, we carry out the calculation and analysis, and we will get the radiation intensity J and J h with the variation of h in the law shown in Figure 2. Among them, curve 1 is the attenuation law when the support roof beam exists, and ψ 0 � 45°and ψ 1 � 35°. Curve 2 is the attenuation law when the support roof beam does not exist, and ψ 0 � 45°and ψ 1 � 35°. Curve 3 is the attenuation law when the support roof beam exists, and ψ 0 � 60°and ψ 1 � 50°, and curve 4 is the attenuation law when the support roof beam does not exist, and ψ 0 � 60°and ψ 1 � 50°.
It can be seen from the curve in Figure 2 that the natural c-ray radiation intensity gradually decreases with the increase of coal seam thickness, but the variation gradient of the curve decreases with the coal seam thickness. erefore, the natural gamma-ray method can be used to detect the thickness of the remaining coal seam, but in order to have sufficient detection resolution, the thickness of the coal seam which can be detected by the natural c-ray method is a certain range.
By comparing curve 1 and curve 2 and curve 3 and curve 4, it can be seen that the radiation intensity of the natural c-ray is basically the same in the case of no support roof beam and with the brackets, but there is a certain error between them. e occurrence of this error is that the brackets have a certain attenuation effect on the radiation, and the c-ray radiation intensity will be reduced in the case of hydraulic support top beam. In order to improve the measurement accuracy of coal seam thickness, the influence of the steel beam on the attenuation of the beam should be considered. In particular, when the brackets are thicker, the influence of the brackets on the radiation attenuation should be considered.

Error and Accuracy Analysis of Natural
c-Ray Measurement

Statistical Distribution of Natural c-Ray
Measurements. Since the decay of the nucleus is completely random, it is governed by the probability law [19]. erefore, even when the source intensity, the attenuation medium, the measuring instrument, and the measurement conditions are constant during the natural c-ray measurement, the result N of each measurement is not the same at the same time interval, but around an average value of B fluctuation, this phenomenon is called radioactive fluctuation or radioactive ups and downs. e error between the result of each measurement and the mean of the natural c-ray is denoted as ΔN � N − N. To investigate the statistical distribution of ray measurements, we assume that the number of natural c-ray radionuclides is N 0 , and the distribution of the probability of the number of N nuclei decay is deduced after t time, and it can be expressed by W (N).
If the probability of a kernel in a certain period of time is p, then the probability of no decay that occurs within this time is q � 1 − p and p + q � 1.
During this time, from the number of N 0 nuclear decay out of the number of N nuclei, there is a possibility that a total of C N N 0 from the N 0 takes the arrangement of N expressed as Because the possibility that the number of N radionuclides decays at the same time is p N and the possibility that the number of N 0 − N nuclides does not decay is q (N 0 − N) , so in each kind of C N N 0 combination, in each kind of request, the possibility that the number of N nuclei decays and N 0 − N nuclei at the same time does not decay is as shown in the following expression: e average number of decay is Substituting expression (12) into expression (11), we can get the expression (13) as follows: Assuming that N 0 is very large, then the limit value of N 0 ⟶ ∞ is expressed as As can be seen from equation (14), the distribution of natural c-ray at this time is consistent with the Poisson distribution.
e natural c-ray thickness sensor will be designed according to the distribution of the ray. 4 Journal of Electrical and Computer Engineering

Distribution Rule of Natural c-Ray Measurement
Errors. e study of natural c-ray measurement error is very important for the improvement of the measurement accuracy of the sensor. rough the research of the distribution law, the key factors that can affect the measurement accuracy can be obtained, and then the precision of the measurement sensor can be improved by controlling the key parameters. According to the probability theory [20], we can find the deviation between the measured value and the mean value, so as to find out the distribution rule of the natural gammaray measurement observation error.
In statistics, the deviation ΔN between the observed Nand the mean N can be positive and negative, and the positive and negative deviations formed in the infinite number of observations are equal; that is, the mean deviation is zero, which loses the meaning of the error representation. e average deviation cannot be used to represent the accuracy of the observations; by definition, the mean square error is expressed as where A is the i th observed value and m is the number of observations. e square of the mean square error is the mean square deviation, which is called the variance, and its expression is as follows: Next, the values for calculating the variance and the mean square error can be expressed by the following expression.
According to the average definition, we get the following expression: e following expression (18) is given by expressions (11) and (12): Expanding σ 2 � (N − N) 2 , we can get the following expression: In expression (19), Next, we calculate the value of σ 2 , due to where C u N (pu + q) N 0 is the coefficient of u N in the expansion (pu + q) N 0 ; therefore, the expression (22) can be got as follows: Similarly, Substituting expression (22) into (19) yields the expression (24) as follows: Substituting p � N/N 0 and q � 1 − p � 1 − (N/N 0 ) into (24) yields the expression (25) as follows: We assume N 0 ≫ N, so we can know σ 2 � N, and the expression (26) is also established: e mean square error is an absolute error. e influence of the observation accuracy is expressed by the relative error in the statistical law. By definition, the relative error which is also called the mean square error is expressed as follows: From expression (27), we can see that the relative mean square error of natural c-ray counting is According to the formula of measurement error of natural c-ray, it is known that in order to improve the measurement accuracy, improve the counting, and ensure the sufficient count and the measurement result to achieve certain accuracy, five methods can be adopted. ese five methods are to improve the sensitivity of the sensor, to extend the measurement time, to increase the number of measurements, to reduce the measurement of the background count, and to increase the intensity of the radioactive source. ese five methods can improve the count value to a certain extent, so as to achieve the purpose of improving the accuracy of natural c-ray radioactivity measurement.

Structural Design of the Measurement Sensor.
e natural c-ray method is to determine the thickness of the coal by detecting the amount of c-ray radiation emitted by some of the natural radioactive materials in the roof rock of the coal seam. Because the coal seam has a certain density, it absorbs a certain amount of c-rays, so the amount of c-rays passing through the coal seam is directly related to the thickness of the coal seam. at is, the thicker the coal seam is, the less it passes through its c-ray; the thinner the coal seam is, the more it passes through its c-ray. In order to verify the accuracy of the mathematical model, this section focuses on the natural c-ray coal thickness sensor developed on the basis of the abovementioned study and summarizes the relevant studies [21][22][23] for measuring the thickness of the remaining coal seam after shearing the coal seam, and meanwhile, its working principle, hardware circuit structure, and software program are introduced in detail.
e structure of the natural c-ray coal thickness sensor is shown in Figure 3. e sensor is mainly composed of a scintillator detector, program control amplifier, A/D conversion circuit, FPGA signal processing circuit, and microcontroller unit (MCU). FPGA is to complete natural c-ray pulse counting, and MCU is to convert pulse count into coal skin thickness. e scintillator detector is composed of NaI(T1) crystal, photomultiplier tube, and preamplifier. When the c-ray emitted by the radiation source enters the NaI(T1) crystal in the detector, it will excite the crystal to emit light. e photons generated will knock out photoelectrons at the photocathode of the photomultiplier tube, and each photoelectron will knock out several electrons at the multiplier pole of the photomultiplier tube. ese electrons will be converted into voltage pulse output after multiple times of multiplication. Usually, NaI(T1) crystal and photomultiplier tubes are packed in a dark box. According to the conclusion in Section 3.2, in order to improve the measurement accuracy, it is necessary to extend the measurement time.
erefore, in order to improve the detection efficiency and sensitivity on the basis of ensuring the measurement accuracy, a larger crystal must be used. Taking into account funding constraints, the NaI (T1) crystal size is Φ75 × 75 mm. e pulse signal from the scintillator detector is weak and needs further amplification. e program controller is used as the main amplifier of the sensor; MCU can control the amplification factor of the program amplifier through SPI bus; the analog voltage signal of the electric pulse is converted into a digital signal by A/D conversion circuit; the digital signal is processed by FPGA analysis circuit such as filtering, shaping, stacking judgment, pulse amplitude extraction, energy spectrum information storage, and transmission. FPGA analysis circuit can realize the multichannel counting of pulse electric signal, and it is convenient to set the initial energy threshold. Only the appropriate initial energy threshold can meet the detection sensitivity requirements and anti-interference performance of the sensor.
e experimental results show that the initial energy threshold of the sensor should be set at 30-70 keV.

Experimental Study on Natural c-Ray Decay Curve of Coal
Seam. In order to verify the natural c-ray attenuation curve of the coal seam in the actual process, a simulation experiment site was made in the laboratory. e test site is set up as follows. e roof is replaced by granite with a length of 1000 mm, a width of 1000 mm, and a thickness of 600 mm. e granite is of medium radioactivity and its radioactivity is comparable to that of the top and bottom slag sandstone, limestone, mudstone, and sandstone in the coal mine. Radioactive content is up to 5 × 10 − 12 ∼ 30 × 10 − 12 grams of radium equivalent/g. A square with an area of 750 × 750 mm is made of coal, the thickness of the coal seam is gradually changed by 21.8 mm, 39 mm, 72.2 mm, 113 mm, 166 mm, and 190 mm, and the initial threshold of the FD3003 spectrometer is changed. e initial thresholds are 60 keV, 100 keV, 200 keV, 300 keV, 400 keV, 500 keV, 600 keV, and 700 keV, respectively. e measured curves of the radiation intensity with the thickness of the coal seam at different initial thresholds are shown in Figure 4.
It can be seen from Figure 4 that the natural c-ray passes through the coal seam and its radiation intensity gradually decays, but as the thickness of the coal seam increases, the natural c-ray attenuation gradient becomes smaller. e experimental results show that the use of a natural c-ray method for coal seam thickness measurement is feasible.
It can be seen from Figure 4 that when the coal seam is thick, the measured attenuation curve suddenly bent down; this part is not natural c-ray inherent attenuation law, and the main reason for this trend is that the ray intensity is too weak, beyond the normally accepted sensitivity range of the instrument, resulting in a large reception error. erefore, the maximum thickness of the coal seam measured by the natural c-ray method is limited by the radioactive material contained in the rock and the sensitivity of the instrument.

Algorithm Design of Natural Gamma Ray Coal ickness
Sensor Experiment. According to the structural design of the natural c-ray coal thickness sensor and the application in practical engineering, the design of the sensor is designed to meet the requirements of the actual measurement. e algorithm design is divided into three parts: (1) Timing control module: the main function of this part is to set the time for each measurement. Within the instrument, the minimum time interval controlled by the software is 1 s, and the time interval is entered by the timing control section. Each measurement time can be controlled to seconds (2) Measurement module: the module is the core module of the system. It collects the pulse count, calculates the corresponding coal thickness under the pulse count according to the decay curve, and displays the thickness value, the pulse count, and the corresponding coal seam thickness stored (3) Calibration module: calibration module is the role of the current situation for the c-ray attenuation characteristics to find the attenuation characteristics of the regression curve. In the measurement process, the pulse count was measured through the regression curve to get the thickness of the coal seam. e module to complete the task is mainly the three representative points of the pulse count and the corresponding thickness of the coal into the memory unit.
e block diagram of the measurement module is shown in Figure 5. e main idea of the program is to calculate the thickness of the coal based on the pulse count. e decay curve in the program adopts the quadratic polynomial curve [19]. e equation expression is as shown in where y i is the pulse count value and the h i is the thickness of the coal seam. ree linear equations can be obtained by calibrating the coefficient (y i , h i ) for three times, and the coefficient a, b, c is obtained by solving the equation; also, the decay equation is obtained. In turn, formula (30) is obtained by the measured pulse count y i : .
When the thickness data measured in the above equation is normal, the value can be stored in the corresponding  Journal of Electrical and Computer Engineering 7 memory cell by pressing the memory key on the keyboard. Also in the program, we set the thickness value to be in the normal range of the judge program; if the thickness value is beyond the normal range, the display gives instructions to remind us to check the reasons for the inspection. e calibration procedure is carried out using the corresponding calibration point. ree typical points are taken as calibration points in the measurement site. e program first measures the pulse count value corresponding to a calibration point, then the operator enters the coal thickness of the point into the program, and the program stores the pulse count at that point and its corresponding thickness of the coal into the storage unit. ese three sets of data determine the three linear equations. e block diagram of the calibration module is shown in Figure 6.
is algorithm is designed to meet the three major functional requirements of timing control, measurement, and calibration, to realize whether the test data is normal, and to realize the storage function of the data, which can meet the requirement of data storage processing in the process of using the sensor.

Measurement of Natural c-Ray Coal ickness Sensor in the Experiment.
e structure design and design of the natural c-ray coal thickness sensor are introduced in detail. On this basis, the developed sensor is applied to the actual measurement to verify its feasibility and performance. In the experiment, the natural c-ray coal thickness sensor is used to measure the thickness of the ground coal seam in the actual environment. e measurement results are shown in Table 1.
From Table 1, we can get the results: in the coal thickness range of 0-200 mm, the measured maximum absolute error is − 18.9 mm. e maximum relative error is 13.5%. As the measurement of the thickness of the precision requirements is not high, generally within 20% of the relative error can meet the engineering requirements. So, this detection  The regression curve of the attenuation curve is obtained by three sets of calibration data (y i , h j ), that is to say, the coefficients a, b, c is obtained.   Journal of Electrical and Computer Engineering accuracy can fully meet the coal mine to measure the thickness of coal to meet the requirements.

Conclusion
is paper mainly introduces a natural c-ray coal thickness sensor, which mainly applies the natural c-ray to the actual thickness of the coal seam after cutting the coal seam.
rough the simulation experiment and actual field experiment, finally, we verified the feasibility of the various functions of the sensor.
It is consistent with the natural c-ray attenuation curve obtained by the calculation. at is, when the natural c-ray passes through the coal seam, the radiation intensity gradually decays, but as the thickness of the coal seam increases, the gradient of the natural c-ray decreases gradually. However, because of the experimental conditions, the radioactive material content of the experimental radioactive source (granite) is weak, so the experimental decay curve is weaker than the theoretical calculation of the attenuation curve. When the experimental curve is measured with a radioactive material with high radioactive content, the experimental curve will become steep. is will have a closer trend with the theoretical calculation of the attenuation curve. At the same time, it also shows that the theoretical derivation formula has great guiding significance. e natural c-ray is basically the same as in the case of no-beam and the top of the brackets, but the two cases have some differences. is error is generated by the attenuation of the beam on the brackets. Considering the attenuation of the natural beam by the top of the hydraulic support can get more accurate attenuation law, so as to improve the accuracy of coal thickness measurement.
On the basis of the theoretical research, the design of the natural c-ray coal thickness sensor is tested and the maximum relative error is 13.5%, which can meet the engineering requirements of less than 20% of the relative error. e detection accuracy can meet the precision requirements in practical application.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper.  Journal of Electrical and Computer Engineering 9