Next Article in Journal
Quantum Chemical Investigation on the Material Properties of Al-Based Hydrides XAl2H2 (X = Ca, Sr, Sc, and Y) for Hydrogen Storage Applications
Previous Article in Journal
Effect of Copper in Gas-Shielded Solid Wire on Microstructural Evolution and Cryogenic Toughness of X80 Pipeline Steel Welds
Previous Article in Special Issue
Simulation of the Mesoscale Cracking Processes in Concrete Under Tensile Stress by Discrete Element Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Study of an SSA-BP Neural Network-Based Strength Prediction Model for Slag–Cement-Stabilized Soil

1
School of Civil Engineering, Nantong Vocational University, Nantong 226007, China
2
School of Transportation and Civil Engineering, Nantong University, Nantong 226001, China
*
Author to whom correspondence should be addressed.
Materials 2025, 18(15), 3520; https://doi.org/10.3390/ma18153520
Submission received: 1 July 2025 / Revised: 24 July 2025 / Accepted: 25 July 2025 / Published: 27 July 2025

Abstract

As an industrial waste, slag powder can be processed and incorporated into cement-based materials as an additive, significantly improving the engineering properties of cement–soil. The strength of slag–cement-stabilized soil is subject to nonlinear interactions among multiple factors, including cement content, slag powder dosage, curing age, and moisture content, forming a complex influence mechanism. To achieve accurate strength prediction and mix proportion optimization for slag–cement-stabilized soil, this study prepared cement-stabilized soil specimens with different slag powder contents using typical sandy soil and clay from the Nantong region, and obtained sample data through unconfined compressive strength tests. A Back Propagation (BP) neural network prediction model was also established. Addressing the limitations of traditional BP neural networks in prediction accuracy caused by random initial weight thresholds and susceptibility to local optima, the sparrow search algorithm (SSA) was introduced to optimize initial network parameters, constructing an SSA-BP model that effectively enhances convergence speed and generalization capability. Research results demonstrated that the SSA-BP model reduced prediction error by 53.4% compared with the traditional BP model, showing superior prediction accuracy and effective characterization of multifactor nonlinear relationships. This study provides theoretical support and an efficient prediction tool for industrial waste recycling and environmentally friendly solidified soil engineering design.

1. Introduction

As an artificial composite material, slag powder–cement-stabilized soil enhances its mechanical properties by modifying the soil’s microstructure through the cement hydration reaction [1,2]. It combines economic efficiency with construction convenience and has become the core material in foundation treatment projects [3,4,5]. Compressive strength, as a key performance indicator, is affected by the coupling of multiple parameters, such as soil properties [6], slag powder content [7], cement content [8], water–cement ratio [9], and curing age [10]. Cao’s research [11] shows that within the range of typical engineering parameters, the strength has an exponential non-linear relationship with cement content and age. Meanwhile, it is controlled by implicit variables associated with porosity, such as water content, compactness, and the amount of hydration products generated. Traditional empirical formulas are difficult to use to effectively characterize the synergistic mechanism of multiple factors. This limitation necessitates a large number of trial mix tests in engineering practice, leading to significant resource waste. Consequently, to reduce the waste of human and material resources associated with pre-construction trial mixing and post-project testing, establishing a regional multi-factor strength prediction model is urgently needed [12,13].
Most existing prediction models are limited to single or a few factors. For instance, Zhou developed separate compressive strength prediction models for cement-stabilized soil in seasonal frozen regions: one based solely on curing age [14] and another incorporating both cement mixing ratio and age. Similarly, Zhu derived relationships between compressive strength and curing age at fixed cement contents (8% and 13%) through laboratory mechanical tests [15]. With the development of artificial intelligence technology, neural networks offer a new approach to multidimensional modeling, thanks to their powerful nonlinear mapping capabilities. Liu’s ANN-based model [16] for cement-reinforced soil mechanical properties exemplifies this, demonstrating efficacy in resolving complex nonlinear problems. However, traditional ANNs exhibit drawbacks such as high sample dependency and hyperparameter sensitivity, limiting their adaptability to engineering contexts with scarce or fluctuating data. In contrast, BP neural networks dynamically adjust the network weights through the backpropagation algorithm. They integrate robust nonlinear fitting with self-learning capabilities, effectively addressing pattern recognition, function approximation, and prediction in complex systems—particularly excelling in multivariate nonlinear modeling [17,18,19,20]. However, the performance of the BP neural network highly depends on the setting of the initial weights and thresholds. Improper initialization may lead to low efficiency in searching the parameter space: excessively large initial values are likely to cause gradient explosion, resulting in a nonlinear increase in prediction errors, while excessively small initial values may cause gradient disappearance, causing the model to fall into local optima and overfit [21]. This vulnerability stems from the error backpropagation mechanism’s dependence on the initial parameter space configuration. Consequently, pretraining weights and thresholds with intelligent optimization algorithms have emerged as a pivotal strategy for overcoming the convergence limitations of conventional BP networks [22,23,24].
In this study, mineral powder cement soil specimens with different mix ratios were prepared using the typical silty sand and silty clay in the Nantong area. After standard curing, unconfined compressive strength tests were carried out, and a sample database containing multidimensional features, such as soil parameters, mix ratios, and ages, was constructed. The sparrow search algorithm (SSA) [25,26] was introduced into the parameter optimization process of the BP neural network. By simulating the foraging behavior of sparrow populations, global optimization of the initial weights and thresholds was achieved, and an intelligent prediction model for the strength of SSA-BP cement-solidified soil was established. To verify the superiority of the model, a four-dimensional comparison system was designed: a comprehensive comparison of prediction accuracy, convergence speed, and robustness was conducted with the BP neural network model [27,28] optimized by the particle swarm optimization (PSO) algorithm, the BP neural network model optimized by the genetic algorithm (GA) [29,30], and the BP neural network model with double hidden layers, providing a precise and reliable strength prediction tool for regional cement soil projects.

2. SSA-BP Model

2.1. BP Neural Network

The BP neural network is a multi-layer feedforward network, and its core features are the signal forward propagation and error backpropagation mechanisms [31]. The typical neural network topology (3-4-1 Topology) consists of an input layer, a hidden layer, and an output layer (Figure 1). Data is transmitted layer by layer from the input layer through the hidden layer to the output layer, and the output values of each layer are processed by the activation function. The error between the network output and the expected value adjusts the weights and thresholds through backpropagation, so that the prediction result gradually approaches the real value.
The training process for the BP neural network is as follows:
(1)
Parameter initialization: Determine the network structure (the number of neurons n in the input layer, the number of neurons m in the output layer, and the number of neurons l in the hidden layer) based on the sample features. Randomly initialize the weights ω i j and ω j k between the neurons of the input layer, the hidden layer, and the output layer, the threshold a of the hidden layer, and the threshold b of the output layer. Set the learning rate and the neuron activation function.
(2)
Forward propagation calculation: Calculate the output H j of the j -th hidden layer based on the input value X i of the i -th input layer, the weight ω i j between the input layer and the hidden layer, and the threshold a j of the hidden layer.
H j = f ( i = 1 n ω i j x i a j ) j = 1,2 , l
where f is the activation function of the hidden layer, and the tansig excitation function is adopted: f ( x ) = 2 / [ 1 + exp 2 x ] 1 .
Calculate the output O k of the k -th output layer based on the output H j of the j -th hidden layer, the weights ω j k between the hidden layer and the output layer, and the threshold b k of the output layer.
O k = f ( j = 1 l ω j k h j a b k ) k = 1,2 , m
where f is the activation function of the output layer, and the purelin activation function is adopted: f ( x ) = x .
(3)
Error calculation and backpropagation: calculate the global mean squared error E based on the network’s predicted output O k and the expected output y k .
E = 1 2 m t = 1 T k = 1 m o k ( t ) y k ( t ) 2 t = 1,2 , , T
Based on the gradient descent method, use the global mean squared error E for backpropagation to update the network connection weights ω and b .
ω = η E ω ;   b = η E b
(4)
Iteration termination determination: If the error E meets the preset precision or the maximum number of iterations is reached, terminate the training; otherwise, return to step (2) to continue the optimization.

2.2. Sparrow Search Algorithm (SSA)

The sparrow search algorithm is a new type of swarm intelligence optimization algorithm proposed in the past two years, which is mainly inspired by the foraging and anti-predation behaviors of sparrow groups [32,33]. In the population, discoverers are usually more likely to search for areas with abundant food; that is, they have good fitness values. Followers will change according to the direction of the foraging area of the discoverers. The positions of discoverers and followers will change dynamically, but the ratio of discoverers to followers in the group remains the same. The anti-predation behavior of sparrows is added; that is, there will be a certain number of sentinels in the group to warn of approaching danger, thereby updating the population’s positions.
Here, the position of each sparrow serves as the fitness value. Discoverers with better fitness values will be retained and provide the search areas and directions for the remaining followers. The formula for updating the positions of discoverers is as follows:
x i t + 1 = x i t · exp 1 α · i t e r m a x   R 2 < S T     x i t + Q                                                       R 2 S T  
where t represents the current number of evolutions, i t e r m a x represents the maximum number of evolutions, x i t represents the position of the i-th sparrow, α is a random number between 0 and 1, and ST represents the safety value. R 2 < S T means there are no predators around the search range at this time; that is, the discoverers can search normally. R 2 S T means that the sparrows in the population have found a predator and issued a warning to the group, and all sparrows will change their positions.
Followers will follow the positions of discoverers during the foraging process. The followers who join later will fly in other directions to change their positions due to the lack of food. The formula for updating the positions of followers is as follows:
X i t + 1 = Q · exp X w o r s t X i t i 2                       i > n 2 X P t + 1 + X i t X P t + 1 · A T A A T 1  
where X P is the optimal position occupied by the current discoverers, X w o r s t is the worst position in the current global scope, and A is a random value in {−1, 1}. Meanwhile, the identities of followers and discoverers will be updated after each iteration, and some followers will replace the positions of discoverers.
During the sparrow foraging process, some sparrows can act as sentinels to alert to dangers. If they sense danger, they quickly adjust their own positions. There are two cases. When the fitness value is higher than the optimal fitness value, it means they are at the edge of the population, so they move towards the middle of the population. When the fitness value is equal to the optimal fitness value, it means the sparrows in the middle position sense danger and need to get closer to other sparrows. The position update formula for sentinels is as follows:
X i t + 1 = X b e s t t + β · X i t X b e s t t     f i > f b X i t + K · X i t X w o r s t t + 1 ( f i f w )   f i f b  
where β is a random number following the normal distribution [0, 1], and K 1 ,   1 is a random number. f b is the best fitness value, f w is the worst fitness value, and f i is the current individual fitness value.

2.3. Optimization of BP Neural Network Model Based on Sparrow Search Algorithm

This paper proposes an SSA-BP model that optimizes the initial weights and thresholds of a double-hidden-layer BP neural network based on the SSA sparrow search algorithm. This model can solve the problems of network non-convergence or getting stuck in local optimal values caused by manual parameter selection, thereby improving the accuracy and generalization ability of the BP neural network. The specific process is shown in Figure 2.
The algorithm initializes SSA parameters, generates the initial population, and defines the fitness function to evaluate individual fitness F(x) while recording optimal/worst solution positions. It then iteratively updates the discoverers’ exploratory positions, followers’ approaching movements, and scouts’ random escapes until termination conditions are met; subsequently, it normalizes sample data, initializes a dual-hidden-layer BP neural network with SSA-optimized weights/thresholds, and finally refines the network through backpropagation to output the trained prediction model.

3. SSA-BP Strength Prediction Model for Mineral Powder Cement-Solidified Soil

3.1. Experimental Sample

This study conducted indoor cement–soil mix proportion tests based on the “Standard for Geotechnical Tests”. The test soil samples are taken from typical sandy soil (silt) and clay (silty clay interbedded with silt) in the Nantong area. The basic physical and mechanical indicators are shown in Table 1.
Before the test, the soil samples were pre-treated by air-drying, crushing, and screening out impurities. Based on five factors and four levels, including cement content (12%, 16%, 20%, 24%), mineral powder content (0%, 4%, 8%, 12%), bentonite content (0%, 5%, 10%, 15%), water–cement ratio (1.3, 1.5, 1.8, 2.0), and curing age (7 d, 14 d, 28 d, 45 d), 32 groups of orthogonal test schemes were designed [34,35]. Six parallel cubic specimens of 70.7 mm × 70.7 mm × 70.7 mm were prepared for each group, and a total of 192 specimens were formed. The test schemes are shown in Table 2. In the table, SC represents the sand–mineral powder–cement solidified soil; NC represents the cohesive soil–mineral powder–cement solidified soil.
The specimens are placed in a standard curing chamber with a temperature of 20 ± 2 °C and a relative humidity of ≥95% for curing until the specified age is reached. After drying the surface, their volume and mass are measured. The CMT5504 universal testing machine is used to conduct the unconfined compressive strength test at a loading rate of 0.05 kN/s. After eliminating the abnormal data with a dispersion degree exceeding 15%, the average value is taken as the final strength value (Table 2). Figure 3 shows some of the test result curves. The stress–strain curves obtained from the tests exhibit typical characteristics of elastic deformation and plastic failure, with small data dispersion, indicating that the specimens have good uniformity and the test results are reliable.

3.2. Sample Data Processing

As shown in Table 3, the model selects five parameters—cement content, slag powder content, bentonite content, comprehensive moisture content, and age—as the input layer variables, and takes the unconfined compressive strength of cement soil as the output layer variable. Among them, the cement content, slag powder content, bentonite content, and age are directly input according to the mix ratio, while the comprehensive moisture content is calculated by the water–cement ratio according to Equation (8):
ω A l l = ω 0 + w c 1 + ω 0 ( α + β )
In the formula, ω A l l is the comprehensive moisture content, ω 0 is the initial natural moisture content, w / c is the water–cement ratio, α is the cement content, and β is the mineral powder content. In the experimental dataset, the sand–mineral powder–cement-solidified soil model uses 84 sets of mix proportions and their corresponding age compressive strengths as the sample set, while the clay model uses 93 sets of sample data. All data are normalized and then input into the neural network for training and testing.
The optimal selection of the number of hidden layer nodes directly affects the prediction performance of the neural network. In this paper, a method combining preliminary screening using empirical formulas and comparative verification of MSE is adopted to determine the optimal structure. The theoretical interval of the number of hidden layer nodes is determined by Equation (9):
l = ( m + n ) + a
In the formula, m is the number of nodes in the output layer, n is the number of nodes in the input layer, a is a constant between 0 and 10, and l is the number of nodes in the hidden layer. Thus, the number of nodes in the hidden layer was determined to be approximately between 3 and 12. The mean squared error (MSE) of models with different hidden layer node counts (within the 3–12 range) was calculated using 12 groups of test samples. The training accuracy under different numbers of hidden nodes was compared based on these MSE values, where a smaller mean squared error indicates higher accuracy. The comparison of BP neural network models with different numbers of neurons in the hidden layer is shown in Table 4 and Table 5.
Comparing the MSE values under different numbers of nodes showed that the sand model reaches its optimal state when there are eight nodes in the first hidden layer and 10 nodes in the second hidden layer, with a 5-8-10-1 topological structure. The total number of weight thresholds is 149 (including 40 input-hidden layer weights, 80 inter-hidden layer weights, and 10 output weights); the clay model achieves the minimum value when there are 6 nodes in the first hidden layer and 12 nodes in the second hidden layer, with a 5-6-12-1 network architecture. The total number of weight thresholds is 133 (including 30 input-hidden layer weights, 72 inter-hidden layer weights, and 12 output weights). The specific network connection topologies are shown in Figure 4 and Figure 5. The structural differences confirm the soil-dependent characteristics of the solidification mechanism of marine sedimentary soils.

3.3. Model Training and Result Analysis

SSA-BP strength prediction models for sand and clay mineral powder cement-solidified soil were constructed on the MATLAB 2018a platform. The sand model uses 84 sets of data (72 sets for the training set and 12 sets for the test set), and the clay model uses 93 sets of data (81 sets for the training set and 12 sets for the test set). The model uses the comprehensive error of the training set as the fitness function (Equation (10)) and optimizes the weights and thresholds of the neural network through SSA.
e r r o r = i = 1 j P r e d i c t e d v a l u e M e a s u r e d v a l u e
where j represents the number of samples in the training set. For the sandy soil model, j is 72, and for the clay soil model, j is 81. The algorithm initializes and generates multiple sparrow individuals (i.e., combinations of weight and threshold). During the iteration process, the positions of the individuals with the lowest fitness are retained. After optimization for a preset number of rounds, the optimal weight and threshold parameters are obtained.
Figure 6 compares the fitness curves of the SSA, the GA, and the PSO algorithm in two soil models. The results show that the fitness value of the GA is significantly higher than those of the SSA and PSO, and it is prone to falling into local optima. The SSA has the fastest convergence speed in the double-hidden-layer BP network and can reach the global optimum more quickly. It is worth noting that the differences in the optimal fitness values of the three algorithms in the clay model are relatively small, indicating that the strength prediction model of clay solidified soil has higher stability.
Further, an SSA-BP model is established based on the optimal weight threshold, and the root mean square error (RMSE), mean relative error (MRE), and mean absolute error (MAE) are used to evaluate the prediction performance. Figure 7 shows that the fitted values of the model are highly consistent with the measured values. The MAEs of the training sets for sandy soil and clay are 0.28 and 0.07, respectively; the MREs are 9.36% and 4.00%, respectively, and the RMSEs are 0.38 and 0.11, respectively. The results of the test set indicate that the model can effectively predict the nonlinear relationship between the strength of mineral powder cement solidified soil and multiple factors, and has good engineering applicability.

3.4. Prediction and Evaluation of SSA-BP Neural Network Model

The strength of 12 groups of test samples was predicted based on the trained SSA-BP model. The results are shown in Table 6. The prediction performance indicators of the sandy soil, mineral powder, and cement-solidified soil model are as follows: MRE = 8.45%, MAE = 0.30 MPa, RMSE = 0.44 MPa, and R2 = 0.945. The corresponding indicators of the clay model are MRE = 6.63%, MAE = 0.15 MPa, RMSE = 0.20 MPa, and R2 = 0.992. Among them, the MRE of the test sets of the sandy soil and clay models increased slightly compared with that of the training sets, but the deviation range was small, indicating that the model did not show a significant overfitting phenomenon while maintaining high coupling.
In terms of prediction accuracy, the prediction error of sand strength is 0.30 MPa, and the error of clay is further reduced to 0.15 MPa. According to the analysis of RMSE and R2 indicators, the RMSE of the clay model is significantly lower than that of the sand model, and its R2 value is closer to the theoretical optimal value of 1, indicating that the strength prediction results of clay solidified soil have higher stability. The test results verify the strong generalization ability of the SSA-BP model under multi-soil conditions. Its error level meets the allowable error requirements (≤10%) for the strength detection of solidified soil in the “Technical Code for Ground Treatment of Buildings” (JGJ 79-2012), which can provide reliable predictions for engineering practice.

4. Comparative Analysis of SSA-BP and Other Models

To verify the effectiveness of the SSA in optimizing and selecting the initial weights and threshold parameters of the double-hidden-layer BP neural network, this study sets up a control experiment: the particle swarm optimization (PSO) and genetic algorithm (GA) are respectively used to optimize the weights and thresholds of the double-hidden-layer BP neural network, and the results are compared with the unoptimized original BP model. The parameter settings of each algorithm are shown in Table 7. Among them, SSA, PSO, and GA all use the same population size (N = 20) and number of iterations (T = 100) to ensure the fairness of the comparison.
As can be seen in Figure 8 and Figure 9, all four fitting methods have good fitting accuracy and perform well on the test set. However, on the test set, the BP neural network has a relatively large error, indicating obvious overfitting. This shows that optimizing the initial weights and thresholds through optimization algorithms can significantly improve the accuracy of the BP neural network. When comparing the test sets, it is found that the prediction accuracy of PSO-BP is similar to that of SSA-BP, while the prediction accuracy of GA-BP is relatively low.
Based on the comparative analysis of the cement-solidified soil models of sandy soil and clayey soil with mineral powder (Table 8 and Table 9), the SSA-BP neural network shows significant advantages in both prediction accuracy and generalization ability. For the sandy soil model, the MAE of the test set of SSA-BP is 53.4% lower than that of the original BP model, and the RMSE is optimized by 56.3%. The determination coefficient of its test set is exactly the same as that of the training set, completely eliminating the serious overfitting phenomenon existing in the BP model. Compared with other optimization algorithms, the test set error of SSA-BP is 4.3% and 40.7% lower than that of PSO-BP and GA-BP, respectively. In the clay model, SSA-BP leads with the lowest test error, which is 6.1% and 15.1% lower than those of PSO-BP and GA-BP, respectively, and its MRE is 5.57%. Experiments show that by dynamically balancing the search path of the parameter space, the SSA reduces the error transfer rate from the training set to the test set by 38–65% compared with traditional optimization strategies under the same number of iterations, verifying its engineering robustness in the strength prediction of complex soil.

5. Analysis of Input Feature Weights of the Strength Prediction Model for Cement-Solidified Soil with Mineral Powder

Based on the analysis of the weights and thresholds of the double-hidden-layer BP neural network optimized by the SSA, this paper uses the weight contribution rate analysis method to establish a quantitative relationship between input variables and output indicators. This method calculates the relative contribution of each input feature in the prediction process by analyzing the weight matrix obtained after neural network training. First, the weight contribution rate w i m of input feature i to each node m in the second layer is calculated by Equation (11).
w i m = j = 1 8 w 1 i j w 2 j m w 1 i j i = 1 5 w 1 i j
In the formula, w 1 i j is the connection weight between the input node i and the j-th node in the first hidden layer, and w 2 j m is the connection weight between the j-th node in the first hidden layer and the m-th node in the second hidden layer. Secondly, the weight contribution rate w i of the input features to the output layer is transmitted layer by layer through Formula (12).
w i = m = 1 10 w 2 i m     w 3 m n w 2 i m i = 1 5 w 2 i m
where w 3 m n is the connection weight between the second hidden layer m and the output layer n. Finally, the contribution rate of each feature weight is obtained through the normalization process outlined in Equation (13).
P i = w i / i = 1 5 w i
This method effectively deconstructs the “black box” characteristic of neural networks, and its calculation results are shown in Table 10.
There are significant differences in the strength influence mechanisms of the input features of cement-solidified soil made of sand and clay with mineral powder. For the sand model, the curing age becomes the dominant factor with a weight contribution rate of 73.19%. Its contribution value is 5.6 times that of the mineral powder content and 9.9 times that of the cement content, which is consistent with the conclusion that the range value of the age is the largest in the orthogonal test. However, the model contribution rate is 69.5% higher than the test value. It is speculated that this is due to the enhanced learning of the time-series characteristics, which is caused by the fact that the data from the 7-day curing age accounts for 62% in the training set samples. The contribution rate advantage of the mineral powder content confirms the key role of the mineral powder in the cementation of sand particles.
In the clay model, the contribution rate of the mineral powder content ranks first, followed by the curing age and the comprehensive moisture content. Among them, the contribution rate of the moisture content exceeds that of the cement content, which can be reasonably explained by the sensitivity mechanism of the interaction between clay particles and water. The feature weight rankings of the two types of models are highly consistent with the conclusions of the orthogonal test.

6. Conclusions

Based on the research on the compressive strength prediction model of cement-solidified soil made from Nantong marine sedimentary sand and clay mineral powder, through the comparative analysis of SSA-BP, PSO-BP, GA-BP, and the original BP models, the following conclusions are drawn:
(1) Although the original BP neural network has strong sample fitting ability, the randomness of its initial weights and thresholds leads to severe overfitting in the sand test set and significant prediction errors. After optimization by the SSA, PSO algorithm, and GA, the RMSE of the sand test set is reduced by up to 56.3%, and the MAE of the clay test set is decreased by 27.5%, which confirms that the intelligent algorithms can effectively improve the stability and generalization ability of the model.
(2) The SSA-BP model shows the best prediction accuracy in both types of soil: the MRE of the sand test set is 10.89% lower than that of the BP model, and the MRE of the clay test set is 3.00% lower than that of the BP model. In the sand model, the SSA-BP algorithm improves the R2 of the test set to 0.990 through a dynamic search strategy, which is the same as that of the training set, completely eliminating overfitting; in the clay model, the RMSE of the SSA-BP model is lowest, being 6.1% and 15.1% lower than the PSO-BP and GA-BP models, respectively.
(3) The order of prediction accuracy for sand is SSA-BP > PSO-BP > GA-BP > BP. The R2 difference of the test set of the GA-BP model reaches 0.134 due to premature convergence, indicating its local optimum defect; in the clay model, although none of the four algorithms shows overfitting, the SSA-BP model is significantly better than the PSO-BP and GA-BP models. The RMSE of the SSA in sand and clay prediction is 4.3% and 6.1% lower than that of the PSO algorithm, respectively, demonstrating the advantage of its global search ability.
(4) The analysis of weight contribution rate reveals that the dominant factor for the strength of sandy soil is the curing age, and its contribution value is 5.6 times that of the mineral powder content, reflecting the time-effect control of the age on the hydration process of sandy soil. For the strength of clay, the mineral powder content is the core, and the interaction between the mineral powder and clay particles is significant. The ranking of the factors affecting the strength of the two types of soil is highly consistent with the conclusion of the orthogonal test, indicating that the SSA-BP model has both prediction accuracy and mechanism interpretability.

Author Contributions

Conceptualization, B.Z.; Methodology, X.T.; Validation, H.Z.; Supervision, J.Y. All authors have read and agreed to the published version of the manuscript.

Funding

The grant support from the Nantong Science and Technology Plan Project (Grant Nos JC2023055) are acknowledged.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Tang, Y.; Liu, H.; Zhu, W. Study on engineering properties of cement-stbilized soil. Chin. J. Geotech. Eng. 2000, 5, 549–554. [Google Scholar]
  2. Feng, D.; Wang, J.; Wang, Y.; Chen, Z.; Liang, S. Experimental study on strength and water stability of concentrated solution sludge solidified with alkali-activated GGBS geopolymer. Chin. J. Geotech. Eng. 2024, 46, 1860–1869. [Google Scholar]
  3. Xing, G.; Zhang, L.; Li, X.; Xuan, W.; Zhang, B.; Zhao, Y. Experiment and mechanism for saline soils strengthened with Portland composite cement substituted by S105 ground granulated blast-furnace slag. Water Resour. Hydropower Eng. 2022, 53, 180–190. [Google Scholar]
  4. Zhang, T.; Geng, J.; Liu, G.; Yang, Y.; Liu, C. Chloride Binding Mechanism in Cement-Fly Ash-Slag-Metakaolin Quaternary Cementitious Materials. Bull. Chin. Ceram. Soc. 2022, 41, 2063–2070. [Google Scholar]
  5. Zhou, Z.; He, Q.; Xiao, Y.; Dong, N.; Cao, J.; Yang, T.; Sun, X. On shear strength and microstructure characteristics of dredged sludge treated synergistically by aggregates recycled from building demolition waste, blast furnace powder, and cement. J. Railw. Sci. Eng. 2025, 22, 677–689. [Google Scholar]
  6. Yu, J.; Zhang, B.; Zhao, J. An improved model for discrete element method simulation of spatial gradient distributions of freeze-thaw-induced damage to sandstone. Comput. Geotech. 2024, 171, 106412. [Google Scholar] [CrossRef]
  7. Yu, J.; Zhang, Q.; Jia, C. Experimental and DEM simulations of the mechanical properties of rock under freeze–thaw cycles. Cold Reg. Sci. Technol. 2023, 211, 103866. [Google Scholar] [CrossRef]
  8. Zhao, C.; Lei, M.; Jia, C. Mechanical Characteristics of Red Sandstone Subjected to Freeze–Thaw Cycles and Increasing Amplitude Cyclic Load. Rock Mech. Rock Eng. 2024, 57, 3237–3256. [Google Scholar] [CrossRef]
  9. Zheng, Y.; Jia, C.; Lei, M. Investigation of the Constitutive Damage Model of Rock Under the Coupled Effect of Freeze–Thaw Cycles and Loading. Rock Mech. Rock Eng. 2024, 57, 1861–1879. [Google Scholar] [CrossRef]
  10. Yu, S.; Ren, X.; Zhang, J. Modeling the rock frost cracking processes using an improved ice-Stress-Damage coupling method. Theor. Appl. Fract. Mech. 2024, 131, 104421. [Google Scholar] [CrossRef]
  11. Cao, Z.; Zhang, D. Key parameters controlling unconfined compressive strength of soil-cement mixtures. Chin. J. Rock Mech. Eng. 2015, 34 (Suppl. S1), 3446–3454. [Google Scholar]
  12. Huang, T.; Zheng, J.; Dai, G.; Tan, H. Research on Orthogonal Experiments and Optimization of Mixing Ratios for Underwater Anti-Dispersion Cement-Stabilized Soil. J. Disaster Prev. Mitig. Eng. 2024, 44, 678–688+744. [Google Scholar]
  13. Cui, J.; Xie, B.; Ji, G.; Ji, X.; Zhang, W. Experimental study on the permeability of fly ash soil-cement. Sci. Technol. Eng. 2019, 19, 323–329. [Google Scholar]
  14. Zhou, H.; An, Z.; Shen, X. Strength prediction and deformation analysis of cement soil in seasonal frozen area. Sci. Technol. Eng. 2020, 20, 14207–14212. [Google Scholar]
  15. Zhu, D. Test analysis on mechanical properties of soil-cement mixture. J. Build. Mater. 2006, 3, 291–296. [Google Scholar]
  16. Liu, Y.; Shen, J.; Liu, Y. Application of the principle of artificial neural network in predicting the mechanical properties of cement stabilized soil. Rock Soil Mech. 2001, 3, 330–333. [Google Scholar]
  17. Chen, H.; Long, W.; Li, X.; Lu, M.; Zuo, L.; Pan, C. Prediction of compressive strength of fly ash concrete with BP neural network. Build. Struct. 2021, 51 (Suppl. S2), 1041–1045. [Google Scholar]
  18. Zou, F.; Li, H.; Yang, J.; Xie, W.; Xi, T.; Zhang, J.; Gao, F.; Yuan, Z.; Zheng, W. Prediction of chloride ion diffusion in concrete with manufactured sand by applying SSA-BP neural network. Concrete 2025, 1, 22–26+32. [Google Scholar]
  19. Yang, X.; Dong, Z.; Yu, J. Research on concrete carbonation depth prediction algorithm based on BP-AR. Concrete 2019, 11, 6–9. [Google Scholar] [CrossRef]
  20. Rao, Y.; Ding, Y.; Ni, Q.; Xu, W.; Liu, D.; Zhang, H. Prediction of permeability coefficients of coarse-grained soil based on GA-BP neural network. Hydro-Sci. Eng. 2018, 6, 92–97. [Google Scholar]
  21. Bai, H.; Liu, Y.; Guo, Y.; Zhao, M. Prediction of recycled aggregate thermal insulation concrete strength based on GA-BP neural network. Concrete 2020, 11, 16–19+25. [Google Scholar]
  22. Li, C.; Chen, L.; Liang, S.; Zhang, H.; Wei, B. Prediction method of high liquid limit clay modifier dosage based on BR-BP neural network. Water Resour. Hydropower Eng. 2023, 54, 190–202. [Google Scholar]
  23. Huang, W.; Zhou, L.; Ge, P.; Yang, T. A Comparative Study on Compressive Strength Model of Recycled Brick Aggregate Concrete Based on PSO-BP and GA-BP Neural Networks. Mater. Rep. 2021, 35, 15026–15030. [Google Scholar]
  24. Chen, Q.; Ma, R.; Jiang, Z.; Wang, H. Compressive strength prediction and mix-proportion design of UHPC based on GA-BP neural network. J. Build. Mater. 2020, 23, 176–183+191. [Google Scholar]
  25. Xue, J.; Shen, B. A novel swarm intelligence optimization approach: Sparrow search algorithm. Syst. Sci. Control. Eng. 2020, 8, 22–34. [Google Scholar] [CrossRef]
  26. Xue, J. Research and Application of A Novel Swarm Intelligence Optimization Technique: Sparrow Search Algorithm. Master’s Thesis, Donghua University, Shanghai, China, 2020. [Google Scholar]
  27. Chen, H.; Huang, Y.; Zhang, Z.; Chen, C. PSO-BP Neural Network Based Unit Grouting Volume Prediction. Nonferrous Met. 2025, 15, 288–297. [Google Scholar]
  28. Fan, Y.; Pei, Y.; Yang, G.; Leng, Z.; Lu, W. Prediction of blasting vibration velocity peak based on an improved PSO-BP neural network. J. Vib. Shock. 2022, 41, 194–203+302. [Google Scholar]
  29. Zhai, L.; Gao, Y.; Li, Q.; Zhang, H. Prediction of Flexural Strength of Pebble Concrete Based on GA-BP Model. Yellow River 2022, 44, 137–141. [Google Scholar]
  30. Tian, Z.; Su, W.; Zheng, X.; Jiao, X. Real–time evaluation method of compaction degree for roller-compacted concrete based on GA–BP neural network. Adv. Sci. Technol. Water Resour. 2019, 39, 81–86. [Google Scholar]
  31. Cui, D.; Jin, B. Application of improved BP neural network model to comprehensive evaluation of water conservancy in a state of relative prosperity. J. Hohai Univ. (Nat. Sci.) 2014, 42, 306–313. [Google Scholar]
  32. Liu, Z.; Fu, S.; Zhao, D.; Wang, K.; Ou, B. SSA-LSTM-based prediction model for the infiltration line of earth and rock dams. Sci. Technol. Eng. 2024, 24, 14813–14820. [Google Scholar]
  33. Lan, Y.; Qiao, Y.; Cheng, H.; Lei, L.; Luo, H. Gas concentration prediction model based on SSA-LSTM. J. Mine Autom. 2024, 50, 90–97. [Google Scholar]
  34. Zhao, S.; Huo, Y.; Tang, B. Thixotropic experiment and thixotropic strength prediction model of structural clay in Zhanjiang Formation. Rock Soil Mech. 2023, 44 (Suppl. S1), 197–205. [Google Scholar]
  35. Jia, Y.; Song, H.; Liu, Q.; Bai, Y.; Zhang, P. Experimental study on blending ratio and mechanical properties of high toughness polypropylene fiber concrete. Mater. Rep. 2024, 38 (Suppl. S2), 657–661. [Google Scholar]
Figure 1. The graphic of the BP neural network with a 3-4-1 topology.
Figure 1. The graphic of the BP neural network with a 3-4-1 topology.
Materials 18 03520 g001
Figure 2. Flowchart of the SSA-BP neural network model.
Figure 2. Flowchart of the SSA-BP neural network model.
Materials 18 03520 g002
Figure 3. Stress–strain curves of some specimens. (a) Sample set of sandy soil, mineral powder, and cement-solidified soil 1; (b) sample set of sandy soil, mineral powder, and cement-solidified soil 2; (c) sample group of clay, mineral powder, and cement-solidified soil 1; (d) sample group of clay, mineral powder, and cement-solidified soil 2.
Figure 3. Stress–strain curves of some specimens. (a) Sample set of sandy soil, mineral powder, and cement-solidified soil 1; (b) sample set of sandy soil, mineral powder, and cement-solidified soil 2; (c) sample group of clay, mineral powder, and cement-solidified soil 1; (d) sample group of clay, mineral powder, and cement-solidified soil 2.
Materials 18 03520 g003
Figure 4. Structural diagram of a neural network for cement-solidified soil with sand and mineral powder.
Figure 4. Structural diagram of a neural network for cement-solidified soil with sand and mineral powder.
Materials 18 03520 g004
Figure 5. Structural diagram of a neural network for cement-solidified soil with clay and mineral powder.
Figure 5. Structural diagram of a neural network for cement-solidified soil with clay and mineral powder.
Materials 18 03520 g005
Figure 6. Comparison of fitness function values for the SSA, the GA, and the PSO algorithm in two soil models. (a) Sand, sandy soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Figure 6. Comparison of fitness function values for the SSA, the GA, and the PSO algorithm in two soil models. (a) Sand, sandy soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Materials 18 03520 g006
Figure 7. Comparison of actual vs. fitted values in the training set for two soil–cement–mineral powder models. (a) Sand, sandy soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Figure 7. Comparison of actual vs. fitted values in the training set for two soil–cement–mineral powder models. (a) Sand, sandy soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Materials 18 03520 g007
Figure 8. Comparison of different prediction models for cement-stabilized soils in the training set. (a) Sand, soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Figure 8. Comparison of different prediction models for cement-stabilized soils in the training set. (a) Sand, soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Materials 18 03520 g008
Figure 9. Comparison of different prediction models for mineral powder–cement-stabilized soils in the test set. (a) Sand, soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Figure 9. Comparison of different prediction models for mineral powder–cement-stabilized soils in the test set. (a) Sand, soil, ore powder, and cement–soil model; (b) clay–mineral powder–cement–soil model.
Materials 18 03520 g009
Table 1. Basic physical and mechanical indexes of soil samples.
Table 1. Basic physical and mechanical indexes of soil samples.
Natural Moisture Content/%Volumetric Weight/(kN·m−3)Void RatioLiquidity IndexCoefficient of Non-UniformitySoil Classification
33.618.10.9680.947.18Silty clay interbedded with silt
24.219.50.681\4.31Silt
Table 2. Orthogonal test scheme and test results of sand and clay soil–cement.
Table 2. Orthogonal test scheme and test results of sand and clay soil–cement.
IDCement ContentMineral Powder ContentBentoniteWater–Cement RatioAge (d)Compressive Strength (MPa) SC/NC
SC1/NC11 (12%)1 (0%)1 (0%)1 (1.3%)1 (7 d)0.792/0.814
SC2/NC21 (12%)2 (4%)2 (5%)2 (1.5%)2 (14 d)1.956/1.317
SC3/NC31 (12%)3 (8%)3 (10%)3 (1.8%)3 (28 d)2.855/1.667
SC4/NC41 (12%)4 (12%)4 (15%)4 (2.0%)4 (45 d)3.699/2.258
SC5/NC52 (16%)1 (0%)2 (5%)3 (1.8%)4 (45 d)1.720/0.947
SC6/NC62 (16%)2 (4%)1 (0%)4 (2.0%)3 (28 d)2.558/1.133
SC7/NC72 (16%)3 (8%)4 (15%)1 (1.3%)2 (14 d)3.488/2.377
SC8/NC82 (16%)4 (12%)3 (10%)2 (1.5%)1 (7 d)2.233/1.738
SC9/NC93 (20%)1 (0%)3 (10%)4 (2.0%)2 (14 d)1.464/0.732
SC10/NC103 (20%)2 (4%)4 (15%)3 (1.8%)1 (7 d)1.554/0.813
SC11/NC113 (20%)3 (8%)1 (0%)2 (1.5%)4 (45 d)5.224/3.061
SC12/NC123 (20%)4 (12%)2 (5%)1 (1.3%)3 (28 d)5.817/4.079
SC13/NC134 (24%)1 (0%)4 (15%)2 (1.5%)3 (28 d)2.613/1.454
SC14/NC144 (24%)2 (4%)3 (10%)1 (1.3%)4 (45 d)5.009/2.878
SC15/NC154 (24%)3 (8%)2 (5%)4 (2.0%)1 (7 d)2.471/0.814
SC16/NC164 (24%)4 (12%)1 (0%)3 (1.8%)2 (14 d)5.392/1.317
Table 3. Input and output parameter ranges of the neural network.
Table 3. Input and output parameter ranges of the neural network.
ParameterSandy SoilClay
MinimumMaximumMinimumMaximum
Model inputCement content (%)12241224
Mineral powder content (%)012012
Bentonite content (kg/m3)015015
Comprehensive moisture content (%)43.58104.6854.44120.17
Age (d)745745
Model outputCompressive strength (MPa)0.726.450.714.40
Table 4. Hidden layer neuron numbers vs. MSE for sand–mineral powder–cement-stabilized soil prediction model.
Table 4. Hidden layer neuron numbers vs. MSE for sand–mineral powder–cement-stabilized soil prediction model.
Number of Hidden Layer Nodes3456789101112
30.3960.1830.4970.3620.5000.2931.8080.5960.4660.307
40.7080.2010.4350.5230.3230.3450.3230.2190.3360.259
50.3160.4140.3080.1800.2940.3160.2250.2510.1910.423
60.3030.2470.5800.5020.2520.3130.3150.2640.2870.246
70.2640.3020.8070.2860.2240.2250.3860.3310.4820.259
80.4070.5040.3880.3340.4750.2820.2760.1370.2610.261
90.1910.6250.5520.4670.2660.4300.6410.2330.2700.787
100.4780.4800.2570.3620.2560.2050.4030.2920.3430.295
110.2811.0390.4360.1420.3340.2880.2700.2370.2750.267
121.1310.6590.2850.1860.3180.30256.6870.2570.2370.466
Table 5. Hidden layer neuron numbers vs. MSE for clay–mineral powder–cement-stabilized soil prediction model.
Table 5. Hidden layer neuron numbers vs. MSE for clay–mineral powder–cement-stabilized soil prediction model.
Number of Hidden Layer Nodes3456789101112
30.0520.0440.0620.0430.3090.0430.0590.0430.0410.039
40.0410.0450.0420.0390.0450.0370.0380.0390.0370.034
50.0410.0340.0400.0370.0440.0350.0450.0500.0490.040
60.2460.0400.0410.0371.0550.0470.0370.0360.0380.031
70.0380.0500.0380.0410.0440.0410.0420.0450.0420.041
80.0430.0580.0370.5250.0380.0410.0420.0470.0450.040
90.0390.0420.0420.0400.0350.0430.0370.0400.0400.042
100.0400.0420.0340.0360.0370.0380.0350.0510.0450.038
110.0340.0400.4920.0420.0392.1380.0450.0390.0450.037
120.0390.0430.0390.0370.0460.0380.8630.0410.0450.044
Table 6. Test set evaluation metrics of the SSA-BP model.
Table 6. Test set evaluation metrics of the SSA-BP model.
Evaluation IndicatorsSSA-BP Sand–Cement Soil ModelSSA-BP Clay–Cement Soil Model
MRE8.45%6.63%
MAE0.300.15
RMSE0.440.20
Coefficient of determination (R2)0.9450.992
Table 7. Core parameters of three optimization algorithms and BP neural network configuration.
Table 7. Core parameters of three optimization algorithms and BP neural network configuration.
SSA ParametersGA ParametersPSO Algorithm ParametersBP Neural Network Parameters
Number of iterations100Number of evolutions100Number of iterations100Maximum number of training times200
Population size20Population size20Population size20Learning rate0.1
Discoverer ratio0.7Crossover probability0.2Acceleration factor1.49445Learning objectives0.01
Watcher ratio0.1Mutation probability0.05
Alert threshold0.6
Table 8. Comparative statistics of computational results by different prediction models in sand–mineral powder–cement-stabilized soil.
Table 8. Comparative statistics of computational results by different prediction models in sand–mineral powder–cement-stabilized soil.
Serial NumberModelTraining SetTest Set
MAEMRERMSER2MAEMRERMSER2
1BP NN0.41915.45%0.5740.9780.63519.34%0.9720.737
2GA-BP NN0.2709.03%0.3750.9910.47010.70%0.7170.857
3PSO-BP NN0.32211.41%0.4060.9890.3399.98%0.4440.950
4SSA-BP NN0.2769.36%0.3850.9900.2968.45%0.4250.990
Table 9. Comparative statistics of computational results by different prediction models in clay–mineral powder–cement-stabilized soil.
Table 9. Comparative statistics of computational results by different prediction models in clay–mineral powder–cement-stabilized soil.
Serial NumberModel Training SetTest Set
MAEMRERMSER2MAEMRERMSER2
1BP NN0.1227.30%0.2060.9930.1828.57%0.2420.948
2GA-BP NN0.0754.04%0.1180.9980.1667.23%0.2190.957
3PSO-BP NN0.0784.23%0.1180.9980.1425.86%0.1980.965
4SSA-BP NN0.0754.08%0.1130.9980.1325.57%0.1860.969
Table 10. Weight-based contribution rates of input features in the prediction model.
Table 10. Weight-based contribution rates of input features in the prediction model.
Influencing FactorsWeight of Solidified Sandy Soil, Ore Powder, and CementWeight of Clay, Ore Powder, and Cement-Solidified Soil
Weight ContributionWeight Contribution RateWeight ContributionWeight Contribution Rate
Cement content26.017.39%4.229.53%
Mineral powder content46.2313.13%15.8035.69%
Bentonite content5.871.67%0.942.13%
Comprehensive moisture content16.314.63%10.2823.23%
Age257.7173.19%13.0229.42%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhang, B.; Tao, X.; Zhang, H.; Yu, J. Study of an SSA-BP Neural Network-Based Strength Prediction Model for Slag–Cement-Stabilized Soil. Materials 2025, 18, 3520. https://doi.org/10.3390/ma18153520

AMA Style

Zhang B, Tao X, Zhang H, Yu J. Study of an SSA-BP Neural Network-Based Strength Prediction Model for Slag–Cement-Stabilized Soil. Materials. 2025; 18(15):3520. https://doi.org/10.3390/ma18153520

Chicago/Turabian Style

Zhang, Bei, Xingyu Tao, Han Zhang, and Jun Yu. 2025. "Study of an SSA-BP Neural Network-Based Strength Prediction Model for Slag–Cement-Stabilized Soil" Materials 18, no. 15: 3520. https://doi.org/10.3390/ma18153520

APA Style

Zhang, B., Tao, X., Zhang, H., & Yu, J. (2025). Study of an SSA-BP Neural Network-Based Strength Prediction Model for Slag–Cement-Stabilized Soil. Materials, 18(15), 3520. https://doi.org/10.3390/ma18153520

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop