Coke quality prediction method adopting multiple machine learning algorithms
Coke quality is predicted through a variety of machine learning algorithms (random forests, support vector machines and multi-layer perceptrons), which solves the problems of long calculation period and insufficient robustness of coke quality prediction in the existing technology, and achieves a faster and more efficient method. Effective coke quality prediction and coal blending optimization improve resource utilization efficiency.
Patent Information
- Application Number
- CN202310273500.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing coke quality prediction methods have problems such as long calculation cycles, insufficient robustness, and lack of comparison of multiple algorithms during the coking coal blending process, resulting in lagging coal blending optimization, and a single algorithm cannot represent the optimal performance.
Various machine learning algorithms such as random forest, support vector machine and multi-layer perceptron are used to predict the cold strength and hot strength of coke. By constructing a coking coal database and model training, the algorithm combination with the smallest error rate is screened out to construct a coke quality prediction. model to provide rapid decision support.
It achieves an improvement in the robustness of coke quality prediction, reduces production costs, provides a more effective coal blending optimization plan, reduces the production cycle, and improves resource utilization efficiency.
Smart Images

Figure FT_1 
Figure QLYQS_8 
Figure QLYQS_1
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of coal chemical industry and machine learning, and specifically to coking production process and coal quality related data. A random forest, a support vector machine and a multi-layer perceptron are used to predict the cold strength (M40, M10) and hot strength (CRI, CSR) of coke, and then an algorithm with the smallest error rate is screened out, thereby forming a coke quality prediction method. Background Art
[0002] my country has abundant coal reserves and a relatively complete range of coal types, but there are problems of uneven distribution and relatively limited high-quality coking coal resources. In order to make full use of coal resources and increase economic benefits, enterprises use coking coal blending technology to produce coke. There are many factors that affect the quality of coke, but in the current coke oven production process, under the same furnace type and process conditions, the properties of raw coal are the main reason affecting the quality of coke. The causes of coal properties are divided into two stages, namely the biochemical stage and the physicochemical stage. At present, experiments in the industry have proved the existence of a third factor, and the influencing factors of each factor must be expressed by corresponding indicators to have practical value, so it is necessary to evaluate the indicators of various influencing factors of coal as much as possible.
[0003] With the continuous improvement of theoretical knowledge in the field of coking coal blending, a set of practical coal blending methods have been formed in production. However, there are a series of physical and chemical reactions in the coal blending coking process, and the nonlinear parameters in the process cannot be accurately described by mathematical models. In addition, the types of raw coal are relatively complex and the quality of the same type of coal fluctuates in different periods, resulting in a long calculation cycle for the coal blending process. It must be combined with small coke oven experimental data or expert experience to form a better coal blending plan, which makes the coal blending optimization work have a certain degree of lag.
[0004] At present, the computer technology related to machine learning has shown excellent performance in the fields of unmanned driving, computer vision, natural language processing, etc., and has therefore been favored by the traditional industrial field. Using some corresponding algorithms of machine learning, the quality of coke can be quickly predicted, and many coke quality predictions currently use only a single algorithm. The disadvantage of a single algorithm is that it is not robust enough. In addition, the coke quality prediction algorithm is not compared with other machine learning algorithms, and it cannot represent the best performance of the algorithm on a certain data set, or only compared with the traditional linear regression algorithm, it is not expressive enough. The present invention uses the most commonly used algorithms in the literature, such as random forests, support vector machines, and multi-layer perceptrons for quality prediction, and compares their error rates to screen out the best algorithms in different quality indicators of coke. Provide the reference that is most conducive to coal blending optimization, so that coking enterprises can use coal resources more effectively and reduce production costs. Summary of the invention
[0005] The purpose of the present invention is to provide a coke quality prediction method using multiple machine learning algorithms to quickly provide decision support for coking enterprises in optimizing coal blending plans.
[0006] The present invention provides a method for predicting coke quality using multiple machine learning algorithms, which comprises the following steps.
[0007] Construct a coking coal database. The coking coal database is constructed by combining the historical production data and coal quality test data of coking enterprises. The database includes the coking coal data under the same coke oven and process conditions, the quality index test data of the blended coal, and the corresponding coke quality index data. The coking coal data includes the proportion of single coal and the corresponding vitrinite reflectance (R v )、ash content(Ad)、sulfur content(S)、volatile matter( ), bonding index (G), fineness (F), the quality index of blended coal is composed of the weighted quality index of each type of coal v , , , , , The quality indicators of coke are crushing strength (M40), abrasion resistance (M10), reactivity index (CRI), and post-reaction strength (CSR).
[0008] Algorithm training. According to the quality index of blended coal Mt, v , , , , , The corresponding coke cold strength (M40 and M10) and hot strength (CSR and CRI) were used to establish feature vectors and labels, and random forest, support vector machine and multilayer perceptron were used for training and testing respectively.
[0009] Construct a coke quality prediction model. Three algorithms are used to construct models for the cold strength and hot strength (M40, M10, CSR, CRI) of coke. The second step shows that the error rate is different for the same quality index. The algorithm with the smallest error rate constitutes part of the entire coke quality prediction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is the overall implementation flow chart of the coke quality prediction method. DETAILED DESCRIPTION
[0011] Step 1: Classify the historical production data of a coking enterprise under the same furnace type and process conditions, including the proportion of single coal, single coal ash content (Ad), sulfur content (S), volatile matter ( ), bonding index (G), fineness (F), vitrinite reflectance (R v ), according to the proportion of single coal and the corresponding index parameters weighted as the blending coal , , , , , v , and the corresponding coke's M40, M10, CSR, and CRI are used to build a coking coal database; the moisture content of the blended coal (Mt) can be adjusted according to the specific production situation, so there is no need for weighted calculation.
[0012] The purpose of this step is to take into account the influencing factors of coking coal and quantitatively express them with relevant indicators.
[0013] Step 2: Analyze the database content and export it as a .csv file. The sum of the proportions of each type of coal must be 100%. If there are n types of coking coal involved in coal blending, then , delete missing values and outliers, and then normalize the data set, that is, import the MinMaxScaler module in the sklearn framework to fit the data, and then use the train_test_split module to split the data into 70% test set and 30% validation set.
[0014] The purpose of this step is to prevent abnormal data from affecting prediction efficiency. The data is normalized because support vector machines and multi-layer perceptrons are sensitive to numerical values, which reduces the impact of various indicator parameters on the algorithm in terms of magnitude. Random forest is based on sorting partitions, so there is no need to normalize the data.
[0015] Step 3: Import RandomForestRegressor (random forest), SVR (support vector machine regression), MLPRegressor (multi-layer perceptron), GridSearchCV (grid search) in the sklearn framework, and adjust the hyperparameters of coke quality indicators M40, M10, CSR, and CRI on the training set. First, perform a wide range of grid search on the hyperparameters, determine the appropriate interval, and then gradually refine the grid search. Then, select the model parameters with the best performance based on the error rate of the prediction indicators. The following is the specific parameter adjustment process of the three algorithms.
[0016] RandomForestRegressor parameter adjustment, using GridSearchCV parameter adjustment, the hyperparameters that need to be adjusted are n_estimators (the number of trees), max_depth (maximum depth), min_samples_leaf (minimum number of leaves), etc. At the beginning of the present invention, the hyperparameters of RandomForestRegressor are set to n_estimators=(0, 400, 10), min_samples_split=(2, 5, 1), max_depth=(10, 20, 1), min_samples_leaf=(2, 5, 1), criterion=("squared_error", "absolute_error", "friedman_mse", "poisson"), max_features=("sqrt", "log2", None). Check the parameter range of M40, M10, CRI, and CSR for the best performance in a wide range of tree numbers. After the range is determined, further refine the parameters, and then continue to perform grid search on parameters such as tree size, depth, maximum number of leaf nodes, and evaluation criteria to find the best performing model and calculate the error rate on the test set.
[0017] SVR parameter adjustment, using GridSearchCV parameter adjustment, the parameters that need to be adjusted are kernel (kernel function), C (penalty coefficient), gamma (regularization parameter). The present invention initially sets the hyperparameters of SVR to kernel=('linear', 'poly', 'rbf', 'sigmoid', 'precomputed'), C=(0.0001, 0.001, 0.01, 0.1, 1.0,10.0, 100.0, 1000.0), gamma=(0.0001, 0.001, 0.01, 0.1, 1.0, 10.0, 100.0,1000.0), and checks in which parameter range the prediction accuracy of M40, M10, CRI, and CSR performs better, further refines the parameters, searches for the best performing model, and calculates the error rate on the test set.
[0018] MLPRegressor parameter adjustment, using GridSearchCV parameter adjustment, the parameters that need to be adjusted are hidden_layer_sizes (the number of hidden layers and the number of neurons contained in each layer), activation (activation function), solver (optimizer), and learning_rate (learning rate). The present invention initially sets the hyperparameters of MLPRegressor to hidden_layer_sizes=((6,4), (8,4), (16,4), (32,4), (6,4,2), (8,4,2), (16,4,2))、activation=('identity', 'logistic', 'tanh', 'relu')、solver=('lbfgs', 'sgd','adam'), check which parameter range the prediction accuracy of M40, M10, CRI, and CSR performs better, further refine the parameters, search for the best performing model, and calculate the error rate on the test set.
[0019] The purpose of this step is to refine the model parameters from large to small and select the model parameters with the smallest error rate.
[0020] Step 4: The prediction error rates of coke's M40, M10, CRI, and CSR are respectively obtained on random forest, support vector machine, and multi-layer perceptron. Then, the algorithm with the lowest error rate in the four coke quality indicators of the test set is selected to construct a coke quality prediction method. As shown in Table 1, it can be seen that the RandomForestRegressor algorithm has the lowest error rate for coke M40 prediction, the SVR algorithm has the lowest error rate for M10 and SVR prediction, and the MLPRegressor algorithm has the lowest error rate for CRI prediction.
[0021] Table 1 Prediction error rates of different machine learning algorithms index M40 M10 CRI CSR RandomForestRegressor 1.283% 3.366% 3.687% 1.719% SVR 1.646% 2.793% 3.456% 1.592% MLPRegressor 1.932% 2.947% 3.973% 1.443% Step 5: Assist in coal blending optimization, quickly predict coke quality indicators, generate new data, and write them into the coking coal blending database. As the amount of experimental coke oven test data or production coke oven coke quality data increases, the error rate of the prediction results will be further reduced.
Claims
1. A method for predicting coke quality indicators, characterized in that: The following steps are involved: Step 1: Construct a coking coal database. The coking coal database is constructed by combining the historical production data and coal quality test data of the coking enterprise. The database includes the quantitative index data of single coal quality, the quality index data of blended coal, and the corresponding coke quality index data under the same coke oven and process conditions in historical production. The coking coal data includes the proportion of single coal and the corresponding vitrinite reflectance (R v )、ash content(Ad)、sulfur content(S)、volatile matter( ), bonding index (G), fineness (F); the quality index of blended coal is composed of the weighted quality index of each type of coal v , , , , , and moisture (Mt); coke quality indicators are crushing strength (M40), abrasion resistance (M10), reactivity index (CRI), and post-reaction strength (CSR); Step 2: Algorithm training. The quality indicators of blended coal are used as the input of the model, including but not limited to moisture, ash, sulfur, volatile matter, bonding index, fineness, and vitrinite reflectance; the quality indicators of coke are used as the output of the model, including crushing strength, abrasion resistance, reactivity index, and post-reaction strength; the quality indicator data of blended coal and coke constitute a data set, and the data set is divided into 70% test set and 30% validation set; Step 3: Import RandomForestRegressor (random forest), SVR (support vector machine regression), MLPRegressor (multi-layer perceptron), GridSearchCV (grid search) in the sklearn framework, and adjust the hyperparameters of the coke quality indicators M40, M10, CSR, and CRI on the training set. First, conduct a wide range of grid search on the hyperparameters, determine the appropriate interval, and then gradually refine the grid search. Then, select the model parameters with the best performance according to the error rate of the prediction indicator; Step 4: The prediction error rates of M40, M10, CRI and CSR of coke are respectively obtained on random forest, support vector machine and multi-layer perceptron. Then the algorithm with the lowest error rate on the four coke quality indicators in the test set is selected to construct a coke quality prediction method in combination; Step 5: Assist in coal blending optimization, quickly predict coke quality indicators, generate new data, and write them into the coking coal blending database. As the amount of experimental coke oven test data or production coke oven coke quality data increases, the error rate of the prediction results will be further reduced.
2. A method for predicting coke quality indicators according to claim 1, characterized in that: The coke quality indicators mainly include crushing strength (M40), wear resistance (M10), reactivity index (CRI), and post-reaction strength (CSR). The quality indicators of a single coal mainly include vitrinite reflectance (R v )、ash content(Ad)、sulfur content(S)、volatile matter( ), bonding index (G), fineness (F), the quality index of blended coal is composed of the weighted quality index of each type of coal v , , , , , and moisture (Mt).
Citation Information
Cited By
Converter-based coke quality prediction model for samples containing missing coal parameters
CN120297823A
