Traditional slope stability analysis methods are time-consuming, complex, and cannot provide fast stability estimates when facing a large amount of slope cases. In this case, artificial neural networks (ANN) provide a better alternative. Based on the ANN, the particle swarm optimization (PSO) algorithm, and the principal component analysis (PCA) method, a novel PCA-PANN model is proposed. Then, a dataset of 307 slope cases covering a wide range of slope geometries and mechanical properties of geomaterial is developed. The hybrid machine learning model trained with the dataset is applied to the factor of safety (FoS) prediction of the actual slope, and three evaluation indicators are introduced to measure the prediction performance of the model. Finally, the sensitivity analysis of input parameters is carried out, and the slope protection strategy for different sensitive factors is proposed. The results show that this new model can quickly obtain the FoS and stable state of the slope without complex calculation, only by providing the relevant characteristic parameters. The correlation coefficient of the PCA-PANN model for slope stability analysis reaches more than 0.97. The sensitivity degree of influencing factors from large to small is slope angle, cohesion, pore pressure ratio, slope height, unit weight, and friction angle.
The accurate prediction of joint shear strength is crucial for rock mass engineering design and geological hazard assessment. However, traditional machine learning (ML) models often suffer from local optima and limited generalization ability when dealing with complex nonlinear problems, thereby compromising prediction accuracy and stability. To address these challenges, this study proposes a hybrid ML model that integrates a multilayer perceptron (MLP) with the slime mold algorithm (SMA), termed the SMA-MLP model. While MLP exhibits strong nonlinear mapping capability, SMA enhances its training process through global optimization and parameter tuning, thereby improving predictive accuracy and robustness. A dataset with five input variables was constructed to evaluate the performance of the SMA-MLP model comprehensively. The proposed model was compared with other ML models. The results indicate that SMA-MLP outperforms these models in key metrics such as the root mean squared error (RMSE) and the correlation coefficient (R2), achieving an R2 of 0.97 and an RMSE as low as 0.10 MPa on the test set. Furthermore, feature importance analysis reveals that normal stress has the most significant influence on joint shear strength. This study demonstrates the superiority of SMA-MLP in predicting joint shear strength, highlighting its potential as an efficient and accurate tool for rock mass engineering analysis and providing reliable technical support for geological hazard assessment.