Gas Concentration Prediction Based on the Measured Data of a Coal Mine Rescue Robot

The coal mine environment is complex and dangerous after gas accident; then a timely and effective rescue and relief work is necessary. Hence prediction of gas concentration in front of coal mine rescue robot is an important significance to ensure that the coalmine rescue robot carries out the exploration and search and rescuemission. In this paper, a gray neural network is proposed to predict the gas concentration 10meters in front of the coalmine rescue robot based on the gas concentration, temperature, andwind speed of the current position and 1 meter in front. Subsequently the quantum genetic algorithm optimization gray neural network parameters of the gas concentration prediction method are proposed to get more accurate prediction of the gas concentration in the roadway. Experimental results show that a gray neural network optimized by the quantum genetic algorithm is more accurate for predicting the gas concentration. The overall prediction error is 9.12%, and the largest forecasting error is 11.36%; compared with gray neural network, the gas concentration prediction error increases by 55.23%. This means that the proposed method can better allow the coal mine rescue robot to accurately predict the gas concentration in the coal mine roadway.


Introduction
Coal mine accidents have occurred frequently in our country.Coal mine accidents caused by a gas outburst, gas explosion, and gas suffocation accounted for 70%∼80% of all coal mine accidents [1], which not only cause great losses to the coal mining enterprises but also bring huge economic losses and psychological harm to the enterprise employees, family members, and the country.After a coal mine accident, the timeliness of an emergency rescue is very important.Rescue and relief workers have a small window of opportunity to enter the underground scene of the accident for rescue purposes.However, a complex and dangerous coal mine environment is a great security threat for rescue workers.With the development of science and technology, the mine rescue robot can be used for coal mine disaster relief to detect the situation within the disaster areas, to find personnel in distress, and to provide decision-making support for the rescue.
Gas disaster accidents often destroy roadway ventilation facilities, damage ventilation systems, and cause methane to flow from the coal wall and the goaf, most likely forming gas accumulation in the disaster areas.Furthermore, there is the risk of elevated temperature, coal dust, and other flammable and explosive gases produced from coal dry distillation, further increasing the risk of gas explosion.Not extinguishing the fire or new flames produced by secondary factors may cause a secondary gas explosion at any time.To ensure that the coal mine rescue robot can perform the detection and search and rescue mission, measures must be taken to avoid secondary disasters such as gas explosion caused by concentration.Therefore, predicting gas concentrations early has very important significance.
A comprehensive analysis of domestic and foreign research on gas concentration forecast shows that, at present, the research mainly focuses on the prediction of gas emissions, gas concentration prediction algorithms or methods, and so on.Özgen Karacan [2] proposes a principle component analysis and artificial neural network-based approach 2 Journal of Robotics to predict the ventilation methane emission rates of US longwall mines.Runqiua et al. [3] put forward a prediction gas emission method based on self-organizing data mining, and Hu et al. [4] established prediction models of the coalbed methane content using quantification theory based on the limited data obtained from the exploratory bores.The prediction method and algorithm of the gas concentration are compared with the prediction model [5] or an improved prediction model [6] to improve the accuracy of prediction.By using an effective prediction method or algorithm [7][8][9] to validate the practicality of the prediction [10] and using the combination forecasting method or algorithm [11][12][13][14] to accurately predict the concentration range, the trend of the gas concentration can be tracked effectively.However, there are some problems in these studies.Predicting the emission quantity is mostly based on data statistics or data mining.Searching for a gas change law and predicting the amount of gas emission in a mine or a range often require a large amount of data.Sometimes, data from the past few decades are needed, resulting in a large amount of forecast work.Furthermore, among the research in the gas concentration prediction method or algorithm, the accuracy and effectiveness of the method or algorithm are of greater concern, and the practicability of the algorithm is seldom considered.If the gray system and neural network are combined to form the gray neural network, it can take full advantage of the gray system's data modeling and the neural network's nonlinear mapping features.With the help of the gray mode, the gray neural network uses new data after the accumulation of new data to model.To a certain extent, this process weakens the randomness of the original data, and it is easy to find the transformation of the data.This approach is suitable when partial information is known, some information is unknown, there is a small sample, there is poor information, or there is uncertainty in the system.The establishment of a gray neural network can solve the problem of insufficient data quantity for gas concentration, but it also has its own inherent defects, such as randomness in the weight and threshold in the initialization process, falling into the local optimum during network evolution, and the inability to further modify the relevant parameters.Therefore, to improve the accuracy and applicability of gray neural network forecasts, the gray neural network is combined with the optimization algorithm.Currently, more common optimization algorithms include the particle swarm algorithm, ant colony algorithm, and genetic algorithm.The particle swarm optimization algorithm's main problem is that it is easy to produce premature convergence (especially when dealing with complex multimodal search problems) and poor local search optimization capabilities.The PSO algorithm is at the local minimum, which is mainly due to the loss of diversity in the search space.The ant colony algorithm is a typical probabilistic algorithm.The parameter settings in the ant colony algorithm are usually determined by experiments, which are closely related to human experience, and it is difficult to optimize the performance of the algorithm.The genetic algorithm can find the optimal solution of the problem using probability, but it does not take advantage of the excellent evolution immature subset of the information provided in the optimization process.In addition, there are slow convergence and premature convergence defects.The quantum genetic algorithm is introduced into the genetic optimization algorithm, which makes the genetic operation more effective.A quantum bit was introduced into the chromosome coding in the quantum state vector based on the narration.Thus, a chromosome can express the superposition of multiple states, reduce the size of the population, and increase the diversity of the population.At the same time, the application of the concept of a quantum gate can promote the convergence of the algorithm, and the quantum gate mutation operation can be used.
The phase characteristics of quantum entanglement can break the traditional genetic algorithm to produce several individual concept hybrid offspring.Using the quantum entanglement of quantum hybrid design can exchange information in the entire population, making it easy to find great individual populations.Hybrid quantum entanglement with quantum information can be communicated throughout the population, making it easy to find great individual populations.
This paper combines the actual work requirements of the coal mine rescue robots with a small amount of measurement data of the robot, and the factors affecting the gas concentration (such as temperature, wind speed, and distance) are considered.The gas concentration 10 meters in front of the coal mine rescue robot is predicted using the gray neural network variation for eigenvalues in uncertain systems.The prediction accuracy of the gray neural network is improved by optimizing the quantum genetic algorithm parameters of the gray neural network.The safety of the coal mine rescue robot's task execution is ensured by avoiding gas explosion accidents because of either the coal mine rescue robot itself or the ground friction sparks.This provides an effective basis for the rescue decision.

Model Establishment
2.1.Gray Neural Network.Grey system theory is founded by Professor Deng Julong in 1982, an expansion theory from the method of white-black-gray box, which is a new research method for the issue with a few new original data and uncertain features.A gray neural network is the combination of gray theory and a neural network, which can predict the development and change of the characteristic value of the uncertain system.The original sequence of the system  (0)  ( = 1, 2, . . .,  − 1), after a cumulative sequence gives  (1)   , and its exponential growth can be used as a function or differential equation for data fitting and prediction.To facilitate representation, redefine the original sequence () after sequence  1   is represented as a cumulative sequence, and the result is expressed as a forecast.
The differential predictive model of the parameters in a gray neural network is where  1 ,  2 , . . .,   are the input parameters for the system;  1 is the system output parameter; and , Equation ( 2) can be simplified to Mapping (3) to the BP neural network gives the gray neural network with  input parameters and 1 output parameter, and the network topology is shown in Figure 1.
(2) Each output is calculated for each input sample: LA layer:  =  11 .
LC layer: (3) Calculate the error of the predicted output and the actual value, and the error formula of each layer is as follows: LD layer:  =  −  1 ().LB layer: (4) Adjust the threshold formula in accordance with the following error: LB to LC layer: LA to LB layer:  11 =  11 +  +1 ; Adjust the threshold: ( In the formula,  and  can be complex, and they represent the probability amplitude of the corresponding state and satisfy the condition  2 +  2 = 1.
A system with m quantum bits can be expressed as 2  states, namely, In the formula,  2  +  Quantum coherence [15] is an important mechanism for quantum computing, using a special link between the quantum states; other quantum states can be launched from one or more quantum states.One of the main principles of quantum computing is to make each ground state of superposition state change the relative phase between them through quantum gate interference effect.For example, superposition state and quantum gate are given as follows: ) , Quantum gate action in superposition state as a result is as follows: From ( 9) it can be seen that the probability amplitude of ground state |1⟩ decreases, while the probability amplitude of |0⟩ increases.The quantum system is coherent when its ground state is in linear superposition state.The linear superposition of coherent system will disappear when interacting with the surrounding environment, the process called decoherence.
Another important mechanism for quantum computing is quantum entanglement.The so-called entanglement refers to some states existing in two interaction subsystems; it cannot be represented as tensor product of two subsystems' state but rather as some entanglement form of the subsystem state.Some certain state of an entangled quantum system does not correspond to the state of the subsystem; certain correlation exists between the various subsystems.For example, |00⟩ + |11⟩ cannot be expressed as a tensor product of two subsystems' state.Otherwise, there must be four numbers  1 ,  2 ,  1 , and  2 , satisfying Furthermore, Suppose that (11) holds; then get  1  2 = 0 and  2  1 = 0, which could indicate  1  2 = 0 or  1  2 = 0. Obviously, (10) and (11) should not be established at the same time because of its self-contradiction.Therefore, in the quantum system, the entire system cannot use quantum state of each qubit but is described by entangled quantum states.The operation of a few of entangled qubits will not only change the state of the qubits but also change the other qubits in which they are entangled.
The most essential feature of the quantum genetic algorithm is making full use of the superposition and coherence of quantum states, as well as the entangled states of the quantum bits.The quantum unitary transformation process applies the information processing process to the classical genetic algorithm.Using the quantum bit coding chromosome, the evolution of the population is realized through quantum mutation.A rotating quantum gate is a type of quantum gate that evolves by the rotation of the quantum gates.The information of the best individual can be added to the mutation to guide the evolution and speed up the convergence of the algorithm.The adjustment operation of the quantum rotation gate is shown in Table 1.
and   , respectively, refer to solution  and binary bits corresponding to the th quantum bit of the current best individual .() is the fitness function.The variation of the rotation angle controls the convergence speed of the algorithm for the direction of the rotation angle to ensure the algorithm's convergence.
The rotational quantum gate ensures that the algorithm quickly converges into a chromosome with higher fitness.When   = 0,   = 0, () ≥ (), to make the   2.

Quantum Cross.
The optimal value is often not precisely known in the actual data optimization process.The optimal value established in the optimization process often already counts the extreme value out, thus causing the system to fall into the local optimum.Quantum crossover is an effective method to prevent the system from the local optimal solution.The quantum crossover evolution strategy is an effective means to prevent the system from falling into local optima.In the genetic algorithm, the crossover is a means of searching the optimal solution, and its role is to achieve structural information exchange between individuals.According to the characteristics of the prediction of the gas concentration, the method of cross-interference is a full cross-interference in this paper [16], which uses quantum coherence properties and constructed a new crossover for ordinary chromosome.All the chromosomes in the population are involved in the crossover operation.Suppose that there are initially five chromosomes and that each chromosome has five genes, as shown in Table 2. Take chromosome 1 from the first genetic factor, chromosome 2 from the second genetic factor, chromosome 3 from the third genetic factor, chromosome 4 from the fourth genetic factor, and chromosome 5 from the fifth genetic factor.After the whole interference crossover, the first chromosome forms a new chromosome: A(1)-B(2)-C(3)-D(4)-E(5), as shown in Table 3.The purpose of this cross-interference is to fully exploit the information of all chromosomes in the population to improve the locality and one-sidedness.This method can also be applied to the evolution of the common chromosome.When there is premature population evolution, it can process new impetus into evolutionary processes by producing a new individual.

Fitness Function.
A fitness function is the evaluation criterion of the algorithm to the individual's "good and bad, " and its value is positive.
This paper intends to use the quantum genetic algorithm optimization gray neural network parameters to predict the roadway gas concentration.Therefore, the error of the gray neural network's prediction value of the training data and its actual value are used as the fitness function as follows: is used to predict the gas concentration, and   is used for the actual gas concentration value.

Experimental Analysis
3.1.Experimental Process.The coal mine rescue robot and the related sensor position are shown in Figure 3.The mine rescue robot is the dual arm robot.Position 1 is connected internally with the photoelectric encoder to detect the robot's walking distance and moving speed.Position 2 is the robot's power supply and drive unit.Position 3 is the control unit of the robot, where the instruction of the host computer is processed and the robot's state and the environmental information are collected and processed.Position 4 is a multiparameter detector, which can simultaneously detect methane, carbon dioxide, carbon monoxide, oxygen, temperature, humidity, and other parameters.Position 5 is the wind speed and direction sensors.The gas concentration prediction experiments based on the coal mine rescue robot-measured data are carried out in the coal mine tunnel.The coal mine rescue robot's walking speed is 1 m/s, and after every 0.5 meters, all sensor data are uploaded (but also according to instructions to the upload data).The core of the robot control unit is the embedded industrial computer, which is powerful at processing data.
The main factors influencing the gas flow are air flow motion, diffusion motion caused by concentration gradient, and floating motion caused by density difference, and so on, while in the tunnel it is mainly affected by the air flow motion and diffusion motion.Gas diffusion is the migration form due to thermal motion of gas molecules, which on the one hand is due to the gas concentration being higher than the concentration of gas in airflow and on the other hand is also affected by temperature difference and ventilation eddy current.
The diffusion motion obeys Fick's law of diffusion; Fick's first law expression is where  is gas diffusion coefficient,  is the concentration of gas molecules, / is concentration gradient, sign "−" indicates a direction opposite to the concentration gradient diffusion direction, indicating that diffusion component is made of high concentration to low concentration diffusion region, and  is diffusion flux.The diffusion coefficient depends on the pressure, temperature, and composition of gas mixture, usually determined by experiment.Document [17] gives the diffusion coefficient by experimental determination as follows: Among them,   and   are the volume of corresponding gas component;  is the gas pressure;  is temperature;   and   are the molecular weight of corresponding gas component.
The air in airflow produces the friction and impact on gas, which force the gas moving with the airflow.Assuming the gas concentration , the gas flow of the surface can be calculated by the convection transport principle, namely, amount of gas flux: ⃗  =  ⃗ , where ⃗  is the gas diffusion flux and ⃗  is the absolute wind speed along each coordinate axis.
Figure 4 shows the coal mine rescue robots walking on the roadway.Joint search and rescue tasks require multiple robots, and each robot needs to probe different regions.The sample data are the gas and related environmental data in the first 20 meters, collected by the coal mine rescue robot; the wind speed, temperature, and gas concentration data of the mine rescue robot on the coal mine roadway are shown in Figure 5.The coal mine rescue robot predicts the gas concentration in the first 10 meters of the coal mine.

Experimental Data Processing and Analysis.
In this paper, the quantum genetic algorithm is used to optimize the gray neural network to construct the prediction model of the gas concentration in the coal mine underground roadway based on the gas concentration, temperature, and wind speed data collected by the coal mine rescue robots.The construction flow of the forecasting model is shown in Figure 6.
When the coal mine rescue robots predict the gas concentration of the roadway in the coal mine, the main influencing factors are the current position's gas concentration, the ambient temperature, and the wind speed.At the same time, the more the input features, the better the prediction effect of the forecasting model.In general, the greater the wind speed, the more dispersed the gas concentration distribution, and the higher the temperature, the more gathered the gas concentration distribution.The correlations among wind speed, temperature, and gas concentration were analyzed, the correlation coefficients of wind speed with gas concentration and temperature with gas concentration are calculated, and they are shown in Table 4.The correlation among wind speed and gas concentration 0.5701 The correlation among temperature and gas concentration 0.6774 It can be seen from the calculation results of correlation that the correlation among wind speed and gas concentration belongs to the moderate degree, and the correlation among temperature and gas concentration belongs to strongly correlated degree.Wind speed and temperature are the major factors that affect the distribution of gas concentration.
Therefore, in this paper, the gas concentration of 10 meters is forecasted using the sensor information of the current position and the first meter.The gray neural network is suitable for the small sample and the uncertain system, which has partial information and unknown information and can predict the behavior and laws of the system by the extraction and exploitation of the known information.
A gray neural network was designed in this paper.The LA layer has one neuron, and the LB layer has one neuron.Because of six input vectors, the LC layer has seven neurons, and the output layer LD layer has one neuron.The initial number of training steps of the gray neural network is 100.The change in the training error of the gray neural network is shown in Figure 7, which shows that, after 6 steps of basic training, the gray neural network converges.The convergence compares the gray neural network forecast and the actual gas concentration.Figure 12 shows the prediction errors of the gray neural network optimized by the quantum genetic algorithm.
The graph shows that the gas concentration of the gray neural network after the optimization of the quantum genetic algorithm is more accurate.For 5 m, 13 m, 15 m, and 19 m, the predictive value of gas concentration at 5 m is 3.96, while the real value of gas concentration at 5 m is 3.51, so the prediction deviation is 0.45, and the forecast error is  5 = |( (1) (5) − x(1) (5))/x (1) (5)| = 0.45/3.96= 11.36%, the optimized gray neural network forecast value is close to the actual value, and the overall forecast error is  = (1/20) ∑ 20 =1 | (1) () − x(1) ()|/ (1) () = 9.12%.Compared with the ordinary gray neural network, the overall accuracy gas concentration prediction increases by (20.37% − 9.12%)/20.37%= 55.23%.Therefore, the optimized gray neural network can better help coal mine rescue robots to accurately predict the gas concentration.

Conclusions
After a coal mine accident, in order for the coal mine rescue robot to successfully execute detection and search and rescue mission, this paper addresses the problem of predicting the roadway gas concentration in front of the coal mine rescue robot based on the real-time data collection of the temperature, wind speed, and gas concentration.The gray neural network cannot fully execute its forecasting capabilities because the gray neural network training can easily fall into the local optimum.The difference between the predicted gas concentration and the actual value is large, and the overall average forecast error is 22.73%.Combining the quantum genetic algorithm and the gray neural network together can solve the shortcomings of the gray neural network and obtain a more accurate prediction of the gas concentration.The experiment shows that the gray neural network optimized by the quantum genetic algorithm is more accurate for predicting the gas concentration.The overall prediction error is 9.12%, and the largest forecasting error is 11.36%.The gas concentration's overall prediction accuracy is improved by 55.23% compared with the ordinary gray neural network, and predicting the gas concentration of the gray neural network optimized by the quantum genetic algorithm is an effective gas concentration prediction method for the coal mine rescue robot in an underground tunnel.

Figure 2 :
Figure 2: Quantum spin in the revolving door program.

Figure 3 :
Figure 3: Coal mine rescue robot and the related sensor location map. 1, the displacement sensor; 2, power supply and drive unit; 3, the control unit; 4, multiparameter detector; and 5, the wind speed and direction sensors.

Figure 4 :Figure 5 :
Figure 4: Coal mine rescue robot walking on the roadway.

Figure 6 :
Figure 6: Construction flow of the forecasting model.

Figure 7 :Figure 10 :Figure 11 :
Figure 7: The change in the training error of the gray neural network.

Figure 12 :
Figure 12: Prediction errors of the gray neural network optimized by the quantum genetic algorithm.
Determine whether the set error is reached.If it is reached, the training is over, and if not, return to step (2).
quantum evolutionary strategy.Its most essential feature is the full use of superposition and the coherence of quantum states, as well as the entangled states of the quantum bits.The smallest unit of information is a quantum bit, or a qubit.In the quantum genetic algorithm, a qubit may be in |1⟩ or |0⟩, in an intermediate state of |1⟩ and |0⟩, and in different superpositions of |1⟩ and |0⟩.Therefore, a qubit state is expressed as follows:     ⟩ =  | 0⟩ +  | 1⟩ .
2  = 1,  = 1, 2, . . ., . 2.2.2.Quantum Variation.By the basic assumptions of quantum mechanics, -bit quantum registers can be in 2  ground state of coherent superposition state |⟩; that is to say, it can simultaneously represent the 2  number.The relationship between superposition state and ground state can be expressed as |⟩ = ∑    |  ⟩, where   is the probability amplitude of the state   , and |  | 2 express the probability of  collapse to the ground state   , when subjected to quantum computing systems and measuring instruments observation entangled.

Table 2 :
Chromosomes before cross-interference.|   | 2 should be larger.Therefore, if (  ,   ) are in the first and fourth quadrants,  should rotate clockwise, and if (  ,   ) are in the second and third quadrants,  should rotate counterclockwise, as shown in Figure

Table 4 :
The correlations among wind speed, temperature, and gas concentration.