A gas concentration prediction method based on multivariable multi-step LSTM model

The multi-variable multi-step LSTM model is used to predict coal mine gas concentration, which solves the problem of low efficiency in the existing technology, achieves more accurate and efficient gas concentration monitoring, and improves the reliability of coal mine safety management.

CN114942308BActive Publication Date: 2024-09-20BEIJING TECH & BUSINESS UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210715620.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-23
Publication Date
2024-09-20
Estimated Expiration
2042-06-23

AI Technical Summary

Technical Problem

Existing technologies are inefficient in coal mine gas concentration monitoring, especially manual sampling methods, which make it difficult to predict changes in harmful gases in real time and accurately, affecting safety prevention and control and workers' health.

Method used

A gas concentration prediction method based on the multi-variable multi-step LSTM model is adopted. By preprocessing the time series data of various gas concentrations and temperatures, constructing a sliding window data set, training the multi-variable multi-step LSTM model, and conducting verification and testing. The model parameters are adjusted and finally used for on-site gas concentration prediction.

Benefits of technology

A complete and efficient gas concentration prediction method has been implemented, which improves the accuracy and efficiency of monitoring, provides a reliable prediction solution for coal mine safety, and reduces human errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114942308B
    Figure CN114942308B
Patent Text Reader

Abstract

The present invention provides a gas concentration prediction method based on a multivariate multi-step LSTM model, which belongs to the field of environmental gas detection. The method includes: 1) pre-processing and correlation analysis of time series data of multiple gas concentrations and temperatures, and selecting index gases; 2) constructing a sliding window data set using index gas concentration and temperature time series data; 3) constructing a multivariate multi-step LSTM model; 4) training the model; 5) verifying the evaluation model with a validation set; 6) testing the model with a test set and selecting the optimal model parameters; 7) predicting the on-site gas concentration with the constructed model. The present invention realizes the simultaneous prediction of multiple gas concentrations based on a multivariate multi-step LSTM model, provides a complete, efficient and feasible solution for environmental gas monitoring, and has high application value and promotion value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the prediction of gas concentration, and in particular to a gas concentration prediction method based on a multivariable multi-step LSTM model, and belongs to the field of environmental gas detection. Background Art

[0002] Facing the environmental problems in today's society, the premise for effective solution is to implement environmental gas monitoring. Therefore, it is necessary to detect and analyze the concentration of harmful gases through technology and propose reasonable and effective solutions.

[0003] In the coal mine safety production management, gas concentration monitoring also occupies an important position. Timely detection of coal mine gas concentration can not only protect the safety of people's lives and property, but also promote the development of coal mine safety prevention and control technology. Coal mine thermal-dynamic coupling disasters are extremely harmful disasters. Their occurrence seriously threatens the safety of mine production and the lives of underground workers. At the same time, harmful gases directly affect the health of workers and even suffocate people to death. The prediction of gas concentration related to coal mine safety, especially explosions, has received widespread attention from researchers.

[0004] Before the 1970s, manual sampling was mostly used to analyze gas, which was inefficient. With the development of machine learning, artificial neural networks, support vector machines, expert systems, etc. have begun to be applied to environmental gas detection (Zhao Lingyu. Research on dangerous gas diffusion prediction model based on neural network [D]. China University of Petroleum (Beijing), 2020. DOI: 10.27643 / d.cnki.gsybu.2020.001534.). At the same time, machine learning is also widely used in the quantitative evaluation and analysis of goaf gas hazards (Fu Hua. Research on coal mine gas disaster feature extraction and information fusion technology [D]. Fuxin: Liaoning University of Engineering and Technology, 2006.c). Coal and gas content and oxygen, temperature or CO data measured by sensors are typical time series. The application of time series machine learning prediction methods to predict gas concentration has gradually become a new trend. Summary of the invention

[0005] The purpose of the present invention is to realize a gas concentration prediction method based on a multivariable multi-step LSTM model, which can provide a complete, efficient and feasible solution for environmental gas monitoring.

[0006] The present invention provides a gas concentration prediction method based on a multivariate multi-step LSTM model, which specifically includes: 1) preprocessing input time series data of multiple gas concentrations and temperatures, and selecting key indicator gases; 2) constructing a sliding window data set using the selected indicator gas concentration and temperature time series data; 3) constructing a multivariate multi-step LSTM model; 4) training the multivariate multi-step LSTM model; 5) verifying and evaluating the trained model with a validation set; 6) testing the multivariate multi-step model with a test set, adjusting and selecting optimal model parameters; 7) predicting on-site gas concentrations with the constructed model; Specifically, the method of the present invention includes the following steps:

[0007] A. Preprocess the input time series data of multiple gas concentrations and temperatures and select key indicator gases. The specific steps are as follows:

[0008] A1. Normalize the input time series data of various gas concentrations and temperatures;

[0009] A2. Analyze the correlation between different gas concentrations and temperature, and between different gas concentrations;

[0010] A3. Based on the results of step A2, select the K gases and temperatures with the greatest correlation to make gas concentration prediction;

[0011] B. Use the selected K indicator gas concentration and temperature time series data to construct a sliding window data set. The specific steps are as follows:

[0012] B1. Select the time series data of index gas 1 and record it as A, A={a i}, i>=1; a i Represents the gas concentration value at the i-th time node;

[0013] B2. Construct a sliding window with a length of L and a sliding step of S. The window starts from a1 and slides to extract elements from the time series data to form a sliding window data set; where L>=1, S>=1, and the specific steps are as follows:

[0014] B2.1 Select a1 to a 1+L The elements of the first sample w1 1 =(D x1 , D y1 ), D x1 As the input value of the model, denoted as D x1 ={a i}, 1<=i<=L; D y1 As the expected output of the model, D y1 =a 1+L ;

[0015] B2.2 Select a1+S to a 1+L+S The elements of constitute the second sample w1 2 =(D x2 , D y2 ), D x2 As the input value of the model, denoted as D x2 ={a i+S}, 1<=i<=L; D y2 As the expected output of the model, D y2 =a 1+L+S ;

[0016] B2.3 Construct the subsequent sample w1 as described in steps B2.1 and B2.2 t , 3<=t<=N, N represents the preset number of samples;

[0017] B2.4 Samples 1 to N constitute the sliding window data set of gas 1, denoted as W1, W1 = {w1 t}, 1<=t<=N;

[0018] B3. Construct sliding window data sets for K indicator gases and temperatures respectively according to the method described in steps B1 and B2;

[0019] B4. Combine the sliding window data sets of temperature and all gases into a sample set W = {W j}, 1<=j<=K+1;

[0020] B5. Divide the sample set into training set O, validation set P and test set Q according to the ratio r1:r2:r3. The number of samples in each set is recorded as No, Np, Nq; the training set is used for model training, the validation set is used for model evaluation, and the test set is used for model testing;

[0021] C. Construct a multivariate multi-step LSTM model. The specific steps are as follows:

[0022] C1. Construct LSTM1, with the cell state denoted as Ct1 and the hidden state denoted as Ht1;

[0023] C2. Build LSTM2, transfer Ct1 and Ht1 to LSTM2, the cell state of LSTM2 is recorded as Ct2, and the hidden state is recorded as Ht2;

[0024] C3. Repeat the above operation and connect K+1 LSTM units in parallel to form a multivariate multi-step LSTM model, denoted as mLSTM, mLSTM={LSTM j}, 1<=j<=K+1;

[0025] D. Train mLSTM. The specific steps are as follows:

[0026] D1. Set the training hyperparameters, including the random seed number seed for model initialization, the learning rate lr, the total number of epochs for model training, and the number of samples in a training batch batch_size;

[0027] D2. Initialize mLSTM state seed according to the set random seed number seed;

[0028] D3. Get the training set O, denoted as O = {o j i}, 1<=i<=No, 1<=j<=K+1;

[0029] D4. Use batch_size samples as a batch of data to train the model, 1<=batch_size<=No, the specific steps are as follows:

[0030] D4.1 Take the sample set O of the jth column j The batch_size samples {o j i} As a batch of data, 1<=j<=K+1, 1<=i<=batch_size;

[0031] D4.2 Take each sample o in the batch of data j i =(D xi , D yi ) j D xi As LSTM j The input is used to get the predicted output y j , 1<=i<=batch_size;

[0032] D4.3 Use each sample o in the batch of data j i =(D xi , D yi ) j D yj As LSTM j The expected output is expressed as yj and the predicted output y j Calculate the loss of each sample;

[0033] D4.4 uses the loss loss of all samples in the batch of data to calculate the batch data loss mloss;

[0034] D4.5 uses batch data loss mloss to calculate the gradient, and uses the gradient and learning rate lr to update the model parameters;

[0035] D5. Use subsequent batches of data in all training sets to iteratively train and update model parameters in the manner described in step D4 until the batch data loss mloss converges to the preset standard, which is considered a round of training;

[0036] D6. Repeat the training epoch rounds according to the epoch settings to determine whether the batch data loss mloss reaches the preset standard;

[0037] D7. If the batch data loss mloss does not meet the preset standard, adjust the parameters lr, epoch and batch_size, and iteratively train the model in the manner described in steps D3 to D6; if the specified standard has been met, end the training and export the parameters of the trained model;

[0038] E. Use the validation set to verify and evaluate the trained model. The specific steps are as follows:

[0039] E1. Get the validation set P, denoted as P = {p j i}, 1<=i<=Np, 1<=j<=K+1;

[0040] E2. Input all samples in the validation set into the model to obtain the model's prediction results. The specific steps are as follows:

[0041] E2.1 Take the sample set P of the jth column j Each sample p j i =(D xi , D yi ) j D xi As LSTM j The input is used to get the predicted output y j , 1<=i<=Np;

[0042] E2.2: The set of expected outputs of K+1 LSTM units is recorded as the expected output of mLSTM; the set of predicted outputs of K+1 LSTM units is recorded as the predicted output of mLSTM;

[0043] E3. Use the expected output and predicted output of mLSTM to calculate the mean square error RMSE;

[0044] E4. Use RMSE to evaluate the model. The smaller the value, the higher the accuracy of the model.

[0045] E5. If the accuracy rate does not reach the preset standard, repeat the steps in D, adjust the length L and step size S of the sliding window data set, the number of samples in a training batch batch_size, the total number of model training rounds epoch and the learning rate lr, and retrain the model;

[0046] F. Test the mLSTM model with the test set, adjust and select the optimal model parameters. The specific steps are as follows:

[0047] F1. Use the test set instead of the validation set in the manner described in step E, input the data into the model to predict gas concentration, and determine whether the preset RMSE standard is met;

[0048] F2. If the accuracy rate does not reach the preset standard, repeat the steps in D, adjust the length L and step size S of the sliding window data set, the number of samples in a training batch batch_size, the total number of model training rounds epoch and the learning rate lr, and retrain the model;

[0049] F3. If the preset standard is met, the model with the best prediction effect is exported as the final model; the optimal sliding window data set length is recorded as L0, and the step length is recorded as S0;

[0050] G. Use the constructed model to predict the on-site gas concentration. The specific steps are as follows:

[0051] G1. According to the optimal sliding window data set length L0 and step length S0 obtained in step F, intercept the concentration and temperature time series data of K types of on-site gases. The specific steps are as follows:

[0052] G1.1 Select the time series data of index gas 1 and record it as A, A={a i}, i>=1; a i Represents the gas concentration value at the i-th time node;

[0053] G1.2 constructs a sliding window with a length of L0. The window starts from a1 and slides to extract elements in the time series data to form a sliding window data unit U1;

[0054] G1.3 construct sliding window data units for K indicator gases and temperatures respectively in the manner described in steps G1.1 and G1.2;

[0055] G1.4 Combine the sliding window data units of K gases and temperatures into a matrix of K+1 elements, denoted as U, where U = {u j}, 1<=j<=K+1;

[0056] G2. Each unit u in the matrix U j Enter LSTM j , get the predicted results of each gas concentration;

[0057] G3. According to the sliding step S0, intercept the next section of on-site gas concentration and temperature time series data, and predict the subsequent gas concentration according to the method described in steps G1 and G2.

[0058] Compared with the prior art, the present invention has the following advantages: it realizes a complete method for predicting the concentrations of multiple gases based on a multivariable multi-step LSTM model, including the selection of key indicator gases, the construction of a sliding window data set, the specific construction method of a multivariable multi-step LSTM and the training and evaluation model, and the complete process and steps of using the model to predict on-site gases, providing a complete, efficient and feasible solution for environmental gas monitoring, and having high application value and promotion value. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 Flow chart of the gas concentration prediction method based on multivariable multi-step LSTM of the present invention;

[0060] Figure 2 In the specific embodiment of the present invention, when the oxygen concentration is 20.9%, the trend of gas concentration changing with temperature;

[0061] Figure 3 Correlation analysis of gas concentration data in a specific embodiment of the present invention;

[0062] Figure 4 Schematic diagram of sliding window data construction in a specific embodiment of the present invention;

[0063] Figure 5 The loss curve of mLSTM in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0064] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0065] The gas flow rate of the gas detection environment used in this embodiment is 100cm 3 / min, the heating rate is 0.5℃ / min in the range of 25~80℃, 1℃ / min in the range of 80~200℃, and 2℃ / min in the range of 200~300℃. There are 13240 data collected, and 11342 data remain after data cleaning and elimination of abnormal data.

[0066] The flow chart of the present invention is as follows Figure 1 As shown, the method of the present invention includes: 1) preprocessing the input time series data of multiple gas concentrations and temperatures, and selecting key indicator gases; 2) constructing a sliding window data set using the selected indicator gas concentration and temperature time series data; 3) constructing a multivariate multi-step LSTM model; 4) training the multivariate multi-step LSTM model; 5) verifying and evaluating the trained model with a validation set; 6) testing the multivariate multi-step LSTM model with a test set, adjusting and selecting the optimal model parameters; 7) predicting the on-site gas concentration with the constructed model;

[0067] The present invention is further described below in accordance with the steps and in combination with data examples, taking a set of experimental data as an example:

[0068] 1. Preprocess the input time series data of various gas concentrations and temperatures and select key indicator gases. The specific steps are as follows:

[0069] Ten input gases are selected, namely O2, N2, CO, CO2, CH4, C2H6, C2H4, C3H8, C3H6, and C2H2; the concentration units of O2 and N2 are %, and the others are PPM concentrations;

[0070] 1.1 Normalize the input time series data of 12 gas concentrations and temperatures;

[0071] According to formula (1-1), the concentration of each gas input is normalized to the interval [0, 1];

[0072]

[0073] 1.2 Analyze the correlation between the concentration and temperature of different gases and between the concentrations of different gases;

[0074] The relationship between CO, CH4, C2H6, C3H8, C2H4, C3H6 gas and temperature is as follows Figure 2 As shown in the figure, with the increase of temperature, when the oxygen supply concentration is 20.9% and 150℃, the concentrations of CO and CH4 increase rapidly in a consistent trend, while the concentrations of C3H8, C2H4, C2H6, and C3H6 increase slowly in a consistent trend;

[0075] The collected raw data are analyzed for correlation. Positive values ​​indicate positive correlation, negative values ​​indicate negative correlation. The larger the absolute value, the stronger the correlation. The correlation between multiple gases is as follows: Figure 3 As shown, the correlation between CO2 and N2 and other gases is not high, so they are excluded; the correlation coefficients between CO and CH4 and C2H2, C3H6, C3H8 and C2H2, C2H6 and C2H2, C2H4 and C2H2 and C3H6 are around 0.75, and the correlations between CO, C2H4, C3H6, C2H2, CH4, C2H4 / C2H6, and C3H8 / C2H6 are all close to 1;

[0076] 1.3 Based on the results of step 1.2, select the 7 gases with the greatest correlation and temperature to make gas concentration prediction;

[0077] According to the above analysis, a total of 8 experimental variables were selected, namely [Temperature, CO, C2H4, C3H6, C2H2, CH4, C2H4 / C2H6, C3H8 / C2H6];

[0078] 2. Use the selected 7 index gas concentration and temperature time series data to construct a sliding window data set. The specific steps are as follows:

[0079] 2.1 Select the time series data of index gas 1 and record it as A n , A n ={a i}, i>=1; a i Represents the gas concentration value at the i-th time node;

[0080] 2.2 Construct a sliding window with a length L of 7 and a sliding step S of 5. The window starts sliding from a1 to extract elements from the time series data to form a sliding window data set;

[0081] The schematic diagram of sliding window data construction is as follows Figure 4 As shown:

[0082] 2.3 Construct sliding window data sets for the other six indicator gases and temperatures in the same manner as described in steps 2.1 and 2.2;

[0083] 2.4 Combine the sliding window data sets of temperature and all gases into a sample set W = {W j}, 1<=j<=8;

[0084] Table 1 Input data format

[0085] T A B ... K 1 A1x B1x ... K1x 2 A2x B2x ... K2x 3 A3x B3x ... K3x 4 A4x B4x ... K4x 5 A5x B5x ... K5x 6 A6x B6x ... K6x 7 A7x B7x ... K7x

[0086] 2.5 Divide the sample set into training set O, validation set P and test set Q in the ratio of 6:3:1. The number of samples in each set is recorded as No, Np, Nq; the training set is used for model training, the validation set is used for model evaluation, and the test set is used for model testing; 3. Construct a multivariate multi-step LSTM model. The specific steps are as follows:

[0087] 3.1 Connect 8 LSTM units in parallel to form a multivariate multi-step LSTM model, denoted as mLSTM, mLSTM = {LSTM j}, 1<=j<=8;

[0088] The overall framework of constructing mLSTM prediction model includes three functional modules: input layer, hidden layer and output layer. The input layer processes the index gas time series data to meet the network input requirements and divides the data into windows. The hidden layer adopts a single-layer recurrent neural network. The output layer provides prediction results.

[0089] 4. Train the multivariate multi-step LSTM model. The specific steps are as follows:

[0090] 4.1 Set the training hyperparameters, including the random seed number seed for model initialization, learning rate lr = 0.001, total number of model training epochs = 300, and number of samples in a training batch batch_size = 32;

[0091] 4.2 Initialize mLSTM state seed according to the set random seed number seed;

[0092] 4.3 Obtain training set O, denoted as O = {o j i}, 1<=i<=1360, 1<=j<=8;

[0093] 4.4 Use 32 samples as a batch of data to train the model, calculate the batch data loss mloss, and calculate the gradient, and use the gradient and learning rate lr to update the model parameters;

[0094] 4.5 Use subsequent batches of data from all training sets to iteratively train and update the model until the batch data loss mloss converges to the preset standard, which is considered a round of training;

[0095] 4.6 Repeat the training for 300 rounds, and the loss curve is as follows Figure 4 As shown, when the specified standard is reached, the training is ended and the trained model parameters are exported;

[0096] 5. Use the validation set to verify and evaluate the trained model. The specific steps are as follows:

[0097] 5.1 Obtain the validation set P, denoted as P = {p j i}, 1<=i<=680, 1<=j<=8;

[0098] 5.2 Input all samples in the validation set into the model to obtain the model's prediction results;

[0099] 5.3 Using the expected output and predicted output of mLSTM, calculate the mean square error RMSE and mean absolute error MAE to quantitatively evaluate the model's fitting and prediction accuracy;

[0100] 5.4 The model was evaluated using RMSE and MAE, and the preset standards were met;

[0101] 6. Test the mLSTM model with the test set, adjust and select the optimal model parameters. The specific steps are as follows:

[0102] 6.1. Using the method described in step 5, replace the validation set with the test set, and test the prediction accuracy of the three models trained with sample sets of sliding steps of 5, 10, and 30. The results are shown in Table 2:

[0103] Table 2 Prediction accuracy under different step lengths

[0104]

[0105] The results show that when a sliding window with a window length of 11 and a step size of 5 is used to intercept time series data to construct data units, the mLSTM model has the highest prediction accuracy;

[0106] 7. The constructed model can be used to predict the on-site gas concentration to meet application requirements.

[0107] Finally, it should be noted that the purpose of publishing the implementation is to help further understand the present invention, but those skilled in the art can understand that various substitutions and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the contents disclosed in the embodiments, and the scope of protection claimed by the present invention shall be subject to the scope defined in the claims.

Claims

1. A gas concentration prediction method based on a multivariate multi-step LSTM model, the steps of which include: A. Preprocess the input time series data of various gas concentrations and temperatures, and select key indicator gases CO, C2H4, C3H6, C2H2, CH4, C2H4, C2H6, C3H8, and C2H6; the details are as follows: A1. Normalize the input time series data of various gas concentrations and temperatures; A2. Analyze the correlation between different gas concentrations and temperature, and between different gas concentrations; A3. Based on the results of step A2, select the K gases and temperatures with the greatest correlation to make gas concentration prediction; B. Use the selected K index gas concentration and temperature time series data to construct a sliding window data set. C. Construct a multivariate multi-step LSTM model. The specific steps are as follows: C1. Construct LSTM1, with the cell state denoted as Ct1 and the hidden state denoted as Ht1; C2. Construct LSTM2, transfer Ct1 and Ht1 to LSTM2, the cell state of LSTM2 is recorded as Ct2, and the hidden state is recorded as Ht2; C3. Repeat the above operation and connect K+1 LSTM units in parallel to form a multivariate multi-step LSTM model, denoted as mLSTM, mLSTM={LSTM j }, 1<=j<=K+1; D. Train the multivariate multi-step LSTM model. The specific steps are as follows: D1. Set the training hyperparameters, including the random seed number seed for model initialization, the learning rate lr, the total number of epochs for model training, and the number of samples in a training batch batch_size; D2. Initialize mLSTM state seed according to the set random seed number seed; D3. Get the training set O, denoted as O = {o j i }, 1<=i<=No, 1<=j<=K+1; D4. Use batch_size samples as a batch of data to train the model, 1<=batch_size<=No, the specific steps are as follows: D4.1 Take the sample set O of the jth column j The batch_size samples {o j i } As a batch of data, 1<=j<=K+1, 1<=i<=batch_size; D4.2 Take each sample o in the batch of data j i =(D xi , D yi ) j D xi As LSTM j The input is used to get the predicted output y j , 1<=i<=batch_size; D4.3 Use each sample o in the batch of data j i =(D xi , D yi ) j D yj As LSTM j The expected output is expressed as yj and the predicted output y j Calculate the loss of each sample; D4.4 uses the loss of all samples in the batch of data to calculate the batch data loss mloss; D4.5 uses batch data loss mloss to calculate the gradient, and uses the gradient and learning rate lr to update the model parameters; D5. Use the subsequent batches of data in the entire training set to iteratively train and update the model parameters in the same manner as step D4 until the batch data loss mloss converges to the preset standard, which is considered a round of training; D6. Repeat the training epoch rounds according to the epoch settings to determine whether the batch data loss mloss reaches the preset standard; D7. If the batch data loss mloss does not meet the preset standard, adjust the parameters lr, epoch and batch_size, and iteratively train the model in the manner described in steps D3 to D6; if the specified standard has been met, end the training and export the parameters of the trained model; E. Use the validation set to verify and evaluate the trained model. The specific steps are as follows: E1. Get the validation set P, denoted as P = {p j i }, 1<=i<=Np, 1<=j<=K+1; E2. Input all samples in the validation set into the model to obtain the model's prediction results. The specific steps are as follows: E2.1 Take the sample set P of the jth column j Each sample p j i =(D xi , D yi ) j D xi As LSTM j The input is used to get the predicted output y j , 1<=i<=Np; E2.2: The set of expected outputs of K+1 LSTM units is recorded as the expected output of mLSTM; the set of predicted outputs of K+1 LSTM units is recorded as the predicted output of mLSTM; E3. Using the expected output and predicted output of mLSTM, calculate the mean square error RMSE and mean absolute error MAE; E4. Use RMSE and MAE to evaluate the model. The smaller the value, the higher the accuracy of the model. E5. If the accuracy rate does not reach the preset standard, repeat the steps in D, adjust the length L and step size S of the sliding window data set, the number of samples in a training batch batch_size, the total number of model training rounds epoch and the learning rate lr, and retrain the model; F. Use the test set to test the multivariate multi-step LSTM model, adjust and select the optimal model parameters. The specific steps are as follows: F1. Use the test set instead of the validation set in the manner described in step E, input the data into the model to predict gas concentration, and determine whether the preset RMSE standard is met; F2. If the accuracy rate does not reach the preset standard, repeat the steps in D, adjust the length L and step size S of the sliding window data set, the number of samples in a training batch batch_size, the total number of model training rounds epoch and the learning rate lr, and retrain the model; F3. If the preset standard is met, the model with the best prediction effect is exported as the final model; the optimal sliding window data set length is recorded as L0, and the step length is recorded as S0; G. Use the constructed model to predict the on-site gas concentration, where No represents the number of samples in the training set O; Np is the number of samples in the validation set P.

2. The gas concentration prediction method based on the multivariable multi-step LSTM model according to claim 1, characterized in that: Step B is as follows: B1. Select the time series data of index gas 1 and record it as A, A={a i }, i>=1; a i Represents the gas concentration value at the i-th time node; B2. Construct a sliding window with a length of L and a sliding step of S. The window starts from a1 and slides to extract elements from the time series data to form a sliding window data set; where L>=1, S>=1, and the specific steps are as follows: B2.1 Select a1 to a 1+L The elements of the first sample w1 1 =(D x1 , D y1 ), D x1 As the input value of the model, denoted as D x1 ={a i }, 1<=i<=L; D y1 As the expected output of the model, D y1 =a 1+L ; B2.2 Select a 1+S to a 1+L+S The elements of constitute the second sample w1 2 =(D x2 , D y2 ), D x2 As the input value of the model, denoted as D x2 ={a i+S }, 1<=i<=L; D y2 As the expected output of the model, D y2 =a 1+L+S ; B2.3 Construct the subsequent sample w1 as described in steps B2.1 and B2.2 t , 3<=t<=N, N represents the preset number of samples; B2.4 Samples 1 to N constitute the sliding window data set of gas 1, denoted as W1, W1 = {w1 t }, 1<=t<=N; B3. Construct sliding window data sets for K indicator gases and temperatures respectively according to the method described in steps B1 and B2; B4. Combine the sliding window data sets of temperature and all gases into a sample set W = {W j }, 1<=j<=K+1; B5. Divide the sample set into training set O, validation set P and test set Q in the ratio r1:r2:r3. The number of samples in each set is recorded as No, Np, Nq; the training set is used for model training, the validation set is used for model evaluation, and the test set is used for model testing.

3. The gas concentration prediction method based on the multivariable multi-step LSTM model as claimed in claim 1, characterized in that: Step G is as follows: G1. According to the optimal sliding window data set length L0 and step length S0 obtained in step F, intercept the concentration and temperature time series data of K types of on-site gases; G2. Each unit u in the matrix U j Enter LSTM j , get the predicted results of each gas concentration; G3. According to the sliding step S0, intercept the next section of on-site gas concentration and temperature time series data, and predict the subsequent gas concentration according to the method described in steps G1 and G2.

4. The gas concentration prediction method based on the multivariable multi-step LSTM model as claimed in claim 3, characterized in that: Step G1 is as follows: G1.1 Select the time series data of index gas 1 and record it as A, A={a i }, i>=1; a i Represents the gas concentration value at the i-th time node; G1.2 constructs a sliding window with a length of L0. The window starts from a1 and slides to extract elements in the time series data to form a sliding window data unit U1; G1.3 construct sliding window data units for K indicator gases and temperatures respectively in the manner described in steps G1.1 and G1.2; G1.4 Combine the sliding window data units of K gases and temperatures into a matrix of K+1 elements, denoted as U, where U = {u j }, 1<=j<=K+1.