Coal mine CO concentration prediction method and coal mine CO concentration mutation reason classification method

The LSTM model is used to predict coal mine CO concentration and the XGBoost model is used to classify mutation causes, which solves the accuracy and precision problems of CO concentration prediction and mutation cause classification in the existing technology, and improves the reliability and decision support of coal mine safety production.

CN118734172APending Publication Date: 2024-10-01SHANXI GAOHE ENERGY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962578.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology has low accuracy and accuracy in predicting CO concentration and classifying causes of mutations in coal mines. It cannot make full use of temporal data and lacks an effective overall classification method, which leads to challenges in safe production in coal mines.

Method used

The LSTM model is used to predict coal mine CO concentration. The pre-trained model uses the CO concentration characteristics of historical periods to predict the concentration in future periods. The XGBoost model is used to classify the causes of CO concentration mutations and uses feature correlation to provide accurate classification results.

Benefits of technology

It improves the accuracy and precision of CO concentration prediction, provides reliable guidance for safe production in coal mines, and helps decision-makers prevent dangers and reduce casualties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734172A_ABST
    Figure CN118734172A_ABST
Patent Text Reader

Abstract

According to the coal mine CO concentration prediction method and the coal mine CO concentration mutation reason classification method provided by the invention, the coal mine CO concentration prediction can be performed by utilizing the LSTM model, the CO concentration in the subsequent time period can be predicted by fully utilizing the relevance between the time sequence data in the previous time period, the CO concentration prediction accuracy and precision are improved, and the prediction efficiency is improved. Therefore, reliable guidance is provided for practical coal mine safety production. According to the method, coal mine CO concentration mutation reason classification can be carried out by utilizing the XGBoost model according to CO concentration mutation, coal mine CO concentration mutation reasons can be provided by fully utilizing the relevance between the characteristics, powerful technical support is provided for coal mine safety production and management, and decision makers are more convenient to focus on danger prevention and corresponding decision making in time, so that personnel casualties are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of coal mine development, and in particular to a method for predicting CO concentration in a coal mine and a method for classifying causes of CO concentration mutation in a coal mine. Background Art

[0002] Since one of the main causes of underground fires in coal mines is excessive CO concentration, the prediction of CO concentration in coal mining faces is of great significance to coal mine safety production. Existing technologies usually use machine learning to predict and monitor coal mine CO concentration, but this method cannot fully utilize the relationship between data for time series data, and its accuracy and precision are relatively low. In addition, since blasting, exhaust emissions or other human factors often cause CO concentration to rise in a short period of time (i.e., CO concentration mutates), the classification of the causes of CO concentration mutations is particularly important for helping to strengthen coal mine safety production and management, but there is currently a lack of an overall classification method for the causes of CO concentration mutations. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a method for predicting CO concentration in a coal mine and a method for classifying causes of sudden changes in CO concentration in a coal mine, so as to alleviate the above-mentioned problems existing in the related art.

[0004] In a first aspect, an embodiment of the present invention provides a method for predicting CO concentration in a coal mine, the method comprising: obtaining CO concentration characteristics of a target coal mine within a preset first time period and a corresponding preset first characteristic; constructing a sample to be predicted of the target coal mine based on the CO concentration characteristics of the target coal mine within the preset first time period and the corresponding preset first characteristic; predicting the obtained sample to be predicted by a pre-trained LSTM model to obtain a CO concentration prediction result of the target coal mine within a preset second time period; wherein the start time of the preset second time period is after the end time of the preset first time period.

[0005] In a second aspect, an embodiment of the present invention further provides a method for classifying causes of sudden changes in CO concentration in coal mines, the method comprising: obtaining CO concentration characteristics of a target coal mine within a preset fifth time period and corresponding associated characteristics thereof; wherein the CO concentration characteristics of the target coal mine within the preset fifth time period include mutation characteristics characterizing that the CO concentration exceeds a preset concentration threshold and a mutation occurs; based on the CO concentration characteristics of the target coal mine within the preset fifth time period and corresponding associated characteristics thereof, constructing a classification sample of causes to be mutated in the target coal mine; classifying the obtained classification samples of causes to be mutated by a pre-trained XGBoost model, and obtaining a classification result of causes of CO concentration mutation in the target coal mine within the preset fifth time period.

[0006] The embodiments of the present invention provide a method for predicting CO concentration in a coal mine and a method for classifying causes of sudden changes in CO concentration in a coal mine. The method comprises: constructing samples to be predicted of the target coal mine based on the acquired CO concentration characteristics of the target coal mine in a preset first time period and the corresponding preset first characteristics, predicting the obtained samples to be predicted by a pre-trained LSTM model, and obtaining a prediction result of the CO concentration of the target coal mine in a preset second time period; constructing classified samples of causes to be sudden changes in the target coal mine based on the acquired CO concentration characteristics of the target coal mine in a preset fifth time period and the corresponding associated characteristics, classifying the obtained classified samples of causes to be sudden changes by a pre-trained XGBoost model, and obtaining a classification result of causes of sudden changes in the CO concentration of the target coal mine in the preset fifth time period. By adopting the above technology, the LSTM model can be used to predict the CO concentration in coal mines. The correlation between the time series data in the previous period can be fully utilized to predict the CO concentration in the subsequent period, which improves the accuracy and precision of the CO concentration prediction, thereby providing reliable guidance for the actual coal mine safety production; the XGBoost model can be used to classify the causes of the sudden change in CO concentration in coal mines, and the correlation between the features can be fully utilized to provide the causes of the sudden change in CO concentration in coal mines, providing strong technical support for the safe production and management of coal mines, making it more convenient for decision makers to focus on preventing dangers and making corresponding decisions in time to reduce casualties.

[0007] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0008] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0010] Figure 1 Schematic diagram of a method for predicting CO concentration in a coal mine according to an embodiment of the present invention;

[0011] Figure 2 This is an example diagram of a method for predicting CO concentration in a coal mine according to an embodiment of the present invention;

[0012] Figure 3 Schematic diagram of a method for classifying causes of sudden CO concentration changes in coal mines according to an embodiment of the present invention;

[0013] Figure 4 This is an example diagram of a method for classifying causes of sudden changes in CO concentration in coal mines in an embodiment of the present invention. DETAILED DESCRIPTION

[0014] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described in combination with the embodiments below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0015] At present, since one of the main causes of underground fires in coal mines is excessive CO concentration, the prediction of CO concentration in coal mining faces is of great significance to coal mine safety production. The prior art usually uses machine learning to predict and monitor the CO concentration in coal mines, but this method cannot fully utilize the relationship between the data for time series data, and the accuracy and precision are relatively low. In addition, since blasting, exhaust emissions or other human factors often cause the CO concentration to rise in a short period of time (i.e., the CO concentration mutates), the classification of the causes of CO concentration mutations is particularly important for helping to strengthen coal mine safety production and management, but there is currently a lack of an overall classification method for the causes of CO concentration mutations. Based on this, the present invention provides a method for predicting the CO concentration in coal mines and a method for classifying the causes of CO concentration mutations in coal mines, which can alleviate the above-mentioned problems existing in the relevant technology.

[0016] To facilitate understanding of this embodiment, a method for predicting CO concentration in a coal mine disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method for predicting the CO concentration in a coal mine may include the following steps:

[0017] Step S102, obtaining the CO concentration characteristic of the target coal mine within a preset first time period and its corresponding preset first characteristic.

[0018] Among them, the preset first characteristics may include wind speed characteristics, temperature characteristics, humidity characteristics, methane concentration characteristics, CO2 concentration characteristics, O2 concentration characteristics, etc., and there is no limitation on this.

[0019] The CO concentration feature can be obtained by processing the CO concentration data collected within the preset first time period, and the preset first feature can be obtained by processing the corresponding data collected together with the CO concentration data within the preset first time period.

[0020] Step S104: construct a sample to be predicted of the target coal mine based on the CO concentration characteristic of the target coal mine within the preset first time period and its corresponding preset first characteristic.

[0021] After obtaining the CO concentration characteristics of the target coal mine in the preset first time period and its corresponding preset first characteristics, corresponding processing can be performed on each CO concentration characteristic and its corresponding preset first characteristic, and then the sample to be predicted of the target coal mine is constructed by splicing the processed characteristics, so that the sample to be predicted can be used for subsequent CO concentration prediction.

[0022] Step S106, predicting the obtained samples to be predicted by using the pre-trained LSTM model to obtain the CO concentration prediction result of the target coal mine within the preset second time period.

[0023] The start time of the preset second time period is after the end time of the preset first time period.

[0024] Since the preset first time period belongs to the historical time period relative to the preset second time period, and the preset second time period belongs to the future time period relative to the preset first time period, after the sample to be predicted of the target coal mine is constructed based on the CO concentration characteristics of the target coal mine in the historical time period and its corresponding preset first characteristics, the sample to be predicted can be input into the pre-trained LSTM model to predict the input sample to be predicted through the LSTM model and output the CO concentration of the target coal mine in the future time period.

[0025] A method for predicting CO concentration in a coal mine provided by an embodiment of the present invention constructs a sample to be predicted of the target coal mine based on the acquired CO concentration feature of the target coal mine in a preset first time period and its corresponding preset first feature, so as to predict the obtained sample to be predicted by a pre-trained LSTM model, thereby obtaining a prediction result of the CO concentration of the target coal mine in a preset second time period. The LSTM model can be used to predict the CO concentration in the coal mine, and the correlation between the time series data in the previous time period can be fully utilized to predict the CO concentration in the subsequent time period, thereby improving the accuracy and precision of the CO concentration prediction, thereby providing reliable guidance for the actual safe production of coal mines.

[0026] As a possible implementation, the above step S102 (i.e. obtaining the CO concentration characteristic of the target coal mine within the preset first time period and its corresponding preset first characteristic) may include:

[0027] Step 1: Obtain the initial CO concentration data and the corresponding initial detection data of the target coal mine at each moment in a preset first time period through the Internet of Things data center.

[0028] Among them, the initial detection data may include wind speed data, temperature data, humidity data, methane concentration data, CO2 concentration data, O2 concentration data, etc., without limitation.

[0029] For example, data collected by sensors such as CO concentration, wind speed, temperature, humidity, methane concentration, CO2 concentration, and O2 concentration in a coal mine during a specified historical period can be obtained from the Internet of Things data center.

[0030] Step 2: preprocess the obtained initial CO concentration data and its corresponding initial detection data.

[0031] The preprocessing may include data cleaning, data linear interpolation, etc., which are not limited.

[0032] Continuing with the previous example, since the initial CO concentration data and initial detection data collected by the sensor may have negative values ​​or suddenly increase to large abnormal values, and the sensor will generate initial CO concentration data and initial detection data in the calibrated state during the testing phase, in order to avoid interference caused by negative values, abnormal values ​​and data in the calibrated state, it is necessary to remove the negative values, data in the calibrated state and suddenly increase to large abnormal values ​​in the initial CO concentration data and initial detection data through data cleaning; in addition, since the data collected by the sensor may have problems such as transmission errors and data missing, it is necessary to use linear interpolation to supplement the missing data.

[0033] Step 3: convert the preprocessed data into a time series of the target coal mine in a preset first time period according to a preset time step, and determine the CO concentration characteristics of the target coal mine in the preset first time period and its corresponding preset first characteristics based on the obtained time series.

[0034] The time series may include a first CO concentration at each preset time step within a preset first time period and its corresponding first detection data.

[0035] Continuing with the previous example, since the data collected by the sensor each time has a corresponding collection time, in order to reduce the complexity of CO concentration prediction, after preprocessing the initial CO concentration data and initial detection data collected by the sensor in a certain coal mine within a specified historical period, a time step of a certain length (such as 1 minute, several minutes, etc.) can be defined, and then the preprocessed data of multiple collection moments contained in each time step are taken as a whole, and the average values ​​of the preprocessed CO concentration data and preprocessed detection data of all collection moments in the same time step are calculated respectively, and each average value calculated at each time step is used to replace the corresponding time step. The corresponding preprocessed data of all the acquisition moments in the specified historical period are converted into a time series of CO concentration data and detection data of a certain coal mine in a specified historical period, thereby converting the preprocessed data of a certain coal mine in a specified historical period into a time series containing CO concentration data and detection data of multiple time steps; then, the CO concentration characteristics of the target coal mine in the specified historical period and its corresponding preset first characteristics can be determined by statistical calculation of the obtained time series. The CO concentration characteristics and its corresponding preset first characteristics can adopt the respective data values, maximum values, minimum values, average values, historical period length values, and the difference between the maximum and minimum values ​​of the CO concentration data and detection data of multiple time steps in the specified historical period, and there is no limitation on this.

[0036] As a possible implementation manner, the above-mentioned step S104 (i.e., constructing the sample to be predicted of the target coal mine based on the CO concentration characteristics of the target coal mine within the preset first time period and the corresponding preset first characteristics) may include: normalizing the CO concentration characteristics within the preset first time period and the corresponding preset first characteristics, and constructing the sample to be predicted of the target coal mine within the preset first time period based on the normalized characteristics.

[0037] Continuing with the previous example, each CO concentration feature and each preset first feature within the specified historical period can be normalized to the maximum and minimum values, so that each CO concentration feature and each preset first feature can be normalized to a value between 0 and 1. Then, the samples to be predicted for the target coal mine within the preset first period can be constructed by splicing the normalized features, so that the samples to be predicted can be subsequently input into the pre-trained LSTM model for CO concentration prediction.

[0038] As a possible implementation, the training steps of the above LSTM model may include:

[0039] Step A1, obtaining the CO concentration characteristics of the target coal mine in a preset third time period and its corresponding preset first characteristics and the CO concentration data of the target coal mine in a preset fourth time period.

[0040] The start time of the preset first time period is after the end time of the preset third time period, and the start time of the preset fourth time period is after the end time of the preset third time period.

[0041] The CO concentration characteristics of the target coal mine in the preset third time period and its corresponding preset first characteristics and the CO concentration data of the target coal mine in the preset fourth time period are each obtained in a manner similar to the operation of step S102 in the previous text, which will not be repeated here.

[0042] Step A2: constructing a first training sample of the LSTM model based on the CO concentration characteristic of the target coal mine in a preset third time period and its corresponding preset first characteristic.

[0043] The construction method of the first training sample is similar to the operation method of step S104 in the above text, and will not be described in detail.

[0044] Step A3, using the obtained first training sample to train the initial LSTM model, and during the training process, adjusting the parameters of the initial LSTM model based on the CO concentration data of the target coal mine in the preset fourth time period and the output result of the initial LSTM model, and obtaining a trained LSTM model after the training is completed.

[0045] After the first training sample of the LSTM model is constructed based on the CO concentration feature of the target coal mine in the preset third time period and its corresponding preset first feature, the obtained first training sample can be input into the initial LSTM model to be trained for iterative training, so that the initial LSTM model predicts the input first training sample in each training and outputs the CO concentration of the target coal mine in the preset fourth time period as the CO concentration prediction result of this training, and adjusts the parameters of the initial LSTM model based on the CO concentration prediction result of this training and the obtained CO concentration data of the target coal mine in the preset fourth time period, until the training end condition is met (such as reaching the maximum number of training times, the initial LSTM model converges), and the training is terminated, and the LSTM model obtained after the last training is used as the trained LSTM model.

[0046] As a possible implementation, the above step S104 (i.e., constructing the sample to be predicted of the target coal mine based on the CO concentration characteristics of the target coal mine within the preset first time period and its corresponding preset first characteristics) may also include: sequencing and encoding the identification information of the target coal mine, and assigning a corresponding coding label to each sample to be predicted obtained based on the sequenced coded information.

[0047] The encoding label of each sample to be predicted represents the identification information corresponding to the sample to be predicted.

[0048] The identification information may refer to information that serves to identify the target coal mine, such as a coal mine ID number, a substation ID number, etc., and there is no limitation on this.

[0049] Continuing with the previous example, the coal mine ID number and substation ID number of a coal mine can be sequenced and encoded, so that the coal mine ID number and substation ID number can be converted into ordered integers and assigned to each sample to be predicted in the form of a label, so that the labels can be used to screen the samples to be predicted (such as screening out samples to be predicted with the same coal mine ID number and substation ID number) and perform related calculations.

[0050] In addition, before constructing the sample to be predicted, the coal mine ID and the substation ID can be converted into ordered integers as features for constructing the sample to be predicted, so that the features converted from the coal mine ID and the substation ID are spliced ​​together with the corresponding CO concentration features and the preset first features to form the sample to be predicted.

[0051] For ease of understanding, the operation of the above-mentioned coal mine CO concentration prediction method is exemplarily described as follows by taking a specific application as an example.

[0052] See also Figure 2 As shown, the above-mentioned coal mine CO concentration prediction method can be carried out in the following operation mode:

[0053] Step 1: The IoT data center obtains data.

[0054] For example, the CO concentration data and detection data (such as wind speed, temperature, humidity, methane concentration, CO2 concentration, O2 concentration, etc.) collected by sensors in a coal mine within a specified historical period (such as 30 days, 15 days, etc.) are obtained from the Internet of Things data center.

[0055] Step 2: Data preprocessing and time series conversion.

[0056] For example, the operation mode of data preprocessing can be: clean the CO concentration data and detection data obtained from the IoT data center to remove negative data, data in the adjustment state, and abnormal values ​​that suddenly increase to a large value, and use linear interpolation to fill in the missing data. The operation mode of time series conversion can be: calculate the average value of all preprocessed data in the same minute and use it to replace all preprocessed data in the same minute, so as to convert the preprocessed data at the acquisition time level into minute-level data as a time series.

[0057] Step three: feature extraction and feature processing.

[0058] For example, the maximum value, minimum value, average value, time period length and other statistical calculations are performed on the obtained time series, and then the CO concentration characteristics of the coal mine in the specified historical period and its corresponding detection characteristics (such as wind speed, temperature, humidity, methane concentration, CO2 concentration, O2 concentration and other characteristics) are determined based on the statistical calculation results. The CO concentration characteristics of the same mine ID and substation ID in the same minute and the characteristics of wind speed, temperature, humidity, methane, carbon dioxide and oxygen are combined into a table according to the three dimensions of mine ID, substation ID and time, so as to obtain multiple tables corresponding to different minutes; then the mine ID and substation ID are sequenced and encoded into ordered integers, and other characteristics are normalized to the maximum and minimum.

[0059] Step 4: Construct the sample to be predicted.

[0060] The ordered integers converted from the mine ID and substation ID through sequence coding and the normalized features obtained by processing other features with maximum and minimum normalization are selected for splicing to obtain the samples to be predicted for the coal mine in the specified historical period.

[0061] Step 5: LSTM model construction and training.

[0062] The training samples within an earlier specified historical period (such as 30 minutes, 15 minutes, etc.) can be constructed in a similar manner to the above steps 1 to 4, and the CO concentration data collected by the sensor in the coal mine in a historical period (such as 5 minutes, 3 minutes, etc.) later than the earlier specified historical period can be obtained from the Internet of Things data center as the true CO concentration label of the training sample.

[0063] After that, the artificial neural network library can be used to build and train the LSTM model. The specific operation method is as follows: first, some parameters and functions of the LSTM model need to be set according to the data characteristics and output format of the LSTM model, that is, the number of hidden layer neurons, activation function, loss function (such as mean square error loss function), optimizer, epochs, batch_size, etc. of the LSTM model are set. After the setting is completed, the obtained training samples are input into the LSTM model, and each output result of the LSTM model and its corresponding true CO concentration label are used to update the weight parameters of each layer through back propagation. During the training process, the value of the loss function is continuously reduced, and finally the LSTM model converges. The weight after the LSTM model converges is the weight parameter of the LSTM model finally trained.

[0064] During the training of the LSTM model, you can also construct test samples and use them to evaluate the performance of the LSTM model. Specifically, you can use the root mean square error to test the performance of the LSTM model. The smaller the root mean square error, the better the performance of the LSTM model.

[0065] Step 6: LSTM model CO concentration prediction.

[0066] The samples to be predicted within the specified historical period can be input into the trained LSTM model to predict the CO concentration in the coal mine within the specified future period through the LSTM model.

[0067] The present invention also provides a method for classifying the causes of sudden CO concentration changes in coal mines, see Figure 3 As shown, the method for classifying the causes of sudden CO concentration changes in coal mines may include the following steps:

[0068] Step S302, obtaining CO concentration characteristics and corresponding associated characteristics of the target coal mine within a preset fifth time period.

[0069] Among them, the CO concentration characteristics of the target coal mine in the preset fifth time period include a mutation characteristic that characterizes that the CO concentration exceeds a preset concentration threshold and a mutation occurs.

[0070] The above-mentioned preset fifth time period is similar in meaning to the preset first time period in the previous text, and is a historical time period.

[0071] The CO concentration feature can be obtained by processing the CO concentration data collected within the preset fifth time period, and the associated feature can be obtained by processing and screening the corresponding data collected together with the CO concentration data within the preset fifth time period.

[0072] Step S304: construct a classification sample of the causes of the target coal mine to be subjected to mutation based on the CO concentration characteristics of the target coal mine in the preset fifth time period and its corresponding associated characteristics.

[0073] After obtaining the CO concentration characteristics and their corresponding associated characteristics of the target coal mine in the preset fifth time period, corresponding processing can be performed on each CO concentration feature and its corresponding associated characteristics, and then a classification sample of the causes of mutation to be solved in the target coal mine can be constructed by splicing the processed features, so that the classification sample of causes of mutation to be solved can be used to classify the causes of CO concentration mutation in the future.

[0074] Step S306, classifying the obtained samples to be classified for the causes of sudden changes through the pre-trained XGBoost model, and obtaining the classification results of the causes of sudden changes in CO concentration in the target coal mine within the preset fifth time period.

[0075] After constructing the classification samples of the causes of mutation to be detected in the target coal mine based on the CO concentration characteristics of the target coal mine in the historical period and its corresponding associated characteristics, the classification samples of the causes of mutation to be detected can be input into the pre-trained XGBoost model to classify the causes of mutation of the input samples of the causes of mutation to be detected through the XGBoost model and output the causes of mutation of the target coal mine in the historical period.

[0076] An embodiment of the present invention provides a method for classifying causes of sudden CO concentration changes in coal mines. Based on the acquired CO concentration characteristics of the target coal mine in a preset fifth time period and the corresponding associated characteristics, a classification sample of causes to be sudden changes in the target coal mine is constructed, and the obtained classification sample of causes to be sudden changes is classified by a pre-trained XGBoost model, so as to obtain a classification result of causes of sudden CO concentration changes in the target coal mine in the preset fifth time period. The XGBoost model can be used to classify causes of sudden CO concentration changes in coal mines according to the CO concentration changes, and the correlation between the features can be fully utilized to provide causes of sudden CO concentration changes in coal mines, thereby providing strong technical support for safe production and management of coal mines, and making it more convenient for decision makers to focus on preventing dangers and making corresponding decisions in a timely manner to reduce casualties.

[0077] As a possible implementation, the above step S302 (i.e. obtaining the CO concentration characteristics of the target coal mine in the preset fifth time period and its corresponding associated characteristics) may include:

[0078] Step a: obtaining the initial CO concentration data and the corresponding initial detection data of the target coal mine at each moment in the preset fifth time period through the Internet of Things data center.

[0079] Step b, preprocessing the obtained initial CO concentration data and the corresponding initial detection data. The preprocessing includes at least one of the following: data cleaning, data linear interpolation;

[0080] The operation methods of the above step a and the above step b are similar to the operation methods of the above step 1 and step 2, which will not be repeated here.

[0081] Step c: determining the CO concentration characteristic of the target coal mine within a preset fifth time period and its corresponding preset second characteristic based on the preprocessed data.

[0082] Among them, the preset second characteristics may include wind speed characteristics, temperature characteristics, humidity characteristics, methane concentration characteristics, air pressure characteristics, ventilation volume characteristics, O2 concentration characteristics, etc., and there is no limitation on this.

[0083] After preprocessing the initial CO concentration data and initial detection data collected by sensors in a coal mine within a specified historical period, the CO concentration characteristics of the target coal mine within the specified historical period and its corresponding preset second characteristics can be determined by statistical calculation of the obtained preprocessed data. The CO concentration characteristics and its corresponding preset second characteristics can adopt the CO concentration data and detection data within the specified historical period, their own data values, maximum values, minimum values, average values, historical period length values, differences between maximum values ​​and minimum values, number of fluctuations, duration values ​​exceeding a preset concentration threshold, etc., and there is no limitation on this.

[0084] Step d: determining the correlation between each obtained preset second feature and its corresponding CO concentration feature based on the obtained CO concentration feature and its corresponding preset second feature through a random forest model.

[0085] The above correlation degree can be characterized by mutual information. The larger the mutual information, the closer the relationship between the preset second feature and its corresponding CO concentration feature.

[0086] Each CO concentration feature and its corresponding preset second feature may be input into the random forest model together, so as to calculate the mutual information between each CO concentration feature and each corresponding preset second feature through the random forest model.

[0087] Step e: selecting the associated feature corresponding to the obtained CO concentration feature from the obtained preset second features based on the obtained correlation degree.

[0088] As an example, after the random forest model calculates the mutual information between each input CO concentration feature and each corresponding preset second feature, the random forest model can be used to sort the preset second features corresponding to each CO concentration feature in descending order of mutual information, and then the preset second feature corresponding to each CO concentration feature and located before the specified sorting position is used as the associated feature corresponding to the CO concentration feature.

[0089] As another example, after the random forest model calculates the mutual information between each input CO concentration feature and each corresponding preset second feature, the preset second feature corresponding to each CO concentration feature whose mutual information is greater than the preset mutual information threshold can be used as the associated feature corresponding to the CO concentration feature.

[0090] As a possible implementation, the above step S304 (i.e., constructing a classification sample of the causes of the target coal mine to be changed based on the CO concentration characteristics of the target coal mine in the preset fifth time period and its corresponding associated characteristics) may include:

[0091] The CO concentration characteristics and their corresponding associated characteristics within the preset fifth time period are normalized, and a classification sample of the causes of the target coal mine to be changed within the preset fifth time period is constructed based on the normalized characteristics.

[0092] Exemplarily, each CO concentration feature and its corresponding associated feature within the preset fifth time period can be normalized to the maximum and minimum, and the corresponding normalized features can be spliced ​​to construct a classification sample of the cause of the target coal mine to be subjected to mutation within the preset fifth time period, so that the classification sample of the cause of the target coal mine to be subjected to mutation can be subsequently input into the pre-trained XGBoost model to classify the cause of the CO concentration mutation.

[0093] As a possible implementation, the training steps of the above XGBoost model may include:

[0094] Step B1, obtaining CO concentration characteristics of the target coal mine in a preset sixth time period and its corresponding associated characteristics and data on causes of sudden changes in CO concentration of the target coal mine in the preset sixth time period.

[0095] The starting time of the preset fifth time period is after the ending time of the preset sixth time period, and the CO concentration characteristics of the target coal mine in the preset sixth time period include mutation characteristics indicating that the CO concentration exceeds a preset concentration threshold and undergoes a mutation.

[0096] The data on the causes of the sudden change in CO concentration in the target coal mine within the preset sixth time period may be the causes of the sudden change in CO concentration manually annotated according to expert suggestions.

[0097] The method of acquiring the CO concentration characteristics of the target coal mine in the preset sixth time period and the corresponding associated characteristics is similar to the operation method of step S302 in the above text, which will not be repeated here.

[0098] Step B2, constructing a second training sample of the XGBoost model based on the CO concentration characteristics of the target coal mine in the preset sixth time period and its corresponding associated characteristics;

[0099] The construction method of the second training sample is similar to the operation method of step S304 in the above text, and will not be described in detail.

[0100] Step B3, using the obtained second training sample to train the initial XGBoost model, and during the training process, adjusting the parameters of the initial XGBoost model based on the CO concentration mutation cause data of the target coal mine within the preset sixth time period and the output result of the initial XGBoost model, and obtaining the trained XGBoost model after the training is completed.

[0101] After constructing the second training sample of the XGBoost model based on the CO concentration characteristics of the target coal mine in the preset sixth time period and its corresponding associated characteristics, the obtained second training sample can be used to iteratively train the initial XGBoost model to be trained, and in each training, the parameters of the initial XGBoost model are adjusted based on the output result of the initial XGBoost model of this training (i.e., the classification result of the cause of the CO concentration mutation) and the obtained data on the cause of the CO concentration mutation of the target coal mine in the preset sixth time period, until the training end condition is met (such as reaching the maximum number of training times, the initial XGBoost model converges), and the XGBoost model obtained after the last training is used as the trained XGBoost model.

[0102] As a possible implementation method, the above-mentioned step S304 (i.e., constructing a classification sample of the cause to be changed of the target coal mine based on the CO concentration characteristics of the target coal mine in the preset fifth time period and its corresponding associated characteristics) may also include: sequencing and encoding the identification information of the target coal mine, and assigning a corresponding coding label to each classification sample of the cause to be changed based on the sequenced and encoded information.

[0103] The coding label of each classification sample of the cause to be mutated represents the identification information corresponding to the classification sample of the cause to be mutated.

[0104] The above-mentioned operation method of sequencing and encoding the identification information and assigning coding labels to the samples to be classified by the causes of mutation is similar to the operation method related to step S104 in the above text, and will not be described in detail.

[0105] Accordingly, the above step S306 (i.e., classifying the obtained samples for classification of causes to be mutated by the pre-trained XGBoost model to obtain the classification results of the causes of CO concentration mutation in the target coal mine within the preset fifth time period) may include: classifying the samples for classification of causes to be mutated with the same coding label by the XGBoost model to obtain the classification results of the causes of CO concentration mutation corresponding to each coding label; and determining the classification results of the causes of CO concentration mutation in the target coal mine within the preset fifth time period based on the classification results of the causes of CO concentration mutation corresponding to all the obtained coding labels. With this operation mode, the causes of CO concentration mutation of the samples for classification of causes to be mutated with the same coding label can be classified in a targeted manner by the XGBoost model, so that the classification results of the causes of CO concentration mutation output by the XGBoost model can be distinguished by the coding label, thereby improving the targetedness of the classification of causes of CO concentration mutation for different coal mines and different substations.

[0106] For ease of understanding, the operation of the above-mentioned coal mine CO concentration mutation cause classification method is described as follows by taking a specific application as an example.

[0107] See also Figure 4 As shown, the above classification method for the causes of sudden CO concentration changes in coal mines can be carried out in the following manner:

[0108] Step (1): The IoT data center obtains data.

[0109] For example, CO concentration data and detection data (such as wind speed, temperature, humidity, methane concentration, air pressure, ventilation volume, O2 concentration, etc.) collected by sensors within a specified period (such as 1 hour, 5 hours, etc.) when the CO concentration of the mine ID and the substation ID are the same and exceeds a preset concentration threshold (such as 24ppm) and a sudden change occurs are obtained from the Internet of Things data center. The specified period needs to at least include the alarm data when the CO concentration exceeds the preset concentration threshold and a sudden change occurs. The specified period may also include pre-alarm data before the CO concentration exceeds the preset concentration threshold and a sudden change occurs and / or post-alarm data after the CO concentration exceeds the preset concentration threshold and a sudden change occurs, and there is no limitation on this.

[0110] Step (ii): data preprocessing.

[0111] The operation method of data preprocessing is similar to the related content in the previous article, so it will not be repeated here.

[0112] Step (iii): feature extraction, feature processing and feature screening.

[0113] For example, the obtained pre-processed data is statistically calculated, and the specific calculation method can be: calculating the average value (i.e., alarm mean), maximum value (i.e., alarm maximum value), minimum value (i.e., alarm minimum value) and standard deviation (i.e., alarm standard deviation) of the CO concentration exceeding the preset concentration threshold in the specified time period; counting the number of times the CO concentration exceeds the reference concentration threshold (set according to experience) in the specified time period as the number of fluctuations; counting the duration of the CO concentration exceeding the preset concentration threshold in the specified time period (i.e., alarm duration), the time interval between the moment when the CO concentration reaches the alarm maximum value and the moment when it exceeds the preset concentration threshold for the first time in the specified time period (i.e., the first time interval), and the time interval between the moment when the CO concentration reaches the alarm minimum value and the moment when it exceeds the preset concentration threshold for the first time in the specified time period (i.e., the second time interval); counting the difference between the alarm maximum value in the specified time period and the CO concentration that exceeds the preset concentration threshold for the first time (i.e., the first concentration difference), and the difference between the alarm minimum value in the specified time period and the CO concentration that exceeds the preset concentration threshold for the first time (i.e., the first concentration difference). the difference between the CO concentrations that exceed the preset concentration threshold once (i.e., the second concentration difference), the difference between the CO concentrations that exceed the preset concentration threshold for the first time and the last time in the specified time period (i.e., the third concentration difference); the change rate of the CO concentration between the time when the CO concentration exceeds the preset concentration threshold for the first time and the time when the alarm maximum value is reached in the specified time period (i.e., the first CO concentration change rate), the change rate of the CO concentration between the time when the alarm maximum value is reached and the time when the preset concentration threshold is exceeded for the last time (i.e., the second CO concentration change rate), and the difference between the first CO concentration change rate and the second CO concentration change rate (i.e., the concentration change rate difference); in the case where the specified time period includes pre-alarm data, the number of different CO concentration values ​​in the pre-alarm data in the specified time period (i.e., the number of pre-alarm data changes) is counted; the average value, maximum value, minimum value and standard deviation of wind speed, temperature, humidity, methane concentration, air pressure, ventilation volume, O2 concentration and other data in the specified time period can also be calculated.

[0114] The obtained preprocessed data and / or the results obtained after statistical calculation of the preprocessed data can also be directly set. The specific setting method can be: setting a constant duration (i.e., duration) of the maximum alarm value, and the value of the constant duration can be determined based on human experience.

[0115] Afterwards, the content required by the coal mine within a specified period of time can be found from the statistical calculation results of the preprocessed data and / or the direct setting results as the CO concentration characteristics and their corresponding detection characteristics (such as wind speed, temperature, humidity, methane concentration, air pressure, ventilation volume, O2 concentration, etc.); the mine ID and substation ID can also be used as characteristics, and the mine ID and substation ID are sequenced and encoded into ordered integers, and other characteristics are normalized to the maximum and minimum.

[0116] The ordered integers converted from the mine ID and the substation ID through the sequence coding and the normalized features obtained by the maximum and minimum normalization of other features are input into the random forest model, so as to calculate the mutual information between each CO concentration feature and each other feature through the random forest model, and sort the other features corresponding to each CO concentration feature in descending order of mutual information through the random forest model, and then take the other features corresponding to each CO concentration feature and located before the specified sorting position as the associated features corresponding to the CO concentration feature.

[0117] Step (iv), construct a classification sample of the causes of mutation.

[0118] The ordered integers converted from the mine ID and substation ID through sequence coding and the normalized features obtained by the maximum and minimum normalization of the CO concentration characteristics and their corresponding associated characteristics are selected for splicing to obtain the classification samples of the causes of the coal mine mutations within the specified period.

[0119] Step (V): XGBoost model building and training.

[0120] The training samples within an earlier specified period can be constructed in a similar manner to the above steps (i) to (iv), and the causes of the sudden change in CO concentration in the coal mine within the earlier specified period are manually annotated as the true mutation cause labels of the training samples. The true mutation cause label types are divided into the following four categories: the type of CO concentration sudden change caused by non-calibrated data represented by 0, the type of CO concentration sudden change caused by calibrated data represented by 1, the type of CO concentration sudden change caused by blasting represented by 2, and the type of CO concentration sudden change caused by exhaust gas emissions represented by 3.

[0121] Afterwards, the parameters and functions of the XGBoost model can be set according to the data characteristics and output format of the XGBoost model, including setting the loss function of the XGBoost model (such as the cross entropy loss function). After the setting is completed, the obtained training samples are input into the XGBoost model, and the parameters of the XGBoost model are updated using each output result of the XGBoost model and its corresponding true mutation cause label. During the training process, the value of the loss function is continuously reduced, and finally the XGBoost model converges to obtain a trained XGBoost model.

[0122] During the training of the XGBoost model, you can also construct test samples and use them to evaluate the performance of the XGBoost model. Specifically, you can use the accuracy and f1-score parameters to test the performance of the XGBoost model. The larger the accuracy and f1-score, the better the performance of the XGBoost model.

[0123] Step (six), classification of causes of CO concentration mutation using XGBoost model.

[0124] The classified samples of the causes of the mutation in the specified time period can be input into the trained XGBoost model to obtain the causes of the CO concentration mutation in the coal mine in the specified time period through XGBoost model classification.

[0125] By adopting the above-mentioned coal mine CO concentration prediction method and the above-mentioned coal mine CO concentration mutation cause classification method, since the CO concentration prediction is performed through the LSTM model, the correlation between the time series data in the historical period can be fully utilized to timely predict the concentration in the future period, thereby providing reliable guidance for the actual coal mine safety production; analysis and modeling are also carried out for the classification of the causes of CO concentration mutation, and the features with a relatively high correlation with the CO concentration mutation are screened out through mutual information, and then the causes of CO concentration mutation are manually annotated according to previous experience and expert suggestions, and then the XGBoost model is built and trained, and finally the trained XGBoost model is used to classify the causes of CO concentration mutation to provide the causes of CO concentration mutation, thereby providing strong technical support for coal mine safety production and management.

[0126] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present invention.

[0127] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0128] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0129] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for predicting CO concentration in coal mines, It is characterized in that The coal mine CO concentration prediction method comprises: Obtaining the CO concentration characteristics of the target coal mine within a preset first time period and its corresponding preset first characteristics; Based on the CO concentration characteristics of the target coal mine in the preset first time period and the corresponding preset first characteristics, a sample to be predicted of the target coal mine is constructed; The obtained samples to be predicted are predicted by the pre-trained LSTM model to obtain the CO concentration prediction result of the target coal mine in the preset second time period; wherein the start time of the preset second time period is after the end time of the preset first time period.

2. The method for predicting CO concentration in a coal mine according to claim 1, It is characterized in that Obtaining the CO concentration characteristics of the target coal mine within the preset first time period and its corresponding preset first characteristics, including: The initial CO concentration data and the corresponding initial detection data of the target coal mine at each moment in the preset first period are obtained through the Internet of Things data center; Preprocessing the obtained initial CO concentration data and the corresponding initial detection data; wherein the preprocessing includes at least one of the following: data cleaning, data linear interpolation; The preprocessed data are converted into a time series of the target coal mine in a preset first time period according to a preset time step, and the CO concentration characteristics of the target coal mine in the preset first time period and the corresponding preset first characteristics are determined based on the obtained time series; wherein the time series includes the first CO concentration of each preset time step in the preset first time period and the corresponding first detection data.

3. The method for predicting CO concentration in a coal mine according to claim 1, It is characterized in that Based on the CO concentration characteristics of the target coal mine in the preset first time period and its corresponding preset first characteristics, a sample to be predicted of the target coal mine is constructed, including: The CO concentration characteristics within the preset first time period and the corresponding preset first characteristics are normalized, and the samples to be predicted of the target coal mine within the preset first time period are constructed based on the normalized characteristics.

4. The method for predicting CO concentration in a coal mine according to claim 1, It is characterized in that The training of the LSTM model includes: Obtaining the CO concentration characteristics of the target coal mine in a preset third time period and its corresponding preset first characteristics and the CO concentration data of the target coal mine in a preset fourth time period; wherein the starting time of the preset first time period is after the ending time of the preset third time period, and the starting time of the preset fourth time period is after the ending time of the preset third time period; Based on the CO concentration characteristic of the target coal mine in a preset third time period and its corresponding preset first characteristic, constructing a first training sample of the LSTM model; The obtained first training sample is used to train the initial LSTM model, and during the training process, the parameters of the initial LSTM model are adjusted based on the CO concentration data of the target coal mine in the preset fourth time period and the output result of the initial LSTM model. After the training, a trained LSTM model is obtained.

5. The method for predicting CO concentration in a coal mine according to claim 3, It is characterized in that Based on the CO concentration characteristics of the target coal mine in the preset first time period and the corresponding preset first characteristics, constructing the target coal mine to be predicted sample, further comprising: The identification information of the target coal mine is sequenced and encoded, and a corresponding coding label is assigned to each sample to be predicted based on the sequenced and encoded information; wherein the coding label of each sample to be predicted represents the identification information corresponding to the sample to be predicted.

6. A classification method for the causes of sudden changes in CO concentration in coal mines, It is characterized in that The method for classifying the causes of sudden CO concentration changes in coal mines includes: Obtaining CO concentration characteristics of the target coal mine in the preset fifth time period and its corresponding associated characteristics; wherein the CO concentration characteristics of the target coal mine in the preset fifth time period include mutation characteristics indicating that the CO concentration exceeds a preset concentration threshold and a mutation occurs; Based on the CO concentration characteristics of the target coal mine in the preset fifth period and its corresponding associated characteristics, a classification sample of the causes of the target coal mine to be mutated is constructed; The obtained samples to be classified by the pre-trained XGBoost model are classified to obtain the classification results of the causes of CO concentration mutation in the target coal mine within the preset fifth period.

7. The method for classifying causes of sudden changes in CO concentration in coal mines according to claim 6, It is characterized in that Obtain the CO concentration characteristics of the target coal mine in the preset fifth period and its corresponding associated characteristics, including: The initial CO concentration data and the corresponding initial detection data of the target coal mine at each moment in the preset fifth period are obtained through the Internet of Things data center; Preprocessing the obtained initial CO concentration data and the corresponding initial detection data; wherein the preprocessing includes at least one of the following: data cleaning, data linear interpolation; Determine the CO concentration characteristics of the target coal mine in the preset fifth time period and its corresponding preset second characteristics based on the preprocessed data; The random forest model is used to determine the correlation between each obtained preset second feature and its corresponding CO concentration feature based on the obtained CO concentration feature and its corresponding preset second feature, and the correlation feature corresponding to the obtained CO concentration feature is screened out from the obtained preset second features based on the obtained correlation.

8. The method for classifying causes of sudden changes in CO concentration in coal mines according to claim 7, It is characterized in that Based on the CO concentration characteristics of the target coal mine in the preset fifth period and its corresponding associated characteristics, a classification sample of the causes of the target coal mine to be changed is constructed, including: The CO concentration characteristics and their corresponding associated characteristics within the preset fifth time period are normalized, and a classification sample of the causes of the target coal mine to be changed within the preset fifth time period is constructed based on the normalized characteristics.

9. The method for classifying causes of sudden changes in CO concentration in coal mines according to claim 7, It is characterized in that The training of the XGBoost model includes: Obtaining CO concentration characteristics of the target coal mine in a preset sixth time period and its corresponding associated characteristics and data on causes of CO concentration mutations in the target coal mine in the preset sixth time period; wherein the start time of the preset fifth time period is after the end time of the preset sixth time period, and the CO concentration characteristics of the target coal mine in the preset sixth time period include mutation characteristics indicating that the CO concentration exceeds a preset concentration threshold and mutates; Based on the CO concentration characteristics of the target coal mine in the preset sixth time period and its corresponding associated characteristics, constructing a second training sample of the XGBoost model; The obtained second training sample is used to train the initial XGBoost model, and during the training process, the parameters of the initial XGBoost model are adjusted based on the CO concentration mutation cause data of the target coal mine in the preset sixth time period and the output results of the initial XGBoost model. After the training, a trained XGBoost model is obtained.

10. The method for classifying causes of sudden changes in CO concentration in coal mines according to claim 8, It is characterized in that Based on the CO concentration characteristics of the target coal mine in the preset fifth period and its corresponding associated characteristics, a classification sample of the causes of the target coal mine to be mutated is constructed, which also includes: The identification information of the target coal mine is sequenced and encoded, and a corresponding coding label is assigned to each classification sample of the cause to be changed based on the sequenced and encoded information; wherein the coding label of each classification sample of the cause to be changed represents the identification information corresponding to the classification sample of the cause to be changed; The obtained samples of mutation cause classification are classified by the pre-trained XGBoost model to obtain the classification results of the CO concentration mutation cause of the target coal mine in the preset fifth period, including: The XGBoost model is used to classify the samples with the same coding labels to obtain the classification results of the causes of CO concentration mutations corresponding to each coding label. Based on the classification results of the causes of CO concentration mutation corresponding to all the obtained coding labels, the classification results of the causes of CO concentration mutation in the target coal mine within the preset fifth time period are determined.