A road crack detection method based on drone images

By improving the U-Net neural network model and adding a downsampling layer and CBAM attention module, the problem of detecting fine road cracks in drone images is solved, achieving higher detection accuracy and rapid detection of road damage after extreme disasters. response.

CN114359130BActive Publication Date: 2024-09-17SHANGHAI OCEAN UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111319654.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-09
Publication Date
2024-09-17
Estimated Expiration
2041-11-09

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively detect and segment fine road cracks in drone images, especially when quickly grasping road damage conditions after extreme natural disasters. Traditional methods are susceptible to interference from lighting and noise, and crack information in drone images is lost. serious.

Method used

Improve the U-Net neural network model, add appropriate downsampling layers and long and short skip connection strategies, and add a CBAM attention module to the decoder to fuse deep and shallow layer information, enhance crack edge feature extraction, and improve detection accuracy.

Benefits of technology

It improves the accuracy and completeness of crack segmentation in UAV road images, enhances the ability to quickly detect road damage after extreme disasters, and provides higher detection accuracy and generalization performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114359130B
    Figure CN114359130B
Patent Text Reader

Abstract

The present invention relates to the technical field of artificial intelligence, and discloses a road crack detection method based on drone images. A drone is used to collect road crack images and construct an image data set; an improved U‑Net neural network model is constructed, which has seven layers, including an encoder and a decoder. The decoder includes three layers, and a CBAM attention module is arranged in the last layer. The encoded feature maps of each layer are upsampled to the original input image size, and then the feature maps output by the last layer in the decoder are fused with deep and shallow information, and then enter the CBAM attention module. The CBAM attention module is used to reallocate weights from the channel level and the spatial level to obtain a target feature map that is more focused on cracks; based on the image data set, the constructed improved U‑Net neural network model is trained and tested, and the trained improved U‑Net neural network model is used to detect the image to be inspected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of artificial intelligence, and in particular relates to a road crack detection method based on drone images. Background Art

[0002] Highways are important transportation infrastructures that are vital to social, economic, and industrial development. Rapid segmentation of road cracks enables the rapid understanding of dangerous road conditions, ensuring efficient road maintenance and subsequent restoration of traffic. Compared with traditional road images acquired by on-board cameras, unmanned aerial vehicle (UAV) images can be acquired quickly and cover roads in large areas. In particular, when infrastructure is severely damaged by earthquakes and other disasters, UAV photography can provide an effective data source for road monitoring.

[0003] Digital image processing technology has been widely used in crack segmentation. The main methods include threshold segmentation, edge detection and seed growth. However, these methods often use shallow image information, including texture, edge and grayscale, and are therefore easily disturbed by environmental factors such as lighting and noise. Traditional machine learning methods, such as support vector machines, minimum spanning trees and random structured forests, have also been used in crack segmentation research, but these methods require manual analysis of image features in the early stages. In contrast, deep learning methods can automatically extract shallow and deep image features, ensuring the stability and high accuracy of machine vision tasks. Due to these advantages, deep learning has been widely used in crack segmentation in recent years.

[0004] Previous studies on road crack segmentation mainly used smartphones or car cameras to capture road images. Traditional models may not be suitable for crack segmentation in drone images because cracks in drone images are smaller and narrower, and cracks contain fewer texture features. Even in high-resolution drone remote sensing images, cracks usually only occupy a few pixels. Multiple downsampling in the network model is conducive to abstract feature extraction, but it also leads to the loss of crack information in drone images. Therefore, technologies to improve road crack texture and crack edge information in drone images should be considered. Effective use of limited crack information and enhancement of crack edges are key factors in network design. Summary of the invention

[0005] The present invention provides a road crack detection method based on drone images. The network model is improved on the basis of the existing U-Net neural network, so that it is suitable for application scenarios in which fine road cracks are accurately segmented in drone images. After extreme natural disasters such as earthquakes occur, the road damage condition can be quickly grasped, and technical support can be provided for subsequent road maintenance and disaster relief work.

[0006] The present invention can be achieved through the following technical solutions:

[0007] A road crack detection method based on drone images includes the following steps:

[0008] Step 1: Use drones to collect road crack images and build an image dataset;

[0009] Step 2: Build an improved U-Net neural network model with seven layers, including an encoder and a decoder. The decoder includes three layers, and a CBAM attention module is set in the last layer. The encoded feature maps of each layer are upsampled to the original input image size, and then fused with the feature map output by the last layer in the decoder for deep and shallow information. Then, the deep and shallow information is entered into the CBAM attention module. The CBAM attention module is used to redistribute weights from the channel level and the spatial level to obtain a target feature map that is more focused on the cracks.

[0010] Step 3: Based on the image data set, train and test the constructed improved U-Net neural network model, and use the trained improved U-Net neural network model to detect the image to be inspected.

[0011] Furthermore, the CBAM attention module includes a channel attention module and a spatial attention module arranged in series, and the channel attention module is used to perform maximum pooling and average pooling on the fused feature map in the channel direction, and then after passing through two layers of fully connected layers with shared parameters, the two feature maps are added to obtain the channel feature ChannelAttention, and finally it is multiplied with the original fused feature map of the input channel attention module to obtain the channel feature map after channel-level weight distribution;

[0012] The spatial attention module is used to perform maximum pooling and average pooling on the channel feature map in the spatial direction, and then use 1×1 convolution to reduce the number of channels to 1 to obtain the spatial feature Spatial Attention, and finally multiply it with the original channel feature map of the input spatial attention module to obtain the updated feature map.

[0013] Furthermore, the CBAM attention module is set before the 1×1 convolution operation of the last layer in the decoder.

[0014] Further, the encoder includes four layers, the first three layers each include two convolution operations and one maximum pooling operation, and the last layer includes only two convolution operations;

[0015] The three layers of the decoder each include one deconvolution operation and two convolution operations.

[0016] Furthermore, the convolution operation uses a 3×3 convolution kernel, and the step size of the maximum pooling layer of the maximum pooling operation is 2.

[0017] Furthermore, the collected road crack images are cropped to a uniform size, and then rotation and flipping strategies are used to expand the image samples and establish an image dataset.

[0018] The beneficial technical effects of the present invention are:

[0019] 1. Improve the encoder part of the U-Net neural network structure by using an appropriate number of downsampling layers. Since the cracks in drone images are smaller and usually occupy only a small number of pixels, an appropriate number of downsampling can reduce the loss of a small amount of limited road crack information in drone road images, while ensuring the extraction of abstract road crack information.

[0020] 2. The improved U-Net neural network structure adopts a strategy of fusing long and short jump connections, upsampling the encoded features of each layer to the size of the original input image, and then fusing the information with the last layer after decoding, fully fusing the spatial position information of deep cracks and the morphological details of shallow cracks. At the same time, a CBAM attention module is added at the end of the decoder to redistribute the weights of the feature map after fusing the deep and shallow information at the channel and spatial levels, so that the network focuses on the beneficial road crack information, improves the segmentation of the crack edge part, and improves the segmentation accuracy, making it more suitable for the processing of UAV road images and having higher detection accuracy.

[0021] 3. The crack detection method of the present invention is trained using a public data set, and then the trained network is used to predict the image to be tested, which provides an effective method for quickly grasping the road damage after disasters such as earthquakes. In addition, in order to improve the network's prediction performance for new data, during the training process, a data expansion strategy is used to increase the data volume to improve the generalization performance of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a general smooth schematic diagram of the present invention;

[0023] Figure 2 It is a schematic diagram of the structure of the improved U-Net neural network model of the present invention;

[0024] Figure 3 A schematic diagram for comparing the detection method of the present invention with other methods for detecting cracks in highways using drone images. DETAILED DESCRIPTION

[0025] The specific implementation of the present invention is described in detail below with reference to the accompanying drawings and preferred embodiments.

[0026] like Figure 1As shown, the present invention provides a road crack detection method based on drone images. First, highway images taken by drones are collected to produce an image data set. Secondly, an improved U-Net neural network model is proposed. Compared with the existing U-Net neural network, it has the following two main innovations: 1. The encoder is improved to include an appropriate number of downsampling layers; 2. The strategy of long and short jump connections is integrated and channel and space dual attention modules are added to improve the segmentation accuracy of road cracks in drone images; at the same time, a data expansion strategy is added during the training process to increase the amount of training set data, so that the network can be fully trained and obtain better generalization ability. The present invention provides a new method for quickly detecting highway cracks using an improved network model structure, which is an effective detection method, especially after natural disasters such as earthquakes, when a rapid response to road cracking is required. The details are as follows:

[0027] Step 1: Use drones to collect road crack images and build an image dataset;

[0028] Obtain road crack images from the public dataset of UAV highway images, crop the images to a uniform size, such as 512×512, and then use labelme software to label the corresponding positions of the cracks, with road cracks marked as 1 and background marked as 0 to form an image database. 80% of the images are selected as the dataset for training the network model, and 20% are used to verify the prediction performance of the trained network.

[0029] In order to improve the generalization performance of the network, a data expansion strategy was adopted during the network training process. Considering that the crack directions are often divided into horizontal and vertical directions, and the directions are relatively single, the rotation and flipping strategies are emphasized in the data expansion strategy. The rotation can be divided into eight specific angles, such as 0°, 45°, 90°, 135°, 180°, 225°, 270° and 315°, and the flipping operations include horizontal flipping and vertical flipping.

[0030] Step 2: Build an improved U-Net neural network model, such as Figure 2 As shown, there are seven layers in total, including an encoder and a decoder. The encoder includes four layers, which reduces the four downsampling operations of the encoder in the existing U-Net neural network to three. Among them, the first three layers include two convolution operations and one maximum pooling operation, and the last layer includes only two convolution operations. In this way, after the original input image is input into the network model, the maximum pooling operation is performed after two 3×3 convolution operations in the first layer, and then enters the second layer; after two 3×3 convolution operations in the second layer, the maximum pooling operation is performed, and then enters the third layer; after two 3×3 convolution operations in the third layer, the maximum pooling operation is performed, and then enters the fourth layer; after two 3×3 convolution operations in the fourth layer, it enters the fifth layer, and then enters the decoder stage to complete the encoding work.

[0031] The decoder corresponds to the encoder, including three layers, performs three deconvolution operations, and a CBAM attention module is set in the last layer. The long and short jump connection strategies are integrated in the decoding stage. The feature maps of the existing U-Net neural network in each layer of the decoder are respectively connected to the feature maps of the same size in each layer of the decoder, while the improved U-Net neural network structure of the present invention directly upsamples the feature maps of each layer in the encoder stage to the original input image size, and then connects to the feature map output of the seventh layer at the end of the decoder to perform deep and shallow layer information fusion. The fused feature map enters the CBAM (Convolutional Block Attention Module) attention module at the end of the decoder. This module is set before the 1×1 convolution operation of the seventh layer of the decoder, and is used to redistribute weights from the channel level and the spatial level to obtain a target feature map that focuses more on the cracks. It mainly includes a channel attention module and a spatial attention module, which are added in the improved network model in a serial manner.

[0032] Specifically, if the input is a UAV road remote sensing image of size 512×512×3 after cropping, a feature map of size 256×256×64 is obtained after two 3×3 convolutions and one maximum pooling (step size is 2), then two 3×3 convolutions and maximum pooling (step size is 2) operations are performed to obtain a feature map of size 128×128×128, followed by two 3×3 convolution operations and maximum pooling (step size is 2) operations to obtain a feature map of size 64×64×256, and finally two 3×3 convolution operations are performed to obtain a feature map of size 64×64×512, completing the decoding work and entering the decoder stage.

[0033] The decoding process corresponds to the 5th to 7th layers of the network structure. Each layer includes a 3×3 deconvolution operation and two 3×3 convolution operations. The sizes of the feature maps obtained are 128×128×256, 256×256×128 and 512×512×64 respectively. After the two 3×3 convolution processes in the 7th layer, the feature maps previously fused by the long and short skip connection strategy in the encoding stage are connected. That is, the feature maps of different sizes in the encoder stage are upsampled to the original input image size of 512×512, and added to the feature map of the last layer of the decoder in the channel direction. Finally, the fused feature map enters the CBAM attention module, which is divided into the channel attention module and the spatial attention module. The two modules are arranged in series. After the feature map is input, the channel attention module performs maximum pooling and average pooling in the channel direction respectively. After the two feature maps are passed through two layers of fully connected layers with shared parameters, the two feature maps are added to obtain the weights of each feature channel, namely the channel feature Channel Attention. By multiplying the weights channel by channel to the feature map before the input channel attention module, we get the channel feature map after the weights are redistributed at the channel level.

[0034] Subsequently, the channel feature map enters the spatial attention module, and also undergoes maximum pooling and average pooling in the spatial direction, and then uses 1×1 convolution to reduce the number of channels to 1. The obtained spatial feature Spatial Attention is multiplied by the channel feature map entering the spatial attention module, that is, the updated feature map after passing through the entire CBAM attention module is obtained. The updated feature map obtained at this time is finally obtained through 1×1 convolution to obtain the final feature map.

[0035] Step 3: Based on the image data set, train and test the constructed improved U-Net neural network model, and use the trained improved U-Net neural network model to detect the image to be inspected.

[0036] The following indicators can be used to evaluate the improved model proposed in the present invention: mean intersection over union (mIoU), precision (P), recall (R) and overall performance (F1), where TP is the prediction of positive examples, FP is the prediction of positive examples, TN is the prediction of negative examples, and FN is the prediction of negative examples. These indicators are calculated as follows:

[0037]

[0038]

[0039]

[0040]

[0041] In order to verify the feasibility of the detection method of the present invention, we selected drone images taken after the 6.4-magnitude earthquake in Jiashi County, Kashgar Prefecture, Xinjiang Uygur Autonomous Region, China on January 19, 2020. The resolution of the drone images is 5 cm and the flight altitude is about 200 meters. The network is tested using this dataset to study the prediction performance of the model for new road crack data. The detection results are shown in the following table:

[0042]

[0043] The above table shows the prediction performance of classic semantic segmentation networks such as FCN, SegNeg, PSPNet, DeepLabV3 and Unet, and some network models proposed in similar studies in new data. By comparison, the improved network model (U-Net-light-CBAM) proposed in this paper performs best in F1 and MIoU indicators. Although it is not as good as Unet in crack accuracy, the false positive problem has been significantly improved. Figure 3 The network model with better performance in the above table is selected to compare the road prediction results with the improved model proposed by us, where (a) represents the input image, (b) represents the label; (c) represents the segmentation result of PSPNet, (d) represents the segmentation result of U-Net proposed by Augustauskas, (e) represents the segmentation result of U-Net and (f) represents the segmentation result of the network model proposed by the present invention. The method proposed by the present invention has achieved significant improvements in the integrity and edge details of road cracks, thus verifying the effectiveness of the method.

[0044] Although specific embodiments of the present invention are described above, those skilled in the art should understand that these are merely examples and that various changes or modifications may be made to these embodiments without departing from the principles and essence of the present invention. Therefore, the scope of protection of the present invention is limited by the appended claims.

Claims

1. A road crack detection method based on drone images, characterized in that The following steps are involved: Step 1: Use drones to collect road crack images and build an image dataset; Step 2: Build an improved U-Net neural network model with seven layers, including an encoder and a decoder. The decoder includes three layers, and a CBAM attention module is set in the last layer. The encoded feature maps of each layer are upsampled to the original input image size, and then fused with the feature map output by the last layer in the decoder for deep and shallow information. Then, the deep and shallow information is entered into the CBAM attention module. The CBAM attention module is used to redistribute weights from the channel level and the spatial level to obtain a target feature map that is more focused on the cracks. Step 3: Based on the image data set, train and test the constructed improved U-Net neural network model, and use the trained improved U-Net neural network model to detect the image to be inspected.

2. The road crack detection method based on drone images according to claim 1 is characterized by: The CBAM attention module includes a channel attention module and a spatial attention module arranged in series. The channel attention module is used to perform maximum pooling and average pooling on the fused feature map in the channel direction, and then add the two obtained feature maps after passing through two layers of fully connected layers with shared parameters to obtain the channel feature Channel Attention, and finally multiply it with the original fused feature map of the input channel attention module to obtain the channel feature map after channel-level weight distribution; The spatial attention module is used to perform maximum pooling and average pooling on the channel feature map in the spatial direction, and then use 1×1 convolution to reduce the number of channels to 1 to obtain the spatial feature Spatial Attention, and finally multiply it with the original channel feature map of the input spatial attention module to obtain the updated feature map.

3. The road crack detection method based on drone images according to claim 2 is characterized by: The CBAM attention module is set before the 1×1 convolution operation of the last layer in the decoder.

4. The road crack detection method based on drone images according to claim 1 is characterized by: The encoder includes four layers, the first three layers each include two convolution operations and one maximum pooling operation, and the last layer includes only two convolution operations; The three layers of the decoder each include one deconvolution operation and two convolution operations.

5. The road crack detection method based on drone images according to claim 4 is characterized in that: The convolution operation uses a 3×3 convolution kernel, and the step size of the maximum pooling layer of the maximum pooling operation is 2.

6. The road crack detection method based on drone images according to claim 1 is characterized by: The collected road crack images are cropped to a uniform size, and then rotation and flipping strategies are used to expand the image samples and establish an image dataset.

Citation Information

Patent Citations

  • Method of monocular depth estimation based on joint self-attention mechanism

    AU2020103715A4

  • Road crack detection method and system based on U-shaped codec neural network

    CN112785578A

  • Endoscope image smoke purification method based on deep neural network

    CN113066026A

  • Person re-identification method combining reverse attention and multi-scale deep supervision

    US20210232813A1