Slope apparent disease detection method based on photogrammetry and target detection model
Through the slope apparent disease detection method based on photogrammetry and deep learning, a three-dimensional real-life model and panoramic expansion view are generated. Combined with the target detection model, the problems of low efficiency and insufficient accuracy of traditional detection methods are solved, and the detection of slope diseases is realized. Fast, accurate identification and improved reliability of detection results.
Patent Information
- Application Number
- CN202411057654.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional slope detection methods are inefficient, pose safety risks, and cannot effectively identify large-scale diseases. Existing drone aerial photography methods cause image parallax and distortion due to variability in shooting angles and positions, which limits the accuracy of disease identification.
A slope apparent disease detection method based on photogrammetry and target detection models is used to collect multi-angle image data through drones to generate a three-dimensional real-life model and a parallax-free panoramic expansion. It is combined with a deep learning model for data annotation and training to optimize the target. Detection models to improve detection accuracy.
It achieves rapid and accurate identification of slope diseases, reduces the missed detection rate, improves the credibility and reliability of detection results, and is suitable for disease detection on large-scale slopes and other structures.
Smart Images

Figure CN118570684A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of slope surface disease detection, and in particular to a slope surface disease detection method based on photogrammetry and a target detection model. Background Art
[0002] The traditional method of slope inspection is manual climbing and visual inspection. This method is not efficient and has certain safety risks (the rainy season in the south is long, the route is slippery, there are snake and insect bites, and the risk of falling from height is high). In addition, for large-scale diseases, such as slope collapse and landslide, the manual inspection method cannot show the full picture of the disease. Due to the randomness of the manual shooting position, the collected images lack calibration reference objects. The handheld device collects images with large differences in viewing angles, which is not convenient for subsequent evaluation of the geometric parameters of the disease (such as the size and number of the affected area of the disease). At the same time, for some early slopes, there are no inspection ladders and the slope surface is densely covered with vegetation, which makes it easy to miss large-scale diseases.
[0003] In recent years, with the promotion of drone aerial photography technology, a relatively mature "man-machine" combined slope inspection model has been formed in the field of highway slope inspection. Although the drone aerial photography inspection method solves the problem of restricted geographical conditions, the variability of shooting angles and positions causes parallax and image distortion in the collected images, which still has great limitations for the subsequent disease identification work that relies on technical personnel inspection.
[0004] Therefore, it is urgent to invent a slope surface disease detection method that can quickly and accurately identify slope surface diseases. Summary of the invention
[0005] The purpose of the present invention is to provide a slope surface disease detection method based on photogrammetry and target detection model to solve the problems raised in the background technology.
[0006] To achieve the above object, the present invention provides a slope surface disease detection method based on photogrammetry and target detection model, comprising the following steps: Step 1: Collection and processing of original slope image data: Use drone aerial photography to obtain slope image data from multiple angles and heights, and use 3D modeling software to generate a 3D real-life model of the target slope to create a panoramic expansion map of the slope surface without parallax; crop the panoramic expansion map of the slope surface into blocks that meet the input requirements of the deep learning model, which will be used for subsequent data annotation and deep learning model training; Step 2: Preprocessing and labeling of slope image data: Perform data screening of slope images, remove images with poor imaging conditions and too much interference information, use marking tools to mark the diseased areas for blocks with apparent slope diseases, generate a marking file with the disease category and marking frame coordinate information, construct a multi-category slope apparent disease dataset, and divide the dataset into training set and validation set according to a certain ratio; Step 3: Target detection model training: Select a deep learning target detection model suitable for the slope surface disease detection task, and train the model using the data set prepared in step 2; continuously optimize the model to improve the accuracy and efficiency of disease detection by adjusting the model hyperparameters, optimizer, and learning rate, and select the optimal target detection model by comprehensively considering the mAP@0.5 indicator; Step 4: Detection of apparent slope damage: In the actual slope inspection scenario, drones are used to collect image data of the slope to be inspected, and 3D modeling software is also used to generate a 3D real-life model of the slope to be inspected, and a parallax-free panoramic expansion map of the slope surface is produced; the cropped panoramic expansion map is input into the target detection model trained in step 3 to perform disease detection and positioning, and output the slope surface disease detection results.
[0007] Furthermore, in step 1, the three-dimensional modeling software Agisoft Metashape is used to construct the collected images to obtain a three-dimensional real scene model; wherein the heading overlap rate of the slope images obtained by aerial photography is at least 80%, and the lateral overlap rate is at least 60%.
[0008] Furthermore, the method for producing the parallax-free panoramic expansion image in step 1 specifically includes: Step 1.3.1, acquisition of stitching sequence images: the scene to be stitched is collected into an original stitching sequence image set through a framing camera device; Step 1.3.2: Preprocessing of stitching sequence images: Use the grid ray method to intersect the designed slope surface contour and the actual slope surface contour, correct the radial distortion of the sequence images, and eliminate parallax; Step 1.3.3, registration and optimization of sequence images: perform image registration based on image feature points, complete matching images by pairing image feature point pairs, calculate the geometric transformation matrix between matching images according to the projection transformation rule, and finally adjust the parameters to minimize the registration error of the spliced image; Step 1.3.4, stitching sequence image transformation: transform the coordinates of each image to the set standard reference plane, so that the coordinates of each sequence image are unified on the same plane, completing the preliminary panoramic image stitching work; Step 1.3.5, sequence image fusion: After the images are uniformly transformed to a unified reference plane, exposure compensation, optimal stitching line search and multi-scale fusion operation are performed on the images to eliminate the stitching traces of the overlapping transition areas of the images in the sequence expansion diagram.
[0009] Furthermore, in step 2, the image with too much interference information refers to the image with dense vegetation coverage, and the marking tool is the labelimg marking tool; the disease data set includes the following diseases: slope scour and landslide, intercepting ditch blockage, slope concrete damage, slope cracking, anchor head damage and wall seepage and mud flow.
[0010] Furthermore, the target detection model in step 3 is a Faster R-CNN model or a YOLOv8 model.
[0011] Furthermore, the indicator mAP@0.5 in step 3 specifically refers to the average precision when the IoU threshold is 0.5.
[0012] Compared with the prior art, the present invention has the following beneficial effects: The present invention comprehensively utilizes photogrammetry and deep learning technology, and applies it to the detection of apparent diseases on slopes, providing an efficient and accurate disease detection method. The detection method utilizes the three-dimensional real-life model and panoramic expansion map of the slope to achieve complete coverage of the slope surface and unified viewing angle, and more intuitively and clearly display the details of slope diseases, thereby reducing the missed detection rate of diseases. Based on the panoramic expansion map, a multi-category slope apparent disease data set is constructed, and the slope image data set is normalized and standardized in combination with the characteristics of the target detection model. This series of data processing measures significantly improves the quality of slope image data, thereby greatly improving the accuracy and robustness of the target detection model, and also enhances the credibility and reliability of the detection results. This detection method is not only suitable for the detection of apparent diseases on slopes, but the same workflow can be applied to the detection of diseases on other structures.
[0013] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 It is a flow chart of a slope surface disease detection method based on photogrammetry and target detection model of the present invention; Figure 2It is a flow chart of constructing a panoramic expansion image of a slope table without parallax in the method of the present invention; Figure 3 It is a front view of the three-dimensional real-scene model of the slope in the method of the present invention; Figure 4 It is a side view of the three-dimensional real scene model of the slope in the method of the present invention; Figure 5 It is a local detail diagram of the panoramic expansion diagram of the slope in the method of the present invention; Figure 6 It is a panoramic expansion diagram of the slope in the method of the present invention; Figure 7 It is a schematic diagram of typical slope surface disease marking in the method of the present invention; Figure 8 It is a schematic diagram of the detection result of detecting the target slope using the method of the present invention. DETAILED DESCRIPTION
[0015] The present invention will be described in detail below in conjunction with the various embodiments shown in the accompanying drawings, but it should be noted that these embodiments are not limitations of the present invention, and equivalent changes or substitutions in functions, methods, or structures made by ordinary technicians in the field based on these embodiments are all within the scope of protection of the present invention.
[0016] See also Figures 1 to 8 This embodiment provides a slope surface disease detection method based on photogrammetry and target detection model, comprising the following steps: Step 1: Collection and processing of original slope image data: Use drone aerial photography to obtain slope image data from multiple angles and heights, and use 3D modeling software to generate a 3D real-life model of the target slope (see Figure 3 and Figure 4 ), to produce a panoramic expansion of the slope surface without parallax (see Figure 5 and Figure 6 ). At the same time, in order to meet the input requirements of the deep learning model, the panoramic expansion map of the slope surface is cropped into blocks suitable for model training. The preferred block size is 640×640. These blocks will be used for subsequent data annotation and deep learning model training. In this step: 1.1. Collect slope surface images: For the slope images required to construct the 3D real-scene model, it is necessary to ensure that the captured slope image set is complete and can show the 3D full picture of the slope, and the same point is required to appear in at least three pictures; in actual operation, it is necessary to ensure that the heading overlap rate of the image is at least 80%, and the lateral overlap rate is at least 60%.
[0017] 1.2. Constructing a refined 3D real scene model based on drone wall photography technology: Currently, there are many solutions that can achieve 3D reconstruction of multiple photos, such as commercial software Pix4D, Agisoft Metashape, and free software such as Visual SFM (OpenMVG) + OpenMVS + Meshlab. The software used in this embodiment is Agisoft Metashape.
[0018] 1.3. The method for producing a panoramic expansion map of a slope surface without parallax specifically includes: Step 1.3.1, acquisition of stitching sequence images: the scene to be stitched is collected into an original stitching sequence image set through a framing camera device; Step 1.3.2: Preprocessing of stitching sequence images: Use the grid ray method to intersect the designed slope surface contour and the actual slope surface contour, correct the radial distortion of the sequence images, and eliminate parallax; Step 1.3.3, registration and optimization of sequence images: perform image registration based on image feature points, complete matching images by pairing image feature point pairs, calculate the geometric transformation matrix between matching images according to the projection transformation rule, and finally adjust the parameters to minimize the registration error of the spliced image; Step 1.3.4, stitching sequence image transformation: transform the coordinates of each image to the set standard reference plane, so that the coordinates of each sequence image are unified on the same plane, completing the preliminary panoramic image stitching work; Step 1.3.5, sequence image fusion: After the images are uniformly transformed to a unified reference plane, exposure compensation, optimal stitching line search and multi-scale fusion operation are performed on the images to eliminate the stitching traces of the overlapping transition areas of the images in the sequence expansion diagram.
[0019] Step 2: Preprocessing and labeling of slope image data: Screen the slope image data, remove images with poor imaging conditions and too much interference information (dense vegetation coverage), use professional marking tools (such as labelimg) to mark the diseased areas for blocks with slope apparent diseases, generate a marking file with the disease category and marking frame coordinate information, and construct a multi-category slope apparent disease dataset. The dataset should include but not be limited to the following diseases: slope scour and collapse, intercepting ditch blockage, slope concrete damage, slope cracking, anchor head damage, wall seepage and mud flow, etc. At the same time, divide the dataset into training set and validation set according to a certain ratio.
[0020] Step 3, target detection model training: Select a deep learning target detection model suitable for the task of slope surface disease detection, such as Faster R-CNN or YOLOv8, and use the data set prepared in step 2 for training. Input the screened slope disease images and annotated data into the model, and use the validation set to evaluate the model and tune the hyperparameters to prevent the model from overfitting. That is, by adjusting the model hyperparameters, optimizer and learning rate, the model is continuously optimized to improve the accuracy and efficiency of disease detection. Finally, the model performance is comprehensively measured according to indicators such as mAP@0.5 to select the optimal model. Among them, the indicator mAP@0.5 specifically refers to the average precision under the IoU (intersection over union) threshold of 0.5, which is an important evaluation indicator of the target detection algorithm. It calculates the average precision (AP) of each category and then averages the AP of all categories. Average precision (AP) is the area under the precision-recall curve. When the IoU (intersection over union) threshold is set to 0.5, if the IoU between the predicted box and the true box is at least 0.5, the prediction is considered correct. mAP@0.5 provides a single number summarizing the performance of precision and recall, making it easier to compare different models.
[0021] Step 4: Slope surface disease detection: In the actual slope inspection scene (deploy the trained target detection model to the actual slope disease detection environment), use a drone to collect image data of the slope to be detected, generate a 3D real-life model of the slope through the modeling software Agisoft Metashape, make a parallax-free panoramic expansion of the slope surface, and cut it into blocks suitable for the model. Then input it into the optimal slope surface disease target detection model trained in step 3 to perform disease detection and positioning, and output the automated detection results including the slope surface disease type and rectangular marking box (see Figure 8 , where the number in the upper right corner of the identification box is the confidence of the identification result. For example, slope cracking 0.87 means that the confidence that slope cracking exists in this area is 0.87, slope cracking 0.68 means that the confidence that slope cracking exists in this area is 0.68, slope scour and landslide 0.92 means that the confidence that slope scour and landslide exists in this area is 0.92, slope concrete damage 0.61 means that the confidence that slope concrete damage exists in this area is 0.61, and slope concrete damage 0.93 means that the confidence that slope concrete damage exists in this area is 0.93).
[0022] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting slope surface damage based on photogrammetry and target detection model, characterized in that: The following steps are involved: Step 1: Collection and processing of original slope image data: Use drone aerial photography to obtain slope image data from multiple angles and heights, and use 3D modeling software to generate a 3D real-life model of the target slope to create a panoramic expansion map of the slope surface without parallax; crop the panoramic expansion map of the slope surface into blocks that meet the input requirements of the deep learning model, which will be used for subsequent data annotation and deep learning model training; Step 2: Preprocessing and labeling of slope image data: Perform data screening of slope images, remove images with poor imaging conditions and too much interference information, use marking tools to mark the diseased areas for blocks with apparent slope diseases, generate a marking file with the disease category and marking frame coordinate information, construct a multi-category slope apparent disease dataset, and divide the dataset into training set and validation set according to a certain ratio; Step 3: Target detection model training: Select a deep learning target detection model suitable for the slope surface disease detection task, and train the model using the data set prepared in step 2; continuously optimize the model to improve the accuracy and efficiency of disease detection by adjusting the model hyperparameters, optimizer, and learning rate, and select the optimal target detection model by comprehensively considering the mAP@0.5 indicator; Step 4: Detection of apparent slope damage: In the actual slope inspection scenario, drones are used to collect image data of the slope to be inspected, and 3D modeling software is also used to generate a 3D real-life model of the slope to be inspected, and a parallax-free panoramic expansion map of the slope surface is produced; the cropped panoramic expansion map is input into the target detection model trained in step 3 to perform disease detection and positioning, and output the slope surface disease detection results.
2. The method according to claim 1, characterized in that In the step 1, the collected images are constructed using the 3D modeling software Agisoft Metashape to obtain a 3D real scene model; wherein the heading overlap rate of the slope images obtained by aerial photography is at least 80%, and the lateral overlap rate is at least 60%.
3. The method according to claim 1, characterized in that The method for making the panoramic expansion image of the slope surface without parallax in step 1 specifically includes: Step 1.3.1, acquisition of stitching sequence images: the scene to be stitched is collected into an original stitching sequence image set through a framing camera device; Step 1.3.2: Preprocessing of stitching sequence images: Use the grid ray method to intersect the designed slope surface contour and the actual slope surface contour, correct the radial distortion of the sequence images, and eliminate parallax; Step 1.3.3, registration and optimization of sequence images: perform image registration based on image feature points, complete matching images by pairing image feature point pairs, calculate the geometric transformation matrix between matching images according to the projection transformation rule, and finally adjust the parameters to minimize the registration error of the spliced image; Step 1.3.4, stitching sequence image transformation: transform the coordinates of each image to the set standard reference plane, so that the coordinates of each sequence image are unified on the same plane, completing the preliminary panoramic image stitching work; Step 1.3.5, sequence image fusion: After the images are uniformly transformed to a unified reference plane, exposure compensation, optimal stitching line search and multi-scale fusion operation are performed on the images to eliminate the stitching traces of the overlapping transition areas of the images in the sequence expansion diagram.
4. The method according to claim 1, characterized in that In step 2, the image with too much interference information refers to the image with dense vegetation coverage, and the marking tool is the labelimg marking tool; the disease data set includes the following diseases: slope scour and landslide, intercepting ditch blockage, slope concrete damage, slope cracking, anchor head damage and wall seepage and mud flow.
5. The method according to claim 1, characterized in that The target detection model in step 3 is a Faster R-CNN model or a YOLOv8 model.
6. The method according to claim 1, characterized in that The indicator mAP@0.5 in step 3 specifically refers to the average precision when the IoU threshold is 0.5.
Citation Information
Patent Citations
Method for automatically identifying side slope rock types
CN110232419A
Loess road slope health monitoring method
CN114353876A
Dam slope landslide intelligent identification and early warning method based on YOLOv7
CN116704357A
Pavement disease recognition method and system, device, and storage medium
WO2024060529A1
Cited By
Expressway slope apparent disease identification method and system under view angle of unmanned aerial vehicle
CN122695525A
