Slope stability prediction method based on CNN and 2xLSTM coupling model
Through the slope stability prediction method based on the CNN and 2xLSTM coupled model, the problems of low accuracy and overfitting in the prior art are solved, and higher prediction accuracy and model performance are achieved, which significantly improves slope stability The reliability of the prediction.
Patent Information
- Application Number
- CN202411087095.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-29
AI Technical Summary
The existing slope stability prediction methods have problems of low accuracy and overfitting, making it difficult to effectively predict slope stability.
Using the slope stability prediction method based on the CNN and 2xLSTM coupling model, a model including input layer, convolutional layer, maximum pooling layer, LSTM layer, flattening layer, fully connected layer and output layer is constructed, combining SHAP functions and Nested K-fold cross-validation and grid search methods to improve model performance and generalization capabilities.
It significantly improves the accuracy of slope stability prediction, reduces the risk of overfitting, improves the model's feature extraction ability and abstraction level, and achieves higher prediction accuracy and reliability.
Smart Images

Figure CN119047364A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of slope stability prediction, and in particular relates to a slope stability prediction method based on a CNN and 2xLSTM coupling model. Background Art
[0002] Landslide refers to the natural phenomenon in which soil or rock on the slope slides downward along a certain weak surface or weak zone as a whole or in a dispersed manner under the action of gravity, due to the influence of factors such as river scouring, groundwater activity, rainwater soaking, earthquake and artificial slope cutting. Due to its characteristics of suddenness, multiple occurrence and group occurrence, it seriously threatens the safety of human life and property. Therefore, the prediction of slope stability is particularly important.
[0003] At present, the prediction methods for slope stability generally adopt machine learning methods such as support vector machines and artificial neural networks. Although this method can have high prediction efficiency, it still has many disadvantages, such as low accuracy and overfitting.
[0004] In view of this, a slope stability prediction method based on CNN and 2xLSTM coupling model was designed to solve the above problems. Summary of the invention
[0005] In order to solve the problems raised in the above background technology, the present invention provides a slope stability prediction method based on a CNN and 2xLSTM coupling model, which has the characteristic of being able to improve prediction accuracy.
[0006] To achieve the above object, the present invention provides the following technical solution: a slope stability prediction method based on a CNN and 2xLSTM coupling model, comprising the following steps:
[0007] S1: Construct a slope stability prediction model. The slope stability prediction model is a CNN and 2xLSTM coupling model, including one input layer, one convolution layer, one maximum pooling layer, one flattening layer, two LSTM layers, one flattening layer, one fully connected layer and one output layer.
[0008] S2: Collect historical data that affect slope stability and perform preprocessing to obtain a valid data set, which is divided into a training data set and a test data set. The historical data includes slope height, cohesion, slope angle, density, pore water pressure ratio, internal friction angle, and slope stability.
[0009] S3: The slope height, cohesion, slope angle, density, pore water pressure ratio and internal friction angle in the training data set are used as the input of the slope stability prediction model, and the slope stability state in the training data set is used as the output of the slope stability prediction model. The slope stability prediction model is trained until the performance of the slope stability prediction model reaches the optimal level. The slope height, cohesion, slope angle, density, pore water pressure ratio and internal friction angle in the test data set are used as the input of the slope stability prediction model, and the slope stability state in the test data set is used as the output of the slope stability prediction model. The trained slope stability prediction model is tested to evaluate the slope stability prediction model, and the slope stability prediction model with the best performance and qualified evaluation results is used as the model for predicting slope stability;
[0010] S4: Predict slope stability based on the slope stability prediction model.
[0011] Furthermore, in step S2, the historical data preprocessing includes denoising, removing abnormal data, removing duplicate data, removing missing data and standard normalization, wherein the standard normalization method is Z-score, and the formula is:
[0012]
[0013] Where: X represents the original data, μ represents the mean of the data, and σ represents the standard deviation Z of the data, that is, the standardized data, also called Z-score.
[0014] Furthermore, in step S2, the data ratio of the training data set to the validation data set is 8:2.
[0015] Furthermore, in step S3, during the training of the slope stability prediction model, the historical data affecting the slope stability are analyzed by the SHAP function to determine the importance of the contribution of each type of data in the slope stability prediction model to improve the model performance. The formula of the SHAP function is:
[0016]
[0017] Where: φ i It is represented as the contribution of the i-th feature, N is the set of all features, S is the subset of the given prediction features, M is the sum of the features, and f x (S∪{i}) represents the model result including the i-th feature, f x (S) represents the model result without including the i-th feature.
[0018] Furthermore, in step S3, the hyperparameters of the slope stability prediction model are continuously adjusted during the training process, wherein the hyperparameter adjustment method of the slope stability prediction model is a combination of nested K-fold cross validation and grid search.
[0019] Compared with the prior art, the present invention has the following beneficial effects:
[0020] The slope stability prediction model of the present invention, i.e., the CNN and 2xLSTM coupling model, combines the advantages of the CNN and LSTM models, and adds an LSTM layer on this basis, so that it has stronger feature extraction capability, higher abstraction level, better generalization ability and reduces the risk of overfitting, which can improve the prediction accuracy compared with the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of the framework of the slope stability prediction model of the present invention;
[0022] Figure 2 A schematic diagram of SHAP values of various categories of historical data of the present invention;
[0023] Figure 3 It is a confusion matrix diagram of the CNN and 2xLSTM coupling model of the present invention;
[0024] Figure 4 It is the ROC curve diagram of the CNN and 2xLSTM coupling model of the present invention;
[0025] Figure 5 It is the ROC curve diagram of the machine learning model of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] See also Figure 1-5 The present invention provides the following technical solution: a slope stability prediction method based on a CNN and 2xLSTM coupling model, comprising the following steps:
[0028] The slope stability prediction method based on the CNN and 2xLSTM coupling model is characterized by comprising the following steps:
[0029] S1: Construct a slope stability prediction model. The slope stability prediction model is a CNN and 2xLSTM coupling model, including an input layer, a convolution layer, a maximum pooling layer, a flattening layer, two LSTM layers, a flattening layer, a fully connected layer and an output layer, as shown in the attached manual. Figure 1 As shown;
[0030] S2: Collect historical data that affect slope stability and perform preprocessing to obtain a valid data set, which is divided into a training data set and a test data set. The historical data includes slope height, cohesion, slope angle, density, pore water pressure ratio, internal friction angle, and slope stability.
[0031] The above historical data preprocessing includes denoising, removing abnormal data, removing duplicate data, removing missing data and standard normalization. The standard normalization method is Z-score, and the formula is:
[0032]
[0033] In the formula: X represents the original data, μ represents the mean of the data, and σ represents the standard deviation Z of the data, that is, the standardized data, also called Z-score;
[0034] The data ratio of the above training data set and verification data set is 8:2;
[0035] S3: The slope height, cohesion, slope angle, density, pore water pressure ratio and internal friction angle in the training data set are used as the input of the slope stability prediction model, and the slope stability state in the training data set is used as the output of the slope stability prediction model. The slope stability prediction model is trained until the performance of the slope stability prediction model reaches the optimal level. The slope height, cohesion, slope angle, density, pore water pressure ratio and internal friction angle in the test data set are used as the input of the slope stability prediction model, and the slope stability state in the test data set is used as the output of the slope stability prediction model. The trained slope stability prediction model is tested to evaluate the slope stability prediction model, and the slope stability prediction model with the best performance and qualified evaluation results is used as the model for predicting slope stability;
[0036] In the above slope stability prediction model training process, the historical data affecting the slope stability are analyzed by the SHAP function to determine the importance of each type of data in the slope stability prediction model to improve the model performance. The formula of the SHAP function is:
[0037]
[0038] Where: φ iIt is represented as the contribution of the i-th feature, N is the set of all features, S is the subset of the given prediction features, M is the sum of the features, and f x (S∪{i}) represents the model result including the i-th feature, and fx(S) represents the model result excluding the i-th feature;
[0039] As the instruction manual Figure 2 As shown, each point represents a category of historical data. The X-axis represents the SHAP value, that is, the influence of the factor on the output, and the Y-axis represents the influencing factor. The various displacement influencing factors are arranged from top to bottom according to the degree of importance. At the same time, it can be seen that the cohesion C has the greatest influence on the slope stability, and the cohesion C is a positive contribution to the slope stability, which means that the greater the cohesion, the more stable the slope. Secondly, the internal friction angle φ has a greater influence on the slope stability. The slope height H and the slope angle β have a negative effect on the slope stability. A larger slope angle and slope height may increase the deadweight of the slope and cause a larger sliding force, thereby increasing the risk of slope instability.
[0040] In summary, cohesion C and internal friction angle φ are the main influencing factors, and they have a positive influence. Slope height H and slope angle β have a negative effect on slope stability, and their influence is relatively small. u The influence of and density γ on slope stability is smaller among the six factors;
[0041] During the training process of the above slope stability prediction model, its hyperparameters are constantly adjusted. The hyperparameter adjustment method of the slope stability prediction model is a combination of nested K-fold cross validation and grid search.
[0042] S4: Predict slope stability based on the slope stability prediction model.
[0043] Performance verification of CNN and 2xLSTM coupling model:
[0044] The performance indicators of confusion matrix, F1 score, ROC curve and AUC score are used to verify the advantages of CNN and 2xLSTM coupling model in slope stability prediction;
[0045] The simulation hardware environment is Intel Core CPU i7-8750, GPU is NVIDIA GTX 1060, and memory is 6GB;
[0046] Implemented using Python and TensorFlow framework;
[0047] Based on the above performance indicators, the confusion matrix of the CNN and 2xLSTM coupling model is as shown in the attached manual. Figure 3As shown in the figure, the accuracy of the CNN and 2xLSTM coupling model is 0.91, the recall rate is 0.86, and the precision rate is 0.95. The accuracy and precision of more than 90% indicate that the CNN and 2xLSTM coupling model performs very well in the classification task, can accurately identify and classify most samples, and has high prediction accuracy and reliability;
[0048] The performance index F1 score calculated by chaos matrix is shown in Table 1:
[0049] Table 1 Performance indicators of CNN and 2xLSTM coupling model
[0050]
[0051] As can be seen from Table 1, F1 = 0.905, which shows that the CNN and 2xLSTM coupling model performs well in slope stability prediction with extremely high accuracy, and shows the potential for accurate and reliable prediction of slope stability;
[0052] The ROC curve of the CNN and 2xLSTM coupling model is as shown in the attached manual. Figure 4 As shown in the figure, its AUC = 0.90. From the degree to which the curve is close to the upper axis and the left axis in the figure, as well as the size of the AUC value, it can be seen that the CNN and 2xLSTM coupling model is more accurate in training stable and unstable classification predictions;
[0053] Model comparison and verification:
[0054] Four deep learning models, LSTM, 2xLSTM, CNN, and CNN-LSTM, were selected for comparative analysis with the CNN and 2xLSTM coupling model. The confusion matrix is shown in Table 2:
[0055] Table 2. Confusion matrix of deep learning model
[0056]
[0057]
[0058] As shown in Table 2, CNN and CNN-LSTM have the highest accuracy, which are ACC=0.73 and ACC=0.82 respectively, while LSTM and 2xLSTM have the lowest accuracy, which are ACC=0.60 and ACC=0.55 respectively. The CNN and 2xLSTM coupling model performs best in predicting slope stability, which is ACC=0.91. The use of the CNN and 2xLSTM coupling model successfully improves the prediction accuracy by about 9%.
[0059] The value range of F1-score is between 0 and 1. The higher the value, the better the model performance. The F1 scores are shown in Table 3:
[0060] Table 3. Performance of deep learning models
[0061]
[0062] As shown in Table 3, the CNN-LSTM model has the highest accuracy, which is F1-score = 0.806, followed by CNN, LSTM and 2xLSTM, which are F1-score = 0.721, F1-score = 0.572 and F1-score = 0.540 respectively, while the F1-score of the CNN and 2xLSTM coupling model is 0.905, which is about 11% better than that of CNN-LSTM. At the same time, it can be seen that the AUC value of CNN-LSTM is 0.81, which can be regarded as an excellent classifier, followed by CNN, which is AUC = 0.78. The accuracy of 2xLSTM is the lowest, which is AUC = 0.712, while the AUC of the CNN and 2xLSTM coupling model is 0.90, which can speed up the performance of slope stability assessment and shows its excellent efficiency, which is about 10% better than that of CNN-LSTM.
[0063] ROC curve is as attached in the instruction manual Figure 5 As shown in the figure, the ROC curves of CNN and CNN-LSTM are relatively convex to the upper left corner, indicating that they perform well in the entire classification task. Comparing the areas under the ROC curves of the four models, it can be seen that CNN-LSTM has the highest AUC value of 0.81, followed by CNN and LSTM, with AUC=0.78 and AUC=0.58 respectively. 2xLSTM performs the worst, with AUC=0.51. The ROC curve of the CNN and 2xLSTM coupled model is closer to the upper axis and the left axis than other models, indicating that the overall performance of the CNN and 2xLSTM coupled model is better.
[0064] Five traditional learning models, SVC, KNN, XGB, RF and LR, are selected for comparative analysis with the CNN and 2xLSTM coupling model. The confusion matrix is shown in Table 4:
[0065] Table 4. Confusion matrix of the learned model
[0066]
[0067] As shown in Table 4, the accuracy of the traditional machine learning models is relatively high for SVC and LR, which are ACC = 0.81 and ACC = 0.80 respectively, while the accuracy of the CNN and 2xLSTM coupling model is ACC = 0.91, indicating that the CNN and 2xLSTM coupling model has greater advantages in slope stability prediction;
[0068] The comparison of F1-score and AUC values is shown in Table 5:
[0069] Table 5. Performance of deep learning models
[0070]
[0071] As shown in Table 5, the F1 score and AUC value of the CNN and 2xLSTM coupling model are 90.5% and 90%, respectively, which are about 12% and 3% higher than the highest SVC in the traditional machine learning model, indicating that the CNN and 2xLSTM coupling model has great advantages in slope stability prediction.
[0072] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. The slope stability prediction method based on CNN and 2xLSTM coupling model is characterized by: The following steps are involved: S1: Construct a slope stability prediction model. The slope stability prediction model is a CNN and 2xLSTM coupling model, including one input layer, one convolution layer, one maximum pooling layer, one flattening layer, two LSTM layers, one flattening layer, one fully connected layer and one output layer. S2: Collect historical data that affect slope stability and perform preprocessing to obtain a valid data set, which is divided into a training data set and a test data set. The historical data includes slope height, cohesion, slope angle, density, pore water pressure ratio, internal friction angle, and slope stability; S3: The slope height, cohesion, slope angle, density, pore water pressure ratio and internal friction angle in the training data set are used as the input of the slope stability prediction model, and the slope stability state in the training data set is used as the output of the slope stability prediction model. The slope stability prediction model is trained until the performance of the slope stability prediction model reaches the optimal level. The slope height, cohesion, slope angle, density, pore water pressure ratio and internal friction angle in the test data set are used as the input of the slope stability prediction model, and the slope stability state in the test data set is used as the output of the slope stability prediction model. The trained slope stability prediction model is tested to evaluate the slope stability prediction model, and the slope stability prediction model with the best performance and qualified evaluation results is used as the model for predicting slope stability; S4: Predict slope stability based on the slope stability prediction model.
2. The slope stability prediction method based on the CNN and 2xLSTM coupling model according to claim 1 is characterized in that: In step S2, the historical data preprocessing includes denoising, removing abnormal data, removing duplicate data, removing missing data and standard normalization, wherein the standard normalization method is Z-score, and the formula is: Where: X represents the original data, μ represents the mean of the data, and σ represents the standard deviation Z of the data, that is, the standardized data, also called Z-score.
3. The slope stability prediction method based on the CNN and 2xLSTM coupling model according to claim 1 is characterized in that: In step S2, the data ratio of the training data set and the verification data set is 8:
2.
4. The slope stability prediction method based on the CNN and 2xLSTM coupling model according to claim 1 is characterized in that: In step S3, during the slope stability prediction model training process, the historical data affecting the slope stability are analyzed by the SHAP function to determine the importance of the contribution of each type of data in the slope stability prediction model to improve the model performance. The formula of the SHAP function is: Where: φ i It is represented as the contribution of the i-th feature, N is the set of all features, S is the subset of the given prediction features, M is the sum of the features, and f x (S∪{i}) represents the model result including the i-th feature, f x (S) represents the model result without including the i-th feature.
5. The slope stability prediction method based on the CNN and 2xLSTM coupling model according to claim 1 is characterized in that: In step S3, the hyperparameters of the slope stability prediction model are continuously adjusted during the training process, wherein the hyperparameter adjustment method of the slope stability prediction model is a combination of nested K-fold cross validation and grid search.
Citation Information
Patent Citations
Slope stability prediction and evaluation method
CN112966425A
Landslide stability evaluation method based on LSTM algorithm
CN113033101A
Slope safety coefficient determination method suitable for smoothed particle hydrodynamics
CN115270589A
Side slope neural network model selection method, device and equipment and readable storage medium
CN116070675A
Slope stability prediction method
CN116757093A
