An intelligent classification and explainability analysis method for engineering rock mass

By combining multi-source index quantification with the Bayesian optimization extreme gradient boosting model and the Shapley addition interpretation mechanism, the problems of low evaluation efficiency, insufficient accuracy and opaque results in rock mass classification technology are solved, realizing efficient and reliable rock mass quality classification, which is applicable to underground engineering such as deep buried long tunnels and mine roadways.

CN123138902APending Publication Date: 2026-11-20CHANGJIANG RIVER SCI RES INST CHANGJIANG WATER RESOURCES COMMISSION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611115138.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-27
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing rock mass classification technologies cannot simultaneously balance evaluation efficiency, classification accuracy, and result interpretability. Traditional methods are difficult to obtain indicators and have long cycles, while intelligent classification models lack transparency in their decision-making process, making it difficult to meet the needs of rapid and reliable evaluation of underground engineering under complex geological conditions.

Method used

A multi-source field index quantification system was adopted, combined with the Bayesian optimized extreme gradient boosting classification model and the Shapley addition method interpretation mechanism, to construct an intelligent rock mass classification database. The classification model was constructed through the extreme gradient boosting algorithm, and the Shapley addition method was used for interpretability analysis to quantify the contribution of feature factors to the classification results.

Benefits of technology

It significantly improves the efficiency and reliability of on-site implementation of rock mass quality assessment, adapts to the needs of rapid classification in engineering sites, enhances the generalization ability and robustness of the model in complex geological scenarios, and provides traceability and interpretability of classification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138902A_ABST
    Figure CN123138902A_ABST
Patent Text Reader

Abstract

The present application belongs to the field of engineering rock mass quality classification and intelligent evaluation, and discloses an engineering rock mass intelligent classification and explainability analysis method. The method collects engineering rock mass field multi-source indexes and completes quantitative processing, divides data sets after data preprocessing, correlation analysis and feature screening, uses a synthetic minority over-sampling technique to solve the training set sample imbalance problem, constructs an extreme gradient boosting classification model optimized by Bayesian and K-fold cross-validation, compares and screens out the optimal classification model, and finally uses the Shapley additive explanation method to carry out global and local double-layer explainability analysis, and quantifies the contribution degree of each feature to the classification result. The present application avoids the strong dependence of traditional BQ classification on indoor rock mechanics test through the coupling of multi-source field index quantitative system, optimized classification model and double-layer explanation mechanism, reduces the evaluation period and cost, and has good practical value and application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of engineering rock mass quality classification and intelligent evaluation technology, specifically to an intelligent classification and interpretable analysis method for engineering rock mass. Background Technology

[0002] Rock mass quality classification is a core foundational task for underground engineering support design, construction risk management, and long-term stability evaluation. With the continuous expansion of the scale of deep-buried long tunnels, mine roadways, and other underground rock engineering projects in my country, and the increasing complexity of engineering geological conditions, accurate and efficient rock mass quality assessment directly affects the construction cost, construction progress, and operational safety of the project.

[0003] Currently, the Black-Scholes (BQ) method is widely used for rock mass quality classification in domestic engineering projects. This method integrates quantitative mechanical indicators with qualitative geological characteristics, possessing strong universality and engineering applicability. However, its core calculation parameters largely rely on indoor rock mechanics tests, making it difficult and time-consuming to obtain field evaluation indicators, thus failing to meet the needs of rapid classification in engineering projects. Meanwhile, existing machine learning-based intelligent rock mass classification methods, while improving classification efficiency through data modeling, generally focus on enhancing prediction accuracy. These models have complex internal structures and lack interpretable mechanisms, resulting in a "black box" state in the classification decision-making process. Engineers cannot clearly understand the basis for the classification results, leading to insufficient reliability of intelligent classification results and hindering their widespread application in practical engineering.

[0004] In summary, existing rock mass classification technologies cannot simultaneously balance evaluation efficiency, classification accuracy, and result interpretability. Traditional standard methods suffer from difficulties in obtaining indicators and low evaluation efficiency, while existing intelligent classification models have shortcomings such as opaque decision-making processes and insufficient reliability of results, making it difficult to support rapid and reliable evaluation of rock mass quality in underground engineering under complex geological conditions. Summary of the Invention

[0005] To address the above technical problems, this invention provides a method for intelligent classification and interpretability analysis of engineering rock masses, the method comprising the following steps: S1. Collect multi-source index data of the engineering rock mass on site and complete the quantitative processing to calculate the rock mass quality level and construct a rock mass intelligent classification database. S2. Based on the intelligent rock mass classification database, data preprocessing and correlation analysis are performed. After screening feature factors, the training set and test set are divided. The training samples are balanced by the synthetic minority class oversampling algorithm, and the synthetic training set samples are verified. S3. Construct a classification model based on the extreme gradient boosting algorithm based on the training set, use the Bayesian optimization algorithm to optimize hyperparameters, and combine K-fold cross-validation to improve the model's generalization ability. S4. Evaluate the performance of the trained classification model based on the test set, simultaneously construct multiple comparative classification models and adopt a unified optimization and verification strategy to select the rock mass intelligent classification model with the best overall performance. S5. Based on the optimal intelligent rock mass classification model in step S4, the Shapley method is used to conduct global and local interpretability analysis and quantify the contribution of each characteristic factor to the classification results.

[0006] As a further improvement of the present invention, step S1 specifically includes the following steps: S11. Obtain four qualitative geological indicators on-site: rock mass structure, rock hardness, rock weathering degree, and rock mass integrity. Convert the qualitative indicators into corresponding quantitative values ​​according to the relevant specifications for engineering rock mass classification and exploration. S12. Obtain the deformation modulus and elastic modulus of the rock mass through on-site drilling elastic modulus test, calculate the rock mass integrity index and saturated uniaxial compressive strength by combining acoustic wave test and point load test, and calculate the rock mass quality level as the grading label by BQ grading method; S13. Using six indicators—quantified rock mass structure, rock hardness, rock weathering degree, rock mass integrity, deformation modulus, and elastic modulus—as input features and the corresponding rock mass quality level as output, construct an intelligent rock mass classification database.

[0007] As a further improvement of the present invention, in step S12, the rock mass quality level is calculated using the BQ method, and the calculation formula is as follows: In the formula, The saturated uniaxial compressive strength of the rock mass. The rock mass integrity index; The rock mass integrity index is calculated using the elastic longitudinal wave velocity of the rock mass and the elastic longitudinal wave velocity of the rock obtained from acoustic testing. The calculation formula is as follows: In the formula, The elastic longitudinal wave velocity of the rock mass. The elastic longitudinal wave velocity of the rock; The saturated uniaxial compressive strength is obtained by converting the point load strength index, which is then corrected by a size correction factor after calculation of the failure load. The deformation modulus is taken from the low-pressure segment increment of the pressure deformation curve of the borehole elastic modulus test, and the elastic modulus is taken from the high-pressure linear segment increment of the pressure deformation curve.

[0008] As a further improvement of the present invention, the specific process of step S2 is as follows: S21. Clean the original data in the database and remove outliers and duplicate records; S22. The Pearson correlation coefficient method is used to analyze the linear correlation between features and between features and hierarchical labels, and redundant or low-correlation feature factors are eliminated to improve the model's computational efficiency and stability. S23. The filtered dataset is randomly divided into training set and test set according to a preset ratio. The synthetic minority class oversampling algorithm is used to solve the problem of imbalanced training set samples. KS test, MWU test and independent samples t test are performed on each category and feature in the synthetic training set. The training set is used for model learning and the test set is used for model performance evaluation.

[0009] As a further improvement of the present invention, the specific process of step S3 is as follows: S31. Construct a classification model based on the extreme gradient boosting algorithm, with the filtered rock mass features as input and the rock mass quality level as output; S32. Use the Bayesian optimization algorithm to perform global optimization in the hyperparameter space to obtain the optimal hyperparameter combination; S33. Introduce a K-fold cross-validation mechanism to split the training set into a training subset and a validation subset. Use the average performance of cross-validation as a constraint to suppress model overfitting and improve the model's generalization ability.

[0010] As a further improvement of the present invention, the specific process of step S4 is as follows: S41. Input the training set into the hyperparameter-optimized extreme gradient boosting classification model to complete the training; S42. After training, input the test set to obtain the hierarchical prediction results. Use accuracy, macro-average precision, macro-average recall, macro-average F1 score, macro-average ROC curve and area under the curve to comprehensively evaluate the classification performance of the model. S43. Simultaneously construct multiple comparative classification models and adopt the same Bayesian optimization and K-fold cross-validation strategy, and select the model with the best comprehensive performance as the final intelligent classification model for engineering rock mass; the comparative classification models include artificial neural networks, K-nearest neighbor algorithm, random forest, support vector machine, decision tree, and lightweight gradient boosting model.

[0011] As a further improvement of the present invention, the specific process of step S5 is as follows: S51. Based on the Shapley method of interpretation, conduct a global interpretability analysis on the optimal classification model to demonstrate the overall influence and operational patterns of each characteristic factor on the classification results. S52. Conduct local interpretability analysis, break down the contribution direction and amount of each feature value to the hierarchical decision for a single sample, and present the formation process of the single sample hierarchical result.

[0012] As a further improvement of the present invention, in step S5, the contribution of each feature to the classification result is quantified by calculating the SHAP value of each feature, and the model output value is the linear superposition of the baseline prediction value and the SHAP values ​​of all features. A positive SHAP value indicates that the feature has a positive promoting effect on the classification result, while a negative SHAP value indicates that the feature has a negative inhibiting effect on the classification result. The larger the absolute value of the SHAP value, the greater the influence of the feature on the classification result. Global interpretability analysis outputs a feature importance ranking plot, a feature scatter plot, and a feature dependency plot, while local interpretability analysis outputs a waterfall plot.

[0013] Based on this, the present invention also provides an intelligent classification and interpretability analysis system for engineering rock masses, the system being used to implement the above-mentioned method, comprising: The data acquisition and quantification module is used to collect multi-source index data of engineering rock mass on site, complete the quantification of qualitative indexes and the calculation of rock mass quality level, and build an intelligent rock mass classification database. The dataset construction module is used to clean the database data, perform correlation analysis and feature selection, divide the training set and test set, use the synthetic minority class oversampling algorithm to solve the problem of imbalanced training set samples, and test each category and feature in the synthetic training set. The model building and optimization module is used to build an extreme gradient boosting classification model, and completes hyperparameter optimization and model generalization improvement through Bayesian optimization and K-fold cross-validation. The model training and evaluation module is used to complete model training, evaluate model performance through multi-dimensional indicators, and select the best graded model. The interpretability analysis module is used to perform global and local interpretability analysis on the optimal model based on the Shapley method, and output the contribution analysis results of each feature factor.

[0014] Based on this, the present invention also provides a computer-readable storage medium storing a computer program that, when executed, implements the method described above.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention employs an intelligent engineering rock mass classification architecture that couples a multi-source field index quantification system, a Bayesian optimized extreme gradient boosting classification model, and a Shapley addition method dual-layer interpretation mechanism. It selects six readily available geological and mechanical indicators, such as rock mass structure and rock hardness, as input features. Based on current standards, it completes the quantitative mapping of qualitative indicators, avoiding the strong dependence of traditional BQ classification methods on indoor rock mechanics tests. This significantly reduces the data acquisition cycle and implementation cost of rock mass quality evaluation, adapting to the application needs of rapid classification in engineering fields. Based on this, a Bayesian-optimized extreme gradient boosting classification model is constructed. The extreme gradient boosting classification model, which combines Yess hyperparameter optimization with K-fold cross-validation, can deeply explore the nonlinear coupling relationship between multi-dimensional rock mass characteristics and quality levels. While improving the accuracy of classification, it effectively suppresses the risk of model overfitting and enhances the model's generalization ability and robustness in complex geological scenarios. The accompanying Shapley addition interpretation mechanism establishes a global and local two-layer interpretability analysis path, which can quantitatively characterize the contribution and direction of each feature factor to the classification results, making the classification results traceable and interpretable, and significantly improving the engineering credibility of intelligent classification conclusions. Attached Figure Description

[0016] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating the overall process of the method according to an embodiment of the present invention. Figure 2 This is a schematic diagram illustrating the technical framework and module composition of an embodiment of the present invention; Figure 3 This is a confusion matrix diagram of the rock mass classification results of the extreme gradient boosting algorithm model in an embodiment of the present invention; Figure 4 This is a waterfall plot for interpreting a single sample of a Class III rock mass based on the SHAP method, as described in an embodiment of the present invention. Figure 5 This is a ranking diagram of the global feature importance of Class III rock mass based on the SHAP method according to an embodiment of the present invention; Figure 6 This is a scatter plot of global features of a Class III rock mass based on the SHAP method, according to an embodiment of the present invention. Figure 7 This is a feature dependency map of a Class III rock mass based on the SHAP method in an embodiment of the present invention. Detailed Implementation

[0018] 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.

[0019] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this disclosure should have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms "first," "second," and similar terms used in the embodiments of this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0020] First, some technical terms used in this invention will be explained: Extreme Gradient Boosting Algorithm: An ensemble learning algorithm based on the Boosting framework. It uses multiple decision trees to iteratively accumulate the fitting residuals, achieving high classification prediction accuracy and computational efficiency. It can effectively handle nonlinear mapping relationships between features.

[0021] Bayesian optimization: A global hyperparameter optimization method based on Bayes' theorem. By constructing a probabilistic surrogate model of the objective function and selecting the next evaluation point based on the acquisition function, the optimal hyperparameter combination can be quickly searched with fewer iterations.

[0022] K-fold cross-validation: A method for verifying the generalization ability of a model. The dataset is randomly divided into K subsets. One subset is used as the validation set and the rest are used as the training set to complete K training and validation cycles. The average performance is used to evaluate the model performance, which can effectively reduce the risk of overfitting.

[0023] Shapley addition interpretation: A game theory-based model interpretability analysis method that quantifies the contribution of each feature to the model's prediction results by calculating the Shapley value of each feature, revealing the model's decision-making logic from both global and local perspectives.

[0024] Pearson correlation coefficient: a statistical indicator used to measure the degree of linear correlation between two variables. The value ranges from [-1, 1]. The larger the absolute value, the stronger the linear correlation between the variables.

[0025] Example 1 Please see Figures 1-7 This invention provides an intelligent classification and interpretability analysis method for engineering rock masses, applicable to the rapid evaluation of rock mass quality in various underground engineering projects such as deep-buried long tunnels and mine roadways. Based on the BQ classification system of the "Engineering Rock Mass Classification Standard" (GB / T50218-2014), this method selects six readily available field-obtainable rock mass indicators as input features, combining an intelligent classification model and an interpretability analysis framework to achieve efficient, accurate, and reliable intelligent classification of rock mass quality.

[0026] First, the input features and output labels of this method are defined: six readily obtainable field indicators are selected as input features, namely rock mass structure, rock hardness, rock weathering degree, rock mass integrity, deformation modulus, and elastic modulus. The rock mass quality level calculated by the BQ method is used as the output grading label. The six input features cover the geological structure and mechanical properties of the rock mass, all of which can be obtained through field investigation and in-situ testing, without relying on a large number of laboratory rock mechanics tests.

[0027] The method of the present invention specifically includes the following steps: S1. Collect multi-source index data of the engineering rock mass on site and complete the quantitative processing to calculate the rock mass quality level and construct an intelligent rock mass classification database.

[0028] The specific implementation process is as follows: S11. Obtain four qualitative geological indicators on-site: rock mass structure, rock hardness, rock weathering degree, and rock mass integrity. Convert the qualitative indicators into corresponding quantitative values ​​according to the relevant specifications for engineering rock mass classification and exploration.

[0029] The integrity and structural type of rock mass are classified according to the degree of development of structural planes and the degree of bonding of main structural planes in the "Engineering Rock Mass Classification Standard" (GB / T50218-2014). The integrity of rock mass is divided into five levels: intact, relatively intact, relatively broken, broken, and extremely broken. The corresponding rock mass structural types are integral structure, massive structure, mosaic fragmented structure, fragmented structure, and granular structure, respectively. The quantitative values ​​are 0.80, 0.65, 0.55, 0.25, and 0.15, respectively, as shown in Table 1.

[0030] Table 1 According to the qualitative identification standard of the "Engineering Rock Mass Classification Standard" (GB / T50218-2014), the rock hardness is divided into five levels: hard rock, relatively hard rock, relatively soft rock, soft rock, and extremely soft rock, with corresponding quantitative values ​​of 80, 45, 20, 10, and 5, as shown in Table 2.

[0031] Table 2 The degree of rock weathering is classified into five levels according to the weathering characteristics of the "Engineering Rock Mass Classification Standard" (GB / T50218-2014): unweathered, slightly weathered, moderately weathered, strongly weathered, and completely weathered. The corresponding quantitative values ​​of wave velocity ratio according to the "Code for Geotechnical Engineering Investigation" (GB50021-2001) are 0.95, 0.85, 0.6, 0.5, and 0.3, as shown in Table 3.

[0032] Table 3 S12. Obtain the deformation modulus and elastic modulus of the rock mass through on-site drilling elastic modulus test, calculate the rock mass integrity index and saturated uniaxial compressive strength by combining acoustic wave test and point load test, and calculate the rock mass quality level as the grading label by BQ grading method.

[0033] The deformation modulus and elastic modulus are calculated from the pressure and deformation curves obtained by borehole elastic modulus tests. The calculation formula is as follows: in: To account for the three-dimensional influence correction factor, This is the correction factor for the pressure value of the piston force gauge. The diameter of the borehole. For radial deformation, This is related to the Poisson's ratio of the rock mass and the width of the bearing plate or the size of the circumferential angle when in contact with the borehole wall. This represents the pressure increment. Typically, when calculating the elastic modulus of borehole rock based on the pressure-deformation curve, the pressure increment is... and radial deformation Take the incremental value of the high-pressure linear segment; when calculating the deformation modulus, the pressure increment... and radial deformation Take the change value of the low-pressure section.

[0034] Rock mass quality grade: The rock mass quality index is calculated according to the BQ method, and the calculation formula is as follows: in: This is the rock mass integrity index. It represents the saturated uniaxial compressive strength of the rock mass.

[0035] To more conveniently obtain the saturated uniaxial compressive strength of rock mass, the point load strength index can be used. The conversion formula is as follows: Representative rock samples were taken from the site, and point load tests were conducted to obtain the load at which the rock fractured. The equivalent diameter of the sample was calculated based on its dimensions. The point load strength of the sample was calculated using the load at fracture as a reference. The point load strength was then corrected, and the corrected point load strength index was calculated, thus obtaining the complete rock strength index. The uncorrected point load strength index is as follows: in: The uncorrected point load strength index. To break the load, This is the equivalent core diameter; The distance between loading points The minimum average width of the cross-section at the loading point.

[0036] Point load strength index correction: in: This is a size correction factor. To correct the index, a value of 0.40 to 0.45 can be used.

[0037] Simultaneously, by drilling core samples, longitudinal and transverse waves of the rock are obtained using a rock acoustic wave tester, and the integrity of the rock mass is calculated using the following formula.

[0038] in: The elastic longitudinal wave velocity of the rock mass. The elastic longitudinal wave velocity of the rock.

[0039] Finally, the calculated rock mass quality index (BQ) is divided according to Table 4 below: Table 4 S13. Using six indicators—quantified rock mass structure, rock hardness, rock weathering degree, rock mass integrity, deformation modulus, and elastic modulus—as input features and the corresponding rock mass quality level as output, construct an intelligent rock mass classification database.

[0040] During the construction process, the raw data collected on site is cleaned, including handling outliers and duplicates, to ensure that the input features correspond one-to-one with the output labels, forming a standardized intelligent rock mass classification dataset.

[0041] S2. Based on the database obtained in S1, perform data preprocessing and correlation analysis, screen feature factors, divide the training set and test set, balance the training samples through a synthetic minority oversampling algorithm, and verify the synthetic training set samples.

[0042] The specific implementation process is as follows: S21. Clean the original data in the database, remove outliers and duplicate records, and ensure the quality of the dataset and the consistency of the samples.

[0043] S22. The Pearson correlation coefficient method is used to analyze the linear correlation between features and between features and hierarchical labels, and redundant or low-correlation feature factors are eliminated to improve the model's computational efficiency and stability.

[0044] The Pearson correlation method is used to perform correlation analysis on the indicators in the database, removing factors with low correlation and retaining feature factors with high correlation, thereby improving the prediction accuracy and computation speed of the model. The correlation formula is analyzed as follows: In the formula: It is the Pearson correlation coefficient; and It means selecting any two of the parameters; and the covariance between the two variables; , and They are , and Expectations; and and yes and The standard deviation.

[0045] S23. The selected dataset is randomly divided into training and test sets in a 7:3 ratio. The synthetic minority class oversampling algorithm is used to solve the imbalance problem of the training set samples. KS (Kolmogorov-Smirnov) test, MWU (Mann-Whitney U) test and independent samples t test are performed on each category and feature. The training set is used for model learning and the test set is used for model performance evaluation.

[0046] S3. Based on the training set obtained in S2, construct a classification model based on the extreme gradient boosting algorithm, use the Bayesian optimization algorithm to optimize hyperparameters, and combine K-fold cross-validation to improve the model's generalization ability.

[0047] The specific implementation process is as follows: S31. Construct a classification model based on the extreme gradient boosting algorithm, using the selected rock mass features as input and the rock mass quality level as output. The extreme gradient boosting algorithm belongs to the Boosting ensemble algorithm, and its structure consists of multiple base decision trees. The training process adopts a forward stepwise method to optimize step by step. In each iteration, the residual between the existing model prediction results and the true values ​​is corrected by building a new decision tree, which can effectively fit the complex nonlinear relationship between rock mass features and quality level.

[0048] S32. Bayesian optimization algorithm is used to perform global optimization in the hyperparameter space to obtain the optimal hyperparameter combination. Bayesian optimization constructs a posterior probability model of the objective function based on Bayes' theorem. By collecting data to guide the selection of the next hyperparameter combination, it can efficiently search for the globally optimal hyperparameters in a relatively small number of iterations, avoiding the one-sidedness and randomness of manual parameter tuning.

[0049] S33. Introduce a K-fold cross-validation mechanism, split the training set into K non-overlapping subsets, select one subset as the validation subset and the remaining K-1 subsets as the training subsets, complete K training and validation cycles, and use the average performance of K validation cycles as the model evaluation basis to suppress model overfitting and improve the model's generalization ability in different geological scenarios.

[0050] S4. Based on the test set obtained in S2, the performance of the trained classification model is evaluated. Multiple comparative classification models are constructed simultaneously, and a unified optimization and verification strategy is adopted to select the rock mass intelligent classification model with the best overall performance.

[0051] The specific implementation process is as follows: S41. Input the training set into the hyperparameter-optimized extreme gradient boosting classification model to complete the training; S42. After training, input the test set to obtain the classification prediction results. Use accuracy, macro-average precision, macro-average recall, macro-average F1 score, macro-average ROC curve and area under the curve (AUC) to comprehensively evaluate the classification performance of the model.

[0052] Accuracy represents the proportion of correctly predicted samples out of the total sample, and is calculated using the following formula: Precision represents the proportion of samples that were predicted as positive but were actually positive. Macro-precision is the arithmetic mean of the precision for each class in a multi-class classification model, calculated using the following formula: Recall represents the proportion of samples that were correctly predicted as positive out of those that were actually positive. Macro-recall is calculated by first calculating the recall for each class in a multi-class classification problem, and then taking the arithmetic mean. The formula is as follows: The F1 score is the harmonic mean of precision and recall, balancing the performance of both. The macro average F1 score is the arithmetic mean of the F1 scores for each class in a multi-class classification problem, calculated as follows: In the formula, The total number of categories, For a true example, that is, the first Positive samples were correctly predicted as positive. This is a false positive example, that is, the first... Negative samples were incorrectly predicted as positive samples; For a true counterexample, i.e. the first Negative samples were correctly predicted as negative samples; This is a false counterexample, that is, the first one. Positive samples were incorrectly predicted as negative samples.

[0053] The macro-average ROC curve reflects the model's ability to distinguish different grades of rock mass by plotting the true positive rate and false positive rate under different classification thresholds. The formula for calculating the true positive rate is: The formula for calculating the false positive rate is: The area under the macro average ROC curve, also known as the macro average AUC value, ranges from 0 to 1. A larger value indicates better overall classification performance of the model.

[0054] S43. Simultaneously construct multiple comparative classification models and adopt the same Bayesian optimization and K-fold cross-validation strategy. The comparative models include artificial neural networks, K-nearest neighbors algorithm, random forest, support vector machine, decision tree, and lightweight gradient boosting model. Through horizontal comparison of multiple models, select the model with the best comprehensive performance as the final intelligent classification model for engineering rock mass.

[0055] S5. Based on the optimal grading model obtained in S4, the Shapley additive interpretation method is used to conduct global and local interpretability analysis, quantifying the contribution of each feature factor to the grading results. The specific implementation process is as follows: S51. Based on the Shapley method of interpretation, a global interpretability analysis is conducted on the optimal grading model to demonstrate the overall influence and operational patterns of each characteristic factor on the grading results.

[0056] S52. Conduct local interpretability analysis, break down the contribution direction and amount of each feature value to the hierarchical decision for a single sample, and present the formation process of the single sample hierarchical result.

[0057] The above interpretability analysis quantifies the contribution of each feature to the classification result by calculating the SHAP value of each feature. The model output is a linear sum of the baseline prediction and the SHAP values ​​of all features. The SHAP value of the i-th feature is calculated based on game theory, using the following formula: in, Indicates the first The contribution of each feature; Represents the set of all features; A subset of the given predictable features; and Representing whether or not the first The model results for each feature. SHAP approximates complex models by stacking multiple linear models, thus reducing the complexity of models containing features. The model output for each feature is represented as a linear weighted sum of the input variables: in, Prediction results without eigenvalues; It is the first The SHAP value of each feature; Indicates when the first The value is 1 when a feature is selected, and 0 otherwise.

[0058] A positive SHAP value indicates that the feature has a positive impact on the prediction result; a negative value indicates a negative impact; the larger the absolute value, the more significant the impact of the feature on the prediction result.

[0059] By calculating the average absolute SHAP value of each feature, the importance of the features is ranked. Feature importance ranking charts and feature scatter plots are drawn to reveal the contribution and direction of each rock mass index to the graded prediction results from an overall perspective, reflecting the characteristic response law of the model in rock mass quality evaluation.

[0060] The global interpretability analysis outputs a feature importance ranking plot, a feature scatter plot, and a feature dependency plot. By calculating the average absolute SHAP value of each feature, the feature importance ranking is obtained, revealing the contribution and direction of each rock mass index to the graded prediction results from an overall perspective. The local interpretability analysis outputs a waterfall plot, which decomposes the contribution of the prediction results for a single engineering section or tunnel segment, explaining the specific role of each influencing factor in the prediction at that location.

[0061] It should be noted that the extreme gradient boosting algorithm, Bayesian optimization method, K-fold cross-validation, Pearson correlation coefficient analysis, and Shapley addition interpretation method used in this invention are all existing technologies known in the field. The innovation of this invention lies in addressing the engineering problems of difficulty in obtaining evaluation indicators for rock mass quality grading and insufficient interpretability of intelligent grading models. It establishes an intelligent grading framework that combines the extreme gradient boosting grading model with the Shapley addition interpretation mechanism, using six easily obtainable rock mass quantitative indicators as input and the BQ rock mass quality level as output. This organically integrates the above-mentioned existing technologies, thereby significantly improving the efficiency of on-site implementation and the reliability of results in rock mass quality evaluation while ensuring grading accuracy.

[0062] This invention employs an intelligent engineering rock mass classification architecture that couples a multi-source field index quantification system, a Bayesian optimized extreme gradient boosting classification model, and a Shapley addition method dual-layer interpretation mechanism. It selects six readily available geological and mechanical indicators, such as rock mass structure and rock hardness, as input features. Based on current standards, it completes the quantitative mapping of qualitative indicators, avoiding the strong dependence of traditional BQ classification methods on indoor rock mechanics tests. This significantly reduces the data acquisition cycle and implementation cost of rock mass quality evaluation, adapting to the application needs of rapid classification in engineering fields. Based on this, a Bayesian-optimized extreme gradient boosting classification model is constructed. The extreme gradient boosting classification model, which combines Yess hyperparameter optimization with K-fold cross-validation, can deeply explore the nonlinear coupling relationship between multi-dimensional rock mass characteristics and quality levels. While improving the accuracy of classification, it effectively suppresses the risk of model overfitting and enhances the model's generalization ability and robustness in complex geological scenarios. The accompanying Shapley addition interpretation mechanism establishes a global and local two-layer interpretability analysis path, which can quantitatively characterize the contribution and direction of each feature factor to the classification results, making the classification results traceable and interpretable, and significantly improving the engineering credibility of intelligent classification conclusions.

[0063] It should be noted that the method of this disclosure embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this disclosure embodiment, and the multiple devices will interact with each other to complete the method described.

[0064] Example 2 Based on the same inventive concept, corresponding to any of the above embodiments, this disclosure also provides an intelligent classification and interpretability analysis system for engineering rock mass, which includes: a data acquisition and quantification module, used to acquire multi-source index data of engineering rock mass on site, complete qualitative index quantification and rock mass quality level calculation, and construct an intelligent rock mass classification database; The dataset construction module is used to clean the database data, perform correlation analysis and feature selection, divide the training set and test set, use the synthetic minority class oversampling algorithm to solve the problem of imbalanced training set samples, and perform KS test, MWU test and independent samples t test on each category and feature. The model building and optimization module is used to build an extreme gradient boosting classification model, and completes hyperparameter optimization and model generalization improvement through Bayesian optimization and K-fold cross-validation. The model training and evaluation module is used to complete model training, evaluate model performance through multi-dimensional indicators, and select the best graded model. The interpretability analysis module is used to perform global and local interpretability analysis on the optimal model based on the Shapley method, and output the contribution analysis results of each feature factor.

[0065] The system described in the above embodiments is used to implement the corresponding intelligent classification and interpretability analysis method for engineering rock mass in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0066] It should be noted that the aforementioned intelligent classification and interpretability analysis system for engineering rock masses is embodied in the form of functional units. The term "module" here can be implemented in software and / or hardware, without specific limitations.

[0067] Example 3 Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the intelligent classification and interpretability analysis method for engineering rock mass as described in any of the above embodiments.

[0068] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0069] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the intelligent classification and interpretability analysis method for engineering rock mass as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0070] This disclosure is intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for intelligent classification and interpretability analysis of engineering rock masses, characterized in that, The method includes the following steps: S1. Collect multi-source index data of the engineering rock mass on site and complete the quantitative processing to calculate the rock mass quality level and construct a rock mass intelligent classification database. S2. Based on the intelligent rock mass classification database, data preprocessing and correlation analysis are performed. After screening feature factors, the training set and test set are divided. The training samples are balanced by the synthetic minority class oversampling algorithm, and the synthetic training set samples are verified. S3. Construct a classification model based on the extreme gradient boosting algorithm based on the training set, use the Bayesian optimization algorithm to optimize hyperparameters, and combine K-fold cross-validation to improve the model's generalization ability. S4. Evaluate the performance of the trained classification model based on the test set, simultaneously construct multiple comparative classification models and adopt a unified optimization and verification strategy to select the rock mass intelligent classification model with the best overall performance. S5. Based on the optimal intelligent rock mass classification model in step S4, the Shapley method is used to conduct global and local interpretability analysis and quantify the contribution of each characteristic factor to the classification results.

2. The method according to claim 1, characterized in that, Step S1 specifically includes the following steps: S11. Obtain four qualitative geological indicators on-site: rock mass structure, rock hardness, rock weathering degree, and rock mass integrity. Convert the qualitative indicators into corresponding quantitative values ​​according to the relevant specifications for engineering rock mass classification and exploration. S12. Obtain the deformation modulus and elastic modulus of the rock mass through on-site drilling elastic modulus test, calculate the rock mass integrity index and saturated uniaxial compressive strength by combining acoustic wave test and point load test, and calculate the rock mass quality level as the grading label by BQ grading method; S13. Using six indicators—quantified rock mass structure, rock hardness, rock weathering degree, rock mass integrity, deformation modulus, and elastic modulus—as input features and the corresponding rock mass quality level as output, construct an intelligent rock mass classification database.

3. The method according to claim 2, characterized in that, In step S12, the rock mass quality grade is calculated using the BQ method, and the calculation formula is as follows: In the formula, The saturated uniaxial compressive strength of the rock mass. The rock mass integrity index; The rock mass integrity index is calculated using the elastic longitudinal wave velocity of the rock mass and the elastic longitudinal wave velocity of the rock obtained from acoustic testing. The calculation formula is as follows: In the formula, The elastic longitudinal wave velocity of the rock mass. The elastic longitudinal wave velocity of the rock; The saturated uniaxial compressive strength is obtained by converting the point load strength index, which is then corrected by a size correction factor after calculation of the failure load. The deformation modulus is taken from the low-pressure segment increment of the pressure deformation curve of the borehole elastic modulus test, and the elastic modulus is taken from the high-pressure linear segment increment of the same pressure deformation curve.

4. The method according to claim 1, characterized in that, The specific process of step S2 is as follows: S21. Clean the original data in the database and remove outliers and duplicate records; S22. The Pearson correlation coefficient method is used to analyze the linear correlation between features and between features and hierarchical labels, and redundant or low-correlation feature factors are eliminated to improve the model's computational efficiency and stability. S23. The selected dataset is randomly divided into a training set and a test set according to a preset ratio. The training set is used for model learning, and the test set is used for model performance evaluation. The synthetic minority class oversampling algorithm is used to solve the problem of imbalanced training set samples, and KS test, MWU test and independent samples t test are performed on each category and feature.

5. The method according to claim 1, characterized in that, The specific process of step S3 is as follows: S31. Construct a classification model based on the extreme gradient boosting algorithm, with the filtered rock mass features as input and the rock mass quality level as output; S32. Use the Bayesian optimization algorithm to perform global optimization in the hyperparameter space to obtain the optimal hyperparameter combination; S33. Introduce a K-fold cross-validation mechanism to split the training set into a training subset and a validation subset. Use the average performance of cross-validation as a constraint to suppress model overfitting and improve the model's generalization ability.

6. The method according to claim 1, characterized in that, The specific process of step S4 is as follows: S41. Input the training set into the hyperparameter-optimized extreme gradient boosting classification model to complete the training; S42. After training, input the test set to obtain the hierarchical prediction results. Use accuracy, macro-average precision, macro-average recall, macro-average F1 score, macro-average ROC curve and area under the curve to comprehensively evaluate the classification performance of the model. S43. Simultaneously construct multiple comparative classification models and adopt the same Bayesian optimization and K-fold cross-validation strategy, and select the model with the best comprehensive performance as the final intelligent classification model for engineering rock mass; the comparative classification models include artificial neural networks, K-nearest neighbor algorithm, random forest, support vector machine, decision tree, and lightweight gradient boosting model.

7. The method according to claim 1, characterized in that, The specific process of step S5 is as follows: S51. Based on the Shapley method of interpretation, conduct a global interpretability analysis on the optimal classification model to demonstrate the overall influence and operational patterns of each characteristic factor on the classification results. S52. Conduct local interpretability analysis, break down the contribution direction and amount of each feature value to the hierarchical decision for a single sample, and present the formation process of the single sample hierarchical result.

8. The method according to claim 7, characterized in that, In step S5, the contribution of each feature to the classification result is quantified by calculating the SHAP value of each feature. The model output value is the linear superposition of the baseline prediction value and the SHAP values ​​of all features. A positive SHAP value indicates that the feature has a positive promoting effect on the classification result, while a negative SHAP value indicates that the feature has a negative inhibiting effect on the classification result. The larger the absolute value of the SHAP value, the greater the influence of the feature on the classification result. Global interpretability analysis outputs a feature importance ranking plot, a feature scatter plot, and a feature dependency plot, while local interpretability analysis outputs a waterfall plot.

9. An intelligent classification and interpretability analysis system for engineering rock masses, said system being used to implement the method described in any one of claims 1-8, characterized in that, It includes: The data acquisition and quantification module is used to collect multi-source index data of engineering rock mass on site, complete the quantification of qualitative indexes and the calculation of rock mass quality level, and build an intelligent rock mass classification database. The dataset construction module is used to clean, perform correlation analysis and feature selection on database data, divide the training set and test set, balance the training samples through a synthetic minority class oversampling algorithm, and verify the synthetic training set samples. The model building and optimization module is used to build an extreme gradient boosting classification model, and completes hyperparameter optimization and model generalization improvement through Bayesian optimization and K-fold cross-validation. The model training and evaluation module is used to complete model training, evaluate model performance through multi-dimensional indicators, and select the best graded model. The interpretability analysis module is used to perform global and local interpretability analysis on the optimal model based on the Shapley method, and output the contribution analysis results of each feature factor.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method as described in any one of claims 1 to 8.