A method and system for predicting the compressive strength of improved sand soil stacked with urease-producing bacteria fused with full-grade particle size

By using a stacked ensemble learning method, a multi-heterogeneous base learner model was constructed, which solved the problem of heterogeneous prediction and fusion of full-graded particle size, pore state and calcium carbonate content in urease-producing bacteria-modified sandy soil. This improved the accuracy and reliability of strength prediction and supported engineering optimization.

CN123178798APending Publication Date: 2026-11-27CHINA THREE GORGES UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611502718.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies have not been able to effectively solve the problem of fusing heterogeneous prediction results when inputting information on the full gradation particle size, pore state, and calcium carbonate content in sandy soil improved by urease-producing bacteria, resulting in inaccurate strength prediction.

Method used

A stacked ensemble learning approach is adopted to construct a multi-heterogeneous basis learner model that includes kernel method regression and tree ensemble regression. By using K-fold mutually exclusive subset partitioning and regularized linear meta-learners, the heterogeneous prediction results of full-grade particle size, porosity, and calcium carbonate content are fused to ensure clear sample correspondence.

Benefits of technology

It improves the accuracy and generalization ability of intensity prediction, reduces prediction bias, provides complete gradation information input, ensures the reliability of the model for unknown samples, and quantifies feature contributions through SHAP analysis, supporting engineers to optimize process design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178798A_ABST
    Figure CN123178798A_ABST
Patent Text Reader

Abstract

The application discloses a urease-producing bacteria improved sand soil compression strength stacking integrated prediction method and system fusing full-graded particle sizes, relates to the technical field of improved soil material strength prediction and machine learning. 10 to D 100 Ten characteristic particle sizes are taken as characteristic components for mutual differentiation to form a full-graded particle size vector, and a twelve-dimensional input is formed together with a pore ratio and a calcium carbonate content, so that the morphological differences of each particle size of the grading curve are completely entered into the model; the unconfined compression strength is subjected to logarithmic transformation, a kernel ridge regression, a support vector regression, a gradient boosting regression, an extreme gradient boosting and a random forest heterogeneous base learner are constructed, a meta-feature matrix corresponding to the samples one by one is generated through K-fold external prediction, the strength prediction value is output through ridge regression regularization fusion and inverse transformation, and the contribution explanation of each input component can also be output. The determination coefficient of the test set in the embodiment reaches 0.9056, the root mean square error is reduced by about 9.86% compared to the optimal single model, and the method provides a basis for improved sand soil strength prediction, curing effect evaluation and test scheme screening.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of soil improvement material strength prediction and machine learning technology, specifically to a stacked integrated prediction method and system for compressive strength of sandy soil improved by urease-producing bacteria with full particle size distribution. Background Technology

[0002] Microbial-induced calcium carbonate deposition (MICP) is a biomineralization reinforcement technique: urease produced by urease-producing microorganisms catalyzes the decomposition of urea. The resulting carbonate ions combine with calcium ions in the pore water environment to precipitate calcium carbonate crystals. These crystals deposit at the contact points of sand grains and within the pores, cementing the loose sand grains into a cohesive whole, thereby increasing the soil strength. The unconfined compressive strength (UCS) of the treated sand is a mechanical indicator characterizing the solidification effect and can be used to evaluate the strength of different material states.

[0003] The strength of sand improved by urease-producing bacteria is jointly related to particle composition, pore state, and calcium carbonate deposition. Gradation determines the compositional relationship of particles of different sizes, void ratio describes the proportion of pore volume to soil particle volume, and calcium carbonate content characterizes the quantity level of cementing products. These three types of parameters jointly participate in the characterization of the solidification state of sand, and therefore need to address their nonlinear relationship with strength in the same prediction process.

[0004] Data-driven stacked ensemble learning enhances generalization ability by fusing predictions from multiple heterogeneous base models. Combined with feature interpretation methods, it can quantify the contribution of each input parameter to the prediction, making it suitable for nonlinear strength prediction and evaluation involving multiple coupled factors. However, when applying stacked ensembles to the joint input of sand gradation, porosity, and calcium carbonate content, it is necessary to clarify the data correspondence between each base model and the fusion layer: the fusion input for each training sample should be generated by predictions from base models not involved in fitting that sample, i.e., out-of-place prediction; training, validation, and actual prediction must use consistent parameter definitions and processing rules. Otherwise, the fusion layer may fail to truly learn the generalization prediction relationship of heterogeneous base models due to data leakage. While existing data-driven research has applied ensemble learning and feature interpretation to material strength evaluation, for urease-producing bacteria-modified sand, the problem of fusing heterogeneous prediction results through two-layer training with clear sample correspondence has not yet been solved under the joint input of full gradation particle size information, pore state, and calcium carbonate content. Summary of the Invention

[0005] The technical problem this invention aims to solve is: in predicting the unconfined compressive strength of urease-producing bacteria-modified sandy soil, how to incorporate the full-gradation particle size information, pore state, and calcium carbonate content into the model, and how to achieve the fusion of heterogeneous prediction results through two-layer training with clear sample correspondence. To this end, this invention provides a stacked integrated prediction method and system for the compressive strength of urease-producing bacteria-modified sandy soil, incorporating the full-gradation particle size information.

[0006] To achieve the above-mentioned technical features, the objective of this invention is as follows: The first aspect of this invention provides a stacked integrated prediction method for the compressive strength of sandy soil modified by urease-producing bacteria with all particle sizes, comprising the following steps: Step S1: Obtain historical sample data of sandy soil samples modified by urease-producing bacteria after microbial-induced calcium carbonate deposition treatment; the input parameters for each sample include radial mass of the entire particle size distribution, void ratio e, and calcium carbonate content F. Ca The output parameter is the unconfined compressive strength; the radial mass of the fully graded particles is composed of multiple characteristic particle sizes D. p The feature particle size D is composed of mutually distinguishable feature components. p The particle size is the one-to-one corresponding to the cumulative passing mass percentage p on the particle size distribution curve. Step S2: Preprocess the historical sample data and determine the logarithmic transformation value of the unconfined compressive strength as the training target; construct a stacked ensemble model, which includes multiple heterogeneous base learners and a regularized linear meta-learner; the multiple heterogeneous base learners include a kernel method regression model and a tree ensemble regression model, and each base learner uses the same input feature definition and arrangement order; Step S3: Divide the training samples into K mutually exclusive subsets, where K is an integer not less than 2; for each base learner, use K of these subsets as subsets... Fit one subset and predict the remaining subset until each training sample obtains an out-of-bounds prediction value generated by a base learner that has not used the sample for fitting; concatenate the out-of-bounds prediction values ​​of each base learner according to the sample correspondence to obtain the meta-feature matrix, and use the meta-feature matrix and the corresponding training target to fit a regularized linear meta-learner. Step S4: Fit each base learner using training samples; input the input parameters of the urease-producing bacteria-modified sand to be predicted into each base learner according to the feature order and preprocessing rules during training; input the predicted values ​​obtained by each base learner into the regularized linear meta-learner according to the same model order as the meta-feature matrix; and inversely transform the output of the regularized linear meta-learner into the predicted value of unconfined compressive strength. The predicted value of unconfined compressive strength is used to evaluate the solidification strength of the urease-producing bacteria-modified sand to be predicted.

[0007] Preferably, the plurality of characteristic particle sizes is D. 10 D 20 D 30 D 40 D 50 D 60 D 70 D 80 D 90 and D 100Ten characteristic particle sizes, corresponding to particle sizes with a cumulative passing mass percentage of 10% to 100%, in 10% increments; The radial mass of the fully graded particles is related to the void ratio e and the calcium carbonate content F. Ca Together, they form a twelve-dimensional input feature vector; the feature particle size is read from the particle size distribution curve obtained by sieving, or obtained by interpolation between adjacent measured particle size points, where D 100 The particle size boundary where the cumulative percentage of mass passing through the test record reaches 100%.

[0008] Preferably, the stacked ensemble model includes five base learners and one meta learner; the kernel method regression model includes kernel ridge regression (KRR) and support vector regression (SVR); the tree ensemble regression model includes gradient boosting regression (GBR), extreme gradient boosting regression (XGB), and random forest regression (RF); the five columns of the meta-feature matrix correspond to the out-of-bounds predicted values ​​of KRR, SVR, GBR, XGB, and RF, respectively.

[0009] Preferably, the preprocessing in step S2 includes duplicate record checking, invalid record and abnormal record checking, and input feature standardization; in the out-of-fold prediction, the mean and standard deviation used for standardization of each fold are determined only by the training part of that fold and are used for the validation part of that fold; the standardization parameters for the sample to be predicted are determined by all training samples; the training objective is y = ln(1 + UCS), where UCS is the unconfined compressive strength value recorded in MPa as a uniform unit.

[0010] Preferably, K is 10. The training samples are divided into ten mutually exclusive subsets with the same number of samples or a difference of no more than 1. Nine of these subsets are used for training in turn, and the remaining subset is used to generate the out-of-fold prediction. The five base learners use the same set of subset indices and backfill the out-of-fold prediction values ​​according to the original order of the training samples to form a five-column feature matrix.

[0011] Preferably, the regularized linear meta-learner is a ridge regression meta-learner, which determines the regression coefficients by minimizing the sum of squared errors between the training target and the weighted fusion output of meta-features, and the sum of the L2 regularization terms of the regression coefficients. The regularization parameters are selected through cross-validation within the training data range, and the intercept does not participate in the L2 regularization term.

[0012] Preferably, the KRR and SVR use radial basis function kernels; the kernel parameters of KRR and the model parameters of GBR, XGB, and RF are determined by grid search combined with cross-validation, and the penalty coefficient, kernel parameters, and insensitive loss coefficient of SVR are determined by Bayesian optimization; when generating the out-of-fold prediction value for each fold, the data used for parameter selection is limited to the training part of that fold.

[0013] Preferably, the historical sample data is divided into a training set and an independent test set in an 8:2 ratio. The independent test set does not participate in preprocessing parameter estimation, model parameter selection, or meta-learner fitting; the output of the meta-learner... implement The inverse transformation is performed, and the coefficient of determination R², root mean square error RMSE, and mean absolute error MAE are calculated based on the measured and predicted values ​​of the independent test set on the same intensity scale.

[0014] Preferably, SHAP analysis is performed on the prediction process, which includes preprocessing, base learner, meta learner and inverse transform, to output the contribution direction and contribution magnitude of each feature particle size, porosity and calcium carbonate content, forming a feature importance ranking and bee colony diagram, which is used to assist in analyzing the correlation between particle size distribution, pore structure and calcium carbonate cementation and prediction strength.

[0015] A second aspect of the present invention provides a stacked integrated prediction system for the compressive strength of sandy soil modified by urease-producing bacteria with a full range of particle sizes, the system being used to execute the prediction method according to any one of claims 1-9, comprising: A multi-feature data module integrating full gradation was used to obtain multiple characteristic particle sizes D of historical samples of sandy soil improved by urease-producing bacteria. p Pore ​​ratio e, calcium carbonate content F Ca Unconfined compressive strength; multiple characteristic particle sizes D p It corresponds one-to-one with multiple mutually spaced cumulative mass percentages on the particle size distribution curve, and serves as a distinguishing characteristic component to constitute the radial quantity of the fully graded particles. The pretreatment module is used to preprocess the radial amount, void ratio and calcium carbonate content of the fully graded particles, and to determine the logarithmic transformation value of the unconfined compressive strength as the training target. The out-of-fold training module is used to construct multiple heterogeneous base learners, including kernel-based regression models and tree-based ensemble regression models. It divides the training samples into K mutually exclusive subsets, where K is an integer not less than 2, and utilizes K subsets fold by fold. One subset is fitted and the remaining subset is predicted. The extrapolated prediction values ​​of each base learner are concatenated according to the sample correspondence to obtain the meta-feature matrix. The fusion training module is used to fit a regularized linear meta-learner based on the meta-feature matrix and the training target, and to fit each base learner using training samples. The strength output module is used to input the input parameters of the sandy soil modified by urease-producing bacteria to be predicted into each base learner according to the preprocessing rules and feature order during training, input the prediction results of each base learner into the regularized linear meta-learner according to the model order of the meta-feature matrix, and output the predicted value of unconfined compressive strength after inverse transformation.

[0016] Preferably, the plurality of characteristic particle sizes is D. 10 D20 D 30 D 40 D 50 D 60 D 70 D 80 D 90 and D 100 Ten feature particle sizes, together with porosity and calcium carbonate content, form a twelve-dimensional input feature vector; the base learner consists of five models: KRR, SVR, GBR, XGB, and RF; the out-of-fold training module uses 10-fold cross-validation to generate five-column features; the preprocessing module uses only the corresponding training part to determine the standardized parameters.

[0017] Preferably, the system further includes an evaluation and interpretation module, which is used to calculate the coefficient of determination R², root mean square error RMSE, and mean absolute error MAE on an independent test set that is not involved in model training, and to calculate the SHAP feature contribution for the complete prediction process, and output interpretation results corresponding to the full gradation particle size, porosity, and calcium carbonate content.

[0018] Preferably, the fusion training module permanently stores the feature arrangement order, preprocessing parameters, parameters of each base learner, and parameters of the regularized linear meta-learner; the strength output module repeatedly calls the prediction process with the same parameter caliber for multiple groups of sandy soils to be predicted, including full gradation, void ratio, and calcium carbonate content, and outputs unconfined compressive strength prediction values ​​that can be compared laterally after inverse transformation; the evaluation and interpretation module performs SHAP analysis on the complete prediction process and outputs the feature contributions of full gradation particle size, void ratio, and calcium carbonate content.

[0019] The present invention has the following beneficial effects: 1. This invention uses multiple interleaved cumulative mass percentages corresponding to characteristic particle sizes on the particle gradation curve as independent input components to form the radial quantity of the entire gradation, which, along with porosity and calcium carbonate content, participates in intensity modeling. This method replaces the simplified representation of a few characteristic particle sizes or gradation coefficients in traditional methods, avoiding the defect that gradation curves of different morphologies are mapped to the same input value due to a few overlapping characteristic points. It allows the model to capture the differences in gradation morphology at the fine, intermediate, and coarse particle ends, providing a complete gradation information input basis for intensity prediction and reducing prediction bias caused by missing representations at the source.

[0020] 2. This invention constructs a multi-heterogeneous base learner stacked ensemble model that incorporates kernel method regression and tree ensemble regression. The kernel method model fits the smooth nonlinear laws of the factors influencing the intensity of regression, while the tree ensemble model captures feature interactions and piecewise effects. The two types of models form a complementary error structure under the same input space. Furthermore, a regularized linear meta-learner is used to weight and fuse the outputs of each base learner, while simultaneously suppressing coefficient inflation caused by collinearity. This architecture fully combines the modeling advantages of different types of models, effectively improving the overall prediction accuracy and generalization ability of the model.

[0021] 3. This invention employs a K-fold mutually exclusive subset partitioning approach for the second layer training. The meta-feature value of each training sample is obtained only from the output of the base learner that has not used this sample for fitting. Furthermore, the selection of preprocessing parameters and model hyperparameters within each fold is strictly limited to the training subset of the corresponding fold. Combined with an independent test set that does not participate in modeling throughout the process, this avoids the leakage of training information to the fusion layer. Combined with the regularization constraints of the meta-learner, the final performance metrics accurately reflect the model's generalization ability to unknown samples, ensuring the reliability of the model evaluation results.

[0022] 4. The stacked ensemble model of this invention has a higher coefficient of determination on the independent test set than any single base learner, and its root mean square error and mean absolute error are the lowest among all models. Compared with the single optimal model, the prediction error is further reduced, and the performance difference between the training set and the test set is significantly smaller than that of the single model of the tree ensemble class. This proves that the accuracy improvement comes from the complementary error structure of multiple models, rather than overfitting the training samples, and can meet the engineering evaluation accuracy requirements for the unconfined compressive strength of sandy soil improved by urease-producing bacteria.

[0023] 5. This invention introduces the SHAP method to analyze the feature contributions of the complete prediction process. It can quantify the contribution direction and magnitude of each feature particle size, void ratio, and calcium carbonate content to the prediction results, forming a ranking of feature importance and feature contribution distribution. This method traces the black-box prediction results back to the material composition and structural parameters, making it easier for engineers to locate the limiting factors of the compressive strength of improved sand samples. It can then guide the process design of particle size distribution adjustment, compaction control, and cementitious liquid ratio optimization, forming an application closed loop of prediction, interpretation, and control.

[0024] 6. After the model training of this invention is completed, the feature sorting, preprocessing parameters, and all parameters of each base learner and meta-learner can be fixed. For the sand sample to be predicted, only the gradation, void ratio, and calcium carbonate content data need to be input to quickly output the predicted value of unconfined compressive strength. The time and economic cost of a single prediction are far lower than those of laboratory tests. Samples from different batches and with different process schemes can obtain comparable prediction results through the same set of parameters, providing an efficient and low-cost technical tool for large-scale evaluation of solidification effects and screening of test schemes. Attached Figure Description

[0025] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0026] Figure 1 A schematic diagram of the training and prediction process for integrating multi-feature inputs from the full hierarchy with stacked integration; Figure 2 A schematic diagram of the module relationships in a urease-producing bacteria-modified sandy soil strength prediction system. Figure 3 A schematic diagram of particle gradation curves characterizing a small number of characteristic particle sizes and the total gradation particle size; Figure 4 A graph showing the comparison of the coefficients of determination on the training and test sets of the Stacking model and five individual models; Figure 5 A comparison chart of unconfined compressive strength test values, predicted values, and absolute errors for the Stacking model test set; Figure 6 The SHAP feature importance graph (a) and bee colony graph (b) are for the Stacking model. Detailed Implementation

[0027] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments, but the scope of protection of the present invention is not limited thereto. In this embodiment, the improvement of urease-producing bacteria refers to microbial-induced calcium carbonate deposition treatment involving urease-producing microorganisms.

[0028] I. Parameter Definition and Sample Construction: For the sample Let the original intensity value be . Logarithmic strength is The original input is Standardized input is The number of base learners is M. Particle size is mm, and UCS is MPa; calcium carbonate content is recorded as a percentage, and training and prediction are kept consistent. The input vector of the sample is constructed according to equation (1): (1) In equation (1), A ten-dimensional fully gradable vector; porosity e The ratio of pore volume to soil particle volume; calcium carbonate content is the ratio of the mass of calcium carbonate in the sample to the mass of pure sand; unconfined compressive strength is the result of the unconfined compressive strength test of the same sample. Figure 3 Plotting the cumulative percentage of passing mass on the vertical axis and particle size on the horizontal axis, the solid black line represents the actual gradation curve, the dashed line represents a possible curve passing through some of the same characteristic points, and the solid black dots represent characteristic positions read at 10% intervals. Only D is retained.10 D 30 and D 60 At this point, the solid lines and dashed lines in the figure have exactly the same particle size values ​​at these three positions, and the non-uniformity coefficient and curvature coefficient calculated from them are also the same, meaning that multiple gradation curves with different shapes are mapped to the same input; however, the dashed lines between adjacent feature points and D 60 The subsequent coarse-grained ends show a clear separation, reflecting the true difference between the content of intermediate-sized particles and the coarse-grained scale. During microbial-induced calcium carbonate deposition, the content of intermediate-sized particles determines the geometry and connectivity of the skeletal pores, while the coarse-grained scale affects the number of particle contacts and the enrichment location of calcium carbonate; both alter cementation efficiency and final strength. This three-point characterization prevents these differences from being incorporated into the model, forcing the model to provide compromise predictions for the same input, resulting in a systematic bias that cannot be eliminated by increasing the sample size or changing the model. Using a full-range particle size distribution avoids the defect of different gradation curves being mapped to the same input value due to a few overlapping feature points, ensuring that the gradation morphology differences at the fine, intermediate, and coarse-grained ends are all captured by the model, providing a complete gradation information input basis for strength prediction.

[0029] II. Preprocessing and Target Mapping: Duplicate, missing, and abnormal records were checked according to unified rules, and valid samples and their corresponding relationships were retained. After the training set and independent test set were divided, data preprocessing, parameter selection, and model fitting were all performed within the training data range. For a specific training set... A , its first j The mean and variance of each feature are calculated according to equation (2), and standardization is performed according to equation (3): (2) (3) In equations (2) and (3), A Only training samples used in the corresponding fitting process are included; validation samples and samples to be predicted are not included in the calculation of mean and standard deviation. If the standard deviation of a feature is zero in the training part, it is centered and treated as zero, while maintaining the consistency of column positions; the rules of the training stage are followed during prediction.

[0030] The logarithmic transformation of the intensity target is performed according to equation (4): (4) In equation (4), This represents the UCS in MPa, and its value is not less than zero. The model learns the logarithmic strength. Logarithmic transformation can compress the numerical span of high-intensity samples and reduce the skewness of intensity distribution. After prediction, the original intensity scale is restored by the corresponding inverse transformation, and the obtained values ​​are used for comparison with the measured UCS.

[0031] III. Heterogeneous Models and Features of Extra-Folded Elements: First layer settings M =5 base learners, in the order of KRR, SVR, GBR, XGB, and RF. KRR and SVR belong to kernel method regression, which maps the input to a high-dimensional space for solution through radial basis kernel function; GBR, XGB, and RF belong to tree ensemble regression, which organize the decision tree set using three mechanisms: serial residual fitting, regularized boosting tree, and bagged parallel tree, respectively. Kernel method and tree ensemble have different inductive biases, forming complementary prediction perspectives for the same fully graded input. Each base learner takes the same twelve-dimensional vector as input and the logarithmic strength of Equation (4) as the target.

[0032] Let the training sample index set be... I Divide it into non-overlapping sets with union as I of K Subset I 1 to For the first k Subset ,use I Remove Subsequent sample fitting preprocessing transformation Passing the exam m Individual learners .sample i belong At that time, its first m Each out-of-division meta-feature is calculated according to equation (5), and all out-of-division predictions are organized into a meta-feature matrix according to equation (6): (5) (6) In equations (5) and (6), n The number of training samples is given. After all folds are calculated, each training sample obtains an out-of-fold prediction value under each base model. The fold results are backfilled according to the original sample index. The five models use the same fold partition and row index, so that each row of the meta-feature matrix corresponds to the same sample, and the column order is fixed as KRR, SVR, GBR, XGB and RF.

[0033] The parameters of the base learner are selected within the training phase of the current fold. When parameter tuning is required, inner-layer cross-validation is performed within this training phase. Subsequently, the selected parameters are used to fit the base learner of the current fold and generate predictions for the outer-layer validation subset. The kernel parameters of KRR, as well as the parameters of GBR, XGB, and RF, are obtained using grid search, while the SVR parameters are optimized using Bayesian optimization.

[0034] IV. Ridge regression fusion and intensity output: The ridge regression learner determines the intercept and fusion coefficients according to equation (7): (7) In equation (7), b The intercept is... w This is the fusion coefficient vector. λ This is a non-negative regularization parameter; the intercept is not included in the penalty. λ The configuration is selected using cross-validation within the training data. If the configuration of the entire stacking process is selected based on the cross-validation results, the corresponding extrapolated features should be regenerated within each training part, and the validation parts that did not participate in the fitting of this process should be evaluated to ensure that the configuration selection maintains a clear data correspondence with the independent validation.

[0035] After the meta-learner has finished fitting, preprocessing transformations are applied to fit all training samples. and each base learner For the input to be predicted x First, generate the base model prediction vectors that are consistent with the column order, then fuse them according to equation (8), and finally perform the inverse transformation according to equation (9): (8) (9) Equation (9) and Equation (4) are inverse mappings of each other. The particle size, porosity, and calcium carbonate content of the data to be predicted must follow the definition and units of the training data; once the model parameters are fixed, predictions can be repeated, and the input consists of the twelve feature vectors.

[0036] V. Evaluation Indicators and Interpretation Methods Let the number of independent evaluation samples be... The measured strength value is The predicted value is The measured average is After unifying the measured and predicted values ​​to the original intensity scale, the coefficient of determination, root mean square error, and mean absolute error are calculated according to equations (10) to (12), respectively: Coefficient of determination: (10) Root mean square error: (11) Mean absolute error: (12) R² is a dimensionless index, and the units of equations (11) and (12) are MPa at the original intensity scale. Each model is compared using the same test samples and intensity scale; the training set index is used to describe the fitting performance, and the independent test set index is used to evaluate the prediction performance of the Stacking model.

[0037] For the complete prediction function F(x) = exp( (x)) 1. When performing SHAP analysis, let the feature set be... N Number of features d =12, No. j The contribution of each feature is calculated according to equation (13), and the model output is decomposed according to equation (14): (13) (14) In equation (13), To estimate the model output by retaining only a subset S of features based on the selected background data and missing feature handling rules; Use the background baseline values. The interpreted data should be consistent with the background data; training data can be used as the background. Output a beehive diagram and a feature importance diagram.

[0038] Example 1: Intensity prediction of 503 samples This embodiment is based on Figure 1 The provided training and prediction workflow is implemented using a dataset containing 503 samples from publicly published literature on improved urease-producing bacteria experiments. Each sample records the total particle size D. 10 -D 100 The porosity, calcium carbonate content, and corresponding unconfined compressive strength are used to form a 503-row, 12-column original input matrix. After data verification, all 503 sets of samples are retained and divided into 402 training samples and 101 test samples in an 8:2 ratio. The target adopts the logarithmic transformation of equation (4). When generating out-of-fold predictions in a 10-fold manner, the 402 sets of training samples can be divided into two 41-group subsets and eight 40-group subsets. The five base learners share the partition index, thus forming a 402-row, 5-column meta-feature matrix; the test input is used to generate 101-row, 5-column predictive meta-features through the deployment of base learners.

[0039] The specific parameter configurations for each model are shown in Table 0. The regularization parameter can be denoted as α or λ in different software implementations. In this embodiment, the α = 0.1 of the meta-learner is uniformly denoted as λ = 0.1.

[0040] Table 1 Parameter configuration for each model embodiment

[0041] The above parameters are selected within the training data range through cross-validation combined with grid search or Bayesian optimization. After completing the construction of extrapolated features, ridge regression fitting, and full training set fitting of the base learner, the test set strength prediction is generated according to equations (8) and (9). Table 2 lists the evaluation results of the Stacking ensemble model and five single models: KRR, SVR, GBR, XGB, and RF. Figure 4The determination coefficients of each model on the training and test sets are displayed accordingly. The values ​​labeled in the figure are represented to three decimal places of the corresponding data in Table 2.

[0042] Table 2 Evaluation results of Stacking and single model

[0043] From Table 2 and Figure 4 It can be seen that Stacking's test set R² is 0.9056, and KRR, SVR, GBR, XGB and RF are 0.8839, 0.8784, 0.8624, 0.8575 and 0.7388 respectively. Stacking achieved the highest test set determination coefficient among the listed models. Further analysis of the training and testing performance of each individual model is as follows: The training set R² of GBR, XGB, and RF are 0.9767, 0.9639, and 0.9476, respectively, while the test set R² drops to 0.8624, 0.8575, and 0.7388, respectively. The difference between training and test sets is 0.1143, 0.1064, and 0.2088, indicating that the tree ensemble models fit the training data well, but the fitting ability has not been fully translated into generalization ability for unknown samples. Among them, RF has the largest gap, with a test set RMSE of 1.1001 MPa, indicating the most obvious overfitting. The test set R² of KRR and SVR is higher than that of the training set R², and no obvious overfitting is observed. However, their training set R² is only 0.8342 and 0.7916, respectively. The upper limit of the fit is constrained by the kernel function smoothing assumption, and it fails to fully extract the segmented and interactive information in the input. It can be seen that the error sources of the two types of models are different and misaligned, forming a complementary error structure. In this embodiment, the training set R² of the fusion model is 0.9457, with a difference of only 0.0401 from the test set R², the smallest among all models. This indicates that the extrapolated meta-features enable ridge regression to learn the generalization error patterns of each base model rather than training residuals. L2 regularization also prevents the fusion weights from concentrating on a single model, thus achieving the closest training and testing performance while maintaining a high level of fit. The Stacking model's test set MAE is 0.4155 MPa, the lowest among the listed models. Compared to KRR, RMSE decreased from 0.7335 MPa to 0.6612 MPa, a reduction of approximately 9.86%, and MAE decreased from 0.4292 MPa to 0.4155 MPa, a reduction of approximately 3.19%. These comparisons collectively support that the Stacking model has the best independent test prediction performance in this embodiment.

[0044] like Figure 5As shown, the horizontal axis represents the sample number of the 101 test sets, the left vertical axis corresponds to the experimental and predicted values, and the right vertical axis corresponds to the absolute error. The predicted curve corresponds to the experimental value curve at the location of the main peak and in the direction of rise and fall of adjacent samples, indicating that the model captures the strength fluctuations caused by changes in the combination of gradation, porosity, and calcium carbonate content. The two curves for several lower strength segments are quite close, and the matching error is significantly smaller than that for the high strength segments, indicating that the strength formation mechanism of weakly cemented samples is relatively simple, and the prediction is more stable. The absolute error increases at some high-strength samples because highly cemented samples account for a low proportion in the dataset, and the UCS in the high-strength region is more sensitive to changes in calcium carbonate content and gradation combination, but the error magnitude is still within an acceptable range. No systematic overestimation or underestimation was found in the predictions for all 101 test samples, indicating that the Stacking model can be used to predict compressive strength under the conditions described.

[0045] Example 2: Feature Contribution Analysis SHAP analysis was performed on the stacked integration model of Example 1, and the results are as follows: Figure 6 As shown. Figure 6 (a) Characteristics of calcium carbonate content arranged by average absolute SHAP value F Ca D 90 D 10 Porosity e The values ​​are 0.322, 0.120, 0.086, and 0.076, ranking in the first four places; followed by D. 60 D 70 D 100 D 80 D 20 D 30 D 40 and D 50 The corresponding values ​​are 0.070, 0.051, 0.041, 0.037, 0.035, 0.023, 0.016, and 0.015. The average contribution of calcium carbonate content is approximately the second-highest D. 90 2.7 times that of microbial-induced calcium carbonate deposition, occupying a clearly dominant position, which corroborates the material mechanism that the amount of cementing products in microbial-induced calcium carbonate deposition directly determines the degree of interparticle cementation; D 90 The contribution is higher than D 10 This indicates that in the samples of this embodiment, the coarse-grained end skeleton scale has a stronger influence on the formation of the cemented network than the fine-grained end component; the porosity ratio ranks fourth, reflecting the indirect role of pore state as a deposition space and cementing fluid channel. All ten quantile grain sizes have non-zero contributions, and the contribution amplitude is generally distributed along the grain size quantiles as high at both ends and low in the middle, that is, the coarse-grained end and the fine-grained end of the gradation curve carry the richest intensity information, while the three-point characterization precisely loses D 90This is a key feature. From the perspective of feature utilization, this ranking shows that the model simultaneously reads information on sedimentary product content, fine and coarse grain gradation, and pore state. The ten quantile sizes have different contribution amplitudes in the model output, providing a direct basis for adopting multi-location input of the full gradation.

[0046] Figure 6 In (b), each point corresponds to the SHAP value of a sample on the corresponding feature; the darker the color, the higher the value of that feature. Points with higher calcium carbonate content are mainly distributed on the positive contribution side, while points with lower content are mainly located on the negative contribution side, exhibiting a monotonous and clearly separated contribution structure, consistent with the expected mechanism that cementation products increase the bonding strength between particles; D 90 and D 10 It also exhibits a distribution biased towards the positive contribution side, reflecting that within the sample range of this embodiment, the model tends to give higher intensity predictions when the coarse-grained end scale is larger or the fine-grained end component is more abundant; while D 60 D 70 The higher values ​​of intermediate components are more concentrated on the negative contribution side, which may be related to the fact that the skeleton tends to be more uniform and the cementation bridging effect is relatively weakened after the proportion of intermediate particles increases. The sample points of porosity are distributed on both sides of zero, indicating that its contribution direction depends on the combination with other material parameters, reflecting the model's capture of feature interaction relationships and also reflecting its contribution differences under different combinations of material parameters.

[0047] Example 3: System Implementation and Application See the module relationship diagram. Figure 2 In the system, the fusion full-gradient multi-feature data module receives historical sample records or parameters of the sample to be predicted; the preprocessing module forms a twelve-dimensional input vector according to a fixed feature order and calls the standardized parameters saved in the corresponding training stage; the out-of-place training module manages the subset index and the out-of-place prediction results of the five base learners; the fusion training module fits and saves the ridge regression coefficients, intercepts and base learners used for deployment, for the intensity output module to call; the intensity output module sequentially calls the preprocessing transformation, the five base learners and the ridge regression meta-learner, and outputs the intensity prediction value according to Equation (9); the evaluation and interpretation module calculates the evaluation index on the independent test set and outputs the SHAP interpretation results of each input vector.

[0048] In engineering applications, the system inputs information on the overall gradation, void ratio, and calcium carbonate content of urease-producing bacteria-modified sand. Based on the standardized parameters saved during training, the system outputs predicted strength values. For multiple sets of samples meeting the input conditions, the model can be repeatedly invoked to evaluate the curing effect and compare material states. The system then combines the characteristic contribution results to determine the parameters of interest for subsequent experimental analysis.

[0049] The above embodiments are used to illustrate the technical solution of the present invention. The quantile interval of the characteristic particle size, the sample division ratio, the number of folds, and the specific model parameters can be selected within the scope defined by the claims. The scope of protection of the present invention is determined by the claims.

Claims

1. A stacked integrated prediction method for the compressive strength of sandy soil modified by urease-producing bacteria with all particle sizes, characterized in that, Includes the following steps: Step S1: Obtain historical sample data of sandy soil samples modified by urease-producing bacteria after microbial-induced calcium carbonate deposition treatment; the input parameters for each sample include radial mass of the entire particle size distribution, void ratio e, and calcium carbonate content F. Ca The output parameter is the unconfined compressive strength; the radial mass of the fully graded particles is composed of multiple characteristic particle sizes D. p The feature particle size D is composed of mutually distinguishable feature components. p The particle size is the one-to-one corresponding to the cumulative passing mass percentage p on the particle size distribution curve. Step S2: Preprocess the historical sample data and determine the logarithmic transformation value of the unconfined compressive strength as the training target; construct a stacked ensemble model, which includes multiple heterogeneous base learners and a regularized linear meta-learner; the multiple heterogeneous base learners include a kernel method regression model and a tree ensemble regression model, and each base learner uses the same input feature definition and arrangement order; Step S3: Divide the training samples into K mutually exclusive subsets, where K is an integer not less than 2; for each base learner, use K of these subsets as subsets... Fit one subset and predict the remaining subset until each training sample obtains an out-of-bounds prediction value generated by a base learner that has not used the sample for fitting; concatenate the out-of-bounds prediction values ​​of each base learner according to the sample correspondence to obtain the meta-feature matrix, and use the meta-feature matrix and the corresponding training target to fit a regularized linear meta-learner. Step S4: Fit each base learner using training samples; input the input parameters of the urease-producing bacteria-modified sand to be predicted into each base learner according to the feature order and preprocessing rules during training; input the predicted values ​​obtained by each base learner into the regularized linear meta-learner according to the same model order as the meta-feature matrix; and inversely transform the output of the regularized linear meta-learner into the predicted value of unconfined compressive strength. The predicted value of unconfined compressive strength is used to evaluate the solidification strength of the urease-producing bacteria-modified sand to be predicted.

2. The method for predicting the compressive strength of sandy soil modified by urease-producing bacteria with integrated particle size distribution according to claim 1, characterized in that, The multiple characteristic particle sizes are D 10 D 20 D 30 D 40 D 50 D 60 D 70 D 80 D 90 and D 100 Ten characteristic particle sizes, corresponding to particle sizes with a cumulative passing mass percentage of 10% to 100%, in 10% increments; The radial mass of the fully graded particles is related to the void ratio e and the calcium carbonate content F. Ca Together, they form a twelve-dimensional input feature vector; the feature particle size is read from the particle size distribution curve obtained by sieving, or obtained by interpolation between adjacent measured particle size points, where D 100 The particle size boundary where the cumulative percentage of mass passing through the test record reaches 100%.

3. The method for predicting the compressive strength of sandy soil improved by urease-producing bacteria with integrated particle size distribution according to claim 1, characterized in that, The stacked ensemble model includes five base learners and one meta learner; the kernel method regression model includes kernel ridge regression (KRR) and support vector regression (SVR); the tree ensemble regression model includes gradient boosting regression (GBR), extreme gradient boosting regression (XGB), and random forest regression (RF); the five columns of the meta-feature matrix correspond to the out-of-bounds predicted values ​​of KRR, SVR, GBR, XGB, and RF, respectively.

4. The method for predicting the compressive strength of sandy soil improved by urease-producing bacteria with integrated particle size distribution according to claim 1, characterized in that, The preprocessing in step S2 includes duplicate record checking, invalid record and abnormal record checking, and input feature standardization; in out-of-fold prediction, the mean and standard deviation used for standardization of each fold are determined only by the training part of that fold and are used for the validation part of that fold; the standardization parameters for the sample to be predicted are determined by all training samples; the training objective is y = ln(1 + UCS), where UCS is the unconfined compressive strength value recorded in MPa as a uniform unit.

5. The method for predicting the compressive strength of sandy soil improved by urease-producing bacteria with all particle sizes according to claim 3, characterized in that, With K=10, the training samples are divided into ten mutually exclusive subsets with the same number of samples or a difference of no more than 1. Nine subsets are used for training in turn, and the remaining subset is used to generate the out-of-fold prediction. The five base learners use the same set of subset indices and backfill the out-of-fold prediction values ​​according to the original order of the training samples to form a five-column feature matrix.

6. The method for predicting the compressive strength of sandy soil improved by urease-producing bacteria with integrated particle size distribution according to claim 1, characterized in that, The regularized linear meta-learner is a ridge regression meta-learner, which determines the regression coefficients by minimizing the sum of squared errors between the training target and the weighted fusion output of meta-features, and the sum of the L2 regularization terms of the regression coefficients. The regularization parameters are selected through cross-validation within the training data range, and the intercept does not participate in the L2 regularization term.

7. The method for predicting the compressive strength of sandy soil improved by urease-producing bacteria with integrated particle size distribution according to claim 3, characterized in that, The KRR and SVR use radial basis function kernels; the kernel parameters of KRR and the model parameters of GBR, XGB, and RF are determined by grid search combined with cross-validation, and the penalty coefficient, kernel parameters, and insensitive loss coefficient of SVR are determined by Bayesian optimization; when generating the out-of-fold prediction value for each fold, the data used for parameter selection is limited to the training part of that fold.

8. The method for predicting the compressive strength of sandy soil modified by urease-producing bacteria with all particle sizes according to claim 1, characterized in that, The historical sample data was divided into a training set and an independent test set in an 8:2 ratio. The independent test set was not involved in preprocessing parameter estimation, model parameter selection, or meta-learner fitting. The output of the meta-learner... implement The inverse transformation is performed, and the coefficient of determination R², root mean square error RMSE, and mean absolute error MAE are calculated based on the measured and predicted values ​​of the independent test set on the same intensity scale.

9. The method for predicting the compressive strength of sandy soil improved by urease-producing bacteria with integrated particle size distribution according to claim 1, characterized in that, SHAP analysis is performed on the prediction process, which includes preprocessing, base learner, meta-learner, and inverse transform. The output shows the contribution direction and magnitude of each feature particle size, porosity, and calcium carbonate content, forming a feature importance ranking and a beehive diagram, which are used to assist in analyzing the correlation between particle size distribution, pore structure, calcium carbonate cementation, and predicted strength.

10. A stacked integrated prediction system for the compressive strength of sandy soil modified by urease-producing bacteria with all particle sizes, characterized in that, The system is used to execute the prediction method according to any one of claims 1-9, including: A multi-feature data module integrating full gradation was used to obtain multiple characteristic particle sizes D of historical samples of sandy soil improved by urease-producing bacteria. p Pore ​​ratio e, calcium carbonate content F Ca Unconfined compressive strength; multiple characteristic particle sizes D p It corresponds one-to-one with multiple mutually spaced cumulative mass percentages on the particle size distribution curve, and serves as a distinguishing characteristic component to constitute the radial quantity of the fully graded particles. The pretreatment module is used to preprocess the radial amount, void ratio and calcium carbonate content of the fully graded particles, and to determine the logarithmic transformation value of the unconfined compressive strength as the training target. The out-of-fold training module is used to construct multiple heterogeneous base learners, including kernel-based regression models and tree-based ensemble regression models. It divides the training samples into K mutually exclusive subsets, where K is an integer not less than 2, and utilizes K subsets fold by fold. One subset is fitted and the remaining subset is predicted. The extrapolated prediction values ​​of each base learner are concatenated according to the sample correspondence to obtain the meta-feature matrix. The fusion training module is used to fit a regularized linear meta-learner based on the meta-feature matrix and the training target, and to fit each base learner using training samples. The strength output module is used to input the input parameters of the sandy soil modified by urease-producing bacteria to be predicted into each base learner according to the preprocessing rules and feature order during training, input the prediction results of each base learner into the regularized linear meta-learner according to the model order of the meta-feature matrix, and output the predicted value of unconfined compressive strength after inverse transformation.