High-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence

By using the Faster RCNN model, ResNet110 network structure and CA attention module in pavement disease detection, combined with the Retinex image enhancement algorithm, the problem of low detection accuracy under complex working conditions is solved, and high-precision and efficient pavement disease identification is achieved, which is suitable for Smart transportation applications in complex environments.

CN114881966BActive Publication Date: 2024-09-06HUNAN UNIV +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202210481982.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-05
Publication Date
2024-09-06
Estimated Expiration
2042-05-05

AI Technical Summary

Technical Problem

Existing pavement disease detection technology has low detection accuracy under complex working conditions, especially in environments such as uneven lighting, foggy days, and rainy days. Traditional image processing methods and deep target detection models are difficult to accurately identify and locate pavement diseases, resulting in poor detection performance. Not very effective.

Method used

An artificial intelligence-based high-precision extraction and identification method for pavement diseases under complex working conditions is adopted. The Faster RCNN model is combined with the ResNet110 network structure and CA attention module to generate high-precision pavement disease feature maps through multi-level feature extraction and prior frame fusion. , and expand the data set through the Retinex image enhancement algorithm to improve the abstraction ability and detection accuracy of the model.

Benefits of technology

It significantly improves the accuracy and speed of pavement defect detection under complex working conditions, can effectively identify complex-shaped pavement defects, is suitable for uneven lighting and harsh environments, and meets the needs of smart transportation technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114881966B
    Figure CN114881966B
Patent Text Reader

Abstract

The present invention relates to a method for extracting and identifying pavement defects with high precision under complex working conditions based on artificial intelligence, comprising: providing a pavement defect recognition model, the pavement defect recognition model matches an input pavement defect image with an output pavement defect type; wherein the pavement defect recognition model generates corresponding pavement defect features based on the pavement defect object on the image, and the pavement defect features correspond to the output pavement defect type; when the pavement defect features are generated, the pavement defect features are extracted in multiple levels based on the pavement defect image, the first level extracts the pavement defect features based on the original pavement defect image, and each subsequent level extracts the pavement defect features based on the previous level; the main feature map of the pavement defect object extracted by the last level is merged with the contour feature map of the pavement defect object to generate the final feature map, which corresponds to the corresponding pavement defect type. The present invention can detect pavement defect types with high precision under complex working conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of pavement disease detection, and in particular to a method for high-precision extraction and identification of pavement diseases under complex working conditions based on artificial intelligence. Background Art

[0002] In recent years, the mileage of highways in my country has grown rapidly. Under the influence of natural disasters or human factors, some sections of the road have suffered varying degrees of damage in the early days, often in the form of horizontal cracks, longitudinal cracks, potholes, etc. Therefore, how to maintain roads efficiently has become a difficult problem that needs to be overcome in the new era. Pavement maintenance usually requires quality assessment in advance, and the quality assessment report is often based on manual or equipment detection of the damage status of the designated road section. The shapes of pavement diseases vary, some features are more prominent, and some disease edges are mixed with a lot of noise. Manual detection methods are time-consuming and labor-intensive, and it is difficult to meet the growing era of artificial intelligence. At this stage, intelligent devices are gradually used to complete detection instead of inefficient manual methods. For pavement diseases with clear edges and obvious features, traditional image processing, Canny edge detection and other methods are generally used, and then the position of the disease to be detected is located based on the curve fitting method, and then the corresponding category is determined. However, for disease images mixed with redundant and irrelevant features, the results of detection using traditional image processing methods are very poor, and it is difficult to fit a reasonable curve. In addition, the road conditions are relatively complex, and the lighting environment is difficult to meet the needs of general image processing. Because in actual working conditions, the lighting coverage is uneven, and some areas may be too dim or too dark, which leads to the brightness imbalance of the collected image, resulting in target detection failure. Moreover, there are many sections that need to be detected during road maintenance. For road defects with obvious characteristics, traditional image processing methods can be used to meet the detection requirements. However, for road defect characteristics with large regular changes in shape, or complex working conditions such as uneven lighting environment, traditional image processing methods and even existing deep target detection models have low detection accuracy and poor positioning accuracy, which cannot meet the real engineering value requirements. The images collected under complex working conditions are relatively fuzzy, such as unclear images taken on foggy and rainy days, dim and unclear images at night, etc. Sometimes, due to certain deviations in the position and angle of the camera, the collected road images are distorted, which makes the traditional image processing methods ineffective.

[0003] At present, deep learning target detection algorithms have been applied in industry. Common detection models include Fast RCNN, Faster RCNN, Yolo series, SSD, etc., and the detection accuracy is better than traditional image processing methods. However, it is less used in road disease detection, and the detection accuracy needs to be improved under complex working conditions. In addition, considering the strange geometric shapes of road surface diseases, such as some cracks with small areas and lack of generated anchor boxes, it is difficult to select such road surface diseases, which leads to missed detection.

[0004] Currently, the commonly used backbones include VGG, ResNet, GoogleNet, etc. The default backbone network layer of Faster RCNN is Vgg16. The Vgg16 network structure is relatively simple, runs fast, and can quickly complete the positioning and recognition of targets. However, the road conditions are relatively complex. For example, the coverage of the lighting environment range is uneven, which makes the Vgg16 network lose a lot of disease detail features at high levels, resulting in poor model detection effect.

[0005] In the default Faster RCNN model, the position parameters of the prior box are calculated based on the model's positioning regression. Due to the simple rounding of floating-point numbers, the true value is discarded, resulting in a certain deviation between the candidate box mapped back to the original image and the actual situation. This is particularly obvious for small target detection, resulting in a lack of positioning accuracy, which increases the error rate of the model's positioning regression of the target. Summary of the invention

[0006] The purpose of the present invention is to provide a high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence, which can identify the types of pavement defects under complex working conditions with high precision.

[0007] To achieve the above, a high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence specifically includes the following steps:

[0008] Providing a pavement damage recognition model, wherein the pavement damage recognition model matches an input pavement damage image with an output pavement damage type;

[0009] Wherein, the pavement damage recognition model generates corresponding pavement damage features based on the pavement damage objects in the image, and the pavement damage features correspond to the output pavement damage types;

[0010] When generating pavement damage features, pavement damage features are extracted in multiple levels based on pavement damage images. The first level extracts pavement damage features based on the original pavement damage images, and each subsequent level extracts pavement damage features based on the previous level.

[0011] The main feature map of the pavement damage object extracted from the last level is fused with the contour feature map of the pavement damage object to generate the final feature map, which corresponds to the corresponding pavement damage type.

[0012] The specific method of fusion is: a series of prior frames containing pavement disease objects are generated from the last level, and then these prior frames are combined to generate a fusion module containing the overall characteristics of the pavement disease objects.

[0013] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence of the present invention, the preparation of a data set for training a pavement defect identification model specifically includes the following steps:

[0014] Firstly, a high-resolution camera is used to collect pictures of different types of pavement defects on several roads. Then, based on the geometric transformation method, the image data is further amplified by rotating and cropping the image. The image data is further processed based on the Retinex image enhancement algorithm to amplify the image data. The LabelImg tool is then used to complete the customized annotation of the border position information of the pavement defect object and generate the corresponding XML file. After the annotation, 90% of the data is used for the training set and the remaining 10% for the test set.

[0015] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence in the present invention, the pavement defect identification model is constructed as follows:

[0016] The Faster RCNN model is used as the main model:

[0017] The backbone network used for feature extraction is the ResNet110 network structure.

[0018] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence in the present invention, in the ResNet110 network structure:

[0019] The size of the input image is 600×600 and the dimension is 3;

[0020] In the first convolutional layer, the number of convolution kernels is 64, the size is 7×7, the step size is 2, and the feature layer size obtained by the first layer feature extraction is 300×300×64, that is, the size of the extracted feature map is 300×300, and the number is 64;

[0021] The second layer is the maximum pooling layer, the size of the convolution kernel is 3×3, the step size is 2, and the feature layer size obtained by the second layer feature extraction is 150×150×64, that is, the size of the extracted feature map is 150×150, and the number is 64;

[0022] Four residual modules are stacked in the third convolutional layer;

[0023] Among them, each residual module has a 3-channel convolution kernel;

[0024] The size of the convolution kernel in one channel is 1×1, and the number is 64;

[0025] The size of the convolution kernel in the other channel is 3×3, and the number is 64;

[0026] The size of the convolution kernel in the remaining channel is 1×1, and the number is 256;

[0027] Eight residual modules are stacked in the fourth convolutional layer;

[0028] Among them, each residual module has a 3-channel convolution kernel;

[0029] The size of the convolution kernel in one channel is 1×1, and the number is 64;

[0030] The size of the convolution kernel in the other channel is 3×3, and the number is 128;

[0031] The size of the convolution kernel in the remaining channel is 1×1, and the number is 512;

[0032] 21 residual modules are stacked in the fifth convolutional layer;

[0033] Among them, each residual module has a 3-channel convolution kernel;

[0034] The size of the convolution kernel in one channel is 1×1, and the number is 256;

[0035] The size of the convolution kernel in the other channel is 3×3, and the number is 256;

[0036] The size of the convolution kernel in the remaining channel is 1×1, and the number is 1024;

[0037] Three residual modules are stacked in the sixth convolutional layer;

[0038] Among them, each residual module has a 3-channel convolution kernel;

[0039] The size of the convolution kernel in one channel is 1×1, and the number is 512;

[0040] The size of the convolution kernel in the other channel is 3×3, and the number is 512;

[0041] The size of the convolution kernel in the remaining channel is 1×1, and the number is 2048;

[0042] The feature layer size of the sixth convolutional layer output is 18×18×2048, that is, the extracted feature map size is 18×18, and the number is 2048.

[0043] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence of the present invention, a CA attention module is set after the third to sixth convolutional layers, specifically including the following modules set in sequence:

[0044] Global average pooling layer, where the size of the convolution kernel is 1×1;

[0045] Fully connected layer, where the input features undergo C / r 1x1 convolutions, where r is the channel reduction ratio, C is the number of channels, and C / r is the number of convolution kernels;

[0046] Non-linear layer, where the input feature map undergoes C / r 1x1 convolutions;

[0047] Fully connected layer, where the convolution kernel size is 1×1,

[0048] Sigmoid activation function, where the size of the convolution kernel is 1×1;

[0049] The Re-wight layer multiplies the extracted feature map with the feature map of the input global average pooling layer, re-weights each channel to regenerate the feature map.

[0050] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence of the present invention, the last layer CA module of the backbone feature extraction network is connected to an RPN model, and the RPN model is used to generate a candidate window to frame the specific location of the pavement defect object body; and extract the candidate frame pavement defect feature map with the pavement disease object body; and merge it with the pavement disease object contour feature map extracted by the last layer CA module to generate a corresponding fused feature map, and construct the last fully connected layer. After the fused feature map is converted into a feature vector, it corresponds to the pavement disease type through the last fully connected layer.

[0051] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence in the present invention, in the last fully connected layer:

[0052] The activation function ReLu is adjusted and renamed NReLu. The formula is as follows:

[0053]

[0054] If x<0, it is equal to 0, x is the input data, and k is the weight coefficient.

[0055] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence of the present invention, before extracting the original image features in the first convolution layer, the network structure of the algorithm for generating a rectangular box by the anchor box is adjusted;

[0056] By scanning all the bounding box information annotated in the training set, the types of rectangular boxes are divided. The specific steps are as follows:

[0057] (1) Assume that K, K>0 anchor boxes are generated. First, traverse the labeled training samples and calculate the width w and height h of the rectangular box.

[0058] (2) Calculate the square root of the corresponding rectangular box. The formula is as follows:

[0059]

[0060] (3) Sort these square root values ​​s from small to large to obtain a sequence Arr of [L, R];

[0061] (4) Calculate the middle value T of Arr, then map it to the original rectangular frame and record the width w at this time. i , height h i , and set K to K-1;

[0062] (5) Using the divide-and-conquer method, recursively [L, T] and [T, R], repeat step (4) until K equals 0, and output K anchor boxes;

[0063] After many experiments, the final ratios of the width and height of the rectangular frame include [1:1], [1:2], [2:1], and [2:3]; the ratios of the size of the rectangular frame to the original image include: [1:4], [1:8], [1:16], [1:32], [1:64], [1:128], and [1:256].

[0064] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence of the present invention, in the CA module:

[0065] The attention rounding method is used to calculate the position parameters of the prior box for feature extraction. The specific steps are as follows:

[0066] (1) Calculation is performed during pooling, Where w and h represent the width and height of the input feature map, w i ,h i Indicates the width and height of the i-th feature map, s represents the current step length, if it cannot be divided evenly, then get the first decimal point respectively, and record it as T w 、T h ; T w Indicates w i The value corresponding to the first decimal point, T h Indicates h i The value corresponding to the first decimal place;

[0067] (2) If T w +T h >=8, then w i =wi +1,h i =h i +1;

[0068] (3) If T w +T h >=5, then determine which of the two is the largest; if T w >T h , then w i =w i +1,h i =h i ; if T w <T h , then w i =w i ,h i =h i +1; if the two are equal, then w i =w i +1,h i =h i +1;

[0069] (4) In other cases, w i =w i ,h i =h i .

[0070] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence of the present invention, the training method of the pavement defect identification model is as follows:

[0071] The deep learning framework PyTorch was used, and the training image size was set to 600x600. Two training stages were set: the freezing stage and the non-freezing stage, with corresponding epochs of 50 and 100, respectively, and learning rates of 0.0001 and 0.00001, respectively. The optimizer used SGD, and mIOU was set to 0.2. After iterative training to learn the disease feature parameters, the model with the best training effect was finally selected as the target detection model for the actual working condition. During the training, the backbone network generated a priori box to extract the corresponding feature map, and then the Softer NMS algorithm was used to select the priori box with the highest confidence score. Finally, classification regression was performed to determine the specific pavement disease object category and retain the best feature area.

[0072] The present invention designs a method for detecting disease features based on an improved deep learning target detection model-Faster RCNN, which can solve the problem of poor detection accuracy in the process of road disease detection under complex working conditions. The present invention adopts a self-constructed backbone feature network ResNet110, and adds an AC attention module to retain more semantic feature information to solve the problem of target feature information loss caused by too many layers of the backbone network. In addition, the present invention designs a data amplification method based on the Retinex image enhancement algorithm to enhance the abstraction of the model and improve the model's cognitive ability. After many experimental tests, this model has better performance than traditional image processing methods and the original Faster RCNN model. It can achieve good detection results in harsh environments such as too bright or too dark light, foggy days, etc., and the detection speed can also meet actual needs. High-precision detection is an important branch of the development of intelligent transportation technology, and this model just meets the requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 Schematic diagram of the ResNet110 backbone feature extraction network structure.

[0074] Figure 2 Schematic diagram of the CA attention module structure.

[0075] Figure 3 The figure is a schematic diagram of the structure of the identification model of the embodiment.

[0076] Figure 4 Flowchart of the algorithm for adaptive anchor box generation.

[0077] Figure 5 This is the downward trend graph of the loss function.

[0078] Figure 6 It is a schematic diagram of each candidate box on the original image.

[0079] Figure 7 for Figure 6 Schematic diagram of the mAP values ​​of the four candidate boxes.

[0080] Figure 8 A flowchart of an embodiment. DETAILED DESCRIPTION

[0081] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0082] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention; the terms "first", "second", and "third" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance; in addition, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0083] Example 1

[0084] like Figure 1-Figure 8 As shown, a high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence specifically includes the following steps:

[0085] Providing a pavement damage recognition model, wherein the pavement damage recognition model matches an input pavement damage image with an output pavement damage type;

[0086] Wherein, the pavement damage recognition model generates corresponding pavement damage features based on the pavement damage objects in the image, and the pavement damage features correspond to the output pavement damage types;

[0087] When generating pavement damage features, pavement damage features are extracted in multiple levels based on pavement damage images. The first level extracts pavement damage features based on the original pavement damage images, and each subsequent level extracts pavement damage features based on the previous level.

[0088] The main feature map of the pavement damage object extracted from the last level is fused with the contour feature map of the pavement damage object to generate the final feature map, which corresponds to the corresponding pavement damage type.

[0089] The specific method of fusion is: a series of prior frames containing pavement disease objects are generated from the last level, and then these prior frames are combined to generate a fusion module containing the overall characteristics of the pavement disease objects.

[0090] In this embodiment, the preparation of the data set for training the pavement disease recognition model specifically includes the following steps:

[0091] Firstly, a high-resolution camera is used to collect pictures of different types of pavement defects on several roads. Then, based on the geometric transformation method, the image data is further amplified by rotating and cropping the image. The image data is further processed based on the Retinex image enhancement algorithm to amplify the image data. The LabelImg tool is then used to complete the customized annotation of the border position information of the pavement defect object and generate the corresponding XML file. After the annotation, 90% of the data is used for the training set and the remaining 10% for the test set.

[0092] In this embodiment, the road surface disease identification model is constructed as follows:

[0093] The Faster RCNN model is used as the main model:

[0094] The backbone network used for feature extraction is the ResNet110 network structure.

[0095] In this embodiment, in the ResNet110 network structure:

[0096] The size of the input image is 600×600 and the dimension is 3;

[0097] In the first convolutional layer, the number of convolution kernels is 64, the size is 7×7, the step size is 2, and the feature layer size obtained by the first layer feature extraction is 300×300×64, that is, the size of the extracted feature map is 300×300, and the number is 64;

[0098] The second layer is the maximum pooling layer, the size of the convolution kernel is 3×3, the step size is 2, and the feature layer size obtained by the second layer feature extraction is 150×150×64, that is, the size of the extracted feature map is 150×150, and the number is 64;

[0099] Four residual modules are stacked in the third convolutional layer;

[0100] Among them, each residual module has a 3-channel convolution kernel;

[0101] The size of the convolution kernel in one channel is 1×1, and the number is 64;

[0102] The size of the convolution kernel in the other channel is 3×3, and the number is 64;

[0103] The size of the convolution kernel in the remaining channel is 1×1, and the number is 256;

[0104] Eight residual modules are stacked in the fourth convolutional layer;

[0105] Among them, each residual module has a 3-channel convolution kernel;

[0106] The size of the convolution kernel in one channel is 1×1, and the number is 64;

[0107] The size of the convolution kernel in the other channel is 3×3, and the number is 128;

[0108] The size of the convolution kernel in the remaining channel is 1×1, and the number is 512;

[0109] 21 residual modules are stacked in the fifth convolutional layer;

[0110] Among them, each residual module has a 3-channel convolution kernel;

[0111] The size of the convolution kernel in one channel is 1×1, and the number is 256;

[0112] The size of the convolution kernel in the other channel is 3×3, and the number is 256;

[0113] The size of the convolution kernel in the remaining channel is 1×1, and the number is 1024;

[0114] Three residual modules are stacked in the sixth convolutional layer;

[0115] Among them, each residual module has a 3-channel convolution kernel;

[0116] The size of the convolution kernel in one channel is 1×1, and the number is 512;

[0117] The size of the convolution kernel in the other channel is 3×3, and the number is 512;

[0118] The size of the convolution kernel in the remaining channel is 1×1, and the number is 2048;

[0119] The feature layer size of the sixth convolutional layer output is 18×18×2048, that is, the extracted feature map size is 18×18, and the number is 2048.

[0120] As a further improvement of the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence of the present invention, a CA attention module is set after the third to sixth convolutional layers, specifically including the following modules set in sequence:

[0121] Global average pooling layer, where the size of the convolution kernel is 1×1;

[0122] Fully connected layer, where the input features undergo C / r 1x1 convolutions, where r is the channel reduction ratio, C is the number of channels, and C / r is the number of convolution kernels;

[0123] Non-linear layer, where the input feature map undergoes a 1x1 convolution of C / r;

[0124] Fully connected layer, where the convolution kernel size is 1×1,

[0125] Sigmoid activation function, where the size of the convolution kernel is 1×1;

[0126] The Re-wight layer multiplies the extracted feature map with the feature map of the input global average pooling layer, re-weights each channel to regenerate the feature map.

[0127] In this embodiment, the last layer CA module of the backbone feature extraction network is connected to an RPN model, which is used for the RPN model to generate a candidate window to frame the specific location of the pavement disease object body; and extract the candidate frame pavement disease feature map with the pavement disease object body; and fuse it with the pavement disease object contour feature map extracted by the last layer CA module to generate a corresponding fused feature map, and construct the last fully connected layer. After the fused feature map is converted into a feature vector, it corresponds to the pavement disease type through the last fully connected layer.

[0128] In this embodiment, in the last fully connected layer:

[0129] The activation function ReLu is adjusted and renamed NReLu. The formula is as follows:

[0130]

[0131] If x<0, it is equal to 0, x is the input data, and k is the weight coefficient.

[0132] In this embodiment, before the first convolutional layer extracts the original image features, the network structure of the algorithm for generating a rectangular box using the anchor box is adjusted;

[0133] By scanning all the bounding box information annotated in the training set, the types of rectangular boxes are divided. The specific steps are as follows:

[0134] (1) Assume that K, K>0 anchor boxes are generated. First, traverse the labeled training samples and calculate the width w and height h of the rectangular box.

[0135] (2) Calculate the square root of the corresponding rectangular box. The formula is as follows:

[0136]

[0137] (3) Sort these square root values ​​s from small to large to obtain a sequence Arr of [L, R];

[0138] (4) Calculate the middle value T of Arr, then map it to the original rectangular frame and record the width w at this time. i , height h i, and set K to K-1;

[0139] (5) Using the divide-and-conquer method, recursively [L, T] and [T, R], repeat step (4) until K equals 0, and output K anchor boxes;

[0140] After many experiments, the final ratios of the width and height of the rectangular frame include [1:1], [1:2], [2:1], and [2:3]; the ratios of the size of the rectangular frame to the original image include: [1:4], [1:8], [1:16], [1:32], [1:64], [1:128], and [1:256].

[0141] In this embodiment, in the CA module:

[0142] The attention rounding method is used to calculate the position parameters of the prior box for feature extraction. The specific steps are as follows:

[0143] (1) Calculation is performed during pooling, Where w and h represent the width and height of the input feature map, s represents the current step size, and w i ,h i Indicates that the width and height of the i-th feature map, if they cannot be divided evenly, the first decimal point is obtained respectively, and it is recorded as T w , T h ; T w Indicates w i The value corresponding to the first decimal point, T h Indicates h i The value corresponding to the first decimal place;

[0144] (2) If T w +T h >=8, then w i =w i +1,h i =h i +1;

[0145] (3) If T w +T h >=5, then determine which of the two is the largest; if T w >T h , then w i =w i +1,h i =h i ; if T w <T h , then w i =w i ,h i =h i +1; if the two are equal, then wi =w i +1,h i =h i +1;

[0146] (4) In other cases, w i =w i ,h i =h i .

[0147] In this embodiment, the road surface disease recognition model is trained as follows:

[0148] The deep learning framework PyTorch was used, and the training image size was set to 600x600. Two training stages were set: the freezing stage and the non-freezing stage, with corresponding epochs of 50 and 100, respectively, and learning rates of 0.0001 and 0.00001, respectively. The optimizer used SGD, and mIOU was set to 0.2. After iterative training to learn the disease feature parameters, the model with the best training effect was finally selected as the target detection model for the actual working condition. During the training, the backbone network generated a priori box to extract the corresponding feature map, and then the Softer NMS algorithm was used to select the priori box with the highest confidence score. Finally, classification regression was performed to determine the specific pavement disease object category and retain the best feature area.

[0149] Example 2

[0150] In order to solve the problem of missed detection and false detection of road defects under complex working conditions, this embodiment designs a method for enhancing training data based on the Retinex algorithm, adopts an improved Faster RCNN model, and constructs a high-performance model suitable for road defect feature detection and recognition. The main technical solutions are as follows:

[0151] 1. Dataset creation

[0152] Deep learning requires a large amount of data for training and learning. First, a high-resolution camera is used to collect pictures of different types of pavement damage on several roads. Then, based on geometric transformations such as rotation and cropping, the image data is further amplified to reduce the model's sensitivity to target location information. Taking into account complex working conditions, images collected on foggy and cloudy days may appear blurry or unevenly bright. The present invention designs a data amplification method based on the Retinex image enhancement algorithm to enhance the abstraction of the model and improve the model's cognitive ability. The LabelImg tool is then used to complete customized annotations of information such as the location of the pavement damage border, and a corresponding XML file is generated. 90% of the data is used for the training set, and the remaining 10% of the data is used for the test set.

[0153] 3. Choice of backbone network

[0154] The present invention adopts ResNet and introduces a bypass module, so that the model always learns feature information during the training process, further enhancing the generalization ability of the model and having a good inhibitory effect on the missed detection rate and false detection rate. Because ResNet101 and ResNet152 have good performance, the present invention builds a deep ResNet110 as the backbone feature extraction network layer, with lighter module weight and better performance. Figure 1 As shown, first input a 600×600×3 road image, where the image size is 600×600 and the dimension is 3. In the first convolution layer, the number of convolution kernels is 64, the size is 7×7, and the feature layer obtained after processing is 300×300×64. Then enter the max pool to get 150×150×64. The difference between ResNet110 and ResNet101 is that there are 4, 8, 21, and 3 in each Block, which can ensure that each Block can extract more feature information as much as possible, because the more blocks each has, the better the model expression ability. The features output by the last layer are: 18×18×2048. In order to further enhance the backbone feature extraction capability, a CA attention (Coordinate Attention) module is added after each Conv_x, such as Figure 2 As shown in , it allows it to learn feature information of more dimensions, which can ensure that the model has richer semantic information. The final recognition model structure is as follows Figure 3 As shown;

[0155] In addition, the activation function ReLu in the model is improved. As the network depth increases, the correction accuracy of ReLu decreases, which is called NReLu. The negative direction is changed to a linear change trend, but the amplitude of the change is small enough. The formula is:

[0156]

[0157] If x<0, it is equal to 0, x is the input data, k is the weight coefficient, so that the model always has the best gradient value.

[0158] 4. Adaptable and adjustable Anchor Box design

[0159] The present invention designs an adaptive and adjustable algorithm to generate the anchor box network structure, enhances the model regression positioning accuracy, and thus realizes the high-precision positioning of road surface diseases. First, all the frame information annotated by the training data set is scanned and then divided into 28 types, such as Figure 4 The key steps of the algorithm are as follows:

[0160] (1) Assume that K (K>0) anchor boxes are generated. First, traverse the labeled training samples and calculate the width w and height h of the rectangular box.

[0161] (2) Calculate the square root of the corresponding rectangular box. The formula is as follows:

[0162]

[0163] (3) Sort these square root values ​​s from small to large to obtain a sequence Arr of [L, R];

[0164] (4) Calculate the middle value T of Arr, then map it to the original rectangular frame and record the width w at this time. i , height h i , and set K to K-1;

[0165] (5) Using the divide-and-conquer method, recursively perform [L, T] and [T, R], and repeat step (4) until K is equal to 0;

[0166] After multiple experiments, the present invention finally determined the aspect ratios of [1:1], [1:2], [2:1], [2:3], and the size ratios of [1:4], [1:8], [1:16], [1:32], [1:64], [1:128], [1:256], so that the Anchor has richer scale features, thereby improving the accuracy of the model.

[0167] 5. Quantitative Operations

[0168] The present invention uses an attention rounding method to perform calculations, thereby compensating for the problem of regression positioning error and further improving positioning accuracy. Its calculation process:

[0169] (1) Calculation is performed during pooling, Where w and h represent the width and height of the input feature map, s represents the current step size, and w i ,h i Indicates that the width and height of the i-th feature map, if they cannot be divided evenly, the first decimal point is obtained, which is T w 、T h ; T w Indicates w i The value corresponding to the first decimal point, T h Indicates h i The value corresponding to the first decimal place;

[0170] (2) If T w +T h >=8, then w i =w i +1,hi =h i +1;

[0171] (3) If T w +T h >=5, then determine which of the two is the largest. w >T h , then w i =w i +1,h i =h i If T w <T h , then w i =w i ,h i =h i +1. If the two are equal, then w i =w i +1,h i =h i +1;

[0172] (4) In other cases, w i =w i ,h i =h i

[0173] The improved algorithm has a simple principle, effectively suppresses positioning deviation, and greatly improves the detection accuracy of the model.

[0174] 6. Model Training

[0175] The deep learning framework used is PyTorch. Because PyTorch is simple and easy to use, it has a very open application atmosphere. The training image size is set to 600x600, and two training stages are set: frozen stage and non-frozen stage, the corresponding epochs are: 50 and 100, the learning rates are: 0.0001 and 0.00001, and the optimizer uses SGD (stochastic gradient descent method) because of its good performance, and mIOU (deep learning network evaluation index) is set to 0.2. After iterative training to learn the disease feature parameters, the model can better adapt to the detection of real road images. Finally, the model with the best training effect is selected as the target detection model for real working conditions.

[0176] 7. Model call

[0177] On the actual road, the trained improved Faster RCNN model can be imported for detection and recognition. Since the image size set during training is 600x600, the image captured by the camera needs to be converted into the specified size when used for detection, and then sent to this model. The backbone network extracts the corresponding feature information, and then uses the Softer NMS algorithm to filter out the prior frame with the highest confidence score. Finally, classification regression is performed to determine the specific category and retain the best feature area.

[0178] 8. Model Testing

[0179] The improved algorithm was tested. As shown in the figure, during the training process, the loss function showed a relatively stable downward trend, and even the mAP (Mean Average Precision) value reached 51.83, which is 8% higher than the default value, and it has higher recognition accuracy under complex working conditions.

[0180] Example 3

[0181] The present invention proposes a high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence. The method can be applied to the field of intelligent traffic maintenance, thereby achieving the purpose of road engineering quality control, such as road crack detection, road pothole detection, etc.

[0182] The main process is as follows:

[0183] 1) Collect the road images to be detected and then build a data set;

[0184] 2) Train the model and fine-tune parameters;

[0185] 3) Adjust the size of the image captured by the camera and import the trained model for detection;

[0186] The present invention proposes a high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence, which can be applied in the process of pavement quality maintenance, thereby achieving efficient control of road engineering quality.

[0187] Based on the considerations of accuracy and detection speed, this embodiment proposes data enhancement and a new Faster RCNN high-performance model based on the Faster RCNN model to meet the high-precision requirements of real road conditions.

[0188] This embodiment collects a large number of road images with diseases, and then performs data augmentation based on the Retinex algorithm to enhance the model's abstraction capability;

[0189] The present invention can meet the demand for high-precision extraction of pavement defects under complex working conditions, and adopts a target detection method based on optimized Faster RCNN.

[0190] In order to further improve the prediction accuracy of the model in complex environments, enhance abstraction, and improve cognitive ability, this paper proposes a data augmentation method based on the Retinex image enhancement algorithm, which can adjust multiple features and nonlinearly perceive the environment to meet the real scene

[0191] The present invention designs a network structure that generates anchor boxes with an adaptive and adjustable algorithm to enhance the model regression positioning accuracy, thereby achieving high-precision positioning of road defects. In view of the fact that low-resolution or edge defects are prone to misdetection, an attention rounding algorithm is proposed. According to the error size of the calculation result, the border position is made as close to the true value as possible, so that the defect features more reasonably match the spatial information, the regional features are enhanced, and the mismatch deviation is suppressed.

[0192] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. A high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence, characterized in that: The specific steps include: Providing a pavement damage recognition model, wherein the pavement damage recognition model matches an input pavement damage image with an output pavement damage type; Wherein, the pavement damage recognition model generates corresponding pavement damage features based on the pavement damage objects in the image, and the pavement damage features correspond to the output pavement damage types; When generating pavement damage features, pavement damage features are extracted in multiple levels based on pavement damage images. The first level extracts pavement damage features based on the original pavement damage images, and each subsequent level extracts pavement damage features based on the previous level. The main feature map of the pavement damage object extracted from the last level is fused with the contour feature map of the pavement damage object to generate the final feature map, which corresponds to the corresponding pavement damage type; The construction method of the pavement disease identification model is as follows: The Faster RCNN model is used as the main model: The backbone network used for feature extraction is ResNet110 network structure; In the ResNet110 network structure: The size of the input image is 600×600 and the dimension is 3; In the first convolutional layer, the number of convolution kernels is 64, the size is 7×7, the step size is 2, and the feature layer size obtained by the first layer feature extraction is 300×300×64, that is, the size of the extracted feature map is 300×300, and the number is 64; The second layer is the maximum pooling layer, the size of the convolution kernel is 3×3, the step size is 2, and the feature layer size obtained by the second layer feature extraction is 150×150×64, that is, the size of the extracted feature map is 150×150, and the number is 64; Four residual modules are stacked in the third convolutional layer; Among them, each residual module has a 3-channel convolution kernel; The size of the convolution kernel in one channel is 1×1, and the number is 64; The size of the convolution kernel in the other channel is 3×3, and the number is 64; The size of the convolution kernel in the remaining channel is 1×1, and the number is 256; Eight residual modules are stacked in the fourth convolutional layer; Among them, each residual module has a 3-channel convolution kernel; The size of the convolution kernel in one channel is 1×1, and the number is 64; The size of the convolution kernel in the other channel is 3×3, and the number is 128; The size of the convolution kernel in the remaining channel is 1×1, and the number is 512; 21 residual modules are stacked in the fifth convolutional layer; Among them, each residual module has a 3-channel convolution kernel; The size of the convolution kernel in one channel is 1×1, and the number is 256; The size of the convolution kernel in the other channel is 3×3, and the number is 256; The size of the convolution kernel in the remaining channel is 1×1, and the number is 1024; Three residual modules are stacked in the sixth convolutional layer; Among them, each residual module has a 3-channel convolution kernel; The size of the convolution kernel in one channel is 1×1, and the number is 512; The size of the convolution kernel in the other channel is 3×3, and the number is 512; The size of the convolution kernel in the remaining channel is 1×1, and the number is 2048; The feature layer size of the sixth convolutional layer output is 18×18×2048, that is, the extracted feature map size is 18×18, and the number is 2048; A CA attention module is set after the third to sixth convolutional layers, which includes the following settings in sequence: Global average pooling layer, where the size of the convolution kernel is 1×1; Fully connected layer, where the input features undergo C / r 1x1 convolutions, where r is the channel reduction ratio, C is the number of channels, and C / r is the number of convolution kernels; Non-linear layer, where the input feature map undergoes C / r 1x1 convolutions; Fully connected layer, where the convolution kernel size is 1×1, Sigmoid activation function, where the size of the convolution kernel is 1×1; The Re-wight layer multiplies the extracted feature map with the feature map of the input global average pooling layer, re-weights each channel to regenerate the feature map.

2. The high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence according to claim 1 is characterized in that: The preparation of the data set for training the pavement disease recognition model specifically includes the following steps: Firstly, a high-resolution camera is used to collect pictures of different types of pavement defects on several roads. Then, based on the geometric transformation method, the image data is further amplified by rotating and cropping the image. The image data is further processed based on the Retinex image enhancement algorithm to amplify the image data. The LabelImg tool is then used to complete the customized annotation of the border position information of the pavement defect object and generate the corresponding XML file. After the annotation, 90% of the data is used for the training set and the remaining 10% for the test set.

3. The high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence according to claim 1 is characterized in that: in, The last layer CA module of the backbone feature extraction network is connected to an RPN model, which is used for the RPN model to generate a candidate window to frame the specific location of the pavement disease object body; and extract the candidate frame pavement disease feature map with the pavement disease object body; and fuse it with the pavement disease object contour feature map extracted by the last layer CA module to generate the corresponding fused feature map, and construct the final fully connected layer. After the fused feature map is converted into a feature vector, it corresponds to the pavement disease type through the final fully connected layer.

4. According to claim 3, the high-precision extraction and identification method of pavement defects under complex working conditions based on artificial intelligence is characterized in that In the final fully connected layer: The activation function ReLu is adjusted and renamed NReLu. The formula is as follows: If x<0, it is equal to 0, x is the input data, and k is the weight coefficient.

5. The high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence according to claim 4 is characterized in that: Before extracting the original image features in the first convolutional layer, adjust the network structure of the anchor box generation rectangular box algorithm; By scanning all the bounding box information annotated in the training set, the types of rectangular boxes are divided. The specific steps are as follows: (1) Assume that K, K>0 anchor boxes are generated. First, traverse the labeled training samples and calculate the width w and height h of the rectangular box. (2) Calculate the square root of the corresponding rectangular box. The formula is as follows: (3) Sort these square root values ​​s from small to large to obtain a sequence Arr of [L, R]; (4) Calculate the middle value T of Arr, then map it to the original rectangular frame and record the width w at this time. i , height h i , and set K to K-1; (5) Using the divide-and-conquer method, recursively [L, T] and [T, R], repeat step (4) until K equals 0, and output K anchor boxes; After many experiments, the final ratios of the width and height of the rectangular frame include [1:1], [1:2], [2:1], and [2:3]; the ratios of the size of the rectangular frame to the original image include: [1:4], [1:8], [1:16], [1:32], [1:64], [1:128], and [1:256].

6. The high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence according to claim 5 is characterized in that: In the CA module: The attention rounding method is used to calculate the position parameters of the prior box for feature extraction. The specific steps are as follows: (1) Calculation is performed during pooling, Where w and h represent the width and height of the input feature map, s represents the current step size, and w i ,h i Indicates that the width and height of the i-th feature map, if they cannot be divided evenly, the first decimal point is obtained respectively, and it is recorded as T w , T h ; T w Indicates w i The value corresponding to the first decimal point, T h Indicates h i The value corresponding to the first decimal place; (2) If T w +T h >=8, then w i =w i +1,h i =h i +1; (3) If T w +T h >=5, then determine which of the two is the largest; if T w >T h , then w i =w i +1,h i =h i ; if T w <T h , then w i =w i ,h i =h i +1; if the two are equal, then w i =w i +1,h i =h i +1; (4) In other cases, w i =w i ,h i =h i .

7. The high-precision extraction and identification method for pavement defects under complex working conditions based on artificial intelligence according to claim 6 is characterized in that: The training method of the pavement disease recognition model is as follows: The deep learning framework PyTorch was used, and the training image size was set to 600x600. Two training stages were set: the freezing stage and the non-freezing stage, with corresponding epochs of 50 and 100, respectively, and learning rates of 0.0001 and 0.00001, respectively. The optimizer used SGD, and mIOU was set to 0.

2. After iterative training to learn the disease feature parameters, the model with the best training effect was finally selected as the target detection model for the actual working condition. During the training, the backbone network generated a priori box to extract the corresponding feature map, and then the Softer NMS algorithm was used to select the priori box with the highest confidence score. Finally, classification regression was performed to determine the specific pavement disease object category and retain the best feature area.

Citation Information

Cited By

  • A method and system for intelligent detection of road diseases based on instance segmentation

    CN118864443B

  • Road pitted surface disease identification method based on deep learning

    CN120953799A