Tunnel convergence deformation detection method and system based on YOLOv5
Real-time detection of tunnel convergence deformation through the YOLOv5 deep learning model solves the problem that traditional methods are difficult to accurately reflect tunnel convergence conditions, improves the reliability and efficiency of tunnel safety detection, and ensures long-term safe operation of tunnels.
Patent Information
- Application Number
- CN202410928098.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional tunnel convergence deformation detection methods are difficult to accurately reflect the specific convergence conditions of tunnels in different environments, affecting the safety of tunnels.
The YOLOv5 deep learning model is used to detect the convergence and deformation of the tunnel structure in real time through image recognition and analysis technology. The target center displacement changes are used to evaluate the degree of convergence and deformation of the tunnel, and data are collected for prediction and maintenance management.
It improves the reliability and efficiency of tunnel safety inspection, can detect potential problems earlier, ensures long-term safe operation of tunnels, and saves labor costs.
Smart Images

Figure CN118735899A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of tunnel deformation detection, and in particular relates to a tunnel convergence deformation detection method and system based on YOLOv5. Background Art
[0002] With the rapid development of the economy, the pace of road construction in my country is accelerating. As an important transportation and underground engineering structure, the safe operation of tunnels is of great significance to social economy and people's lives. However, tunnels may be affected by various factors during long-term use, such as geological changes, water and soil conditions, traffic loads, etc. These factors may cause the convergence and deformation of the tunnel structure, thereby affecting the safety of the tunnel. Therefore, tunnel convergence and deformation detection technology has become a key link in tunnel operation and maintenance.
[0003] Traditional detection methods are mainly based on the degradation model of material properties, assuming that materials will experience degradation during service, thus affecting the convergence of the tunnel. However, this method is difficult to accurately reflect the specific convergence of tunnels under different environments. In order to solve this problem, it is necessary to propose a tunnel convergence deformation detection method and system based on YOLOv5.
[0004] The present invention uses the YOLOv5 deep learning model to detect and evaluate the convergence and deformation of tunnel structures in real time through image recognition and analysis technology. Compared with traditional methods, the detection method based on YOLOv5 can more accurately capture the changes of tunnels in different environments, thereby improving the reliability and efficiency of tunnel safety detection. By adopting advanced deep learning technology, tunnel operators and maintenance personnel can discover potential problems earlier and take corresponding preventive measures to ensure the long-term safe operation of the tunnel. Summary of the invention
[0005] The present invention provides a method for detecting tunnel convergence deformation, which detects the displacement changes of the target centers installed on the tunnel vault, spandrel and waist in real time through the YOLOv5 target center detection model. Based on the change in the displacement of the target center, the degree of convergence deformation of the tunnel is evaluated using geometric relationships, thereby achieving real-time detection of tunnel convergence deformation. In addition, the method can also collect data changes during the tunnel convergence process. These data not only provide a detailed understanding of the health status of the tunnel structure, but can also be used for prediction, maintenance and safety management, further improving the safety and reliability of tunnel operations.
[0006] In order to solve the above technical problems, this application proposes a tunnel convergence deformation detection method based on YOLOv5, which specifically includes the following steps:
[0007] (1) Model training step: First, obtain the image of the target to be detected and preprocess the image. Then, use the preprocessed image to train the YOLOv5 target center detection model.
[0008] (2) Data collection step: collecting tunnel construction data and geographic data;
[0009] (3) Point analysis step to determine the target installation location and the detection equipment installation location;
[0010] (4) Equipment installation steps: installing the target at the target installation position and installing the corresponding detection equipment at the corresponding detection equipment position;
[0011] (5) Data analysis step: based on the data fed back by the detection camera, the coordinates of the target center are obtained and an overall analysis is performed. If the comparison result exceeds the preset threshold, an abnormal alarm is issued;
[0012] Basic solution working principle and beneficial effects:
[0013] When using this method, first use a 4K high-definition industrial camera to capture images of the target to be detected, and then perform preprocessing operations such as image screening, image sharpening, and image enhancement on the captured images. Next, use the image marking software Labelme to mark the target and the true position of the target center in each image. Use 70% of the images as the training set for training the YOLOv5 target center recognition model, and the remaining 30% as the verification set. Use the training set to train the YOLOv5 target center recognition model until the loss of the model gradually converges and then stop training. Use the verification set to verify the YOLOv5 target center recognition model when the loss tends to converge. When the verification result meets the requirements, the required YOLOv5 target center recognition model can be obtained.
[0014] Next, the construction data of the tunnel (including the dimensional data of a section of the tunnel) is collected. By analyzing the tunnel construction data, the position where the tunnel section is most likely to converge, that is, the target installation position, is determined. Based on the tunnel construction data and the target installation position data, the installation position of the detection equipment is analyzed to ensure that the detection equipment can fully detect a section of the tunnel.
[0015] After installing the corresponding equipment at the equipment installation points obtained in the above analysis, the convergence analysis of the tunnel is performed. The target image taken by the 4K high-definition industrial camera is analyzed to obtain the coordinates of the target center point, and compared with the corresponding target center, that is, the center position of the same target at different times is compared to obtain the offset of the target center over a period of time. If the offset exceeds the preset threshold, it means that the target installed on the tunnel section has been displaced, which usually means that the installation position of the target has changed and needs to be processed. Therefore, the system will issue a reminder for on-site confirmation by the corresponding staff. However, since tunnel convergence changes are a long-term process, in most cases no on-site confirmation by staff is required, which effectively saves labor costs and improves the convenience of tunnel convergence detection.
[0016] At the same time, the probability of convergence deformation is higher at the target installation location than at the detection device installation location. In this way, the validity of the detected target center position can be ensured.
[0017] In summary, this method improves the convenience of tunnel convergence detection on the basis of cost saving, and can continuously ensure the effectiveness of the detection results.
[0018] Beneficial effects:
[0019] After collecting target images of the tunnel section with a 4K high-definition industrial camera, the target center is identified using the YOLOv5 target center recognition model. Based on the change in the displacement of the target center, the convergence deformation degree of the tunnel is detected through geometric relationships, realizing real-time detection of tunnel convergence. At the same time, data changes during the tunnel convergence process are collected, which provide a detailed understanding of the health status of the tunnel structure and help with prediction, maintenance and safety management.
[0020] The use of this method to assist in determining whether a tunnel has converged can significantly improve the safety and reliability of tunnel use, thereby ensuring the safety of tunnel users. Through real-time detection and data analysis, this method not only improves the accuracy and efficiency of detection, but also effectively reduces labor costs and enhances the convenience and effectiveness of tunnel convergence detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flow chart of a tunnel convergence deformation detection method based on YOLOv5 in a specific implementation manner of the present invention;
[0022] Figure 2 It is a schematic diagram of the tunnel detection section structure in the present invention;
[0023] Figure 3 This is a schematic diagram of the equipment installation point in the present invention;
[0024] Figure 4 This is a schematic diagram of the actual installation effect of the device in the present invention;
[0025] Figure 5 The figure is a logic block diagram of a tunnel convergence deformation detection system based on YOLOv5 in a specific implementation manner of the present invention. DETAILED DESCRIPTION
[0026] like Figure 1 As shown, a tunnel convergence deformation detection method based on YOLOv5 is described, comprising the following steps:
[0027] The model training steps are as follows: first, use a 4K high-definition industrial camera to collect images of the target to be detected, then perform preprocessing operations such as image screening, image sharpening, and image enhancement on the collected images, and use the image marking software labelme to mark the real position of the target and the target center in each image. 70% of the images are used as the training set for training the YOLOv5 target center recognition model, and the remaining 30% are used as the validation set. The YOLOv5 target center recognition model is trained with the training set until the loss of the model gradually converges and then the training is stopped. The YOLOv5 target center recognition model when the loss tends to converge is tested with the validation set. When the test results meet the requirements, the required YOLOv5 target center recognition model is obtained.
[0028] Data collection steps include collecting tunnel construction data (e.g., the dimension data of a tunnel section), and the structural diagram of the tunnel. Figure 2 As shown, these data are used to analyze the locations where tunnel convergence is likely to occur, so as to ensure the effectiveness of subsequent detection points.
[0029] The point analysis step is to analyze the collected tunnel construction data to determine the installation positions of the five targets on a tunnel section and the installation positions of the detection equipment for detecting the targets. The installation position of the detection equipment must ensure that a section of the tunnel can be fully detected. The schematic diagram of the relevant equipment installation points is as follows: Figure 3 shown.
[0030] Equipment installation steps: According to the equipment installation points obtained in the point analysis steps, install the corresponding equipment respectively. The actual equipment installation effect diagram is as follows Figure 4 As shown. The target is a 15×15 cm acrylic plate, the center is covered with a 10×10 cm non-reflective black material, and the rest is covered with reflective film. The detection equipment consists of a camera and a small development board. The camera uses a traditional low-light 4K high-definition industrial camera, and the development board uses an artificial intelligence development board. When installing the target, make sure it does not tilt. When installing the camera, make sure that the shooting range completely covers all targets in a section, and fix the development board at the corresponding point.
[0031] In the data analysis step, the target center point is analyzed using the target image taken by the camera, and then compared with the corresponding target center point. That is, the target center point coordinates at different times are compared to obtain the offset of the target center. If the offset of the target center exceeds the preset maximum threshold, it means that the installation position of the target has been deformed, and the system will issue an abnormal reminder.
[0032] like Figure 5 As shown, in order to effectively apply the above method, the present application also provides a tunnel convergence deformation detection system based on YOLOv5, including a data acquisition end, a data processing end and a data storage end.
[0033] The data acquisition end includes a target and a camera. The target is installed at a specific position of the tunnel section to be inspected to ensure that the entire inspection area is covered. The camera is installed at the corresponding scanning point and is responsible for collecting the target image of the tunnel section and transmitting the data to the data processing end.
[0034] In this embodiment, the data processing end is divided into two parts: a data processing module and a comparison and analysis module.
[0035] The data processing module is responsible for processing the target images at special points captured by the camera. The YOLOv5 target center recognition model described above is used for analysis to obtain the target center coordinates of the special points.
[0036] The comparative analysis module performs comparative analysis based on the target center coordinates of each special point at different time points. By comparing the target center coordinates in different time periods, the offset of each target center coordinate in a period of time is obtained. If the offset of the target center coordinate obtained by comparison exceeds the preset maximum offset threshold, it means that the target installed on the tunnel section has shifted. Generally speaking, it can be considered that the special point where the target is located has converged, and the system will issue a reminder.
[0037] In this embodiment, the data storage end is a cloud server, which is used to store the changes in the target center coordinates during the tunnel convergence process. These data provide a detailed understanding of the health of the tunnel structure, which helps to predict the tunnel convergence and the corresponding maintenance and safety management work.
[0038] The specific implementation process is as follows:
[0039] First, a 4K high-definition industrial camera is used to capture images of the target to be detected, and then the captured images are preprocessed by image screening, image sharpening, and image enhancement. Next, the image labeling software Labelme is used to mark the target and the true position of the target center in each image. 70% of the images are used as the training set for training the YOLOv5 target center recognition model, and the remaining 30% are used as the validation set.
[0040] Next, the YOLOv5 target center recognition model is trained using the training set until the training loss becomes stable. Then, the performance of the model when the training loss becomes stable is evaluated using the validation set. The YOLOv5 target center recognition model trained with the training set is considered to meet the requirements only when the recognition success rate of the target center is greater than the preset threshold. The threshold needs to be set according to the tunnel site environment. Generally, in order to ensure the recognition effect of the model on the target center, the threshold can be set higher, such as 80% or 90%.
[0041] Then, the construction data of the tunnel to be inspected and the environmental data around the tunnel are collected. By analyzing these data, the location where the tunnel section is most likely to converge, that is, the target installation location, is determined. Based on the tunnel construction data and the above analysis results, the target installation location and the installation location of the detection equipment are determined.
[0042] After the corresponding equipment is installed at the determined equipment installation point, the convergence of the tunnel is detected. The camera collects images containing all targets in a section, and then uses the trained YOLOv5 target center recognition model to analyze the collected images. After obtaining the center coordinates of each target, it is compared with the previous target center coordinates. Specifically, the center coordinates of the same target are compared with the center coordinates of the same target in different time periods to obtain the offset of the target center coordinates over a period of time. If the offset obtained by comparison exceeds the preset threshold, it means that the target installed on the tunnel section has shifted. Usually, this indicates that the target installation position has changed and needs to be processed. Therefore, the system will issue a reminder for the corresponding staff to confirm on site. Given that tunnel convergence changes are a long-term process, in most cases, there is no need for staff to confirm on site, which effectively saves labor costs and improves the convenience of tunnel convergence detection. At the same time, the probability of convergence deformation at the target installation position is higher than that at the camera installation position. In this way, the validity of the detected target center position can be guaranteed.
[0043] In summary, this method can improve the convenience of tunnel convergence detection on the basis of cost saving, and can continuously ensure the effectiveness of the detection results.
Claims
1. A tunnel convergence deformation detection method based on YOLOv5, characterized in that: include: Model training step: obtaining the image data of the target to be detected, performing data enhancement on the image, and constructing a target data set; Use the constructed target dataset to train the YOLOv5 target center detection network; Data collection step, collecting tunnel construction data and geographic data; Point analysis step to determine the target installation location and the detection equipment installation location; Equipment installation steps, installing the target at the target installation position, and installing the corresponding detection equipment at the detection equipment installation position; The data analysis step is to obtain the coordinates of the target center and perform an overall analysis based on the data fed back by the detection camera; if the comparison result exceeds the preset threshold, an abnormal alarm is issued.
2. According to the tunnel convergence deformation detection method based on YOLOv5 in claim 1, the acquisition is characterized in that: The target image data is enhanced, including brightness change, contrast enhancement, and rotation operations. All the target image data to be detected constitute a data set for training the YOLOv5 target center detection model. The target data set is divided into a training set and a validation set, including: The acquired target image data is used to construct a dataset for training the YOLOv5 target center detection model, and the dataset is annotated. The image size of the dataset used to train the YOLOv5 target center detection model is unified to 640×640. The data set obtained after data enhancement for training the YOLOv5 target center detection model is divided into a training set and a validation set in a ratio of 70% and 30%, and the model training process uses 8 as the batch size for training.
3. The tunnel convergence deformation detection method based on YOLOv5 according to claim 1, characterized in that: In the point analysis step, five locations on a tunnel section that are prone to deformation are obtained for monitoring.
4. The tunnel convergence deformation detection method based on YOLOv5 according to claim 1, characterized in that: In the data analysis step, if the target offset obtained by comparison exceeds a preset threshold, an abnormality alert will be issued.
5. The tunnel convergence deformation detection method based on YOLOv5 according to claim 1, characterized in that: The construction data includes the length, width, height and curvature of the cross section of the tunnel, and the geographic data includes the geographical location of the tunnel and the landform features.
6. A tunnel convergence deformation detection system based on YOLOv5, characterized in that The tunnel convergence deformation detection method based on YOLOv5 as mentioned in any one of claims 1 to 5. The system includes a data acquisition end, a data processing end and a data storage end. The data acquisition end includes a target and a detection device. The target is installed at a specified position of the tunnel to reflect the deformation of the tunnel. The detection device is responsible for taking the target image and sending the data to the data processing end. The data processing end receives and analyzes the target image, extracts the target center data, and then sends the data to the data storage end for storage.
Citation Information
Cited By
Tunnel structure intelligent monitoring system based on machine vision
CN120101653A
