Road crack detection method based on improved YOLOv8

By improving the YOLOv8 algorithm and enhancing feature extraction and target receptive fields, the problem of missed detection and false detection in highway crack detection is solved, and efficient and accurate crack detection is achieved, which is suitable for complex backgrounds and different lighting conditions.

CN118762298APending Publication Date: 2024-10-11UNIV OF SCI & TECH LIAONING
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410911824.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing YOLOv8 algorithm has problems of missed detection, false detection and low accuracy in detecting highway cracks, especially under complex backgrounds.

Method used

By improving the YOLOv8 algorithm, adding a lightweight convolutional ASDown module and a small target detection layer, optimizing the Backbone, Neck and Head network structures, enhancing feature extraction and target receptive fields, and combining with the multi-scale expansion module, the detection accuracy of small-sized cracks is improved. properties, and improve algorithm performance through data enhancement and iterative training.

Benefits of technology

It significantly reduces the missed detection and false detection rates, improves the accuracy and efficiency of highway crack detection, is suitable for different lighting conditions and high-noise environments, reduces resource consumption, and achieves efficient highway crack detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762298A_ABST
    Figure CN118762298A_ABST
Patent Text Reader

Abstract

The invention relates to an improved YOLOv8-based road crack detection method, which is characterized by comprising the following steps of: 1, shooting a road crack image from a high-altitude aerial view angle by using unmanned aerial vehicle equipment; 2, marking the shot road crack image, and creating a data set in a YOLO format; 3, performing data enhancement operation on the data set in the YOLO format, and dividing the enhanced data set into a training set, a verification set and a test set; 4, inputting the enhanced data set into an initial YOLOv8 algorithm for training, and obtaining a detection result of the initial YOLOv8 algorithm; and step 5, optimizing and improving the initial YOLOv8 algorithm, uploading an improved YOLOv8 algorithm weight file to a monitoring center, and then uploading a road crack image to be detected to the monitoring center, so that the road crack can be detected and classified by using the improved YOLOv8 algorithm. The detection performance of the algorithm exceeds that of other algorithms in the target detection field, and the speed and accuracy of road crack detection are more superior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of highway crack detection, and in particular to a highway crack detection method based on improved YOLOv8. Background Art

[0002] Highways are an indispensable and important infrastructure in modern society. They connect urban and rural areas, promote economic development, and improve people's quality of life. The development of the highway network has not only improved the efficiency of cargo transportation, but also made people's travel more convenient and promoted the prosperity of the tourism industry. In addition, highways also play an important role in emergency rescue and disaster response, providing a smooth passage for rescue vehicles and materials, and ensuring social safety and stability. However, highways will inevitably be damaged and cracked during long-term use, and may cause serious collapse disasters. Therefore, regular inspection and maintenance are essential to prevent catastrophic accidents.

[0003] Highway crack detection methods can generally be divided into two types: manual detection and machine learning-based detection. Manual detection refers to manual inspection of the highway surface, using the naked eye or simple tools (such as hammers, ladders, etc.) to visually inspect the cracks. This method relies on the experience and training level of the staff, is subjective and unstable, and is time-consuming and laborious. The machine learning-based highway crack detection method uses various sensors and technologies, such as laser scanning, cameras, radars, etc., to quickly and accurately detect the highway surface. By collecting a large amount of data and using machine learning algorithms such as convolutional neural networks (CNNs) and recurrent neural networks (RNNs), crack feature extraction and pattern recognition are performed to achieve automated crack detection. This machine learning-based method has many advantages. First, it has high accuracy and can detect cracks quickly and automatically without being affected by human factors. Second, it can improve highway maintenance efficiency and reduce maintenance costs. Due to the use of deep learning technology, this method has made significant progress in the field of image processing and has been widely used in highway crack detection. Today, deep learning algorithms play an important role in highway crack detection due to their excellent performance. It can process a large amount of image data and improve the accuracy and efficiency of crack detection by learning features and patterns.

[0004] After searching, the Chinese patent with announcement number CN117541881B discloses a road damage detection method and system. Based on the YOLOX network, the MSF-YOLO road damage detection algorithm is constructed, which improves the accuracy of algorithm detection and reduces accidents caused by road hazards.

[0005] After searching, the Chinese patent with announcement number CN110569730B discloses a method for automatic identification of pavement cracks based on the U-net neural network algorithm, which adjusts the U-net algorithm structure to achieve fast and efficient automatic identification of pavement cracks.

[0006] Most of the existing crack detection methods are developed based on general object detectors. However, due to the large changes in crack shapes, conventional object detection methods encounter many problems when applied to crack detection and other complex detection tasks, such as the algorithm being disturbed by complex backgrounds and resulting in false detections, insufficient information interaction in the FPN structure and resulting in missed detections, and long training and inference time. Summary of the invention

[0007] In view of the problems of missed detection, false detection and inaccurate target frame positioning in the process of detecting road cracks in the existing YOLOv8 algorithm, the purpose of the present invention is to provide a road crack detection method based on improved YOLOv8. The method uses drones to obtain road crack data sets and improves the initial YOLOv8 algorithm to solve the problems of missed detection, false detection and low accuracy of the initial YOLOv8 algorithm under complex background interference.

[0008] To achieve the above object, the present invention adopts the following technical solution:

[0009] A road crack detection method based on improved YOLOv8 includes the following steps:

[0010] Step 1: Use drone equipment to take pictures of road cracks from a high altitude perspective;

[0011] Step 2: Classify the images according to the size, depth, width, and shape characteristics of the road cracks, use the LabelImg annotation tool to annotate the classified road crack images, and create a YOLO format dataset;

[0012] Step 3: Perform data augmentation on the YOLO format dataset and divide the augmented dataset into training set, validation set, and test set;

[0013] Step 4: Input the training set, validation set, and test set into the initial YOLOv8 algorithm for training to obtain the detection results of the initial YOLOv8 algorithm;

[0014] Step 5: According to the detection results of the initial YOLOv8 algorithm, the initial YOLOv8 algorithm is optimized and improved to obtain an improved YOLOv8 algorithm; the improved YOLOv8 algorithm weight file is uploaded to the monitoring center, and then the road crack image to be detected is uploaded to the monitoring center, and the improved YOLOv8 algorithm can be used to detect and classify road cracks;

[0015] The following improvements are made to the initial YOLOv8 algorithm:

[0016] The improved YOLOv8 algorithm includes Backbone network, Neck network and Head network;

[0017] The Backbone network adds a lightweight convolution ASDown module for feature integration and channel transformation, adds a small target detection layer, including the ASDown module and the C2f module, and changes the original connection method to enhance the ability to extract small features;

[0018] The Neck network also adds a lightweight convolution ASDown module and a small target detection layer, including an Upsample module, a Concat module, and a C2f module, and changes the original connection method; a C2f-MSD module is added to expand the receptive field of the target;

[0019] The Head network adds a small target detection head to improve the detection accuracy of small-sized cracks;

[0020] Furthermore, the annotation content in step 2 includes the bounding box position and category of the crack.

[0021] Furthermore, the data enhancement operations described in step 3 are performed on the YOLO format dataset, including image rotation, translation, brightness change, noise addition, and cropping.

[0022] Furthermore, as described in step 4, the training set, validation set and test set are input into the initial YOLOv8 algorithm for training; the training set optimizes the initial YOLOv8 algorithm parameters to reduce the prediction error, the validation set adjusts the hyperparameters of the initial YOLOv8 algorithm and evaluates the performance of the algorithm, and the test set evaluates the generalization ability and performance of the trained and verified initial YOLOv8 algorithm; through multiple rounds of iterative training algorithms, the detection results of the initial YOLOv8 algorithm are obtained.

[0023] Further, the Backbone network described in step 5 includes a CBS module, a first ASDown module, a first C2f module, a second ASDown module, a second C2f module, a third ASDown module, a third C2f module, a fourth ASDown module, a fourth C2f module and an SPPF module connected in sequence.

[0024] Further, the Neck network in step 5 includes a first Upsample module, a first Concat module, a fifth C2f module, a second Upsample module, a second Concat module, a sixth C2f module, a third Upsample module, a third Concat module, a seventh C2f module, a fifth ASDown module, a fourth Concat module, a first C2f-MSD module, a sixth ASDown module, a fifth Concat module, a second C2f-MSD module, a seventh ASDown module, a sixth Concat module and a third C2f-MSD module connected in sequence. The SPPF module is connected to the first Upsample module, the first Concat module splices the output features of the first Upsample module with the output features of the third C2f module and inputs them to the fifth C2f module and the second Upsample module, the output features of the second Upsample module and the output features of the second C2f are spliced ​​through the second Concat module and input to the sixth C2f module and the third Upsample module, the output features of the third Upsample module and the output features of the first C2f module are spliced ​​through the third Concat module and output to the seventh C2f module and the fifth ASDown module; the output features of the fifth ASDown module The output features of the sixth C2f module and the output features of the sixth C2f module are spliced ​​through the fourth Concat module and output to the first C2f-MSD module and the sixth ASDown module. The output features of the sixth ASDown module and the output features of the fifth C2f module are spliced ​​through the fifth Concat module and output to the second C2f-MSD module and the seventh ASDown module. The output features of the seventh ASDown module and the output features of the SPPF module are spliced ​​through the sixth Concat module and output to the third C2f-MSD module. The output features of the seventh C2f module, the first C2f-MSD module, the second C2f-MSD module and the third C2f-MSD module are input to the Head network.

[0025] Furthermore, the ASDown module implementation process in step 5 is as follows:

[0026] Includes the Averagepool module, Conv 1*1 module, SiLU activation function module, Maxpool module and Concat module; the output features of the Averagepool module are also input to Conv 3*3 In the module, Conv 3*3 The output features of the module and the output features of the Maxpool module are concatenated and output through the Concat module.

[0027] Furthermore, the MSD module implementation process in step 5 is as follows:

[0028] Including the first Conv connected in sequence 1*1 Module, Conv 3*3 Modules, Module, Concat module, second Conv 1*1 module, BatchNorm2d module and GELU activation function module; the first Conv 1*1 The output features of the module are also combined with the second Conv 1*1 Module connection, Conv 3*3 The output features of the module are also input into Modules and Modules, Modules, Modules and The output features of the module are concatenated by the Concat module and then output to the second Conv 1*1 Module, the formula is expressed as follows:

[0029] Y1=Conv 3*3 (X)#(1)

[0030]

[0031] Y5=Concat(Y2,Y3,Y4)#(5)

[0032] Y6=Conv 1*1 (Y5)+Y1#(6)

[0033] In the above formula, Conv 1*1 Represents a regular convolution with a convolution kernel size of 1; Conv 3*3 Represents a regular convolution with a kernel size of 3; represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 1; represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 3; It represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 5. Concat represents a concatenation module.

[0034] Furthermore, the C2f-MSD module in step 5 replaces the second Conv module of the Bottleneck module in the C2f module with an MSD module.

[0035] A UAV device used in a road crack detection method based on improved YOLOv8 includes the following modules:

[0036] Image acquisition module: real-time collection of road surface image data to ensure high image quality and adapt to different lighting conditions; the drone is equipped with a high-resolution camera to capture clear and detailed road images;

[0037] Data transmission module: Through wireless communication technology, the UAV and the monitoring center establish a reliable data transmission channel, and transmit image data to the monitoring center in real time for processing and analysis;

[0038] Highway crack category and damage degree detection module: Use the improved YOLOv8 algorithm to classify and identify highway crack image data, calculate the confidence of different types of cracks, and feedback the identification results and confidence information for staff to confirm and make maintenance decisions.

[0039] Beneficial effects: Compared with the prior art, the present invention has the following beneficial effects:

[0040] 1. The present invention makes full use of the flexibility and terrain-insensitive characteristics of drones, collects image data along the highway in real time through drones, and uses the high robustness of deep learning models to achieve efficient highway crack detection under different lighting conditions and high noise environments. This method does not require interrupting normal highway traffic and is suitable for special scenes such as geological disasters, bridges and cliffs, achieving large-scale and efficient highway crack detection.

[0041] 2. The present invention designs a lightweight convolution ASDown module to replace the conventional convolution in the original algorithm. This lightweight convolution not only improves the detection speed and accuracy, but also reduces the algorithm complexity, thereby reducing resource consumption and effectively solving the problems of missed detection and false detection.

[0042] 3. The present invention designs a multi-scale expansion module and integrates it into the C2f module. This module combines the important information in the feature layer with the background information in the global receptive field to obtain more features, improves the problem of fine-grained feature loss during the downsampling process of the Neck network, improves the crack detection capability, and reduces the false detection rate.

[0043] 4. The method of the present invention significantly reduces the number of parameters and improves the detection accuracy of highway cracks. The designed modules and structures show excellent potential in practical applications, enabling efficient crack detection under resource-constrained conditions and improving the accuracy and reliability of overall detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a brief schematic diagram of the process of the present invention;

[0045] Figure 2 It is an algorithm structure diagram of a highway crack detection method based on improved YOLOv8 of the present invention;

[0046] Figure 3 It is the ASDown module structure diagram of the present invention;

[0047] Figure 4 It is the MSD module structure diagram of the present invention;

[0048] Figure 5 The structural principle of a road crack detection method based on improved YOLOv8 of the present invention is shown in FIG.

[0049] Figure 6 It is a visual comparison diagram of the present invention on the data set; among them, (a) is the original image, (b) is the detection effect diagram of the YOLOv8 algorithm, and (c) is the detection effect diagram of the improved YOLOv8 algorithm of the present invention. DETAILED DESCRIPTION

[0050] The following describes the implementation of the present invention in detail with reference to the accompanying drawings, but they do not constitute a limitation of the present invention and are only used as examples. At the same time, the advantages of the present invention will become clearer and easier to understand through the description.

[0051] like Figure 1 As shown, the present invention provides a highway crack detection method based on improved YOLOv8. The method first uses a drone to take images of highway cracks and classifies the images according to the degree of damage of the cracks. Then, the LabelImg annotation tool is used to annotate the images and construct a YOLO format data set required for training. After the data set is expanded and processed by data enhancement technology, it is divided into a training set, a validation set, and a test set. Finally, the data set is input into the initial YOLOv8 algorithm for training, and the YOLOv8 algorithm is improved according to the detection effect, and finally the detection and classification of highway cracks are realized, and the detection results are displayed on the image. Specifically, the following steps are included:

[0052] Step 1: Use the high-altitude bird's-eye view of the drone equipment to take a comprehensive photo of the highway. The drone is equipped with a high-resolution camera that can clearly capture the details of the road surface.

[0053] Step 2: Use the LabelImg annotation tool to annotate the highway crack images one by one and create a YOLO format dataset. The annotation content includes the bounding box location and category of the crack. After shooting, the images are classified according to the size, depth, width and shape characteristics of the cracks to better analyze and deal with the crack problem. For this dataset, highway crack images are divided into four categories: D00 longitudinal shape, D10 transverse shape, D20 crocodile shape and D40 pit shape. The number of images of each type of crack is balanced, totaling 6,000.

[0054] Step 3: In order to improve the generalization ability of the algorithm, a variety of data enhancement operations are performed on the YOLO format dataset, including image rotation, translation, brightness change, noise addition, and cropping. Through data enhancement, the size of the dataset is expanded from the original 6,000 to 36,000; and the enhanced dataset is divided into training set, validation set, and test set in a ratio of 7:1:2, specifically divided into 25,200 images for the training set, 3,600 images for the validation set, and 7,200 images for the test set.

[0055] Step 4: Input the training set, validation set, and test set into the initial YOLOv8 algorithm for training. The algorithm is trained through multiple rounds of iterations. The training set optimizes the initial YOLOv8 algorithm parameters to reduce prediction errors. The validation set is used to adjust the hyperparameters of the initial YOLOv8 algorithm and evaluate the performance of the algorithm. The test set evaluates the generalization ability and performance of the trained and verified initial YOLOv8 algorithm. The detection results of the initial YOLOv8 algorithm are obtained, so that the algorithm can accurately identify and classify different types of road cracks. During the training process, the detection effect of the validation set is continuously monitored, and the algorithm performance is evaluated to ensure the effectiveness and accuracy of the algorithm.

[0056] Step 5: According to the detection results of the initial YOLOv8 algorithm, the initial YOLOv8 algorithm is optimized and improved to obtain the improved YOLOv8 algorithm; the improved YOLOv8 algorithm is further trained, and through continuous optimization and iteration, it can be more accurately detected and classified highway cracks; the improved YOLOv8 algorithm weight file is uploaded to the monitoring center, and then the highway crack image to be detected is uploaded to the monitoring center, and the improved YOLOv8 algorithm can be used to detect and classify highway cracks. The detection results are displayed on the monitoring center screen; this process significantly improves the performance of the algorithm in practical applications, provides strong technical support for highway maintenance and safety management, and helps to timely discover and repair highway cracks, ensuring the safety and smoothness of highway traffic.

[0057] The improved YOLOv8 structure diagram of this embodiment is as follows Figure 2 As shown, it includes Backbone network, Neck network and Head network.

[0058] The Backbone network described in this embodiment adds a lightweight convolution ASDown module for feature integration and channel transformation, adds a small target detection layer, including an ASDown module and a C2f module, and changes the original connection method to enhance the ability to extract small features; the Neck network also adds a lightweight convolution ASDown module and a small target detection layer, including an Upsample module, a Concat module and a C2f module, and changes the original connection method; adds a C2f-MSD module to expand the receptive field of the target; the Head network adds a small target detection head to improve the detection accuracy of small-sized cracks.

[0059] In this embodiment, a lightweight convolution ASDown module is added to the Backbone network, and the Backbone network includes a CBS module, a first ASDown module, a first C2f module, a second ASDown module, a second C2f module, a third ASDown module, a third C2f module, a fourth ASDown module, a fourth C2f module and an SPPF module connected in sequence. The ASDown module implements multi-scale feature processing through Averagepool and Maxpool operations. Averagepool reduces the spatial size of the feature map, and Maxpool increases the receptive field, which helps to capture crack features at different scales and improve detection accuracy. The two branches perform different convolution operations on the input features and merge them to increase feature diversity and expression capabilities. Using 1*1 convolution reduces the number of channels, reduces the number of parameters, and improves training and reasoning speed. Maxpool retains significant features while reducing the size of the feature map, retains spatial position information, and improves crack detection accuracy.

[0060] In this embodiment, a lightweight convolution ASDown module is also added to the Neck network and the original connection method is changed. The last three C2f modules are replaced with C2f-MSD modules. The Neck network includes a first Upsample module, a first Concat module, a fifth C2f module, a second Upsample module, a second Concat module, a sixth C2f module, a third Upsample module, a third Concat module, a seventh C2f module, a fifth ASDown module, a fourth Concat module, a first C2f-MSD module, a sixth ASDown module, a fifth Concat module, a second C2f-MSD module, a seventh ASDown module, a sixth Concat module and a third C2f-MSD module, which are connected in sequence. The SPPF module is connected to the first Upsample module. The first Concat module splices the output features of the first Upsample module with the output features of the third C2f module and inputs them to the fifth C2f module and the second Upsample module. The output features of the second Upsample module and the output features of the second C2f are spliced ​​by the second Concat module and input to the sixth C2f module and the third Upsample module. The output features of the third Upsample module and the output features of the first C2f module are spliced ​​by the third Concat module and output to the seventh C2f module and the fifth ASDown module. The output features of the sixth C2f module and the output features of the sixth C2f module are spliced ​​through the fourth Concat module and output to the first C2f-MSD module and the sixth ASDown module. The output features of the sixth ASDown module and the output features of the fifth C2f module are spliced ​​through the fifth Concat module and output to the second C2f-MSD module and the seventh ASDown module. The output features of the seventh ASDown module and the output features of the SPPF module are spliced ​​through the sixth Concat module and output to the third C2f-MSD module. The output features of the seventh C2f module, the first C2f-MSD module, the second C2f-MSD module and the third C2f-MSD module are input to the Head network.

[0061] The ASDown module structure of this embodiment is as follows Figure 3 As shown, the ASDown module includes an Averagepool module, a Conv 1*1 module, SiLU activation function module, Maxpool module and Concat module; the output features of the Averagepool module are also input to Conv 3*3 In the module, Conv 3*3 The output features of the module and the output features of the Maxpool module are concatenated and output through the Concat module.1*1 The module can reduce the number of channels of the input feature map, thereby reducing the amount of calculation of the subsequent Maxpool module, which helps to improve the algorithm's operating efficiency and reasoning speed. At the same time, the introduction of the SiLU activation function module can enhance the network's nonlinear modeling capabilities and provide smoother gradient propagation. The SiLU activation function module improves the algorithm's expressiveness while maintaining computational efficiency. Through the above adjustments, better detection results can be obtained. These improvements enable the algorithm to better capture the detailed features of highway cracks, improve detection performance, and also improve operating speed.

[0062] The MSD module structure of this embodiment is as follows Figure 4 As shown, the first Conv 1*1 Module, Conv 3*3 Modules, Module, Concat module, second Conv 1*1 module, BatchNorm2d module and GELU activation function module; the first Conv 1*1 The output features of the module are also combined with the second Conv 1*1 Module connection, Conv 3*3 The output features of the module are also input into Modules and Modules, Modules, Modules and The output features of the module are concatenated by the Concat module and then output to the second Conv 1*1 Module, the formula is expressed as follows:

[0063] Y1=Conv 3*3 (X)#(7)

[0064]

[0065] Y5=Concat(Y2, Y3, Y4)#(11)

[0066] Y6=Conv 1*1 (Y5)+Y1#(12)

[0067] In the above formula, Conv 1*1 Represents a regular convolution with a convolution kernel size of 1; Conv 3*3 Represents a regular convolution with a kernel size of 3; represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 1; represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 3; It represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 5. Concat represents a concatenation module.

[0068] The MSD module is designed in a residual way. A two-step method is used inside the residual to effectively extract multi-scale context information and fuse the feature maps generated by the multi-scale receptive fields. The purpose of this design is to reduce the difficulty of obtaining multi-scale context information. First, the input features are initially extracted by applying a 3*3 DConv operation. Then, the channels after feature extraction are divided into three parts, and DConv with different dilations is applied to each channel. The purpose of this is to prevent the generation of redundant receptive fields. Too large a receptive field may not improve the feature extraction performance of the algorithm, and may even be counterproductive. Therefore, dilations of 1, 3, and 5 are selected to avoid problems such as excessive context information caused by too large a receptive field. Finally, multiple extracted features are spliced ​​to form a residual structure to build a more powerful and comprehensive feature representation. Such a residual structure helps to retain and transmit multi-scale context information.

[0069] The drone device used in this embodiment includes the following modules:

[0070] Image acquisition module: This module is used to collect road surface image data in real time and ensure that the image has good quality and adapts to different lighting conditions. The drone is equipped with a high-resolution camera that can capture clear and detailed road images;

[0071] Data transmission module: This module enables the drone to establish a reliable data transmission channel with the monitoring center. Through wireless communication technology, the drone can transmit the collected image data to the monitoring center in real time for processing and analysis;

[0072] Highway crack category and damage degree detection module: This module uses the improved YOLOv8 highway crack recognition algorithm to classify and identify highway crack image data, calculate the confidence of different types of cracks, and feed back the recognition results and confidence information to the staff for confirmation and maintenance decisions.

[0073] like Figure 5As shown, this embodiment is based on a multi-rotor drone as a basic carrier, and a high-definition camera is mounted on the drone to realize the collection of highway images. The image acquisition module obtains crack images according to the above steps. The server trains the target detection algorithm based on the improved YOLOv8 algorithm, and obtains an improved YOLOv8 algorithm weight file after the training is completed, and then transmits the improved YOLOv8 algorithm weight file to the drone detection device. The drone exchanges data with the server and the monitoring center through the data transmission module, and the improved YOLOv8 algorithm can be used to detect and classify highway cracks.

[0074] Table 1 Environmental parameters and training and measurement strategies

[0075]

[0076] The evaluation indicators of the algorithm include detection performance and complexity. The detection performance indicators include accuracy (Precision, P), recall (Recall, R) and mean average precision (mAP). Complexity indicators are divided into time complexity and space complexity. Time complexity includes the number of floating point operations (GFLOPs) and the number of images processed per second (FPS). Space complexity measures the space occupied by the algorithm through the number of parameters. The detection performance indicator formula is as follows:

[0077]

[0078] Table 2 Ablation experiment results evaluation table

[0079]

[0080]

[0081] Table 2 shows the results of the ablation experiments. The lightweight convolutional ASDown module significantly improves Precision (5.5%), Recall (1.2%), and mAP50 (0.3%). In addition, the module reduces the number of parameters and computational complexity by optimizing the complexity of the algorithm, and improves the processing speed of the algorithm. Through feature integration and channel transformation, the ASDown module increases the diversity and expression of crack features. The small object detection layer improves the detection performance of the algorithm, increasing Precision, Recall, and mAP50 by 4%, 0.4%, and 1.7%, respectively. This layer optimizes the spatial complexity of the algorithm but slightly increases the temporal complexity. The small object detection layer improves the ability to distinguish different features by balancing the information flow on the prediction layers at different semantic levels. This is particularly important for detecting small and medium-sized objects, because the features of these objects are relatively few in the high-level layers. C2f-MSD, which integrates the MSD module, significantly improves the Recall of YOLOv8 from 71.4% to 77.3%. By fusing the multi-scale receptive field feature maps generated by different dilations between the Neck network and the Detect network, more fine-grained features of cracks are extracted, enhancing the learning and detection capabilities of the algorithm. After a series of fine-tuning, the performance of the improved YOLOv8 was significantly improved, with the final Precision increased by 8.3%, Recall increased by 7.3%, and mAP50 increased by 5.6%. Although the time complexity has increased slightly, it has little effect on the detection efficiency. The improved YOLOv8 outperforms the initial version in performance, demonstrating stronger learning and detection capabilities.

[0082] Figure 5 The results of the detection of road cracks are shown. In the first column, the initial image is annotated with 3 D00 longitudinal cracks, but YOLOv8 generates multiple duplicate detection frames and misdetects a D00 crack as a D10 transverse crack, showing its inadequate ability to learn and classify road cracks. The improved YOLOv8 accurately detects 3 D00 cracks and has stronger classification ability. In the second and third columns, although YOLOv8 identifies all cracks, it makes false detections and cannot distinguish between the similar textures of normal roads and small cracks. The improved YOLOv8 can avoid interference from complex environments and reduce false detections. In the fourth column, YOLOv8 misses the D00 crack in the lower right corner, showing its inadequate feature learning ability. The improved YOLOv8 enhances the learning of crack features and accurately detects all cracks.

[0083] In order to further verify the superior performance of the algorithm proposed in the present invention, a comparative experiment was conducted with the current most advanced (SOTA) algorithm under the same experimental environment. The experiment selected the two-stage algorithms Faster R-CNN and CenterNet, and the one-stage algorithms YOLOv3-Tiny, YOLOv5s, YOLOv6n, YOLOv9c and YOLOv10n. The experimental results are shown in Table 3. The comprehensive performance of the method of the present invention is significantly better than other one-stage and two-stage algorithms. It is worth noting that the number of parameters of the algorithm proposed in the present invention is significantly reduced, with only 2.47M parameters. In addition, the indicators of detection performance have also been substantially improved, with Precision, Recall and mAP50 reaching 86.6%, 78.7% and 83.5% respectively. Therefore, the detection performance of the algorithm of the present invention surpasses other algorithms in the field of target detection, and is more superior to the speed and accuracy of highway crack detection.

[0084] Table 3 Comparative experimental results with SOTA algorithms

[0085]

[0086] The above description is only a preferred implementation manner of the present invention, but the protection scope of the present invention is not limited thereto, and any modification and replacement based on the technical solution and inventive concept provided by the present invention should be included in the protection scope of the present invention.

Claims

1. A road crack detection method based on improved YOLOv8, characterized in that: The following steps are involved: Step 1: Use drone equipment to take pictures of road cracks from a high altitude perspective; Step 2: Classify the images according to the size, depth, width, and shape characteristics of the road cracks, use the LabelImg annotation tool to annotate the classified road crack images, and create a YOLO format dataset; Step 3: Perform data augmentation on the YOLO format dataset and divide the augmented dataset into training set, validation set, and test set; Step 4: Input the training set, validation set, and test set into the initial YOLOv8 algorithm for training to obtain the detection results of the initial YOLOv8 algorithm; Step 5: According to the detection results of the initial YOLOv8 algorithm, the initial YOLOv8 algorithm is optimized and improved to obtain an improved YOLOv8 algorithm; the improved YOLOv8 algorithm weight file is uploaded to the monitoring center, and then the road crack image to be detected is uploaded to the monitoring center, and the improved YOLOv8 algorithm can be used to detect and classify road cracks; The following improvements are made to the initial YOLOv8 algorithm: The improved YOLOv8 algorithm includes Backbone network, Neck network and Head network; The Backbone network adds a lightweight convolution ASDown module for feature integration and channel transformation, adds a small target detection layer, including the ASDown module and the C2f module, and changes the original connection method to enhance the ability to extract small features; The Neck network also adds a lightweight convolution ASDown module and a small target detection layer, including an Upsample module, a Concat module, and a C2f module, and changes the original connection method; a C2f-MSD module is added to expand the receptive field of the target; The Head network adds a small target detection head to improve the detection accuracy of small-sized cracks.

2. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: The annotation content in step 2 includes the boundary box position and category of the crack.

3. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: The step 3 performs data enhancement operations on the YOLO format data set, including image rotation, translation, brightness change, noise addition, and cropping.

4. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: In step 4, the training set, validation set and test set are input into the initial YOLOv8 algorithm for training; the training set optimizes the initial YOLOv8 algorithm parameters to reduce prediction errors, the validation set adjusts the hyperparameters of the initial YOLOv8 algorithm and evaluates the performance of the algorithm, and the test set evaluates the generalization ability and performance of the trained and verified initial YOLOv8 algorithm. Through multiple rounds of iterative training algorithms, the detection results of the initial YOLOv8 algorithm are obtained.

5. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: The Backbone network in step 5 includes a CBS module, a first ASDown module, a first C2f module, a second ASDown module, a second C2f module, a third ASDown module, a third C2f module, a fourth ASDown module, a fourth C2f module and an SPPF module connected in sequence.

6. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: The Neck network in step 5 includes a first Upsample module, a first Concat module, a fifth C2f module, a second Upsample module, a second Concat module, a sixth C2f module, a third Upsample module, a third Concat module, a seventh C2f module, a fifth ASDown module, a fourth Concat module, a first C2f-MSD module, a sixth ASDown module, a fifth Concat module, a second C2f-MSD module, a seventh ASDown module, a sixth Concat module, and a third C2f-MSD module connected in sequence. The SPPF module is connected to the first Upsample module, the first Concat module splices the output features of the first Upsample module with the output features of the third C2f module and inputs them to the fifth C2f module and the second Upsample module, the output features of the second Upsample module and the output features of the second C2f are spliced ​​through the second Concat module and input to the sixth C2f module and the third Upsample module, the output features of the third Upsample module and the output features of the first C2f module are spliced ​​through the third Concat module and output to the seventh C2f module and the fifth ASDown module; the output features of the fifth ASDown module are spliced The output features of the sixth C2f module and the output features of the sixth C2f module are spliced ​​through the fourth Concat module and output to the first C2f-MSD module and the sixth ASDown module. The output features of the sixth ASDown module and the output features of the fifth C2f module are spliced ​​through the fifth Concat module and output to the second C2f-MSD module and the seventh ASDown module. The output features of the seventh ASDown module and the output features of the SPPF module are spliced ​​through the sixth Concat module and output to the third C2f-MSD module. The output features of the seventh C2f module, the first C2f-MSD module, the second C2f-MSD module and the third C2f-MSD module are input to the Head network.

7. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: The ASDown module in step 5 includes the Averagepool module, Conv 1*1 module, SiLU activation function module, Maxpool module and Concat module; the output features of the Averagepool module are also input to Conv 3*3 In the module, Conv 3*3 The output features of the module and the output features of the Maxpool module are concatenated and output through the Concat module.

8. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: The MSD module in step 5 includes a first Conv 1*1 Module, Conv 3*3 Modules, Module, Concat module, second Conv 1*1 module, BatchNorm2d module and GELU activation function module; the first Conv 1*1 The output features of the module are also combined with the second Conv 1*1 Module connection, Conv 3*3 The output features of the module are also input into Modules and Modules, Modules, Modules and The output features of the module are concatenated by the Concat module and then output to the second Conv 1*1 Module, the formula is expressed as follows: Y1=Conv 3*3 (X)#(1) Y5=Concat(Y2,Y3,Y4)#(5) <h2 style=";text-align:left;direction:ltr">Y6=Conv<h2 style=";text-align:left;direction:ltr"> 1*1 <h2 style=";text-align:left;direction:ltr"> (Y5)+Y1#(6) In the above formula, Conv 1*1 Represents a regular convolution with a convolution kernel size of 1; Conv 3*3 Represents a regular convolution with a kernel size of 3; represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 1; represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 3; It represents a depth-wise separable convolution with a convolution size of 3 and a dilation of 5. Concat represents a concatenation module.

9. A road crack detection method based on improved YOLOv8 according to claim 1, characterized in that: The C2f-MSD module described in step 5 replaces the second Conv module of the Bottleneck module in the C2f module with an MSD (Multi-scale Dilation) module.

10. A road crack detection method based on improved YOLOv8, characterized in that: The drone device used includes the following modules: Image acquisition module: real-time collection of road surface image data to ensure high image quality and adapt to different lighting conditions; the drone is equipped with a high-resolution camera to capture clear and detailed road images; Data transmission module: Through wireless communication technology, the UAV and the monitoring center establish a reliable data transmission channel, and transmit image data to the monitoring center in real time for processing and analysis; Highway crack category and damage degree detection module: Use the improved YOLOv8 algorithm to classify and identify highway crack image data, calculate the confidence of different types of cracks, and feedback the identification results and confidence information for staff to confirm and make maintenance decisions.

Citation Information

Cited By

  • Efficient pavement crack detection system and method fusing Swin-Transformer and yolov8

    CN120163761A