Coal spontaneous combustion early warning method based on interpretable artificial intelligence
By constructing a coal spontaneous combustion early warning method based on interpretable artificial intelligence, acquiring oxidation process data under different oxygen supply conditions, training a temperature prediction model, and conducting dual-path interpretability analysis, the problems of early warning lag and uninterpretable models in existing technologies are solved, and early transparent insight and real-time warning of coal spontaneous combustion are realized.
Patent Information
- Application Number
- CN202610383500.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-03-26
AI Technical Summary
Existing methods for early warning of spontaneous combustion of coal suffer from warning lag, complex index coupling, and insufficient model generalization ability. They are unable to adapt to complex dynamic factors downhole, and the decision-making process of machine learning models is uninterpretable, resulting in insufficient accuracy and adaptability of early warning.
A coal spontaneous combustion early warning method based on interpretable artificial intelligence is constructed. By acquiring experimental data of the oxidation process under different oxygen supply conditions, a feature set is constructed and a temperature prediction model is trained. Dual-path interpretability analysis is performed to quantify the contribution of features and identify key threshold intervals, generate risk judgment rules, and achieve early intelligent early warning.
It enables transparent insights into the coal oxidation process in a dynamic environment, provides verifiable physical critical points and action thresholds, solves the disconnect between static models and dynamic disaster evolution processes, and ensures the timeliness and reliability of early warnings.
Smart Images

Figure CN122223934B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent monitoring and early warning technology for mine safety, and more specifically, to a method for early warning of spontaneous combustion of coal based on interpretable artificial intelligence. Background Technology
[0002] Spontaneous coal combustion is one of the major long-term threats to safe coal mine production. Its process is covert and its mechanism is complex, easily triggering a chain of accidents that cause serious resource losses and casualties. Achieving early and accurate warning of spontaneous coal combustion is a core goal that the field of mine safety has been continuously pursuing.
[0003] Traditional methods for monitoring and early warning of spontaneous combustion in coal mainly rely on temperature monitoring, indicator gas analysis, and empirical criteria. For example, Chinese patent document CN109184800B discloses a classification method for spontaneous combustion early warning. This method monitors the concentrations of indicator gases such as oxygen, carbon monoxide, carbon dioxide, methane, ethylene, and ethane, and classifies the risk of spontaneous combustion based on a preset set of thresholds established from experimental or empirical data. While these traditional methods can reflect the development trend of spontaneous combustion to some extent, they suffer from problems such as early warning lag, complex indicator coupling, and insufficient model generalization ability. Their early warning thresholds depend on prior knowledge or experimental data under limited operating conditions, making it difficult to adaptively address complex dynamic factors such as underground ventilation conditions and coal quality changes. Therefore, their accuracy and adaptability are limited under complex and variable actual operating conditions.
[0004] In recent years, machine learning models have been widely used in predicting spontaneous combustion of coal, achieving significant results in improving numerical accuracy. However, these models generally suffer from the "black box" defect, meaning their internal decision-making process is untraceable, and safety engineers cannot obtain the specific basis for their warning conclusions. This makes it difficult to truly trust the models and to support accurate emergency response decisions.
[0005] To address the black box problem, explainable artificial intelligence (XAI) technology has been introduced into this field. Post-hoc explanation methods, such as SHAP and ALE, can quantify the contribution of each input feature to the prediction result, achieving decision-making transparency at a static level. However, current XAI-based research paradigms have deeper limitations: the explanations they provide are essentially statistical summaries of historical steady-state data, and the conclusions are static once generated. In contrast, the real underground environment is highly dynamic, with mining activities and ventilation disturbances causing the coal spontaneous combustion incubation process to exhibit non-steady-state characteristics. When a static explanation framework is applied to such dynamic scenarios, the causal relationship it points to may become disconnected from the real-time evolving physical process, constituting a deeper "dynamic black box." Neither traditional fixed threshold methods (such as the aforementioned CN109184800B) nor the current static XAI paradigm have effectively solved the core problem of simultaneously adapting early warning criteria to the dynamic disaster evolution process. Summary of the Invention
[0006] To overcome the aforementioned deficiencies of existing technologies, this invention provides a coal spontaneous combustion early warning method based on interpretable artificial intelligence. By constructing a dual-path interpretability analysis framework that integrates global contribution quantification and local threshold identification, the black-box decision-making of the machine learning model is transformed into risk judgment rules synchronized with the dynamic physical stages of coal oxidation, thereby achieving traceable early intelligent early warning of coal spontaneous combustion.
[0007] To achieve the above objectives, the present invention provides the following technical solution:
[0008] This invention discloses a method for early warning of spontaneous combustion of coal based on interpretable artificial intelligence, comprising:
[0009] Experimental data on the oxidation process of coal samples under different oxygen supply conditions were obtained, and a feature set for characterizing the oxidation state was constructed based on the experimental data.
[0010] The temperature prediction model is trained based on the feature set, and the generalization ability of the temperature prediction model under various oxygen supply conditions is verified.
[0011] A dual-path interpretability analysis is performed on the temperature prediction model. The first interpretation path is used to quantify the global contribution of each feature in the feature set to the prediction result, and the second interpretation path is used to analyze the local effect curves of key features in the feature set and identify the threshold intervals that cause significant changes in the prediction output.
[0012] By integrating the results of the dual-path interpretability analysis, the global contribution level is correlated with the threshold range to generate risk criterion rules for determining the development stage of coal oxidation;
[0013] Based on the aforementioned risk judgment rules, real-time monitoring data is analyzed to determine the development stage and risk level of coal oxidation, thereby enabling early warning.
[0014] Furthermore, the method for obtaining experimental data on the oxidation process of coal samples under different oxygen supply conditions includes:
[0015] Gas concentration data of the coal sample were obtained through a programmed heating experiment under conditions of oxygen concentrations of 21%, 16%, 11%, 8%, and 6%, respectively. The gas concentration data included at least the concentration data of carbon monoxide, carbon dioxide, methane, ethylene, and ethane.
[0016] Furthermore, the method for constructing a feature set for characterizing oxidation states includes:
[0017] First principal component analysis was performed on the concentration data of carbon monoxide and carbon dioxide, and the first principal component was extracted as the oxidation principal component.
[0018] Second principal component analysis was performed on the concentration data of methane, ethane, and ethylene, and the first principal component was extracted as the hydrocarbon principal component.
[0019] Calculate the characteristics of gas concentration ratios;
[0020] The feature set is composed of the oxidizing principal component, the hydrocarbon principal component, the gas concentration ratio feature, and the oxygen concentration.
[0021] Furthermore, the temperature prediction model includes a CatBoost gradient boosting tree model and a support vector regression model with significant structural differences;
[0022] To verify the generalization ability of the temperature prediction model under various oxygen supply conditions, a leave-one oxygen concentration extrapolation verification strategy was adopted.
[0023] Furthermore, the first interpretation path employs the Shapley additivity interpretation method, which calculates the expected marginal contribution of each feature in all possible combinations of feature subsets in the feature set to obtain the Shapley value of that feature, and quantifies the global contribution of each feature by the distribution of Shapley values across all samples.
[0024] Furthermore, the second interpretation path employs the cumulative local effect method, which calculates the conditional expected changes of the model prediction output of the key features in the feature set within their different value ranges, integrates and accumulates these local changes, and plots a cumulative local effect curve; the threshold interval is determined by identifying continuous segments on the cumulative local effect curve where the absolute value of the slope exceeds a preset sensitivity threshold.
[0025] Furthermore, the method for fusing the results of the dual-path interpretability analysis includes:
[0026] The global contribution of each feature output by the Shapley additivity interpretation method is correlated and mapped with the threshold range of key features output by the cumulative local effects method.
[0027] Furthermore, the method for generating risk criterion rules for determining the development stage of coal oxidation includes:
[0028] When the value of the principal oxidation component in the feature set enters the range of 0 to 1, it is determined that coal oxidation has entered the accelerated stage.
[0029] Furthermore, the risk criterion rule for determining the development stage of coal oxidation includes: when the principal hydrocarbon component value in the feature set falls within the range of 0 to 2, and / or the gas concentration ratio feature... When the value falls within the range of 5 to 10, it is determined that the coal oxidation has entered the accelerated pyrolysis stage.
[0030] Furthermore, after performing the dual-path interpretability analysis on the temperature prediction model, the method further includes performing the dual-path interpretability analysis on the CatBoost gradient boosting tree model and the support vector regression model respectively.
[0031] Compare the consistency between the contribution direction of the key features obtained by the two models through the dual-path analysis and the threshold interval;
[0032] When both are consistent in the dominant contribution direction of the key feature and the threshold range, it is confirmed that the risk criterion rule generated based on this has algorithm independence and physical transferability.
[0033] Compared with related technologies, the present invention has the following beneficial effects:
[0034] This invention embeds interpretability deep into the core generation logic of early warning decision-making. It simulates dynamic environments with high oxygen concentration experiments and constructs a physics-guided feature set. Based on this feature set, a temperature prediction model is trained and its generalization ability under various oxygen supply conditions is verified, ensuring that the input data itself contains the differences in oxidation pathways under different oxygen supply conditions. A dual-path interpretability analysis is then performed on the temperature prediction model. The first path quantifies the global contribution of each feature to the prediction result, used to filter out the dominant factors driving the prediction from massive amounts of data, answering the question of which features are key. The second path analyzes the local effect curves of key features and identifies the threshold ranges that cause significant changes in the predicted output, capturing the specific values of these features that trigger a qualitative change in the model's predictive behavior, i.e., finding the critical point of risk state transition. The combination of these two path analyses is equivalent to simultaneously grasping the main contradictions of the dynamic process and the critical conditions for its outbreak. Finally, the global contribution level is correlated with the threshold range to generate risk criterion rules for determining the development stage of coal oxidation. These rules are then applied to the analysis of real-time monitoring data, enabling early warning decisions to be directly based on the synchronous identification of key turning points in the dynamic process of coal oxidation. This solves the problem of the disconnect between static model interpretation and dynamic disaster evolution, and realizes the leap from black-box speculation to transparent insight in early warning, providing visualized mechanistic support for the coal oxidation-thermal cracking process.
[0035] This invention transforms the abstract concept of "significant change in predicted output" into a clear and unambiguous physical critical point that can be directly applied to engineering decisions by introducing specific numerical threshold ranges based on cumulative local effect analysis. It not only solidifies the model interpretation into precise criteria such as the zero-to-one interval of the principal oxidation component, but also provides an objective, verifiable, and independent action threshold for the entire early warning system by aligning the data-driven inflection point with the classic stage division theory of coal oxidation. This allows for the seamless integration of sophisticated machine learning model outputs into existing mine safety operating procedures, solving the trust and execution problems caused by ambiguous decision-making criteria when implementing intelligent early warning systems, and ensuring the consistency and timeliness of early warning actions. Attached Figure Description
[0036] Figure 1 A schematic diagram of the steps of the coal spontaneous combustion early warning method based on interpretable artificial intelligence provided by the present invention;
[0037] Figure 2 From left to right, these represent the corresponding values for different oxygen concentrations. Concentration and Concentration change characteristic graph;
[0038] Figure 3 From left to right, these represent the corresponding oxygen concentrations. Concentration and Concentration change characteristic graph;
[0039] Figure 4 From left to right, these represent the corresponding oxygen concentrations. Concentration change characteristics and Generation rate change trend graph;
[0040] Figure 5 From left to right, the graphs show the changing trends of the gas concentration ratios corresponding to 21% and 16% oxygen concentrations.
[0041] Figure 6 From left to right, the graphs show the trends of gas concentration ratios corresponding to 11% and 8% oxygen concentrations.
[0042] Figure 7 A graph showing the trend of gas concentration ratios corresponding to a 6% oxygen concentration;
[0043] Figure 8 A comparison chart of predicted and observed temperatures from the CatBoost model;
[0044] Figure 9 This is a graph showing the relationship between the residuals of the CatBoost model and the observed temperature.
[0045] Figure 10A comparison chart of the predicted temperature and the observed temperature from the SVR model;
[0046] Figure 11 A scatter plot of the residuals of the SVR model versus the observed temperature;
[0047] Figure 12 A graph showing the global contribution of the SVR model;
[0048] Figure 13 A graph showing the global contribution of the CatBoost model;
[0049] Figure 14 The global effect distribution of SHAP in the SVR model;
[0050] Figure 15 The global effect distribution of SHAP in the CatBoost model;
[0051] Figure 16 From left to right: CatBoost models as well as Corresponding ALE curve diagram;
[0052] Figure 17 In the CatBoost model Corresponding ALE curve diagram;
[0053] Figure 18 From left to right, these are the SVR models. as well as Corresponding ALE curve diagram;
[0054] Figure 19 In the SVR model The corresponding ALE curve diagram. Detailed Implementation
[0055] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0056] Please see Figure 1 As shown, this embodiment provides a coal spontaneous combustion early warning method based on interpretable artificial intelligence. The complete process of this method includes steps one to four, which will be described in detail below:
[0057] Step 1: Obtain experimental data on the oxidation process of coal samples under different oxygen supply conditions, and construct a feature set to characterize the oxidation state based on the experimental data.
[0058] When designing early warning methods, the first step must be to consider the reliability of model predictions and interpretations, largely based on data. Traditional coal spontaneous combustion research experiments are often conducted in a fixed air environment (approximately 21% oxygen). However, in real coal mines, especially in goafs and confined areas, oxygen concentration fluctuates dynamically over a wide range due to changes in ventilation, collapse, and the injection of inert gases (for example, a sudden drop from the normal 21% to 6% or even lower). If the model is trained using only data from "oxygen-rich" conditions, it will be like someone who has only seen sunny days, completely unable to understand and predict the risks of "rainy" or "heavy" days. Therefore, to build an early warning model that can truly adapt to the complex oxygen supply conditions underground, the first step must be to systematically simulate these changes in oxygen concentration in a controlled experimental environment, obtaining a set of oxidation process data covering different degrees of oxygen deficiency. This is the data foundation for solving the fundamental problem of the disconnect between static interpretation and dynamic processes.
[0059] In this embodiment, in order to achieve the above objectives, the industry-recognized programmed temperature rise experimental method can be adopted, and its core parameter, namely oxygen concentration, can be modified.
[0060] Therefore, when preparing experimental coal samples, representative fresh coal samples from the target mining area can be selected. In this embodiment, the experimental coal sample is the 32311 working face of Xutuan Coal Mine, which has a spontaneous combustion tendency of Class II. The industrial analysis results of the coal sample are: moisture (Mad) (1.54%), ash (Aad) (19.20%), volatile matter (Vad) (35.90%), and fixed carbon (FCad) (43.36%). Sampling must follow national standards (sampling should be carried out according to GB / T482-2008 Coal Seam Sampling Method). During sampling, the oxide layer on the surface of the coal seam should be peeled off, and fresh blocky coal samples should be selected from the inside, sealed in a moisture-proof bag, and labeled with sampling information.
[0061] To investigate the effects of different oxygen concentrations on the oxidation characteristics of coal, a programmed temperature rise experiment was conducted. The experiment required crushing and sieving coal samples into various particle size ranges, which in this embodiment were 0–0.9 mm, 0.9–3 mm, 3–5 mm, 5–7 mm, and 7–10 mm. These samples were then mixed in a specific mass ratio to simulate the non-uniform packing state of underground coal. This mixed particle size sample better reflects the reaction behavior under real-world conditions.
[0062] Since oxygen concentration is one of the most crucial controlling factors in coal oxidation, the oxidation pathway, proportion of gaseous products, and release rate of coal all undergo nonlinear changes under different oxygen concentrations. Only by capturing these changes can the model learn the essential chemical reaction laws, rather than accidental correlations under certain fixed conditions. Therefore, the core experimental setup is an oxygen concentration gradient design. For example, methods for obtaining experimental data on the oxidation process of coal samples under different oxygen supply conditions include: obtaining gas concentration data of coal samples under oxygen concentrations of 21%, 16%, 11%, 8%, and 6% through programmed temperature rise experiments, where the gas includes at least carbon monoxide (C). ),carbon dioxide( ), methane ( ), ethane ( ) and ethylene ( ).
[0063] Specifically, a series of mixed gases with different oxygen concentrations were artificially prepared as experimental gas sources, and multiple gradients from high to low were set up. A preferred oxygen concentration setting implementation scheme includes five concentration points: 21% (simulating normal ventilation), 16%, 11%, 8%, and 6%. This is because 21% is the air baseline; 16% and 11% represent the transitional state of limited ventilation; and 8% and 6% simulate the environment after severe hypoxia or nitrogen injection. Through the data of these five concentration points, a complete spectrum of coal oxidation behavior as oxygen supply changes can be basically outlined.
[0064] The experimental and data acquisition processes are described in detail below: First, the prepared coal sample is placed in a programmed heating furnace, and a gas with a set oxygen concentration is introduced. The coal sample is then heated at a slow and constant rate (0.5 degrees Celsius per minute in this embodiment) from room temperature (30 degrees Celsius) to a higher temperature (300 degrees Celsius), as shown in Table 1.
[0065] Table 1 Experimental conditions and setup requirements
[0066]
[0067] Throughout the heating process, a high-precision gas analysis system is used to monitor and record in real time and continuously the various characteristic gases released from the coal sample. , , , and The concentration of oxygen was recorded, and the temperature of the coal sample was recorded simultaneously. Ultimately, multiple sets of synchronized datasets with "time-temperature-multiple gas concentrations" were obtained, each corresponding to a specific oxygen concentration condition. Combined with... Figure 2 (Corresponding from left to right) Concentration change, Concentration change) Figure 3 (Corresponding from left to right) Concentration change, (concentration change) and Figure 4 (Corresponding from left to right) Concentration change, The trends in generation rate are shown, corresponding to the characteristics of gas concentration and release rate changes under different oxygen concentrations; combined with... Figure 5 (Corresponding from left to right) (16% oxygen concentration) Figure 6 (From left to right, these correspond to 11% oxygen concentration, 8% oxygen concentration, and...) Figure 7 As shown (corresponding to 6% oxygen concentration), they represent the changing trends of the gas ratios at different oxygen concentrations.
[0068] The dataset constructed in this way has a much greater diversity and physical realism than the data obtained from a single oxygen concentration experiment. It also provides a more adaptable and general early warning framework for subsequent analysis, which is not dependent on specific ventilation conditions.
[0069] After obtaining the raw gas concentration data, it cannot be directly fed into the model. Because the raw gas concentration data is high-dimensional (multiple gases) and exhibits strong correlations (e.g., carbon monoxide and carbon dioxide often increase simultaneously), direct use would lead to inefficient and difficult-to-interpret models. Therefore, careful feature engineering is required to construct a feature set that is information-condensed, physically meaningful, and low in redundancy.
[0070] For example, a method for constructing a feature set to characterize the oxidation state includes: performing a first principal component analysis on the concentration data of carbon monoxide and carbon dioxide, and extracting the first principal component as the oxidation principal component; performing a second principal component analysis on the concentration data of methane, ethane, and ethylene, and extracting the first principal component as the hydrocarbon principal component; calculating the gas concentration ratio feature; and combining the oxidation principal component, the hydrocarbon principal component, the gas concentration ratio feature, and the oxygen concentration to form a feature set.
[0071] Specifically, firstly, correlation analysis was performed on the experimental data, followed by Pearson correlation and variance inflation factor (VIF) analysis. The analysis revealed that the oxidation products ( , The correlation between hydrocarbon gases () is very strong. , and The correlations between these features are also very strong. This indicates that the data exhibits multicollinearity, which, if all features are input into the model, will interfere with model stability and the understanding of the contribution of individual features.
[0072] Therefore, dimensionality reduction and information extraction of gas characteristics are necessary, which is called block principal component analysis. To address the collinearity problem and extract core information, principal component analysis (PCA) can be introduced. However, a key technique here is to process all gases separately, rather than mixing them together for PCA. This is because oxidizing gases and hydrocarbon gases have different chemical mechanisms (the former mainly comes from oxidation reactions, while the latter mainly comes from pyrolysis). Processing them separately yields principal components for oxidation and hydrocarbons that are physically purer and easier to link to subsequent mechanistic explanations.
[0073] The first step in the segmented processing is to construct the oxidative principal component: This can be... and The concentration data of these two gases are used as a group for the first round of principal component analysis. PCA will find a new direction that best represents the changes in these two gases, i.e., the first principal component. This new comprehensive feature is called the oxidation principal component (PCA). The analysis results show that the oxidized principal component has an effect on... and The loadings (representing their contribution weights) were 0.71 and 0.70, respectively, explaining 95.2% of the cumulative variance (explaining more than 95% of the variance of the original data). This means that a single principal component value efficiently summarizes the intensity information of the overall oxidation reaction of the coal sample (i.e., characterizes the intensity of the oxidation reaction).
[0074] The second part of the segmented processing involves constructing the main hydrocarbon components: similarly, it can be... , and The concentration data of the hydrocarbons were used as another set for a second round of principal component analysis to obtain its first principal component, which is called the hydrocarbon principal component. ). Hydrocarbon principal components , and The loadings were 0.65, 0.60 and 0.58, respectively, and the cumulative variance explained was 88.7%. It mainly reflects the synergistic changes of hydrocarbon components during pyrolysis and cracking (the comprehensive effect of the breaking of macromolecular chains in coal under thermal action to produce various hydrocarbon gases).
[0075] Next, it's necessary to retain the intuitive physical characteristics, namely the gas ratios. While these two principal components are highly efficient, they lose the intuitive physical meaning of the original gases. To compensate for this and introduce criteria familiar to domain experts, several key gas concentration ratio characteristics need to be specifically retained and calculated. For example, the ratio of carbon monoxide concentration to methane concentration is a classic early warning indicator for coal spontaneous combustion; the ratio of methane concentration to ethane concentration; and the ratio of ethylene concentration to ethane concentration (often multiplied by 100 for amplification, i.e.,...). These ratios have been shown to be closely related to the warming stage of coal. These ratio characteristics have a clear chemical interpretation and do not participate in PCA, thus maintaining their independence.
[0076] Finally, the feature set is integrated. The constructed features are combined to form a structured feature set. This feature set typically includes: oxidized principal components (…). ), hydrocarbon main components ( ), gas concentration ratio characteristics (which are, in this embodiment, ) , and The feature set includes the oxygen concentration itself, a key environmental condition. This feature set reduces dimensionality and eliminates collinearity through PCA, preserves interpretability through ratios, and contains core environmental variables, thus preparing the ground for training an accurate and understandable predictive model.
[0077] After completing the feature set construction, the model training and validation phase begins. The goal of this phase is to obtain a temperature prediction model that maintains stable predictive performance under dynamic oxygen supply conditions, providing a reliable foundation for subsequent interpretability analysis. Considering that a single model may have structural biases, leading to a lack of universality in the learned laws, this embodiment employs multiple models with distinct principles for parallel training and comparative validation. This ensures that the physical laws extracted from the models do not depend on a specific algorithm structure. Specifically, multiple models are trained independently simultaneously during the training phase, and a cross-condition validation strategy is used during the validation phase to evaluate the predictive ability of each model under unseen oxygen supply conditions. This design not only selects models with good generalization ability for subsequent analysis but also provides a comparative basis for verifying the algorithmic independence of the interpretable conclusions.
[0078] Step 2: Train the temperature prediction model based on the feature set and verify the generalization ability of the temperature prediction model under various oxygen supply conditions.
[0079] To achieve the above objectives, this embodiment specifically selects two machine learning algorithms with significant differences in principle and structure as temperature prediction models. For example, the temperature prediction models include the CatBoost gradient boosting tree model and the Support Vector Regression (SVR) model, which have significantly different structures. To verify the generalization ability of the temperature prediction model under various oxygen supply conditions, a leave-one-out oxygen concentration extrapolation verification strategy is adopted.
[0080] Specifically, the CatBoost gradient boosting tree model (hereinafter referred to as the "CatBoost model") is an ensemble learning algorithm based on the gradient boosting idea, belonging to the decision tree model family. This algorithm improves upon XGBoost and LightGBM, employing a symmetric binary tree structure to enhance computational efficiency and effectively reducing bias caused by sample order dependence through an ordered boosting strategy. In each iteration, the model uses the residual from the previous iteration as the objective to train a new weak learner to continuously correct prediction errors, thereby gradually improving the overall model performance. The objective function of the CatBoost model can be expressed as:
[0081]
[0082] in, Let represent the input feature vector of the i-th sample. The corresponding target variable (coal body temperature or stage label). Let be the loss function, used to measure the difference between the predicted and actual values. This model minimizes this loss function by iteratively training multiple decision trees, where i = 1, 2, 3, ..., n, i represents the sample number, and n represents the total number of samples. Its update process can be described as follows:
[0083]
[0084] In the formula, For the front The cumulative prediction results for each tree. For the first The prediction output of each decision tree. The learning rate controls the step size in each iteration. The model continuously approximates the optimal solution of the loss function by fitting the negative gradient of the residuals.
[0085] Once the model is trained, evaluating its performance is crucial. A common practice is to randomly split all data into training and test sets. However, this is not rigorous enough for the scenario in this example, and can even be misleading. The data comes from five different, preset oxygen concentrations (consistent with the previously mentioned 21%, 16%, 11%, 8%, and 6%). Random splitting could result in data points in the test set being under similar or identical oxygen conditions to those in the training set. In this case, a high test score might only indicate that the model has "reviewed" well, rather than truly understanding the impact of changes in oxygen concentration.
[0086] Therefore, in this embodiment, a more stringent verification strategy that is closer to the actual application scenario is adopted, namely, the oxygen concentration of the left-side oxygen ( Extrapolation Validation Strategy. To ensure the repeatability of extrapolation validation, this embodiment specifies the leave-one oxygen concentration extrapolation validation strategy as follows: The programmed temperature rise experimental data are grouped according to oxygen concentration to form multiple operating condition subsets; each validation selects one oxygen concentration operating condition subset as the test set, and the remaining operating condition subsets as the training set; cross-validation is performed within the training set to select model hyperparameters, and the selected model is used to predict the temperature of the test set; each oxygen concentration operating condition subset is rotated as the test set in turn to obtain multiple rounds of extrapolation test results; the test results from each round are weighted and summarized according to sample size to obtain the overall evaluation index. Through the above division and summarization rules, the meaning of "extrapolation," the boundaries between training and testing, and the evaluation statistical caliber are clearly defined.
[0087] Specifically, the first round of validation involved extracting all experimental data from the 21% oxygen concentration experiment as the test set. Then, the remaining data (i.e., data from the four concentrations of 16%, 11%, 8%, and 6%) were used as the training set to train the model.
[0088] Model testing: Using the trained model, predict the temperature of coal samples at an oxygen concentration of 21%, which has never been seen in training.
[0089] After completing the first round, the 21% data is put back in, and then 16% of the data is extracted as a new test set. The new model is trained using the data from the remaining four concentrations, and then used to predict the temperature under the 16% condition. This process is repeated, using 11%, 8%, and 6% of the data as test sets in turn.
[0090] Furthermore, in each round of leave-one-out validation, the model also needs to be hyperparameter tuned during training to find its optimal configuration on the current training set (four concentration data).
[0091] For the CatBoost model, key tuning parameters may include: tree depth (controlling model complexity), learning rate (controlling the step size of error correction for each tree), leaf node regularization parameter (preventing the model from becoming too complex and "memorizing" noisy data), bagging temperature, and sampling ratio. Parameter tuning is typically performed using random search combined with three-fold cross-validation, and isometric regression is introduced for output calibration to suppress extreme sample errors. The total number of iterations can be 3000, with an early stopping tolerance set to 200, searching for the optimal parameter combination within a preset parameter range that allows the model to perform best on the validation subset. In this embodiment, the final determined main parameter settings are shown in Table 2:
[0092] Table 2. Main parameter settings for the CatBoost model
[0093]
[0094] Five sets of residual oxygen concentrations were completed under the above parameters. After extrapolation experiments, it was found that the model exhibited high goodness of fit and stability under high oxygen concentration environments. The specific predictive performance of the model is shown in Table 3.
[0095] Table 3 CatBoost model in Predictive performance under extrapolation
[0096]
[0097] Parameter R in the table 2 The coefficient of determination measures the model's ability to explain variations in the data; MAE is the mean absolute error, directly reflecting the magnitude of prediction bias; RMSE is the root mean square error, which is more sensitive to large errors. These metrics collectively evaluate the model's goodness of fit and prediction accuracy, with the overall metric being R0. 2 =0.988, MAE=5.72℃, RMSE=8.72℃. Among them, at 11% It performs best at the concentration (R) 2 =0.9953, RMSE=5.54℃), while low oxygen (6%) (concentration) and high oxygen (21%) The error was slightly higher under certain concentration conditions (RMSE was 14.70℃ and 7.17℃, respectively), reflecting a decrease in model accuracy during stages of limited reaction or abrupt changes in reaction rate. However, the overall trend is consistent with the kinetics of coal oxidation-thermal cracking, indicating that the model's prediction results still have good physical consistency and generalizability.
[0098] Reference Figure 8 As shown, this figure illustrates the consistency distribution between the predicted (predicted temperature) and observed (observed temperature) values from the CatBoost model. The oxygen concentration sample points are generally distributed along an ideal diagonal, with the majority of samples falling within the ±10℃ error band; only a slight underestimation occurs in the high-temperature range. (Refer to...) Figure 9 As shown in the figure, the residuals vary with the observed temperature: the residuals are slightly positive in the low temperature region (T < 100℃) and slightly negative in the high temperature region (T > 200℃), but there is no obvious systematic trend in the overall distribution. This indicates that the model can accurately capture the nonlinear relationship between gas characteristics and temperature.
[0099] Overall, the CatBoost model demonstrates excellent prediction accuracy and robustness across oxygen concentrations, effectively reflecting the phased gas response patterns during coal oxidation and providing a reliable data and model foundation for subsequent interpretability analyses (SHAP, ALE).
[0100] Support Vector Regression (SVR) models (hereinafter referred to as "SVR models"), compared to the tree-based CatBoost model, are typical kernel function nonlinear algorithms. They can capture the nonlinear relationship between gas characteristics and temperature changes in small sample scenarios, but lack explicit feature splitting structures. Therefore, to verify the applicability and stability of the interpretable artificial intelligence framework under different modeling mechanisms, this study also selects Support Vector Regression (SVR) as a control model. By comparing the prediction results and interpretability analysis of the two models, the universality and reliability of the constructed framework can be further verified.
[0101] Support Vector Regression (SVR) is based on the principle of structural risk minimization. It maps input features to a high-dimensional feature space using a nonlinear mapping function, constructing an optimal regression hyperplane within this space to achieve a balance between model complexity and prediction accuracy. Its optimization objective can be expressed as:
[0102]
[0103]
[0104] in, Indicates the first The input feature vector of each sample; This represents the corresponding target variable; Represents the weight vector; Indicates the bias term; Represents a nonlinear mapping function; Indicates the penalty coefficient; Indicates the insensitive loss range; These are slack variables.
[0105] After solving using the dual form, the final prediction function can be expressed as:
[0106]
[0107] in, and For Lagrange multipliers, This represents the kernel function similarity between samples. This is a bias term.
[0108] The study employs radial basis function (RBF):
[0109]
[0110] in, Indicates the first The input feature vector of each sample, The kernel width parameter is used. The RBF kernel can effectively capture the nonlinear relationship between gas concentration characteristics and coal temperature, and is suitable for scenarios with small sample sizes and strong feature correlations.
[0111] The main hyperparameters of the model include the penalty coefficient. Core width parameter and insensitive intervals To obtain the optimal parameter combination, a grid search + five-fold cross-validation approach can be used, also based on the leave-one oxygen concentration (…). The extrapolation validation strategy uses each oxygen concentration condition as the test set and the remaining conditions as the training set to evaluate the model's generalization performance across oxygen concentration conditions.
[0112] The parameter tuning results are shown in Table 4. The optimal parameter ranges for different oxygen concentrations are as follows: =1000), =0.03-0.20), =0.05-0.10), indicating that the model has good stability to parameter changes.
[0113] Table 4 SVR model in different Optimal parameter combination at concentration
[0114]
[0115] Five groups of residual oxygen concentrations were completed under the above parameter conditions. The predicted performance results after extrapolation experiments are shown in Table 5.
[0116] Table 5 SVR model in Predictive performance under extrapolation
[0117]
[0118] As shown in Table 5, the SVR model achieved high prediction accuracy under different oxygen concentration conditions, especially at 11% oxygen concentration. It performs best at the concentration (R) 2 =0.995, RMSE=5.51℃), during this stage, the gas generation rate exhibits a stable nonlinear relationship with temperature increase, and the characteristic signal is clear and highly discriminative. In contrast, low oxygen (6%) Under certain conditions (concentration), the reaction is limited and the signal intensity is low, while under high oxygen (21%) conditions, the reaction is limited and the signal intensity is low. Under certain concentration conditions, the oxidation reaction is more intense and the coupling between features is enhanced, both of which lead to a slight increase in model prediction error. However, the overall coefficient of determination R0 2=0.982, mean absolute error (MAE) = 7.89℃, root mean square error (RMSE) = 10.80℃. The overall trend is sufficient to show that the model's performance response to changes in oxygen concentration is consistent with the kinetic law of coal oxidation reaction, reflecting its good physical rationality and generalization stability.
[0119] Reference Figure 10 As shown in the figure, this is a comparison between the predicted values (predicted temperature) and the measured values (observed temperature) of the SVR model. The sample points for each oxygen concentration are generally distributed along an ideal diagonal, indicating that the model can accurately reproduce the temperature change trend across oxygen concentration conditions. Except for a few samples in the high-temperature region, most data are clustered within the ±10℃ error band, indicating that the model maintains good fit consistency over a wide temperature range. The slight underestimation in the high-temperature range reflects a slightly conservative response from the model during the accelerated oxidation reaction phase.
[0120] Reference Figure 11 As shown in the figure, the residuals vary with the observed temperature: in the low-temperature region (T < 100℃), the residuals are mostly positive, indicating a slight overestimation of the model during the oxidation-induced period; in the high-temperature region (T > 200℃), a small number of negative biases appear, indicating a slight underestimation of the model during the intense oxidation stage. The overall distribution of the residuals is random, without significant systematic bias or heteroscedasticity.
[0121] The results show that the SVR model can effectively characterize the nonlinear relationship between gas characteristics and temperature. The model also demonstrates good robustness and generalizability under high oxygen concentration conditions, providing a reliable predictive basis for subsequent interpretability analyses (SHAP, ALE).
[0122] This step employs both the CatBoost model (based on gradient boosting decision trees) and the Support Vector Regression model (based on kernel function mapping). These two models differ fundamentally in their mathematical principles and decision-making mechanisms. The former uses a tree structure to achieve feature splitting and integration, while the latter seeks the optimal regression hyperplane in high-dimensional space using a kernel function. By comparing the consistency of the patterns learned by the two models from the same dataset and their explanatory conclusions, the robustness of the constructed early warning framework and the universality of the physical laws can be effectively verified, avoiding accidental conclusions caused by the characteristics of a single model.
[0123] When faced with a well-trained, complex model, directly interpreting its millions or even hundreds of millions of internal parameters (such as the weights of a neural network) is nearly impossible. Therefore, specialized model interpretation tools are necessary. However, relying on a single interpretation path may yield incomplete or even misleading conclusions. For example, knowing only a globally important feature but not its specific value range that triggers a qualitative change in risk offers limited help in setting precise warning thresholds. Conversely, knowing only a local variation pattern without understanding its weight in global decision-making may lead to an overemphasis on secondary factors.
[0124] Therefore, step three is required: perform a dual-path interpretability analysis on the temperature prediction model. The first interpretation path is used to quantify the global contribution of each feature in the feature set to the prediction result, while the second interpretation path is used to analyze the local effect curves of key features in the feature set and identify the threshold intervals that cause significant changes in the prediction output.
[0125] In this embodiment, the core strategy of step three is to construct a dual-path analysis system that combines a "global overview" with a "local microscopic view." The first path answers the question, "Which features are the main drivers of decision-making?" and the second path answers the question, "At what key locations (threshold ranges) will these main drivers exert their decisive influence?" Only by integrating these two answers can we fully understand the entire decision-making chain of the model from "input features" to "output warnings," and provide irrefutable data support for the final formulation of clear and reliable warning rules.
[0126] For example, the first interpretation path can adopt the Shapley Additive Interpretation (SHAP) method, which calculates the expected marginal contribution of each feature in all possible combinations of feature subsets in the feature set to obtain the Shapley value of the feature, and quantifies the global contribution of each feature by the distribution of Shapley values of all samples.
[0127] Specifically, the first interpretation tool is the Shapley Additive Interpretation (SHAP) method, which aims to fairly distribute the total output (predicted value) of a team (model prediction) to each member (input feature). In this embodiment, the SHAP method calculates the Shapley value (SHAP value) for each input feature (such as the principal component of oxidation, principal component of hydrocarbons, gas concentration ratio, etc. in the feature set) for each individual prediction sample. This value can be positive or negative; the magnitude of the value indicates the contribution of the feature to the prediction result of the sample, and the sign (positive / negative) indicates the direction of the contribution (increasing / decreasing the predicted value). For example, for a sample with a high predicted temperature, if its principal component SHAP value is a large positive number, it means that the model believes that the high principal component value of this sample is an important reason for pushing up its temperature prediction.
[0128] Unlike looking at a single sample, a holistic understanding of the entire model's behavior is required. Therefore, it's necessary to calculate the SHAP value for each feature across all test samples (or representative samples) and then perform statistical analysis. The specific steps are:
[0129] First, for the trained CatBoost and SVR models, all samples from each round of the test set in the leave-one oxygen concentration validation were selected.
[0130] Then, using an efficient SHAP calculation library (such as Python's shap library), the SHAP value for each feature of each sample is calculated.
[0131] Next, calculate the average of the absolute values of the SHAP values for each feature across all samples. The larger this average, the greater the overall impact of that feature in the model's predictions, i.e., the higher its global contribution (feature importance). After calculating the importance of all features, a clear "feature importance ranking" can be obtained. For an example, please refer to [link to example]. Figure 12 and Figure 13 As shown in the figure, the two figures correspond to the global contribution (feature importance) of the two models, respectively. For specific numerical comparisons and rankings, please refer to Table 6:
[0132] Table 6. Cross-model comparison of feature importance
[0133]
[0134] As shown in Table 6, the first two features of the SVR model are (0.5390%) and (0.3457%), indicating that the temperature rise of the coal body is mainly controlled by the hydrocarbon cracking process; Secondly (accounting for 0.1151), this also reflects the auxiliary contribution of oxidative intensity.
[0135] In the CatBoost model, The highest contribution (0.3264%) was made by [the group that contributed the most], followed by [the group that contributed the most]. (0.2535%) and (0.2177%) indicates that the model is more sensitive to unsaturated hydrocarbon generation signals and can capture nonlinear interaction effects in the cracking process. and If the importance of the gas concentration ratio is low, it indicates that the gas concentration ratio and principal component variables can adequately characterize the oxygen supply conditions and hydrocarbon conversion process.
[0136] Overall, the top three features identified by both models include oxidation and hydrocarbon principal components, as well as gas concentration ratios, indicating that the model interpretation results have good stability and physical consistency under different algorithmic mechanisms. The CatBoost model is more prominent than the SVR model. Its role demonstrates its advantages in high-dimensional feature interaction modeling.
[0137] Combination Figure 14 (Corresponding to SVR model) and Figure 15 As shown in the figure (corresponding to the CatBoost model), observe the global effect distribution of each feature value and SHAP value. If most of its SHAP values are distributed above the zero axis, it indicates that the feature contributes positively to the predicted target (temperature); otherwise, it is negative. This verifies whether the directionality of the relationship between features and the target conforms to physical common sense (for example, the higher the principal component of oxidation, the higher the temperature prediction should be).
[0138] The results show that, from the perspective of the global SHAP effect distribution, the SHAP values of the main features all contribute positively, meaning that as the feature values increase, the predicted temperature rises. In the CatBoost model, and The high-value regions correspond to larger positive SHAP values, indicating that the model-predicted temperature rises significantly as unsaturated hydrocarbon production and oxidation intensity increase; while in the SVR model, and The SHAP distribution is more concentrated, showing an approximately linear growth trend, reflecting its dependence on low-temperature oxidation and Steady-state contribution during the generation phase.
[0139] This difference indicates that the CatBoost model is more sensitive to abrupt changes in gas concentration ratios within the nonlinear range, while the SVR model exhibits more stable gain characteristics within the continuously varying range. This directionality aligns with the physical process of enhanced exothermic reaction in low-temperature coal oxidation-thermal cracking; therefore, this model not only possesses high prediction accuracy but also reasonably reflects the mechanistic characteristics of the coal oxidation process.
[0140] The first path analysis mainly considers "who is most important", but it does not tell "when and how it becomes important". Therefore, a second path analysis is needed, which is the cumulative local effect analysis.
[0141] For example, the second interpretation path can employ the cumulative local effects (ALE) method, which calculates the conditional expected changes of the model's predicted output by key features in the feature set within their different value ranges, integrates and accumulates these local changes, plots the cumulative local effects curve, and determines the threshold range by identifying continuous segments on the cumulative local effects curve where the absolute value of the slope exceeds a preset sensitivity threshold.
[0142] In this embodiment, the ALE method aims to describe the average trend of the model's predicted output as a given feature varies within its range of values, while preserving the natural distribution of all other features (rather than being fixed to a certain value). This can ultimately be plotted as a curve (ALE curve), with the feature's value on the horizontal axis and the cumulative local effect of that feature on the prediction on the vertical axis.
[0143] To identify the threshold intervals, the features with the highest global contribution identified in the First Path (SHAP) analysis (such as oxidative principal components, hydrocarbon principal components, and gas concentration ratios) are typically selected as the focus of ALE analysis. Then, the ALE curve is calculated. Using a computational library, each selected key feature is divided into dozens or even hundreds of smaller intervals within its value range. For each smaller interval, the average change in the predicted value of all samples within that interval relative to the conditional expectation value at the lower limit of that interval is calculated. These local changes are then accumulated starting from the feature's minimum value to obtain the ALE curve for the entire value range.
[0144] Then, interpreting the curve involves moving beyond simply observing its rise and fall to focusing on its shape. This is because the threshold range is determined by identifying continuous segments on the curve where the absolute value of the slope exceeds a preset sensitivity threshold. The goal of setting this threshold is to filter out smooth sections in the ALE curve that represent steady-state or linear changes, thereby accurately capturing those rapidly changing segments that truly indicate a phased shift in coal oxidation behavior. Specifically, the threshold range (sensitive range) can be determined by looking for intervals in the ALE curve where the slope changes significantly (in this embodiment, abrupt slope changes can be visually judged by referring to the ALE curve graph). If the slope suddenly changes from smooth to steep, it indicates that when the corresponding feature value enters this range, its marginal effect on temperature prediction increases dramatically, and the model becomes highly sensitive to this feature. This interval is the threshold range (sensitive range) that needs to be identified.
[0145] Of course, if the slope changes from steep to gentle (plateau), it indicates that the characteristic effect is approaching saturation, and even if the characteristic value increases further, its driving force for prediction will be limited. The starting point of this plateau can also be regarded as a saturation threshold for the effect.
[0146] To avoid insufficient disclosure due to conceptual descriptions based solely on preset sensitivity thresholds, this embodiment defines the concept for determining sensitive intervals as follows: Calculate the slope or local increment sequence of adjacent intervals on the ALE curve, and use the sudden increase of this slope or local increment relative to its historical distribution as the basis for sensitivity determination; when the absolute value of the slope of multiple consecutive adjacent intervals is consistently higher than the statistical level of the stable segment, the consecutive interval is determined as a sensitive interval; when the slope falls back and remains near the statistical level of the stable segment for a long period, the range after this interval is determined as a plateau interval.
[0147] Based on the above principles, in this embodiment, to reveal the local response patterns of the feature variables to the model output, the cumulative local effects (ALE) method is used to analyze the four key variables. , , and Perform a univariate effects analysis. Refer to the ALE curve plot. Figure 16 (From left to right: CatBoost model) as well as (corresponding ALE curve) Figure 17 (in the CatBoost model) (Corresponding ALE curve) Figure 18 (From left to right, the SVR model) as well as (corresponding ALE curve) and Figure 19 (In the SVR model) The corresponding ALE curves are shown in Table 7. A comprehensive analysis of these curves is also available.
[0148] Table 7 Key Feature Thresholds and Plateau Ranges
[0149]
[0150] (1) (Oxidized main component)
[0151] Under the first explanatory path, SHAP showed a strong positive contribution. Under the second explanatory path, the ALE curves of both models were found to be monotonically non-decreasing, and there was a significant abrupt change in slope in the 0-1 interval (therefore this interval is the threshold interval). This indicates that when the principal oxidation component in the feature set enters the 0 to 1 interval, coal oxidation is judged to have entered the accelerated oxidation inflection point (acceleration stage). The 1-2 interval still rises but the marginal effect weakens. After >2, it tends to increase slowly / plateau, which is consistent with the oxidation enhancement process from induction to acceleration stage.
[0152] (2) (Main hydrocarbon components)
[0153] Under the first explanatory path, SHAP also showed it to be an important positive feature. Under the second explanatory path, observations revealed that the ALE curve morphology of the SVR model and the CatBoost model was consistent, showing that the 0-2 range was a clear threshold (sensitive) range, the 2-3 range continued to rise with a decreasing slope, and approached a plateau after >3. This also indicates that the hydrocarbon cracking signal contributes most to the temperature rise in the medium intensity range, and tends to stabilize at the high value end due to product limitation.
[0154] (3) (CatBoost model)
[0155] Under the first explanatory path, SHAP (especially for the CatBoost model) showed high importance. Under the second explanatory path, observations showed that its influence was close to zero in the low-value region (≈0-5), rose sharply in the 5-10 range, peaked in the 10-20 range, and then plateaued (≥20). This is consistent with the "near zero at low values—rapid increase at medium values—saturation at high values" pattern in SHAP dependence, reflecting the threshold characteristics of unsaturated hydrocarbon formation, indicating that the CatBoost model can identify the correspondence between unsaturated hydrocarbon accumulation and accelerated temperature rise.
[0156] (4) (SVR model)
[0157] The ALE curve shows a near-linear increase in the 0-30 range, followed by a flattening of the curve after ≥30. This characteristic reflects... The relative enhancement of the formation rate and the methane background can be seen as a signal of the intensification of the oxidation stage.
[0158] The four features are consistent across models in terms of "directionism-threshold-plateau" identification; the differences mainly occur in the plateau segment at the high value end: the plateau period is more obvious in the CatBoost model, while it extends more smoothly in the SVR model, which is consistent with the function family characteristics of the two types of models.
[0159] when Entering the sensitive zone of 5-10, and ≥1 or When ≥1, the risk of accelerated temperature rise increases significantly; at the same time, if the following conditions are met... A score of ≥30 indicates a high-risk range.
[0160] Step four: Based on the results obtained from the dual-path interpretability analysis, the global contribution level is correlated with the threshold range to generate risk criterion rules for determining the development stage of coal oxidation.
[0161] After obtaining the results of the dual-path interpretability analysis, to ensure the comparability of the dual-path interpretation results, this embodiment limits the interpretation calculation scope as follows: the global contribution of SHAP is calculated based on the test sample set or representative sample set, and the global contribution is the mean or median of the absolute values of the SHAP values of each feature on the sample set; the ALE curve is calculated based on the same model and the same feature space, by dividing the value range of key features into multiple intervals and calculating the conditional expectation change to obtain the local effect, and then accumulating the local effect to obtain the ALE curve. Both dual-path interpretations are performed on the model after extrapolation validation training, and are calculated separately for the CatBoost model and the SVR model to avoid inconsistencies in interpretation conclusions caused by different training rounds and different sample scopes.
[0162] Next, the results need to be fused. Methods for fusing the results of dual-path interpretability analysis include mapping the global contribution of each feature output by the Shapley additive interpretation method with the threshold range of key features output by the cumulative local effects method.
[0163] Specifically, based on the results obtained in step three, we can begin to refine the rule logic. The core idea of the rule is: when the core indicator representing the oxidation state of coal enters its data-driven and verified sensitive range, the risk level should be increased and a corresponding warning should be issued.
[0164] Rule 1 (Accelerated Oxidation Criterion): Due to the oxidation of the principal component ( The abrupt change in the 0-1 range can be defined as the triggering condition for the accelerated oxidation phase. Therefore, a rule is generated: if the real-time calculated value of the principal oxidation component enters the 0-1 range, the coal oxidation process is determined to have entered the accelerated phase, triggering a medium-level warning. Here, 0 and 1 are not arbitrarily set, but rather data-driven inflection points explicitly indicated by the ALE curve, representing changes in model behavior.
[0165] Rule 2 (Criterion for Deepening Pyrolysis): Main hydrocarbon components ( ) and alkene ratio ( This is more directly related to the thermal decomposition of coal macromolecular chains. Therefore, more refined rules can be generated: if the real-time value of the main hydrocarbon component enters the 0 to 2 range, or If the real-time value enters the range of 5 to 10, it is determined that the pyrolysis reaction is intensifying, and the overall risk is upgraded, which may trigger an advanced warning. Here, 0-2 and 5-10 are also the precise ranges of action given by ALE analysis.
[0166] It is important to note that rules cannot be finalized based on the interpretation of a single model. The CatBoost and SVR models must be subjected to the aforementioned dual-path analysis separately, and then the patterns revealed by them should be compared. For example, after performing dual-path interpretability analysis on the temperature prediction model, the analysis further includes: performing dual-path interpretability analysis on the CatBoost gradient boosting tree model and the support vector regression model separately; comparing the consistency between the contribution direction of the key features obtained by the two models through the dual-path analysis and the threshold interval; when both models maintain consistency in the dominant contribution direction of the key features and the threshold interval, it is confirmed that the risk criterion rules generated based on this are algorithmically independent and physically transferable.
[0167] Specifically, to verify the robustness and universality of the constructed Explainable Artificial Intelligence (XAI) framework under different algorithmic mechanisms and oxidation conditions, a comparative analysis of the SHAP-ALE explanation results of the SVR and CatBoost models is necessary. The two models also differ in their performance across oxygen concentration extrapolation (…). High prediction accuracy was maintained in all validations (R in SVR). 2 =0.982, RMSE=10.80℃; R in CatBoost 2 =0.988, RMSE=8.72℃), which also shows that the framework has stable generalization performance and model independence under different algorithm structures.
[0168] From the perspective of overall feature contribution, the two models differ in their contribution to the main features ( , , , , The SHAP ranking of the CatBoost model shows a consistent positive contribution relationship, indicating that oxidation and hydrocarbon cracking characteristics jointly drive the coal body temperature rise. and The most dominant positive feature reflects the synergistic exothermic oxidation-cracking process. The SVR model is consistent with this feature contribution direction, indicating that the framework can stably identify key control factors across different algorithms. The two models are consistent in five of the six main features, with a consistency rate of approximately 83%, demonstrating the stability of the explanatory framework for the main mechanism under different algorithmic structures. The ALE response curve further reveals the same threshold range characteristics (…). ≈0-1、 ≈0-2、 ≈5-10、 (≈30), although CatBoost exhibits a stronger nonlinear response in local intervals, while SVR is smoother, their physical interpretation trends are consistent. This indicates that the framework possesses good algorithm independence and can output consistent physical laws under different learning mechanisms.
[0169] To further evaluate the interpretable stability of the framework under different oxidation environments, the SHAP and ALE results of the CatBoost model were compared based on oxygen concentration. The results are shown in Table 8. The model can automatically adjust the importance and response mode of the dominant features according to changes in oxygen content and accurately reflect the thermodynamic evolution of the coal oxidation reaction.
[0170] Table 8. Correspondence between SHAP-ALE interpretation results and physical mechanisms under different oxygen concentrations (CatBoost model)
[0171]
[0172] As shown in Table 8, as the oxygen concentration decreased from 21% to 6%, the dominant feature explained by the model changed from oxidation-related variables ( , Gradually shifting towards hydrocarbon cracking characteristics ( , The transfer accurately reflects the evolution path of the coal oxidation-cracking reaction. Under high-oxygen conditions, The ALE curve rises sharply in the 0-1 range, corresponding to the transition from oxidation-induced to accelerated phases; under medium oxygen conditions, and The contributions are similar, showing a synergistic enhancement of oxidation-cracking; under hypoxic conditions, The characteristic changes from positive to negative. The slightly positive trend indicates that the heat accumulation process is limited. Compared with the SVR model, the dominant characteristic directions of both models remain consistent with the threshold range at various oxygen concentrations, with differences only in the intensity of the nonlinear response.
[0173] Therefore, this interpretable framework can not only reveal the decision-making logic within the model, but also transform the interpretation results into actionable engineering knowledge. Among these, the key sensitive regions extracted by ALE analysis (such as...) ≈1、 ≈2、 ≈5-10、 ≈30) can be directly used as a criterion for dividing coal oxidation stages and classifying early risks, realizing the mapping from interpretation results to early warning thresholds. Similarly, the main control features identified by SHAP provide priority ranking for on-site gas monitoring, such as strengthening... and Monitoring the ratio can significantly improve the sensitivity of early warning.
[0174] Step 5: Analyze the real-time monitoring data based on risk judgment rules to determine the development stage and risk level of coal oxidation, and achieve early warning.
[0175] For example, a trained and interpreted optimized model (which can be a CatBoost model or an SVR model, or an integrated judgment of both) and its supporting rule base can be deployed to the safety monitoring center server or edge computing device of a coal mine.
[0176] In a real-time data pipeline, data can be uploaded in real time from multiple sensors (gas, temperature, etc.) at various monitoring points downhole. Following the method mentioned above, the raw gas concentration data undergoes identical preprocessing and feature calculation: that is, the same ratios are calculated, and the saved PCA model parameters are called to project the real-time gas data onto the previously trained principal component of oxidation and principal component of hydrocarbons space to obtain real-time feature values.
[0177] The real-time feature values are then input into the deployed temperature prediction model to obtain a temperature prediction value (this is the output of traditional AI early warning). At the same time, more importantly, the real-time feature values (especially the principal components of oxidation, principal components of hydrocarbons, and the corresponding gas concentration ratios, etc.) are compared with the threshold ranges in the rule base in real time.
[0178] This embodiment provides a detailed tiered early warning decision-making example for demonstration purposes:
[0179] If all core feature values are in low or flat ranges, the system remains in a "safe" state.
[0180] Once Rule 1 is triggered (e.g., the oxidized principal component enters the 0-1 range), the system immediately upgrades the status to "Oxidation Acceleration Warning (Intermediate)" and highlights it on the monitoring interface. It may also notify the relevant personnel via SMS.
[0181] If Rule 2 is also triggered, the system will upgrade to "Pyrolysis Intensification Warning (Advanced)" and may automatically trigger the initial steps of the emergency plan, such as prompting to strengthen the inspection of a certain area or prepare inert injection equipment.
[0182] The interpretability of the warning is reflected in the fact that when a warning is triggered, the system not only displays "high temperature" and "high risk," but also presents an interpretable report simultaneously. For example, the warning pop-up clearly states: "This warning is mainly due to the oxidation principal component (current value: X) entering the acceleration range 0-1, and this feature contributes Y% to the current prediction." This allows safety engineers to fully understand the basis for their decisions and take more targeted measures (such as prioritizing nitrogen injection to isolate oxygen in areas where oxidation reactions are intensified), rather than blindly taking action.
[0183] Because the interpretation results are highly consistent with the oxidation mechanism, it not only improves the scientific credibility of the model predictions, but also enables the framework to "understand the reasons" while "predicting the results", providing methodological support for building a transparent, traceable and transferable intelligent early warning system for coal spontaneous combustion.
[0184] It is worth mentioning that, in order to adapt to situations where downhole monitoring data is missing, noisy, and has sampling time lag, this embodiment supplements the online data processing as follows: real-time gas concentration sequences are time-aligned and outliers are removed, and a sliding time window is used to calculate and smooth the concentration values to reduce the impact of instantaneous fluctuations; when any key gas concentration is missing, short-time interpolation or maintaining the previous value is preferred to fill it in, and rule triggering is paused and sensor abnormality alarm is output when the missing value continues for more than a preset duration; in cases where there is a transport time lag between the monitoring point and the risk source, the input sequence is corrected by comparing the phase relationship between temperature changes and gas changes or by using fixed delay compensation to reduce the risk of false triggering caused by time lag.
[0185] Furthermore, to avoid inconsistencies between the target descriptions of temperature prediction and stage determination, this embodiment limits the learning objective of the temperature prediction model to regression prediction of coal sample temperature, with the target variable being the measured coal temperature obtained from programmed heating experiments or on-site monitoring. The coal oxidation development stage and risk level are not directly output by the model, but are obtained through joint determination of the model input features and output results by risk judgment rules. Therefore, the output of the temperature prediction model is a continuous temperature prediction value, and the early warning output is the risk level triggered by the rule base and its corresponding explanatory information, thus ensuring consistency between the model training objective, evaluation indicators, and explanatory analysis objects throughout the entire process.
[0186] In summary, this method embeds interpretability depth into the core generation logic of early warning decision-making. It simulates dynamic environments with high oxygen concentration experiments and constructs a physics-guided feature set. Based on this feature set, a temperature prediction model is trained to verify its generalization ability under various oxygen supply conditions, ensuring that the input data itself contains the differences in oxidation pathways under different oxygen supply conditions. A dual-path interpretability analysis is then performed on the temperature prediction model. The first path quantifies the global contribution of each feature to the prediction result, used to filter out the dominant factors driving the prediction from massive amounts of data, answering the question of which features are key. The second path analyzes the local effect curves of key features and identifies the threshold ranges that cause significant changes in the predicted output, capturing the specific values of these features that trigger a qualitative change in the model's predictive behavior, i.e., finding the critical point of risk state transition. The combination of these two path analyses is equivalent to simultaneously grasping the main contradictions of the dynamic process and the critical conditions for its outbreak. Finally, the global contribution level is correlated with the threshold range to generate risk criterion rules for determining the development stage of coal oxidation. These rules are then applied to the analysis of real-time monitoring data, enabling early warning decisions to be directly based on the synchronous identification of key turning points in the dynamic process of coal oxidation. This solves the problem of the disconnect between static model interpretation and dynamic disaster evolution, and realizes the leap from black-box speculation to transparent insight in early warning, providing visualized mechanistic support for the coal oxidation-thermal cracking process.
[0187] Furthermore, by introducing specific numerical threshold ranges based on cumulative local effect analysis, the abstract concept of "significant change in predicted output" is transformed into a clear and unambiguous physical critical point that can be directly used for engineering decision-making. This not only solidifies the model interpretation into precise criteria such as the zero-to-one interval of the principal oxidation component, but also, by aligning the data-driven inflection point with the classic stage division theory of coal oxidation, provides the entire early warning system with objective, verifiable action thresholds that do not rely on expert subjective experience. This allows the output of sophisticated machine learning models to be seamlessly embedded into existing mine safety operating procedures, solving the trust and execution problems caused by ambiguous decision-making criteria when implementing intelligent early warning systems, and ensuring the consistency and timeliness of early warning actions.
[0188] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the aforementioned scope.
[0189] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for early warning of spontaneous combustion of coal based on interpretable artificial intelligence, characterized in that, include: Experimental data on the oxidation process of coal samples under different oxygen supply conditions were obtained, and a feature set for characterizing the oxidation state was constructed based on the experimental data. The temperature prediction model is trained based on the feature set, and the generalization ability of the temperature prediction model under various oxygen supply conditions is verified. The temperature prediction model includes a CatBoost gradient boosting tree model and a support vector regression model with significant structural differences. The generalization ability of the temperature prediction model under various oxygen supply conditions is verified by using a leave-one oxygen concentration extrapolation verification strategy. A dual-path interpretability analysis is performed on the temperature prediction model. The first interpretation path is used to quantify the global contribution of each feature in the feature set to the prediction result, and the second interpretation path is used to analyze the local effect curves of key features in the feature set and identify the threshold intervals that cause significant changes in the prediction output. The second interpretation path employs the cumulative local effect method, which calculates the conditional expectation changes of the model's predicted output for key features in the feature set within their different value ranges, integrates and accumulates these local changes, and plots a cumulative local effect curve; the threshold interval is determined by identifying continuous segments on the cumulative local effect curve where the absolute value of the slope exceeds a preset sensitivity threshold. By integrating the results of the dual-path interpretability analysis, the global contribution level is correlated with the threshold range to generate risk criterion rules for determining the development stage of coal oxidation; After performing a dual-path interpretability analysis on the temperature prediction model, the method further includes: performing the dual-path interpretability analysis on the CatBoost gradient boosting tree model and the support vector regression model respectively; comparing the consistency between the contribution direction of the key features obtained by the two models through the dual-path analysis and the threshold interval; when the two models are consistent in the dominant contribution direction of the key features and the threshold interval, it is confirmed that the risk criterion rule generated based on this has algorithm independence and physical transferability; Based on the confirmed risk criterion rules, real-time monitoring data is analyzed to determine the stage of coal oxidation development and risk level, thereby achieving early warning.
2. The coal spontaneous combustion early warning method based on interpretable artificial intelligence according to claim 1, characterized in that, The method for obtaining experimental data on the oxidation process of coal samples under different oxygen supply conditions includes: Gas concentration data of the coal sample were obtained through a programmed heating experiment under conditions of oxygen concentrations of 21%, 16%, 11%, 8%, and 6%, respectively. The gas concentration data included at least the concentration data of carbon monoxide, carbon dioxide, methane, ethylene, and ethane.
3. The coal spontaneous combustion early warning method based on interpretable artificial intelligence according to claim 2, characterized in that, The method for constructing a feature set to characterize oxidation states includes: First principal component analysis was performed on the concentration data of carbon monoxide and carbon dioxide, and the first principal component was extracted as the oxidation principal component. Second principal component analysis was performed on the concentration data of methane, ethane, and ethylene, and the first principal component was extracted as the hydrocarbon principal component. Calculate the characteristics of gas concentration ratios; The feature set is composed of the oxidizing principal component, the hydrocarbon principal component, the gas concentration ratio feature, and the oxygen concentration.
4. The coal spontaneous combustion early warning method based on interpretable artificial intelligence according to claim 1, characterized in that, The first interpretation path adopts the Shapley additivity interpretation method, which calculates the expected marginal contribution of each feature in all possible combinations of feature subsets in the feature set, obtains the Shapley value of the feature, and quantifies the global contribution of each feature by the distribution of Shapley values of all samples.
5. The coal spontaneous combustion early warning method based on interpretable artificial intelligence according to claim 4, characterized in that, The method for fusing the results of the dual-path interpretability analysis includes: The global contribution of each feature output by the Shapley additivity interpretation method is correlated and mapped with the threshold range of key features output by the cumulative local effects method.
6. The coal spontaneous combustion early warning method based on interpretable artificial intelligence according to claim 5, characterized in that, The method for generating risk criterion rules for determining the development stage of coal oxidation includes: When the value of the principal oxidation component in the feature set enters the range of 0 to 1, it is determined that coal oxidation has entered the accelerated stage.
7. The coal spontaneous combustion early warning method based on interpretable artificial intelligence according to claim 5, characterized in that, The risk criterion rules for determining the development stage of coal oxidation include: when the principal hydrocarbon component value in the feature set falls within the range of 0 to 2, and / or the gas concentration ratio feature... When the value falls within the range of 5 to 10, it is determined that the coal oxidation has entered the accelerated pyrolysis stage.
Citation Information
Patent Citations
A method for classifying and predicting spontaneous combustion of coal
CN109184800B
