A multi-step prediction method for clean coal quality in heavy medium coal preparation process based on LSTM
Through the multi-layer neural network method based on LSTM, the problem of predicting the ash content of clean coal in heavy medium coal preparation is solved, high-precision multi-step prediction of clean coal quality is achieved, and the prediction accuracy and product quality stability of the coal preparation production process are improved.
Patent Information
- Application Number
- CN202210078161.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-01-24
AI Technical Summary
The existing technology cannot effectively utilize big data processing to predict the ash content of clean coal in the heavy medium coal preparation process, and the measurement results of online clean coal ash analyzers are restricted by a variety of influencing factors and cannot reflect the actual quality of clean coal.
A multi-layer neural network method based on LSTM is used to collect and analyze sensor data related to coal preparation production, perform correlation analysis and data preprocessing, and construct a multi-layer LSTM neural network model to conduct real-time and multi-step predictions of clean coal ash content.
It achieves high-precision multi-step prediction of clean coal quality in the heavy medium coal preparation process, provides better prediction accuracy and stable product quality, and provides a strong basis for precise control of the coal preparation production process.
Smart Images

Figure CN114330930B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quality prediction, and in particular to a multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM. Background Art
[0002] According to statistics, my country's CO2 emissions in 2020 were about 10.3 billion tons, of which 92% came from coal, oil and natural gas (about 9.5 billion tons). The characteristics of my country's energy structure of "rich in coal, lacking in oil and little gas" determine that coal will remain an important strategic energy and material in my country for a long time in the future. Its green development and clean utilization are important links in achieving my country's "dual carbon" goals. Coal preparation, as the source and basis of clean utilization of coal, is an important means to accelerate the adjustment of energy structure and increase the supply of clean energy. One of the indicators for evaluating its sorting process is the stability of clean coal ash content. Therefore, the online prediction and judgment of clean coal quality - ash content is very important.
[0003] At present, the most widely used coal sorting method is heavy medium coal preparation. The heavy medium coal preparation process involves multiple processing units, multiple product types, and contains multi-level, multi-space time series process big data. In recent years, with the strong rise of artificial intelligence, the big data generated at different times and stages in each link of the heavy medium coal preparation plant has been processed in order to guide actual production. The invention patent with application number: CN201910900555.4: An intelligent control system and method for heavy medium sorting process provides an intelligent control system and method for heavy medium sorting process, which uses the sorting characteristics of coal to solve the problem that the existing sorting density setting relies heavily on experience, but the patent does not involve the use of existing big data to process the prediction of clean coal ash content. At the same time, in the actual production process of heavy medium coal preparation, the measurement accuracy of the clean coal online ash analyzer is restricted and affected by a variety of influencing factors, which makes its measurement results fluctuate greatly and it is difficult to reflect the actual clean coal quality. Summary of the invention
[0004] 1. Purpose of the invention:
[0005] In view of the above existing technologies, a multi-step prediction method for clean coal quality in heavy medium coal preparation process based on LSTM (Long Short-Term Memory) is proposed, which can realize real-time and multi-step prediction of clean coal ash content in heavy medium coal preparation with high precision.
[0006] 2. Technical solution:
[0007] A multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM, comprising the following steps:
[0008] Step 1: Collect online data from sensors related to coal preparation production, such as belt scale quantity, ash meter quantity, suspension density, liquid level gauge value, pressure gauge value, etc., to form a historical database stored on a daily basis.
[0009] Step 2: Analyze whether there is a certain dependency between the variables collected in the historical database and the variable to be predicted, clean coal ash (JM_Ash), and conduct correlation analysis (Correlation Analysis). The Pearson correlation coefficient is used to determine the degree of correlation between each variable and the target ash content, and then remove some meaningless data columns, perform quality inspection on the obtained data, and preprocess the missing values. The MeanCompleter filling algorithm is used to average the detection values of two adjacent time points to obtain the value of the missing point, and fill the missing data in the original data.
[0010] Step 3: Perform data cleaning again and reorganize the processed data into historical data stored by continuous production shifts. For example, the data from production starting at 20:00 on May 13, 2019 and stopping at 8:00 on May 14, 2019 are combined into a set of continuous production data.
[0011] Step 4: Calculate the timing step time T.
[0012] Step 5: Select a production group to reorganize the time series.
[0013] Step 6: After time reconstruction of each continuous production team data, merge them into the prediction data set to be trained to obtain the multi-dimensional input matrix X and the two-dimensional output matrix Y.
[0014] Step 7: Normalize the data columns in the input matrix X and the output matrix Y to eliminate the impact of large changes in the threshold of each variable on the model prediction.
[0015] Step 8: Divide the input matrix X and target variable matrix Y after time series reorganization and normalization, 80% for training and 20% for testing.
[0016] Step 9: Model building, constructing a multi-layer LSTM neural network.
[0017] Step 10: Model training, adjust the network structure of step 11 according to the values and trends of train loss and test loss.
[0018] Step 11, save the model and model weight files locally.
[0019] Step 12: Get new production data as a validation set, preprocess the input variables according to steps 3-9, and bring in the model saved in the previous step to make output predictions.
[0020] Step 13: Select the root mean square error RMSE and complex determination coefficient R 2 To evaluate the prediction error, the root mean square error expression is: The complex determination coefficient expression is: The RMSE value between the predicted clean coal ash value and the actual clean coal ash value obtained by model simulation is 0.2416. 2 The value is 0.8032.
[0021] Step 14: Apply the above data processing method and optimization model to the clean coal quality prediction in the production process of the coal preparation plant. When the predicted product quality clean coal ash content JM_Ash fluctuates greatly, it is necessary to adjust the control variables in time to stabilize the product quality.
[0022] Preferably, the method of removing irrelevant data types in step (2) includes determining whether there is a dependency relationship between each type of data in the data type and the variable to be predicted, the clean coal ash content JM_Ash, performing a correlation analysis, determining the degree of correlation between each variable and the target ash content by the size of the Pearson correlation coefficient, and removing data types with a small degree of correlation.
[0023] Preferably, the missing value preprocessing in step (2) includes using the MeanCompleter filling algorithm to average two adjacent sample detection values to obtain the value of the missing point, and fill the missing data in the data;
[0024] Preferably, the situation where the sensor value is 0 includes start-stop transition data and shutdown maintenance abnormal data.
[0025] Preferably, for each production group data, the time difference between the time when the raw coal belt scale starts to carry coal and the time when the clean coal belt scale generates data is averaged and used as the coal flow sorting and transportation stagnation time T of the coal preparation production system.
[0026] Preferably, the time reconstruction method in step (5) includes the following steps: n(a,6) Perform time reconstruction. When the time is T, the two-dimensional matrix X n(a,6) Reconstruct into a three-dimensional matrix X containing t-(T-1), t-(T-2)...t-1, t n(a,6,T) ; Treat the predicted variable: JM_Ash value Y n(a) Reconstruct the time into two-dimensional data Y of t, t+1, t+2...t+(T-1) n(a,T) .
[0027] Preferably, when constructing a multi-layer LSTM neural network in step (9), multiple levels of forgetting layers are added to prevent overfitting of the model and enhance the applicability of the model.
[0028] Preferably, steps (1)-(14) are all performed by a computer program, and the program is stored in a computer-readable storage medium.
[0029] Preferably, the computer readable storage medium is a random access memory or a read-only memory.
[0030] 3. Beneficial Effects
[0031] Compared with the prior art, the beneficial effects of the present invention are:
[0032] The present invention fully considers the spatiotemporal relationship between the coal preparation process data and the output variables to be predicted, so that the subsequent machine learning prediction model results can be better applied to heavy medium coal preparation, an industrial process with complex spatiotemporal time series relationships. At the same time, by utilizing the spatiotemporal relationship of the above data, multi-step prediction of clean coal quality is achieved, and good prediction accuracy is obtained, which provides a strong basis for the precise control of the subsequent coal preparation production process and the stability of product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a schematic diagram of data reconstruction of the coal preparation process of the present invention;
[0034] Figure 2 This is a structural diagram of the multi-layer LSTM neural network of the present invention. DETAILED DESCRIPTION
[0035] In order to make the technical solution of the present invention more clear and specific to those skilled in the art, the present invention is further described in detail below in conjunction with the embodiments and drawings, but the embodiments of the present invention are not limited thereto.
[0036] like Figure 1-2 As shown, this embodiment provides a multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM, which realizes online multi-step prediction of clean coal quality in the production process of a coal preparation plant by reconstructing the input and output data in time and combining the LSTM algorithm. The specific steps are as follows:
[0037] Step 1: Collect online data from sensors related to coal preparation production, such as belt scale quantity, ash meter quantity, suspension density, level gauge value, pressure gauge value, etc., to form a historical database stored on a daily basis.
[0038] Step 2: Analyze whether there is a certain dependency between the variables collected in the historical database and the variable to be predicted, clean coal ash (JM_Ash), and perform correlation analysis (Correlation Analysis). The correlation between each variable and the target ash content is determined by the size of the Pearson correlation coefficient, and then some meaningless data columns are removed. This example ultimately retains the historical data of seven variables: raw coal belt weighing (YM_Weight), raw coal ash (YM_Ash), medium coal belt weighing (ZM_Weight), gangue belt weighing (GS_Weight), suspension density meter value (JM_Dense), clean coal belt weighing (JM_Weight) and clean coal ash (JM_Ash).
[0039] Step 3: Perform quality inspection on the data in step 2 and preprocess missing values. Use the MeanCompleter filling algorithm to average the detection values of two adjacent time points to obtain the value of the missing point and fill the missing data in the original data.
[0040] Step 4: Data cleaning, remove the data rows where the sensor value of the continuous time node is 0, that is, remove meaningless data rows such as start-stop transition data and shutdown maintenance abnormal data.
[0041] Step 5: Reorganize the data processed by steps 2-4 into historical data stored by continuous production shifts. For example, the data from production starting at 20:00 on May 13, 2019 and stopping at 8:00 on May 14, 2019 are combined into a set of continuous production data.
[0042] Step 6: Calculate the timing step time. For each continuous production group, take the average of the time difference between the time when the raw coal belt scale starts to carry coal and the time when the clean coal belt scale generates data as the coal flow sorting and transportation stagnation time T of the coal preparation production system.
[0043] Step 7: Select a production group from step 5 to reorganize the time series, as shown in the attached Figure 1 As shown, for the production data input matrix X n(a,6) (a row of data, 6 variables: YM_Weight, YM_Ash, ZM_Weight, GS_Weight, JM_Dense, JM_Weight) is used for time reconstruction. When the time sequence step is T, the production data is reconstructed into a three-dimensional data X containing production data of t-(T-1), t-(T-2)...t-1, t n(a,6,T) . Treat the predictor variable: JM_Ash value Y n(a) Reconstruct the time into two-dimensional data Y of t, t+1, t+2...t+(T-1) n(a,T) .
[0044] Step 8: Repeat step 7, reconstruct the time of each continuous production team data, merge them into the prediction data set to be trained, and obtain the multi-dimensional input matrix X and the two-dimensional output matrix Y.
[0045] Step 9: Normalize the data columns in the input matrix X and the output matrix Y to eliminate the impact of large changes in the threshold of each variable on the model prediction.
[0046] Step 10: Divide the input matrix X and target variable matrix Y after time series reorganization and normalization, 80% for training and 20% for testing.
[0047] Step 11: Model construction, build a multi-layer LSTM neural network, add multiple levels of forgetting layers to prevent overfitting of the model and enhance the applicability of the model.
[0048] Step 12: Model training. Adjust the network structure of step 11 according to the values and trends of train loss and test loss. The network structure of this example is shown in the attached figure. Figure 2 shown.
[0049] Step 13: Save the model and model weight files locally.
[0050] Step 14: Get new production data as a validation set, preprocess the input variables according to steps 3-9, and bring in the model saved in the previous step to make output predictions.
[0051] Step 16: Select the root mean square error RMSE and complex determination coefficient R 2 To evaluate the prediction error, the root mean square error expression is: The complex determination coefficient expression is: The RMSE value between the predicted clean coal ash value and the actual clean coal ash value obtained by model simulation is 0.2416, R 2 The value is 0.8032.
[0052] Step 17: Apply the above data processing method and optimization model to the clean coal quality prediction in the production process of the coal preparation plant. When the predicted product quality (clean coal ash content) fluctuates greatly, it is necessary to adjust the control variables in time to stabilize the product quality.
[0053] The present invention fully considers the spatiotemporal relationship between the coal preparation process data and the output variables to be predicted, so that the subsequent machine learning prediction model results can be better applied to heavy medium coal preparation, an industrial process with complex spatiotemporal time series relationships. At the same time, by utilizing the spatiotemporal relationship of the above data, multi-step prediction of clean coal quality is achieved, and good prediction accuracy is obtained, which provides a strong basis for the precise control of the subsequent coal preparation production process and the stability of product quality.
[0054] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0055] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A multi-step prediction method for clean coal quality in heavy medium coal preparation process based on LSTM, characterized in that: The method comprises the following steps, (1) Data acquisition: Acquire sensor data in the heavy medium coal preparation process; the sensor samples the data at a certain interval and stores the sampled data in a matrix with a rows and y columns, where a represents the number of sampling times and y represents the number of data types acquired. The data types include raw coal belt weighing YM_Weight, raw coal ash content YM_Ash, medium coal belt weighing ZM_Weight, gangue belt weighing GS_Weight, suspension density meter value JM_Dense, clean coal belt weighing JM_Weight, clean coal ash content JM_Ash, liquid level gauge value, and pressure gauge value; where the clean coal ash content JM_Ash is used as the variable to be predicted; (2) Useful data acquisition: Analyze the matrix obtained in step (1) and remove irrelevant data types; Perform missing value preprocessing on the sensor data after removing irrelevant data types; remove the samples with sensor values of 0 at continuous time nodes to obtain useful data; the useful data include raw coal belt weighing YM_Weight, raw coal ash content YM_Ash, medium coal belt weighing ZM_Weight, gangue belt weighing GS_Weight, suspension density meter value JM_Dense, clean coal belt weighing JM_Weight, and clean coal ash content JM_Ash; (3) Reconstructing the useful data into a plurality of production group data; each of the production group data includes the raw coal belt weighing YM_Weight, the raw coal ash content YM_Ash, the medium coal belt weighing ZM_Weight, the gangue belt weighing GS_Weight, the suspension density meter value JM_Dense, the clean coal belt weighing JM_Weight, and the clean coal ash content JM_Ash; storing the raw coal belt weighing YM_Weight, the raw coal ash content YM_Ash, the medium coal belt weighing ZM_Weight, the gangue belt weighing GS_Weight, the suspension density meter value JM_Dense, and the clean coal belt weighing JM_Weight in a two-dimensional matrix X n(a,6) In the 1D matrix Y, the clean coal ash JM_Ash is stored n(a) middle; (4) Calculate the stagnation time T of coal flow sorting and transportation; (5) For the two-dimensional matrix X n(a,6) According to time T, time reconstruction is performed to obtain three-dimensional data X n(a,6,T) , for a one-dimensional matrix Y n(a) Reconstruct the time according to time T to obtain two-dimensional data Y n(a,T) ; (6) Multiple X n(a,6) Merge into a multi-dimensional input matrix X, multiple two-dimensional data Y n(a,T) Merge into a two-dimensional output matrix Y; (7) Normalizing the data columns in the input matrix X and the output matrix Y; (8) Divide the normalized input matrix X and output matrix Y into 80% for training data set and 20% for testing data set; (9) Model construction: construct a multi-layer LSTM neural network, construct a multi-layer LSTM neural network model, set the initial LSTM input layer according to the size of the input matrix X, and set the final LSTM output layer according to the size of the output matrix Y; (10) Model training: adjusting the network structure of the LSTM neural network by adjusting the values and trends of the training data set loss train loss and the test data set loss test loss; (11) Save the adjusted model and model weight file locally; (12) Repeat steps (2)-(7) to obtain a new input matrix X and output matrix Y. Use the new input matrix X as a validation set and bring it into the saved model output prediction. (13) Select the root mean square error RMSE and complex determination coefficient R 2 To evaluate the error between the predicted clean coal ash JM_Ash value and the actual clean coal ash JM_Ash value, the root mean square error expression is: The complex determination coefficient expression is: In the formula, n is the number of samples, y is i is the actual value, is the predicted value, is the actual value y i The mean of each component of ; (14) The above data processing method and model are applied to the prediction of clean coal quality in the production process of coal preparation plants.
2. A multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: The method of removing irrelevant data types in step (2) includes determining whether there is a dependency relationship between each type of data in the data type and the variable to be predicted, namely, the clean coal ash content JM_Ash, and performing a correlation analysis. The correlation degree between each variable and the clean coal ash content JM_Ash is determined by the size of the Pearson correlation coefficient, and data types with a small correlation degree are removed.
3. A multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: The missing value preprocessing in step (2) includes using the MeanCompleter filling algorithm to average two adjacent sample detection values to obtain the value of the missing point and fill in the missing data.
4. The multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: The case where the sensor value is 0 includes start-stop transition data and shutdown maintenance abnormal data.
5. The multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: For each production group data, the time difference between the time when the raw coal belt scale starts to carry coal and the time when the clean coal belt scale generates data is averaged and used as the coal flow sorting and transportation stagnation time T of the coal preparation production system.
6. A multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: The method of time reconstruction in step (5) includes the following steps: n(a,6) Perform time reconstruction. When the time is T, the two-dimensional matrix X n(a,6) Reconstruct into a three-dimensional matrix X containing t-(T-1), t-(T-2)...t-1, t n(a,6,T) ; Treat the predicted variable: JM_Ash value Y n(a) Reconstruct the time into two-dimensional data Y of t, t+1, t+2...t+(T-1) n(a,T) .
7. The multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: Step (9) When constructing a multi-layer LSTM neural network, multiple levels of forgetting layers are added to prevent overfitting of the model and enhance the applicability of the model.
8. The multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: The model training method in step (10) includes first setting the training hyperparameters, the number of training rounds train_epochs, and the number of single training samples batch_size; then defining the cross entropy loss function and creating an optimizer; starting iterative training after declaring the session; and obtaining a better LSTM neural network structure through the values of the training data set loss train loss and the test data set loss test loss.
9. The multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 1, characterized in that: Steps (1)-(14) are all completed by a computer program, and the computer program is stored in a computer-readable storage medium.
10. A multi-step prediction method for clean coal quality in a heavy medium coal preparation process based on LSTM as claimed in claim 9, characterized in that: The computer readable storage medium is a random access memory or a read-only memory.
