A tunnel structure deformation prediction method based on Transformer model
The tunnel structure deformation prediction method based on the Transformer model solves the problem of reduced accuracy of existing technology in low-light environments, achieves efficient tunnel deformation prediction and early warning, and improves construction safety.
Patent Information
- Application Number
- CN202310633833.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-05-31
AI Technical Summary
Existing tunnel deformation prediction methods have reduced accuracy in construction environments with insufficient light, making it difficult to capture dynamic changes during tunnel construction, leading to frequent safety and quality accidents. Existing models have poor prediction accuracy and cannot effectively predict tunnel structure deformation trends. .
A tunnel structure deformation prediction method based on the Transformer model is used to collect data through wireless monitoring equipment, perform preprocessing and training, and build a Transformer model to predict the tunnel structure deformation value and change rate, and combine position label embedding and autoregressive equations to output hierarchical early warnings. information.
It improves the data timeliness and accuracy of tunnel deformation prediction, can better capture deformation trends, provides a strong guarantee for tunnel construction safety, issues early warning information in a timely manner, and reduces potential risks.
Smart Images

Figure CN116738535B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tunnel monitoring systems, and in particular to a tunnel structure deformation prediction method based on a Transformer model. Background Art
[0002] Tunnel construction projects are large in scale, tight in schedule, difficult and risky. Usually, the construction is carried out in shifts without interruption. Traditional manual monitoring has poor continuity and low efficiency. Automated monitoring can be used for 24-hour continuous monitoring.
[0003] During the process of tunnel automated structural monitoring, in the dim and complex tunnel construction environment with insufficient light, the monitoring capability of traditional models is reduced, the accuracy is reduced, and the dynamic changes of deformation cannot be predicted.
[0004] Tunnel deformation prediction is of great significance for safety monitoring during construction. Existing tunnel deformation prediction methods mainly use long short-term memory neural network (LSTM) or attention-enhanced LSTM model. However, the prediction accuracy of these models is relatively poor, and they cannot extract more information from time series data, making it difficult to capture the dynamic changes of deformation during tunnel construction.
[0005] At present, the existing means cannot predict the development trend of tunnel structure deformation prediction, resulting in safety and quality accidents caused by tunnel structure deformation, which has become an urgent problem to be solved in domestic tunnel construction. Therefore, a tunnel structure deformation prediction method based on the Transformer model is needed to better capture the development trend of tunnel deformation during tunnel construction and provide strong protection for the safety of personnel and machinery in tunnel construction. Summary of the invention
[0006] The present invention aims to at least solve the technical problems existing in the prior art, and in particular innovatively proposes a tunnel structure deformation prediction method based on a Transformer model.
[0007] In order to achieve the above-mentioned object of the present invention, the present invention provides a tunnel structure deformation prediction method based on the Transformer model, comprising the following steps:
[0008] Step 1: Collect tunnel structure deformation data. The data is collected by wireless monitoring equipment arranged in the tunnel.
[0009] Step 2: Preprocess the collected data and randomly divide the preprocessed data into 80% training set and 20% test set. At the same time, randomly divide the training set into training data and verification data with a ratio of 9:1;
[0010] Step 3: Construct a tunnel structure deformation prediction model based on the Transformer model;
[0011] Step 4: Use the training set to train the tunnel structure deformation prediction model, select the model hardware and software environment, set parameters such as learning rate and number of training processes, and adjust the model parameters based on the model's accuracy index performance.
[0012] Step 5: Use the trained tunnel structure deformation prediction model to predict the tunnel structure deformation value and change rate.
[0013] Step 6: Comprehensively evaluate the predicted tunnel structure deformation value and change rate to determine whether it is necessary to output corresponding warning information.
[0014] Furthermore, the data is collected by sensors, and the arrangement of the sensors includes:
[0015] There are sections 1, 2 and 3 near the face.
[0016] Three sensors are arranged around Section 1 and a square light plate is installed at the top of the section, approximately within 10 m from the tunnel face. The location where the sensors are installed measures the settlement of the crown and horizontal convergence of the ring.
[0017] Three sensors are arranged in the ring of section 2 and a square light plate is installed at the top of the section, 10-20 m away from the face, to measure the crown settlement and horizontal convergence of the ring corresponding to the sensor installation location.
[0018] Two sensors are arranged in the 3rd ring of the section to measure the settlement of the crown in front of the tunnel face and the deformation of the tunnel face itself along the longitudinal direction of the tunnel.
[0019] The sensor is a wireless ranging laser sensor. The three sensors of Section 1 and Section 2 are installed at the same position, one of which measures horizontal convergence. The other two sensors point to the reflective target at the top of the tunnel in the cross section to obtain settlement deformation.
[0020] Furthermore, the wireless monitoring equipment in step 1 includes an extensometer, a total station, a laser scanner, a laser rangefinder, and equipment using image recognition.
[0021] Furthermore, the data collected in step 1 include timestamp, sensor nickname, sensor number, temperature, X-axis angle, Y-axis angle, Z-axis angle, and laser distance, which are data that can reflect the deformation characteristics of the tunnel structure.
[0022] Furthermore, the preprocessing in step 2 includes data cleaning, data conversion and data normalization;
[0023] The data conversion is to convert the X-axis angle, Y-axis angle, Z-axis angle and laser distance collected by the sensor into arch settlement and horizontal convergence values to represent the deformation of the tunnel structure.
[0024] S i =d i sinβ i -d0sinβ0
[0025] C i =d i cosβ i -d0cosβ0
[0026] Where S is the arch settlement value, C is the horizontal convergence value, d is the laser distance, β is the Y-axis inclination angle, the letter subscript indicates the initial time i, S is a negative value indicating that the tunnel arch has displacement settlement along the gravity direction, C is a negative value indicating that the tunnel lining has horizontal convergence, and β0 is the Y-axis inclination angle at the initial time.
[0027] In general, the Z-axis and X-axis tilt values remained stable during the monitoring period without significant changes. Tunnel crown settlement and serration convergence values were calculated using laser distance data and Y-axis tilt values. Although the temperature fluctuated at different times of the day, it did not significantly affect the measurement results. The timestamp is the data transmission time recorded throughout the monitoring period. Therefore, the deformation data of the rock tunnel can be obtained in a time series format.
[0028] Among them, data normalization is to map the vault settlement value and horizontal convergence value to between 0 and 1, and limit the data to a fixed range to obtain higher prediction accuracy. Methods such as decimal normalization, standard deviation normalization, Z-Score normalization, Sigmoid function, etc. can be used.
[0029] Furthermore, the data cleaning includes determining abnormal data:
[0030] S00, if the tilt angle of any axis changes significantly at a specific time point, it is determined that the sensor position changes, and the data after this period is determined as an abnormal value;
[0031] S01, if the distance measurement suddenly decreases, but returns to an expected value after a short time, it is determined that the laser beam is blocked and the data in this period is determined as an abnormal value.
[0032] S02, sending the sensor location and cause of the abnormal value to the user terminal.
[0033] The movement of the sensor relative to the attached tunnel lining may affect the accuracy of the measurement. Heavy dust generated during the construction process can also block the laser beam and affect the distance measurement. Therefore, it is necessary to judge the abnormal data of the collected data to ensure the accuracy of the deformation prediction results of the model. In addition, during the data cleaning stage, the sensor information that forms abnormal values is sent to the terminal to play a role in timely reminder and adjustment processing.
[0034] Furthermore, the tunnel structure deformation prediction model in step 3 includes an input layer, a decoding component, an encoding component and an output layer.
[0035] The encoding component consists of multiple layers of encoders, and the decoding component consists of decoders with the same number of layers;
[0036] The data inputted by the input layer is a time series consisting of vault settlement and horizontal convergence after data preprocessing. In addition, in order to incorporate the tunnel construction process information into the model input, the location labels representing the different process stages of rock tunnel construction can be embedded and integrated into the input data. The encoding component then upgrades the features of the time series from low dimension to high dimension and outputs it. The decoding component finally outputs a time series consisting of the tunnel predicted structural deformation values.
[0037] The computation process of embedding the position label integrated in the input data is as follows:
[0038]
[0039]
[0040] Where tag corresponds to different process stages, pos is the position of the data at a specific time in the entire input sequence, i represents the dimension, and d k is the feature dimension of the model. Positional label embedding applies sine and cosine functions at even and odd positions to identify feature differences on different dimensions.
[0041] Furthermore, the training of the tunnel structure deformation prediction model in step 4 comprises the following steps:
[0042] Step 4.1, training the tunnel structure deformation prediction model using the training data set;
[0043] Step 4.2, use the test set to test the tunnel structure deformation prediction model. If the accuracy index is less than or equal to the threshold, the tunnel structure deformation prediction model is trained. If the accuracy index is greater than the threshold, adjust the model parameters and continue to use the training set to train the tunnel structure deformation prediction model.
[0044] Furthermore, the step 5 of using the dynamic Transformer model to predict the deformation value and change rate of the tunnel structure includes the following steps:
[0045] The time series that have been preprocessed and are not in the training set and test set are selected as input and imported into the tunnel structure deformation prediction model. The dependency between the values of the historical time series of tunnel structure deformation values in different periods is used to establish an autoregressive equation for the model's prediction output, and the predicted deformation value and change rate of the tunnel structure deformation prediction model are obtained.
[0046] The autoregressive equation is as follows:
[0047]
[0048] The subscript letters in the formula represent the initial time t, a j is a constant coefficient (weighted value of historical time series), ε t is the random disturbance (such as the influence of construction trolley operation in the tunnel), and the predicted value X of the tunnel structure deformation prediction model t It is represented by the superposition of historical time series and random disturbances in the tunnel.
[0049] Furthermore, the graded warning information in step 6 is obtained through risk assessment scores:
[0050]
[0051] P1 and P2 represent the weight coefficient of the tunnel structure deformation value and the weight coefficient of the change rate respectively;
[0052] m represents the deformation times of the three monitoring sections;
[0053] n represents the number of times the rate of change of tunnel structure deformation exceeds the set threshold range;
[0054] They represent the average value of tunnel structure deformation and the average rate of change of tunnel structure deformation respectively;
[0055] They represent the duration of tunnel structure deformation and the duration of tunnel structure deformation change rate respectively;
[0056] t i ,t i-1 Respectively represent the current moment and the previous moment of tunnel structure deformation;
[0057] k represents the number of deformations of the tunnel structure;
[0058] If the calculated risk assessment score is in the first warning interval, it is a minor warning, and the sensor changes from detecting deformation data in interval time periods to detecting deformation data in real time;
[0059] If the calculated risk assessment score is in the second warning interval, it is a medium warning, and the LED in the tunnel will display and send the warning information to the user terminal;
[0060] If the calculated risk assessment score is in the third warning range, it is a serious warning, the LED display at the tunnel entrance and inside the tunnel will be displayed, the tunnel risk situation will be sent to the user terminal, and an alarm will be sounded.
[0061] In summary, due to the adoption of the above technical scheme, the present invention uses automated monitoring technology to detect tunnel structure deformation, the data is highly timely and accurate, and the Transformer model can better predict the development trend of tunnel deformation. The safety status of the tunnel structure can be judged by the predicted deformation value and change rate, which is convenient for on-site engineers to more accurately predict and analyze tunnel deformation, so as to take corresponding measures in time to prevent potential risks.
[0062] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0064] Figure 1 It is a flow chart of a tunnel structure deformation prediction method based on a Transformer model provided by the present invention.
[0065] Figure 2 It is a schematic diagram of a tunnel structure deformation prediction system based on a Transformer model in an embodiment of the present invention.
[0066] Figure 3 It is a schematic diagram of the tunnel structure deformation prediction model of the present invention.
[0067] Figure 4 It is a schematic diagram of the dynamic installation and layout of monitoring and early warning of the present invention. DETAILED DESCRIPTION
[0068] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0069] The present invention provides a tunnel structure deformation prediction method based on the Transformer model, such as Figure 1 The prediction method shown includes the following steps:
[0070] Step 1: Collect deformation data of existing tunnel structures. The data is collected by wireless monitoring equipment arranged in the tunnel.
[0071] Step 2: Preprocess the collected data and randomly divide the preprocessed data into 80% training set and 20% test set. At the same time, randomly divide the training set into training data and verification data with a ratio of 9:1.
[0072] Step 3: Construct a tunnel structure deformation prediction model based on the Transformer model.
[0073] Step 4: Use the training set to train the tunnel structure deformation prediction model, select the model hardware and software environment, set parameters such as learning rate and number of training processes, and adjust the model parameters based on the model's accuracy index performance.
[0074] Step 5: Use step 4 to obtain the dynamic Transformer model to predict the deformation value and change rate of the tunnel structure.
[0075] Step 6: When the deformation value and change rate of the tunnel structure at the future moment predicted by step 5 exceed the set threshold, a graded warning message is issued to facilitate on-site engineers to more accurately predict and analyze the tunnel deformation, so as to take corresponding measures in time to prevent potential risks.
[0076] In the above step 1, the process of collecting deformation data of the existing tunnel structure is as follows:
[0077] Wireless monitoring equipment is used to collect data reflecting the deformation characteristics of the tunnel structure.
[0078] Among them, the wireless monitoring equipment can be manual monitoring equipment such as extensometers and total stations, or automatic monitoring equipment such as laser scanning, laser ranging and image recognition.
[0079] The collected data includes but is not limited to tunnel structure dimensions, timestamp, sensor nickname, sensor number, temperature, X-axis angle, Y-axis angle, Z-axis angle, and laser distance.
[0080] The collected data can be electronic data or paper data.
[0081] Due to the complex internal environment of the drill and blast tunnel during the construction period, multiple factors such as the impact of construction personnel and construction equipment entering and exiting, signal impact, temperature impact, blasting impact, shotcrete dust impact, etc., may cause various problems such as invalid sensor data and data anomalies. Therefore, it is necessary to eliminate abnormal data and invalid time periods.
[0082] In the above step 2, the preprocessing process of the collected data is as follows:
[0083] Preprocessing includes data cleaning, data transformation, and data normalization.
[0084] Among them, data cleaning is to process missing values and outliers in the data. The specific processing method depends on the type of outliers, such as mean value replacement, previous value replacement, mode value replacement, 3sigma rule, etc.
[0085] Among them, data conversion is to convert the X-axis angle, Y-axis angle, Z-axis angle and laser distance collected by the wireless monitoring equipment into arch settlement and horizontal convergence values to represent the deformation of the tunnel structure.
[0086] S i =d i sinβ i -d0sinβ0
[0087] C i =d i cosβ i -d0cosβ0
[0088] Where S is the arch settlement value, C is the horizontal convergence value, d is the laser distance, β is the Y-axis inclination angle, the letter subscript represents the initial time i, S is a negative value, indicating that the tunnel arch has displacement settlement along the gravity direction, and C is a negative value, indicating that the tunnel lining has horizontal convergence.
[0089] Among them, data normalization is to map the vault settlement value and horizontal convergence value to between 0 and 1, and limit the data to a fixed range to obtain higher prediction accuracy. Methods such as decimal normalization, standard deviation normalization, Z-Score normalization, Sigmoid function, etc. can be used.
[0090] The present invention also proposes a tunnel structure deformation prediction system based on the Transformer model, such as Figure 2 As shown, it includes a data acquisition module, a data processing module and an early warning module;
[0091] The data acquisition module is used to collect data reflecting the deformation characteristics of the tunnel structure;
[0092] The data processing module is used to pre-process the information collected by the data acquisition module, divide the pre-processed data into a training set and a test set to train the Transformer model and predict the deformation value and change rate of the tunnel structure;
[0093] The early warning module is used to determine whether the deformation value and change rate of the tunnel structure will exceed the set threshold in the future, and issue graded early warning information to facilitate on-site engineers to more accurately predict and analyze the tunnel deformation, so as to take corresponding measures in time to prevent potential risks.
[0094] In step 3 above, the process of constructing the tunnel structure deformation prediction model is as follows:
[0095] The Transformer model is used, and the model structure is as follows Figure 3 As shown in the figure: The Transformer model adopts an encoder-decoder architecture, which is mainly composed of an encoding component and a decoding component. The encoding component is composed of multiple layers of encoders, and the decoding component is composed of decoders with the same number of layers.
[0096] The data inputted by the input layer is a time series consisting of vault settlement and horizontal convergence after data preprocessing. In addition, in order to incorporate the tunnel construction process information into the model input, the location labels representing the different process stages of rock tunnel construction can be embedded and integrated into the input data. The encoding component then upgrades the features of the time series from low dimension to high dimension and outputs it. The decoding component finally outputs a time series consisting of the tunnel predicted structural deformation values.
[0097] The computation process of embedding the position label integrated in the input data is as follows:
[0098]
[0099]
[0100] Where tag corresponds to the above process stage, pos is the position of the data at a specific moment in the entire input sequence, i represents the dimension, and dk is the feature dimension of the model. Positional tags are embedded in odd and even positions and sine and cosine functions are applied to identify feature differences in different dimensions;
[0101] In one embodiment of the present invention, the tag value of the excavation-slag discharge-support erection stage is set to 1, the tag of the advanced support stage is set to 2, and the tag of the shotcrete stage is set to 3.
[0102] In step 4 above, the process of training the tunnel structure deformation prediction model is as follows:
[0103] Step 4.1, input the training set into the tunnel structure deformation prediction model as a sample, select the model hardware and software environment, set the model initial learning rate and the learning rate attenuation strategy, use the mean square error function as the loss function, set the number of processes for training all samples in the training set once, and complete the model training;
[0104] The training set comes from step 2. In one embodiment of the present invention, the model hardware is an Intel Core i7-12700k CPU and an Nvidia RTX4070 GPU with 12GB memory. The software environment is configured with a PyTorch framework on an Ubuntu 22.04 system LTS. The initial learning rate is 1e-4, the learning rate decay strategy of reduce on plateau (patience = 10) is adopted, the loss function adopts the MSE mean square error function, and the number of model training processes is set to 3000 times;
[0105] Step 4.2: Input the test set into the tunnel structure deformation prediction model. If the accuracy index is less than or equal to the threshold, the tunnel structure deformation prediction model is trained and can be used for prediction. If the accuracy index is greater than the threshold, adjust the parameters (learning rate, number of processes, number of layers, hidden layer feature dimension, time step of the input time series, and feature dimension of the data after embedding in Transformer), and return to step 4.1 to continue training.
[0106] The accuracy index is the root mean square error (RMSE) of the measurement, and the value range is from 0 to positive infinity. The smaller the value, the smaller the prediction error of the model and the stronger the prediction ability.
[0107] In the above step 5, the process of predicting the deformation value and the rate of change of the tunnel structure deformation prediction model is as follows:
[0108] The time series that have been preprocessed and are not in the training set and test set are selected as input and imported into the tunnel structure deformation prediction model. The dependency between the values of the historical time series of tunnel structure deformation values in different periods is used to establish an autoregressive equation for the model's prediction output, and the predicted deformation value and change rate of the tunnel structure deformation prediction model are obtained.
[0109] The autoregressive equation is as follows:
[0110]
[0111] The subscript letters in the formula represent the initial time t, a j is a constant coefficient (weighted value of historical time series), ε t is the random disturbance (such as the influence of construction trolley operation in the tunnel), and the predicted value X of the tunnel structure deformation prediction model t It is represented by the superposition of historical time series and random disturbances in the tunnel.
[0112] In step 6 above, the process of issuing graded warning information is as follows:
[0113] Step 6.1. The thresholds of warning information at all levels should be determined based on factors such as tunnel design parameters, geological conditions, tunnel construction safety, long-term stability of tunnel structure, and the characteristics and importance of surrounding buildings. According to the emergency status, it is divided into three levels from high to low: slight warning, medium warning, and severe warning.
[0114] Step 6.2: When the deformation value or change rate predicted by the tunnel structure deformation prediction model exceeds the maximum threshold, the warning module outputs a severe warning message; when it reaches 90% of the maximum threshold, it outputs a moderate warning message; when it reaches 80% of the maximum threshold, it outputs a slight warning message.
[0115] Figure 4 This is a schematic diagram of the dynamic installation and layout of monitoring and early warning. When the distance between the construction face and monitoring section 1 exceeds 20m, personnel need to be arranged on site to carry out dynamic installation and layout. The basic installation and layout method is to move the monitoring equipment of section 2 forward to a distance of about 10m from the face, which becomes the "new monitoring section 1" closest to the working face, and the original monitoring section 1 becomes the farther "monitoring section 2" in front of the new working face. It is determined that monitoring section 3 is more than 30m away from the face. If it exceeds 30m, it is also necessary to dynamically arrange the monitoring section as the construction excavation progresses.
[0116] The sensors of Section 1 and Section 2 are used to detect the deformation of Section 1 and Section 2 respectively, and the sensor of Section 3 is used to detect the deformation of the tunnel face. Specifically:
[0117] Three sensors are arranged around Section 1 and a square light plate is installed at the top of the section, approximately within 10 m from the tunnel face. The location where the sensors are installed measures the settlement of the crown and horizontal convergence of the ring.
[0118] Three sensors are arranged in the ring of section 2 and a square light plate is installed at the top of the section, 10-20 m away from the face, to measure the crown settlement and horizontal convergence of the ring corresponding to the sensor installation location.
[0119] Two sensors are arranged in the 3rd ring of the section to measure the settlement of the arch in front of the tunnel face and the deformation of the tunnel face itself along the longitudinal direction of the tunnel.
[0120] The three sensors in Section 1 and Section 2 are installed at the same position, one of which measures horizontal convergence, and the other two sensors point to the reflective target at the top of the tunnel in the cross section to obtain settlement deformation.
[0121] The dynamic layout and installation sequence of each monitoring section is as follows:
[0122] 1. Loosen the bolts connecting the protective cover to the lining and remove the protective cover. 2. Loosen the bolts connecting the sensor bracket to the lining and remove the sensor. 3. Record the time when each sensor is removed for later data processing. 4. Install the sensor, warning support point and protective cover according to the new monitoring section position.
[0123] The solution provided by the embodiment of the present invention adopts the Transformer model to predict the deformation value and change rate development trend of the tunnel structure, which helps on-site engineers to more accurately predict and analyze the tunnel deformation, so as to take corresponding measures in time to prevent potential risks.
[0124] Although the 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 claims and their equivalents.
Claims
1. A tunnel structure deformation prediction method based on Transformer model, characterized in that: The following steps are involved: Step 1: Collect tunnel structure deformation data; Step 2: After preprocessing the collected data, divide it into training set and test set; Step 3: Construct a tunnel structure deformation prediction model based on the Transformer model; Step 4: Use the training set and the test set to train the tunnel structure deformation prediction model; Step 5: Use the trained tunnel structure deformation prediction model to predict the tunnel structure deformation prediction value and the predicted change rate; Step 6: Comprehensively evaluate the predicted tunnel structure deformation value and change rate to determine whether it is necessary to output corresponding warning information; the warning information is obtained through risk assessment scores: P1 and P2 represent the weight coefficient of the tunnel structure deformation value and the weight coefficient of the change rate respectively; m represents the deformation times of the three monitoring sections; n represents the number of times the rate of change of tunnel structure deformation exceeds the set threshold range; They represent the average value of tunnel structure deformation and the average rate of change of tunnel structure deformation respectively; They represent the duration of tunnel structure deformation and the duration of tunnel structure deformation change rate respectively; t i ,t i-1 Respectively represent the current moment and the previous moment of tunnel structure deformation; k represents the number of deformations of the tunnel structure; If the calculated risk assessment score is in the first warning interval, it is a minor warning, and the sensor changes from detecting deformation data in interval time periods to detecting deformation data in real time; If the calculated risk assessment score is in the second warning interval, it is a medium warning, and the LED in the tunnel will display and send the warning information to the user terminal; If the calculated risk assessment score is in the third warning range, it is a serious warning, the LED display at the tunnel entrance and inside the tunnel will be displayed, the tunnel risk situation will be sent to the user terminal, and an alarm will be sounded.
2. According to claim 1, a method for predicting tunnel structure deformation based on a Transformer model is characterized in that: The data is collected by sensors, and the arrangement of sensors includes: There are sections 1, 2 and 3 near the face. Three sensors are arranged around the section 1 and a square light plate is installed at the top of the section, within 10 meters from the tunnel face, to measure the settlement of the ring arch and horizontal convergence at the sensor installation location; Three sensors are arranged in the ring of section 2 and a square light plate is installed at the top of the section, 10-20 meters away from the tunnel face, to measure the crown settlement and horizontal convergence of the ring corresponding to the sensor installation location; Two sensors are arranged in the 3rd ring of the section to measure the settlement of the crown in front of the tunnel face and the deformation of the tunnel face itself along the longitudinal direction of the tunnel.
3. The tunnel structure deformation prediction method based on the Transformer model according to claim 1 is characterized in that: The data collected in step 1 include timestamp, sensor nickname, sensor number, temperature, X-axis angle, Y-axis angle, Z-axis angle, and laser distance, which can reflect the deformation characteristics of the tunnel structure.
4. The method for predicting tunnel structure deformation based on the Transformer model according to claim 1, characterized in that: The preprocessing in step 2 includes data cleaning, data conversion and data normalization; The data conversion is to convert the X-axis angle, Y-axis angle, Z-axis angle and laser distance collected by the sensor into the vault settlement and horizontal convergence values to represent the deformation of the tunnel structure: S i =d i sinβ i -d0sinβ0 C i =d i cosβ i -d0cosβ0 Where S i is the arch settlement value at time i, C i is the horizontal convergence value at time i, d i is the laser distance at time i, β i is the Y-axis tilt angle at time i, d0 is the laser distance at the initial time, β0 is the Y-axis tilt angle at the initial time, S i A negative value indicates that the tunnel vault has displacement and settlement along the gravity direction. i A negative value indicates that the tunnel lining is converging horizontally.
5. The method for predicting tunnel structure deformation based on the Transformer model according to claim 4, characterized in that: The data cleaning includes the judgment of abnormal data: S00, if the tilt angle of any axis changes significantly at a specific time point, it is determined that the sensor position changes, and the data after this period is determined as an abnormal value; S01, if the distance measurement suddenly decreases, but returns to an expected value after a short time, it is determined that the laser beam is blocked and the data of this period is determined as an abnormal value; S02, sending the sensor location and cause of the abnormal value to the user terminal.
6. The method for predicting tunnel structure deformation based on Transformer model according to claim 1, characterized in that: The tunnel structure deformation prediction model in step 3 includes an input layer, a decoding component, an encoding component and an output layer; The encoding component consists of multiple layers of encoders, and the decoding component consists of decoders with the same number of layers; The data input into the input layer is a time series consisting of vault settlement and horizontal convergence after data preprocessing. In addition, in order to incorporate the tunnel construction process information into the input of the model, the location labels representing the different process stages of rock tunnel construction are embedded in the input data; the encoding component then upgrades the features of the time series from low dimension to high dimension and outputs it, and the decoding component finally outputs a time series consisting of the predicted structural deformation values of the tunnel.
7. The method for predicting tunnel structure deformation based on Transformer model according to claim 1, characterized in that: The training of the tunnel structure deformation prediction model in step 4 comprises the following steps: Step 4.1, training the tunnel structure deformation prediction model using the training data set; Step 4.2, use the test set to test the tunnel structure deformation prediction model. If the accuracy index is less than or equal to the threshold, the tunnel structure deformation prediction model is trained. If the accuracy index is greater than the threshold, adjust the model parameters and continue to use the training set to train the tunnel structure deformation prediction model.
8. The method for predicting tunnel structure deformation based on Transformer model according to claim 1, characterized in that: The step 5 of using the dynamic Transformer model to predict the deformation value and change rate of the tunnel structure includes the following steps: The time series that has been preprocessed and is not in the training set or the test set is selected as input and imported into the tunnel structure deformation prediction model. The autoregressive equation is established to predict the output of the model by using the dependency between the values of the historical time series of the tunnel structure deformation values in different periods, and the predicted deformation value and change rate of the tunnel structure deformation prediction model are obtained. The autoregressive equation is as follows: The subscript letters in the formula represent the initial time t, a j is a constant coefficient, ε t is a random disturbance term, and the tunnel structure deformation prediction model predicts the value X t It is represented by the superposition of historical time series and random disturbances in the tunnel.
