Tunnel construction period surrounding rock deformation prediction method based on Bayes-Bi-GRU model
By combining the Bayes-Bi-GRU model with Bi-GRU and Bayes optimization technology, the accuracy and gradient problems of surrounding rock deformation prediction during tunnel construction are solved, and more efficient prediction of surrounding rock deformation during tunnel construction is achieved.
Patent Information
- Application Number
- CN202410622076.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-23
AI Technical Summary
It is difficult to accurately predict the deformation of the surrounding rock during tunnel construction with existing technology, especially when considering the complexity of the rock mass structure and construction methods. The prediction accuracy of the single variable model is insufficient, and the traditional RNN model is prone to gradient disappearance or disappearance when processing long sequences. Explosion problem.
A method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model is adopted. By obtaining and preprocessing the vault settlement and peripheral convergence data, the Bi-GRU model is combined with Bayes optimization parameters to construct a bidirectional GRU structure to capture inter-sequence changes. long-term dependencies and optimize the model through the MSE loss function.
It improves the accuracy of surrounding rock deformation prediction, solves the problems of gradient disappearance and explosion, simplifies the model structure, reduces training parameters, and Bayes optimization improves the exploration efficiency of hyperparameter combinations, achieving more efficient model training and prediction.
Smart Images

Figure CN118536660A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of tunnel engineering, and in particular relates to a method for predicting surrounding rock deformation during tunnel construction based on a Bayes-Bi-GRU model. Background Art
[0002] In recent years, with the development of transportation construction, the number of highway tunnels has increased rapidly, and the depth and length of tunnels have also been increasing, which has greatly increased the difficulty of construction. During the construction of the tunnel, due to the disturbance of the surrounding rock strata caused by the excavation and other construction processes, the stress field of the surrounding rock along the excavation surface will be redistributed, and stress concentration will occur. At this time, the cave or support structure provides very little resistance, and under the action of ground stress, the surrounding rock will produce convergent deformation. Surrounding rock deformation is important information in the construction process and is an intuitive reflection of the interaction of multiple influencing factors. Correctly grasping the law of surrounding rock deformation changes can effectively prevent disasters such as large deformation, and is conducive to determining reasonable support forms and timing, which is of great significance to construction.
[0003] The tunnel surrounding rock has large anisotropy, heterogeneity and discontinuity, which makes the theoretical calculation of tunnel deformation difficult. At present, domestic and foreign scholars mainly use the measured data of surrounding rock deformation to establish regression models. Such methods cannot reflect the influence of factors such as rock structure and construction methods. Some scholars also use non-stationary time series analysis, optimized GM (1, 1) model, BP neural network-Markov model, etc. to predict deformation, but single variable models are difficult to achieve high-precision prediction.
[0004] Existing scholars have achieved good results in predicting surrounding rock deformation using RNN and LSTM models. RNN models generally take sequence data as input, effectively capture the relationship characteristics between sequences through the internal structure design of the network, and then output. When traditional RNN solves the association between long sequences, when back propagating, the excessively long sequence leads to abnormal calculation of gradients, resulting in gradient disappearance or explosion. To solve such problems, a more complex LSTM model has been derived, whose core structure is the forget gate, input gate, and output gate, but the LSTM structure is complex and has many training parameters. Summary of the invention
[0005] The purpose of the present invention is to provide a method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model in order to solve the above problems.
[0006] The present invention achieves the above-mentioned purpose through the following technical solutions:
[0007] A method for predicting surrounding rock deformation during tunnel construction based on a Bayes-Bi-GRU model comprises the following steps:
[0008] Step 1: Obtain the data of arch settlement and surrounding convergence: Use a total station to measure the continuous settlement data and continuous convergence deformation data of the arch and left and right arch waist measuring points of the newly excavated tunnel every day until the deformation no longer changes. The interval between each measuring section is 10m-20m;
[0009] Step 2: Data preprocessing: Use the normal distribution 3σ criterion to determine outliers and delete outliers and duplicate values; use MinMaxScaler to perform maximum and minimum normalization on the data and linearly scale all data to 0-1;
[0010] Step 3: Divide the data set: Use the random partitioning method to use 70% of the data as the training set and the remaining 30% as the prediction set;
[0011] Step 4: Use the pytorch framework to build a Bi-GRU arch settlement and peripheral convergence prediction model;
[0012] Step 5: The Hyperopt Bayesian parameter adjustment module builds a parameter optimization model and sets the Bayesian optimization parameters and search space;
[0013] Step 6: Optimize the Bi-GRU model: Set the initial parameters, train the arch settlement and peripheral convergence prediction model of the Bi-GRU, use MSE as the loss function, use the parameter optimization model in step 5 to repeatedly train the Bi-GRU, judge the model fitting effect based on the test set loss, and select a set of hyperparameter combinations with the smallest loss to construct the Bi-GRU model;
[0014] Step 7: Load the trained Bi-GRU vault settlement and surrounding convergence prediction model and make predictions on the test set data;
[0015] Step 8: Denormalize the predicted data obtained in step 7 to obtain the cumulative deformation prediction value y.
[0016] Among them, the formula for using MinMaxScaler to perform maximum and minimum normalization on the data in step 2 is: in represents the normalized value, x i Represents the original value, x max Represents the maximum value in the data set, x min Represents the minimum value in the data set.
[0017] Among them, the Bayes optimization parameters in step 5 include the number of hidden layer units in the Bi-GRU unit, the choice of optimizer, the learning rate, the number of hidden layers, and the number of iterations.
[0018] Among them, the arch settlement and peripheral convergence prediction model of Bi-GRU trained in step 6 includes:
[0019] Construct GRU update gate: z t =σ(W z ·[h t-1 ,x t ]);
[0020] Construct the GRU reset gate: r t =σ(W r ·[h t-1 ,x t ]);
[0021] New unit information at the current moment
[0022] Update hidden state:
[0023] Where W represents the weight matrix, σ is the sigmoid function, h t Indicates that at time t x t The output of the corresponding unit, z t Represents the gate value of the update gate, r t Indicates the gate value of the reset gate;
[0024] Final output: The Bi-GRU model generates the final output by combining the hidden states in both the forward GRU and the reverse GRU directions.
[0025] Among them, the GRU calculation process in step 6 is:
[0026] Calculate the gate values of the update gate and reset gate, which are z t and r t , calculated using x t With h t-1 The concatenation is linearly transformed and then activated by sigmoid; the gate value is reset to act on h t-1 It represents how much information from the previous time step can be used; using this reset h t-1 Perform basic RNN calculations, that is, with x t The splicing is linearly changed, after Activate and get a new h t , where x is the input value and tanh(x) is the output value; update the gate value (σ(W z ·[h t-1 ,x t ])) will act on the new h t , and the "1-gate value" will act on h t-1 Then add the two results together to get the final hidden state output h tThis process means that the update gate has the ability to retain the previous result. When the gate value approaches 1, the output is the new h t , when the gate value approaches 0, the output is h of the previous time step t-1 .
[0027] Among them, in step 6, the mean square error MSE is preferably used as the loss function, where y i is the measured value, is the predicted value.
[0028] The advantages of the present invention are as follows:
[0029] 1. As a deep learning model, Bi-GRU can discover the patterns between data by analyzing historical settlement and deformation, learn the complex relationship between different factors from the data, and make corresponding predictions.
[0030] 2. Use the Bi-GRU model. Bi-GRU uses bidirectional processing and can consider the past and future information of the input sequence at the same time. In the prediction of surrounding rock deformation, it means that the model can take into account the historical deformation of the surrounding rock and possible future change trends at the same time, thereby improving the accuracy of the prediction. Bi-GRU uses a gating mechanism to better capture long-term dependencies in the sequence, and compared with traditional RNN, GRU can more effectively solve problems such as gradient disappearance and gradient explosion, making the model more accurate. Compared with LSTM, which is also derived from RNN, GRU has an update gate and a reset gate, with a simple structure and fewer training parameters. Bi-GRU is a bidirectional GRU, which can improve training and learning efficiency.
[0031] 3. The present invention utilizes the Bayes optimization Bi-GRU model to have the advantages of high efficiency, global optimization, and interpretability. Specifically, (1) Bayes optimization utilizes methods such as Gaussian process to model the hyperparameter space and selects the next most promising hyperparameter combination based on previous results. Compared with simple grid search or random search, Bayes optimization usually requires fewer experiments to find a hyperparameter combination with better performance. (2) Bayes optimization can not only find local optimal solutions, but also search globally, so it can better explore various areas of the hyperparameter space and help find better hyperparameter combinations. (3) Bayes optimization provides a confidence estimate for each hyperparameter, which enables Bayes optimization to provide interpretable results for each experiment. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a technical route of a method for predicting surrounding rock deformation during tunnel construction based on a Bayes-Bi-GRU model according to the present invention;
[0033] Figure 2 A schematic diagram of the Bi-GRU structure of a method for predicting surrounding rock deformation during tunnel construction based on a Bayes-Bi-GRU model according to the present invention;
[0034] Figure 3 A schematic diagram of monitoring positions in an embodiment of the present invention;
[0035] Figure 4 Schematic diagram of prediction results in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The present invention will be further described below in conjunction with specific embodiments, but the present invention is not limited to these embodiments.
[0037] like Figure 1 As shown, a method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model includes the following steps:
[0038] Step 1: Obtain the data of vault settlement and surrounding convergence: Figure 3 The data are the continuous settlement data and continuous convergence deformation data (c1, c2, c3) actually measured at the measuring points of the arch crown (s2) and the left and right arch haunches (s1, s3) at multiple equidistant sections over a period of time;
[0039] Step 2: Data preprocessing: Use the normal distribution 3σ criterion to determine outliers and delete outliers and duplicate values. Use MinMaxScaler to perform maximum and minimum normalization on the data and linearly scale all data to 0-1;
[0040] Step 3: Divide the data set: divide the data processed in step 2 into groups, each group contains 5 days of historical deformation data and the true value of the sixth day deformation data; use the random division method to use 70% of the data as the training set and 30% as the test set;
[0041] Step 4: Use the pytorch framework to build the Bi-GRU arch settlement and surrounding convergence prediction model. Figure 2 ;
[0042] Step 5: Use Python's built-in Hyperopt Bayesian parameter tuning module to build a parameter optimization model and set the Bayesian optimization parameters and search space; the optimization parameters include the number of hidden layer units in the Bi-GRU unit, the choice of optimizer, the learning rate, the number of hidden layers, and the number of iterations. The specific parameter space and optimal parameters are shown in Table 1;
[0043] Table 1 Bayes optimization parameter space and optimal parameter selection
[0044] Parameter name Parameter Space Optimal parameters Parameter meaning Hidden_size [32—128] 94 Number of hidden layer units optimizer [Adam, Sgd, Rms] Adam Optimizer lr [0.001—0.01] 0.00132 Learning Rate Num_layers [1,2,3] 3 Number of hidden layers Epochs [80,100,120] 120 Iterations
[0045] Step 6: Optimize the Bi-GRU model: Set the initial parameters, train the arch settlement and peripheral convergence prediction model of the Bi-GRU, use MSE as the loss function, and use the parameter optimization model in step 5 to repeatedly train the Bi-GRU. The model fitting effect is judged according to the loss of the training set and validation set, and a set of hyperparameter combinations with the smallest loss is selected to construct the Bi-GRU model.
[0046] Step 7: Load the trained Bi-GRU vault settlement and surrounding convergence prediction model, predict the test set data, and output the cumulative deformation prediction value y;
[0047] Step 8: Denormalize the predicted data obtained in step 7.
[0048] The final result is Figure 4 As shown in the figure, the monitoring time-sedimentation value diagram and the monitoring time-convergence value diagram are the prediction results of one section of the calculation results. The predicted value is close to the actual value, indicating that the fitting effect is good. RMSE represents the root mean square error, MAE represents the mean absolute error, R 2 represents the coefficient of determination, and its expression is as follows:
[0049]
[0050]
[0051]
[0052] The smaller the RMSE, the smaller the difference between the model's prediction results and the actual observations. Unlike RMSE, MAE does not consider the square of the error, so it is not sensitive to outliers. The smaller the MAE value, the smaller the average absolute difference between the model's prediction results and the actual observations. 2 Indicates the proportion of variance explained by the model. When the model's predicted values are exactly the same as the actual observed values, R 2 When the difference between the model's predicted value and the actual observed value is equal to the difference between the mean of the target variable and the actual observed value, R 2 If the model performs worse than directly using the mean of the target variable as the predicted value, R 2 The final RMSE of all models is 0.52, MAE is 0.34, and R 2 =0.89, indicating that the predicted value is close to the actual value and the prediction result is good.
[0053] The above-mentioned embodiments only express the implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model, characterized by: The following steps are involved: Step 1: Obtain the data of arch settlement and surrounding convergence: Use a total station to measure the continuous settlement data and continuous convergence deformation data of the arch and left and right arch waist measuring points of the newly excavated tunnel every day until the deformation no longer changes. The interval between each measuring section is 10m-20m; Step 2: Data preprocessing: Use the normal distribution 3σ criterion to determine outliers and delete outliers and duplicate values; use MinMaxScaler to perform maximum and minimum normalization on the data and linearly scale all data to 0-1; Step 3: Divide the data set: Use the random partitioning method to use 70% of the data as the training set and the remaining 30% as the prediction set; Step 4: Use the pytorch framework to build a Bi-GRU arch settlement and peripheral convergence prediction model; Step 5: The Hyperopt Bayesian parameter adjustment module builds a parameter optimization model and sets the Bayesian optimization parameters and search space; Step 6: Optimize the Bi-GRU model: Set the initial parameters, train the arch settlement and peripheral convergence prediction model of the Bi-GRU, use MSE as the loss function, use the parameter optimization model in step 5 to repeatedly train the Bi-GRU, judge the model fitting effect according to the test set loss, and select a set of hyperparameter combinations with the smallest loss to construct the Bi-GRU model; Step 7: Load the trained Bi-GRU vault settlement and surrounding convergence prediction model and make predictions on the test set data; Step 8: Denormalize the predicted data obtained in step 7 to obtain the cumulative deformation prediction value y.
2. The method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model according to claim 1 is characterized in that: The formula for using MinMaxScaler to perform maximum and minimum normalization processing on the data in step 2 is: in represents the normalized value, x i Represents the original value, x max Represents the maximum value in the data set, x min Represents the minimum value in the data set.
3. The method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model according to claim 1 is characterized in that: The Bayes optimization parameters in step 5 include the number of hidden layer units in the Bi-GRU unit, the selection of the optimizer, the learning rate, the number of hidden layers, and the number of iterations.
4. The method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model according to claim 1 is characterized in that: The arch settlement and peripheral convergence prediction model of training Bi-GRU in step 6 includes: Construct GRU update gate: z t =σ(W z ·[h t-1 ,x t ]); Construct the GRU reset gate: r t =σ(W r ·[h t-1 ,x t ]); New unit information at the current moment Update hidden state: Where W represents the weight matrix, σ is the sigmoid function, h t Indicates that at time t x t The output of the corresponding unit, z t Represents the gate value of the update gate, r t Indicates the gate value of the reset gate; Final output: The Bi-GRU model generates the final output by combining the hidden states in both the forward GRU and the reverse GRU directions.
5. The method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model according to claim 4 is characterized in that: The GRU calculation process in step 6 is as follows: Calculate the gate values of the update gate and reset gate, which are z t and r t , calculated using x t With h t-1 The concatenation is linearly transformed and then activated by sigmoid; the gate value is reset to act on h t-1 It represents how much information from the previous time step can be used; using this reset h t-1 Perform basic RNN calculations, that is, with x t The splicing is linearly changed, after Activate and get a new h t , where x is the input value and tanh(x) is the output value; update the gate value (σ(W z ·[h t-1 ,x t ])) will act on the new h t , and "1-gate" will act on h t-1 Then add the two results together to get the final hidden state output h t This process means that the update gate has the ability to retain the previous result. When the gate value approaches 1, the output is the new h t , when the gate value approaches 0, the output is h of the previous time step t-1 .
6. The method for predicting surrounding rock deformation during tunnel construction based on the Bayes-Bi-GRU model according to claim 1, characterized in that: In the step 6, the mean square error MSE is preferably used as the loss function. where y i is the measured value, is the predicted value.
