Cement pavement crack detection method

Through missing value processing and model training of three-dimensional images of cement pavement, combined with feature extraction and enhancement modules, the problem of low accuracy and low efficiency of cement pavement crack detection in the existing technology is solved, and efficient and accurate crack detection results are achieved.

CN118735868APending Publication Date: 2024-10-01CHINA HIGHWAY ENG CONSULTING GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410772896.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing cement pavement crack detection methods have problems such as long manual detection time, high cost and low accuracy. Moreover, the baseline improvement algorithm based on Fourier filtering cannot form a continuous benchmark curve, resulting in incomplete and inaccurate crack detection.

Method used

A cement pavement crack detection method is adopted, including obtaining three-dimensional images and converting them into two-dimensional images, processing missing values, constructing a model training data set, and training a crack detection model. The model includes a feature extraction module, a feature enhancement module, and a detection head. The feature extraction and enhanced feature maps output crack detection results, and grid expansion convolution and deformable grid space convolution space pyramid are used to improve detection efficiency and accuracy.

Benefits of technology

It achieves more efficient and accurate cement pavement crack detection, improves the quality of image data and the accuracy of detection results, and reduces detection costs and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735868A_ABST
    Figure CN118735868A_ABST
Patent Text Reader

Abstract

The invention relates to a cement pavement crack detection method, a crack detection result is obtained based on a cement crack detection model obtained through training, and image data adopted in the training process of the cement crack detection model is subjected to missing data processing to improve the quality of the image data; according to the cement crack detection model, the feature extraction process is improved to realize more efficient feature extraction, and in addition, the detection efficiency and accuracy of the cement crack detection model are improved by using the grid expansion convolution and the deformable grid space convolution spatial pyramid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of pavement detection, and in particular, to a method for detecting cracks in a cement pavement. Background Art

[0002] Cracks are one of the most common, most likely to occur and earliest diseases among all types of road damage. They are generally divided into transverse cracks, longitudinal cracks and mesh cracks. Initial cracks have no obvious effect on the performance of the road, but they accompany the entire service life of the road. If they are not handled in time, the cracks will gradually worsen under the influence of environmental factors and the repeated action of a large number of driving loads. The appearance of cracks in the road surface not only affects the appearance of the road and the comfort of driving, but also easily expands to cause structural damage to the road surface, shortening the service life of the road surface, and even greatly affecting the safety of driving. Therefore, how to detect cracks in real time, accurately and efficiently has become a problem of great concern to highway management and maintenance departments.

[0003] In the past, crack detection mainly relied on manual measurement and assessment of road conditions, which was time-consuming, costly, and inaccurate. Although the semi-automatic detection method has improved the former to a certain extent, it still has the problems of high labor costs and low accuracy of detection results.

[0004] In addition, in the processing algorithm based on the road surface baseline, the baseline improvement algorithm based on Fourier filtering proposed in the prior art extracts a broken road surface baseline and cannot form a continuous baseline curve, making the extracted cracks incomplete and inaccurate. Summary of the invention

[0005] In order to overcome at least one deficiency in the prior art, the present application provides a cement pavement crack detection method.

[0006] In a first aspect, a cement pavement crack detection method is provided, comprising:

[0007] Acquire a three-dimensional image of a cement pavement crack and convert the three-dimensional image into a two-dimensional image;

[0008] Process the missing values ​​of the two-dimensional image to obtain a processed two-dimensional image;

[0009] Construct a model training dataset based on the processed two-dimensional images;

[0010] The crack detection model is trained based on the model training data set to obtain a trained crack detection model; the crack detection model includes a feature extraction module, a feature enhancement module and a detection head, the feature extraction module is used to extract features from the image to obtain a feature map, the feature enhancement module is used to enhance features of the feature map to obtain an enhanced feature map, and the detection head is used to output a crack detection result based on the enhanced feature map;

[0011] The cement pavement image to be detected is processed for missing values, and the processed image is input into the trained crack detection model to obtain the crack detection result.

[0012] In one embodiment, performing missing value processing on a two-dimensional image includes:

[0013] Determine the neighborhood points of each missing point in the two-dimensional image;

[0014] Calculate the distance feature, value feature and gradient feature of each neighborhood point;

[0015] According to the distance feature, value feature and gradient feature, the distance weight, value similarity weight and gradient similarity weight are calculated;

[0016] The final weight of each neighborhood point is obtained by combining distance weight, value similarity weight and gradient similarity weight;

[0017] The missing value of the missing point is determined according to the final weight of each neighborhood point and the depth value of each neighborhood point.

[0018] In one embodiment, determining the neighborhood points of each missing point in the two-dimensional image includes:

[0019] Determine the neighborhood of the missing point P:

[0020] x min =max(0,x p -1)

[0021] x max =min(M-1,x p +1)

[0022] y min =max(0,y p -1)

[0023] y max =min(N-1,y p +1)

[0024] Among them, x min 、x max are the minimum and maximum values ​​in the x direction of the neighborhood, and the maximum and min ,y maxare the minimum and maximum values ​​in the y direction of the neighborhood, respectively. p ,y p ) is the coordinate of the missing point P, M is the length of the two-dimensional image, and N is the width of the two-dimensional image;

[0025] Get the pixel points within the neighborhood of the missing point P, which are the neighborhood points of the missing point P:

[0026] x min <x i <x max

[0027] y min <y i <y max

[0028] Among them, (x i ,y i ) are the coordinates of the i-th neighborhood point.

[0029] In one embodiment, the distance feature, value feature and gradient feature of each neighborhood point are calculated, including:

[0030] Distance characteristics of neighborhood points:

[0031]

[0032] Among them, d(i,P) is the distance feature of the i-th neighborhood point, P is the missing point, (x i ,y i ) is the coordinate of the i-th neighborhood point, (x p ,y p ) are the coordinates of the missing point P;

[0033] Value characteristics of neighborhood points:

[0034]

[0035] Where Δv i is the value feature of the i-th neighborhood point, v i is the depth value of the i-th neighborhood point, is the mean of the depth values ​​of all neighborhood points;

[0036] Gradient characteristics of neighborhood points:

[0037]

[0038] Where, Δg i is the gradient feature of the i-th neighborhood point, g i is the gradient value of the i-th neighborhood point, is the mean of the gradient values ​​of all neighborhood points.

[0039] In one embodiment, the distance weight, the value similarity weight and the gradient similarity weight are calculated according to the distance feature, the value feature and the gradient feature, including:

[0040] Distance Weight:

[0041]

[0042] Among them, w di The distance weight of the ith neighboring point, d(i,P) is the distance feature of the ith neighboring point, σ d is the standard deviation of the distance feature;

[0043] Value similarity weight:

[0044]

[0045] Among them, w vi The value similarity weight of the i-th neighborhood point, Δv i is the value feature of the i-th neighborhood point, σ v is the standard deviation of the value feature;

[0046] Gradient similarity weight:

[0047]

[0048] Among them, w gi The gradient similarity weight of the i-th neighborhood point, Δg i is the gradient feature of the i-th neighborhood point, σ g is the standard deviation of the gradient feature.

[0049] In one embodiment, the distance weight, value similarity weight, and gradient similarity weight are integrated to obtain the final weight of each neighborhood point, including:

[0050] The final weight of each neighborhood point is expressed by the following formula:

[0051]

[0052] in, is the final weight of the i-th neighborhood point, w di 、w vi 、w gi are the distance weight, value similarity weight and gradient similarity weight of the i-th neighborhood point, N(P) is the neighborhood set of the missing point P, j is the j-th neighborhood point, w dj 、w vj 、w gj are the distance weight, value similarity weight and gradient similarity weight of the j-th neighborhood point respectively.

[0053] In one embodiment, determining the missing value of the missing point according to the final weight of each neighborhood point and the depth value of each neighborhood point includes:

[0054] The missing value of the missing point is expressed by the following formula:

[0055]

[0056] Where D(P) is the missing value of the missing point P, N(P) is the neighborhood set of the missing point P, i is the i-th neighborhood point, is the final weight of the i-th neighborhood point, v i is the depth value of the i-th neighborhood point.

[0057] In one embodiment, the feature extraction module includes a first CBS module, a second CBS module, a first C2fPC module, a third CBS module, a second C2fPC module, a fourth CBS module, a third C2fPC module, a fifth CBS module, a fourth C2fPC module, and an SPPF module connected in sequence; the first CBS module, the second CBS module, the third CBS module, and the fourth CBS module have the same structure, and the first C2fPC module, the second C2fPC module, the third C2fPC module, and the fourth C2fPC module have the same structure;

[0058] The first CBS module includes a first Conv module, a BN module and a SiLU module connected in sequence;

[0059] The first C2fPC module includes a second Conv module, a Split module, a PCBlock module, a Concat module, and a third Conv module, and the PCBlock module includes n PCBlock units;

[0060] The output of the second Conv module is input into the Split module for segmentation processing to obtain the first part and the second part; the first part is input into the PCBlock module, the output of each PCBlock unit and the second part are input into the Concat module for splicing, and the splicing result is input into the third Conv module. The output of the third Conv module is the output of the first C2fPC module.

[0061] In one embodiment, the input of the feature enhancement module includes three parts, namely, the output of the second C2fPC module, the output of the third C2fPC module, and the output of the SPPF module;

[0062] The feature enhancement module includes a first enhancement unit, a second enhancement unit, a third enhancement unit and a fourth enhancement unit connected in sequence, the first enhancement unit and the second enhancement unit have the same structure, and the third enhancement unit and the fourth enhancement unit have the same structure;

[0063] The first enhancement unit includes an upsampling layer, a Concat layer, and a deformable grid spatial convolutional spatial pyramid VoVGSCSP;

[0064] The third enhancement unit includes grid dilation convolution GSConv, Concat layer, deformable grid spatial convolution spatial pyramid VoVGSCSP;

[0065] The output of the second C2fPC module is input to the Concat layer of the second enhancement unit, and the output of the third C2fPC module is input to the Concat layer of the first enhancement unit; the output of the SPPF module is input to the upsampling layer of the first enhancement unit and the Concat layer of the fourth enhancement unit;

[0066] The output of the deformable grid spatial convolutional spatial pyramid VoVGSCSP of the first enhancement unit is input to the Concat layer of the third enhancement unit;

[0067] The output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the second enhancement unit is input to the grid dilation convolution GSConv of the third enhancement unit;

[0068] The output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the second enhancement unit, the output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the third enhancement unit, and the output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the fourth enhancement unit are all used as inputs of the detection head.

[0069] In a second aspect, a cement pavement crack detection device is provided, comprising:

[0070] An image acquisition module is used to acquire a three-dimensional image of a cement pavement crack and convert the three-dimensional image into a two-dimensional image;

[0071] A preprocessing module is used to process missing values ​​of the two-dimensional image to obtain a processed two-dimensional image;

[0072] A training data set construction module, used for constructing a model training data set based on the processed two-dimensional image;

[0073] The model training module is used to train the crack detection model based on the model training data set to obtain the trained crack detection model; the crack detection model includes a feature extraction module, a feature enhancement module and a detection head, the feature extraction module is used to extract features from the image to obtain a feature map, the feature enhancement module is used to enhance the features of the feature map to obtain an enhanced feature map, and the detection head is used to output the crack detection result based on the enhanced feature map;

[0074] The detection module is used to process missing values ​​of the cement pavement image to be detected, and input the processed image into the trained crack detection model to obtain the crack detection result.

[0075] Compared with the prior art, the present application has the following beneficial effects: the cement pavement crack detection method of the present application obtains crack detection results based on the trained cement crack detection model, and the image data used in the cement crack detection model training process is first processed with missing data to improve the image data quality; the cement crack detection model improves the feature extraction process to achieve more efficient feature extraction. In addition, grid dilation convolution and deformable grid spatial convolution spatial pyramid are used to improve the detection efficiency and accuracy of the cement crack detection model. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The present application may be better understood by referring to the following description given in conjunction with the accompanying drawings, which together with the following detailed description are included in this specification and form a part of this specification. In the drawings:

[0077] Figure 1 A flowchart of a cement pavement crack detection method according to an embodiment of the present application is shown;

[0078] Figure 2 A schematic diagram of the structure of the crack detection model is shown;

[0079] Figure 3 Shows a schematic diagram of the structure of the C2fPC module;

[0080] Figure 4 A structural block diagram of a cement pavement crack detection device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0081] The exemplary embodiments of the present application will be described below in conjunction with the accompanying drawings. For the sake of clarity and conciseness, not all features of the actual embodiments are described in the specification. However, it should be understood that many implementation-specific decisions can be made in the process of developing any such actual embodiments in order to achieve the specific goals of the developer, and these decisions may vary from embodiment to embodiment.

[0082] It is also necessary to explain here that, in order to avoid obscuring the present application due to unnecessary details, only the device structure closely related to the scheme according to the present application is shown in the drawings, while other details that are not closely related to the present application are omitted.

[0083] It should be understood that the present application is not limited to the described implementation forms due to the following description with reference to the accompanying drawings. In this article, where feasible, the embodiments can be combined with each other, features between different embodiments can be replaced or borrowed, and one or more features can be omitted in one embodiment.

[0084] The present application provides a method for detecting cracks in a cement pavement. Figure 1 A flow chart of a cement pavement crack detection method according to an embodiment of the present application is shown. Figure 1 , methods include:

[0085] Step S1, obtaining a three-dimensional image of cement pavement cracks, and converting the three-dimensional image into a two-dimensional image.

[0086] Here, a three-dimensional image of cement pavement cracks is collected by a carrier equipped with a depth camera, an encoder, and an acceleration sensor. Then, the three-dimensional image can be converted into a two-dimensional image by using a batch depth image normalization method. After research, it was found that the two-dimensional image converted by the above method has the problem of missing images in some areas.

[0087] Step S2, performing missing value processing on the two-dimensional image to obtain a processed two-dimensional image.

[0088] Here, missing value processing is performed on the two-dimensional image with missing values ​​to achieve the effect of filling the missing data, so as to improve the quality of image data.

[0089] Step S3, constructing a model training data set based on the processed two-dimensional image.

[0090] Here, the processed two-dimensional image can be divided into a training set, a validation set, and a test set, wherein the division ratio is 70% for the training set, 15% for the validation set, and 15% for the test set.

[0091] Step S4, training the crack detection model based on the model training data set to obtain the trained crack detection model; the crack detection model includes a feature extraction module, a feature enhancement module and a detection head, the feature extraction module is used to extract features from the image to obtain a feature map, the feature enhancement module is used to enhance the features of the feature map to obtain an enhanced feature map, and the detection head is used to output the crack detection result based on the enhanced feature map.

[0092] Here, during the model training process, the loss function used is MPDIOU, which can further improve the accuracy of the trained model.

[0093] Step S5, processing missing values ​​of the cement pavement image to be detected, and inputting the processed image into the trained crack detection model to obtain a crack detection result. Here, the crack detection result is an area where cracks are determined in the image, for example, presented in the form of a marked box.

[0094] The cement pavement crack detection method of this embodiment obtains crack detection results based on a trained cement crack detection model. The image data used in the cement crack detection model training process is first processed with missing data to improve the image data quality, so that the model finally trained can obtain more accurate detection results.

[0095] In one embodiment, in step S2, performing missing value processing on the two-dimensional image includes:

[0096] Step S21, determining the neighborhood points of each missing point in the two-dimensional image.

[0097] First, determine the neighborhood range of the missing point P:

[0098] x min =max(0,x p -1)

[0099] x max =min(M-1,x p +1)

[0100] y min =max(0,y p -1)

[0101] y max =min(N-1,y p +1)

[0102] Among them, x min 、x max are the minimum and maximum values ​​in the x direction of the neighborhood, and the maximum and min ,y max are the minimum and maximum values ​​in the y direction of the neighborhood, respectively. p ,y p ) is the coordinate of the missing point P, M is the length of the two-dimensional image, and N is the width of the two-dimensional image;

[0103] Then, the pixel points within the neighborhood of the missing point P are obtained, which are the neighborhood points of the missing point P:

[0104] x min <x i <x max

[0105] y min <y i <ymax

[0106] Among them, (x i ,y i ) are the coordinates of the i-th neighborhood point.

[0107] Step S22, calculating the distance feature, value feature and gradient feature of each neighborhood point.

[0108] Distance characteristics of neighborhood points:

[0109]

[0110] Among them, d(i,P) is the distance feature of the i-th neighborhood point, P is the missing point, (x i ,y i ) is the coordinate of the i-th neighborhood point, (x p ,y p ) are the coordinates of the missing point P;

[0111] Value characteristics of neighborhood points:

[0112]

[0113] Where Δv i is the value feature of the i-th neighborhood point, v i is the depth value of the i-th neighborhood point, and v is the mean depth value of all neighborhood points;

[0114] Gradient characteristics of neighborhood points:

[0115]

[0116] Where, Δg i is the gradient feature of the i-th neighborhood point, g i is the gradient value of the i-th neighborhood point, is the mean of the gradient values ​​of all neighborhood points.

[0117] Step S23, calculating the distance weight, the value similarity weight and the gradient similarity weight according to the distance feature, the value feature and the gradient feature.

[0118] Distance Weight:

[0119]

[0120] Among them, w di The distance weight of the ith neighboring point, d(i,P) is the distance feature of the ith neighboring point, σ d is the standard deviation of the distance feature;

[0121] Value similarity weight:

[0122]

[0123] Among them, w vi The value similarity weight of the i-th neighborhood point, Δv i is the value feature of the i-th neighborhood point, σ v is the standard deviation of the value feature;

[0124] Gradient similarity weight:

[0125]

[0126] Among them, w gi The gradient similarity weight of the i-th neighborhood point, Δg i is the gradient feature of the i-th neighborhood point, σ g is the standard deviation of the gradient feature.

[0127] Step S24, combining the distance weight, value similarity weight and gradient similarity weight to obtain the final weight of each neighborhood point.

[0128] The final weight of each neighborhood point is expressed by the following formula:

[0129]

[0130] in, is the final weight of the i-th neighborhood point, w di 、w vi 、w gi are the distance weight, value similarity weight and gradient similarity weight of the i-th neighborhood point, N(P) is the neighborhood set of the missing point P, j is the j-th neighborhood point, w dj 、w vj 、w gj are the distance weight, value similarity weight and gradient similarity weight of the j-th neighborhood point respectively.

[0131] Step S25, determining the missing value of the missing point according to the final weight of each neighborhood point and the depth value of each neighborhood point.

[0132] The missing value of the missing point is expressed by the following formula:

[0133]

[0134] Where D(P) is the missing value of the missing point P, N(P) is the neighborhood set of the missing point P, i is the i-th neighborhood point, is the final weight of the i-th neighborhood point, v i is the depth value of the i-th neighborhood point.

[0135] In one embodiment, Figure 2shows a schematic diagram of the crack detection model, see Figure 2 The feature extraction module includes a first CBS module, a second CBS module, a first C2fPC module, a third CBS module, a second C2fPC module, a fourth CBS module, a third C2fPC module, a fifth CBS module, a fourth C2fPC module, and an SPPF module connected in sequence. Here, the SPPF module is a module in Yolov5, and its full name is Spatial Pyramid Pooling Fast; the first CBS module, the second CBS module, the third CBS module, and the fourth CBS module have the same structure, and the first C2fPC module, the second C2fPC module, the third C2fPC module, and the fourth C2fPC module have the same structure;

[0136] The first CBS module includes a first Conv (convolution) module, a BN (batch normalization) module and a SiLU (activation function) module connected in sequence; the step size S=2 and the convolution kernel k=3 in the CBS module.

[0137] Figure 3 shows a schematic diagram of the structure of the C2fPC module, see Figure 3 The first C2fPC module includes a second Conv module, a Split module, a PCBlock module, a Concat module, and a third Conv module, and the PCBlock module includes n PCBlock units;

[0138] The output of the second Conv module is input to the Split module for segmentation to obtain the first part and the second part; the first part is input to the PCBlock module, and the output of each PCBlock unit and the second part are input to the Concat module for splicing. The splicing result is input to the third Conv module, and the output of the third Conv module is the output of the first C2fPC module. Here, a simple dimensional splicing (concat) method is used to merge deep semantic information and shallow fine-grained information.

[0139] Specifically, the PCBlock unit includes the first partial convolution PConv, the second partial convolution PConv, the first convolution Conv, the second convolution Conv, the third convolution Conv, and the residual connection. Here, the partial convolution PConv applies a 3x3 partial convolution to the input, and only performs a regular convolution operation on some channels to reduce the computational complexity. The subsequent 3x3 first convolution is used to further extract features, and then two consecutive 1x1 convolutions are applied for channel integration and feature transformation, including batch normalization (BN) and activation function ReLU. Finally, the input is directly added to the output of the convolution operation to form a residual connection to help information transfer and gradient flow.

[0140] The output feature maps of all PCBlock modules are concatenated in the channel dimension to form a complete feature map. The final concatenated feature map is further processed through a convolutional layer to obtain the final feature map output by the C2fPC module.

[0141] In one embodiment, the feature enhancement module uses grid dilated convolution (GSConv) and deformable grid spatial convolution spatial pyramid (VoVGSCSP) to improve the efficiency and accuracy of the model. Specifically, the input of the feature enhancement module includes three parts, namely, the output of the second C2fPC module, the output of the third C2fPC module, and the output of the SPPF module;

[0142] The feature enhancement module includes a first enhancement unit, a second enhancement unit, a third enhancement unit and a fourth enhancement unit connected in sequence, the first enhancement unit and the second enhancement unit have the same structure, and the third enhancement unit and the fourth enhancement unit have the same structure;

[0143] The first enhancement unit includes an upsampling layer, a Concat layer, and a deformable grid spatial convolutional spatial pyramid VoVGSCSP;

[0144] The third enhancement unit includes grid dilation convolution GSConv, Concat layer, deformable grid spatial convolution spatial pyramid VoVGSCSP;

[0145] The output of the second C2fPC module is input to the Concat layer of the second enhancement unit, and the output of the third C2fPC module is input to the Concat layer of the first enhancement unit; the output of the SPPF module is input to the upsampling layer of the first enhancement unit and the Concat layer of the fourth enhancement unit;

[0146] The output of the deformable grid spatial convolutional spatial pyramid VoVGSCSP of the first enhancement unit is input to the Concat layer of the third enhancement unit;

[0147] The output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the second enhancement unit is input to the grid dilation convolution GSConv of the third enhancement unit;

[0148] The output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the second enhancement unit, the output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the third enhancement unit, and the output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the fourth enhancement unit are all used as inputs of the detection head. Here, the detection head is the detection head of YOLOv8, and the specific structure is the prior art and will not be repeated.

[0149] In this embodiment, the specific implementation functions of the feature enhancement module are:

[0150] The output of the SPPF module is input to the upsampling module of the first enhancement unit for upsampling, which increases the size of the image by 2 times. The output of the upsampling module is concatenated with the output of the third C2fPC module to obtain a new feature map; the new feature map is input to the deformable grid spatial convolution spatial pyramid VoVGSCSP of the first enhancement unit for 12 convolution operations of size 512.

[0151] The output of the second enhancement unit is input to the grid dilation convolution GSConv of the third enhancement unit, and 256 convolution operations of size 3 and a step size of 2 are performed on the feature map obtained in the previous step. The output of the grid dilation convolution GSConv is concatenated with the output of the first enhancement unit to obtain a new feature map. The deformable grid spatial convolution spatial pyramid VoVGSCSP is used to perform 18 convolution operations of size 512 on the new feature map. The fourth enhancement unit repeats the operation of the third enhancement unit.

[0152] In this embodiment, the feature extraction and feature enhancement modules are lightweight designed, which greatly reduces the number of parameters and the amount of calculation of the model. At the same time, the number of parameters and the amount of calculation are further reduced, and the detection speed is accelerated.

[0153] Based on the same inventive concept as the cement pavement crack detection method, this embodiment also provides a corresponding cement pavement crack detection device. Figure 4 The structural block diagram of the cement pavement crack detection device according to the embodiment of the present application is shown in FIG. Figure 4 , the device comprises:

[0154] An image acquisition module 41 is used to acquire a three-dimensional image of a cement pavement crack and convert the three-dimensional image into a two-dimensional image;

[0155] A preprocessing module 42 is used to process missing values ​​on the two-dimensional image to obtain a processed two-dimensional image;

[0156] A training data set construction module 43, used to construct a model training data set based on the processed two-dimensional image;

[0157] The model training module 44 is used to train the crack detection model based on the model training data set to obtain the trained crack detection model; the crack detection model includes a feature extraction module, a feature enhancement module and a detection head, the feature extraction module is used to extract features from the image to obtain a feature map, the feature enhancement module is used to enhance the features of the feature map to obtain an enhanced feature map, and the detection head is used to output the crack detection result based on the enhanced feature map;

[0158] The detection module 45 is used to process the missing values ​​of the cement pavement image to be detected, and input the processed image into the trained crack detection model to obtain the crack detection result.

[0159] The cement pavement crack detection device of this embodiment has the same inventive concept as the cement pavement crack detection method described above, so the specific implementation method of the device can be seen in the embodiment part of the cement pavement crack detection method described above, and its technical effect corresponds to the technical effect of the above method, which will not be repeated here.

[0160] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting cracks in a cement pavement, characterized in that: include: Acquire a three-dimensional image of a cement pavement crack, and convert the three-dimensional image into a two-dimensional image; Performing missing value processing on the two-dimensional image to obtain a processed two-dimensional image; constructing a model training data set based on the processed two-dimensional images; The crack detection model is trained based on the model training data set to obtain a trained crack detection model; the crack detection model includes a feature extraction module, a feature enhancement module and a detection head, the feature extraction module is used to extract features from the image to obtain a feature map, the feature enhancement module is used to enhance features on the feature map to obtain an enhanced feature map, and the detection head is used to output a crack detection result based on the enhanced feature map; The cement pavement image to be detected is processed for missing values, and the processed image is input into the trained crack detection model to obtain a crack detection result.

2. The method according to claim 1, characterized in that in, Performing missing value processing on the two-dimensional image includes: Determine a neighborhood point of each missing point in the two-dimensional image; Calculate the distance feature, value feature and gradient feature of each of the neighborhood points; Calculating a distance weight, a value similarity weight, and a gradient similarity weight according to the distance feature, the value feature, and the gradient feature; The distance weight, the value similarity weight and the gradient similarity weight are combined to obtain a final weight of each neighborhood point; The missing value of the missing point is determined according to the final weight of each neighborhood point and the depth value of each neighborhood point.

3. The method according to claim 2, characterized in that in, Determining a neighborhood point of each missing point in the two-dimensional image includes: Determine the neighborhood of the missing point P: x min =max(0,x p -1) x max =min(M-1,x p +1) and min =max(0,y p -1) y max =min(N-1,y p +1) Among them, x min 、x max are the minimum and maximum values ​​in the x direction of the neighborhood, and the maximum and min ,y max are the minimum and maximum values ​​in the y direction of the neighborhood, respectively. p ,y p ) is the coordinate of the missing point P, M is the length of the two-dimensional image, and N is the width of the two-dimensional image; Get the pixel points within the neighborhood range of the missing point P, which are the neighborhood points of the missing point P: x min <x i <x max and min <y i <y max Among them, (x i ,y i ) are the coordinates of the i-th neighborhood point.

4. The method according to claim 2, characterized in that in, Calculating the distance feature, value feature and gradient feature of each of the neighborhood points, including: The distance characteristics of the neighborhood points are: Among them, d(i,P) is the distance feature of the i-th neighborhood point, P is the missing point, (x i ,y i ) is the coordinate of the i-th neighborhood point, (x p ,y p ) are the coordinates of the missing point P; The value characteristics of the neighborhood points are: Where Δv i is the value feature of the i-th neighborhood point, v i is the depth value of the i-th neighborhood point, is the mean of the depth values ​​of all neighborhood points; The gradient characteristics of the neighborhood points: Where, Δg i is the gradient feature of the i-th neighborhood point, g i is the gradient value of the i-th neighborhood point, is the mean of the gradient values ​​of all neighborhood points.

5. The method according to claim 2, characterized in that in, Calculating a distance weight, a value similarity weight, and a gradient similarity weight according to the distance feature, the value feature, and the gradient feature includes: The distance weight: Among them, w di The distance weight of the ith neighboring point, d(i,P) is the distance feature of the ith neighboring point, σ d is the standard deviation of the distance feature; The value similarity weights: Among them, w vi The value similarity weight of the i-th neighborhood point, Δv i is the value feature of the i-th neighborhood point, σ v is the standard deviation of the value feature; The gradient similarity weight: Among them, w gi The gradient similarity weight of the i-th neighborhood point, Δg i is the gradient feature of the i-th neighborhood point, σ g is the standard deviation of the gradient feature.

6. The method according to claim 2, characterized in that in, The distance weight, the value similarity weight and the gradient similarity weight are combined to obtain the final weight of each neighborhood point, including: The final weight of each neighborhood point is expressed by the following formula: in, is the final weight of the i-th neighborhood point, w di 、w vi 、w gi are the distance weight, value similarity weight and gradient similarity weight of the i-th neighborhood point, N(P) is the neighborhood set of the missing point P, j is the j-th neighborhood point, w dj 、w vj 、w gj are the distance weight, value similarity weight and gradient similarity weight of the j-th neighborhood point respectively.

7. The method according to claim 2, characterized in that in, Determining the missing value of the missing point according to the final weight of each neighborhood point and the depth value of each neighborhood point includes: The missing value of the missing point is expressed by the following formula: Where D(P) is the missing value of the missing point P, N(P) is the neighborhood set of the missing point P, i is the i-th neighborhood point, is the final weight of the i-th neighborhood point, v i is the depth value of the i-th neighborhood point.

8. The method according to claim 1, characterized in that The feature extraction module includes a first CBS module, a second CBS module, a first C2fPC module, a third CBS module, a second C2fPC module, a fourth CBS module, a third C2fPC module, a fifth CBS module, a fourth C2fPC module, and an SPPF module connected in sequence; the first CBS module, the second CBS module, the third CBS module, and the fourth CBS module have the same structure, and the first C2fPC module, the second C2fPC module, the third C2fPC module, and the fourth C2fPC module have the same structure; The first CBS module includes a first Conv module, a BN module and a SiLU module connected in sequence; The first C2fPC module includes a second Conv module, a Split module, a PCBlock module, a Concat module, and a third Conv module, and the PCBlock module includes n PCBlock units; The output of the second Conv module is input into the Split module for segmentation processing to obtain a first part and a second part; the first part is input into the PCBlock module, the output of each PCBlock unit and the second part are input into the Concat module for splicing, and the splicing result is input into the third Conv module, and the output of the third Conv module is the output of the first C2fPC module.

9. The method according to claim 1, characterized in that The input of the feature enhancement module includes three parts, namely, the output of the second C2fPC module, the output of the third C2fPC module, and the output of the SPPF module; The feature enhancement module comprises a first enhancement unit, a second enhancement unit, a third enhancement unit and a fourth enhancement unit connected in sequence, the first enhancement unit and the second enhancement unit have the same structure, and the third enhancement unit and the fourth enhancement unit have the same structure; The first enhancement unit includes an upsampling layer, a Concat layer, and a deformable grid spatial convolutional spatial pyramid VoVGSCSP; The third enhancement unit includes a grid dilation convolution GSConv, a Concat layer, and a deformable grid spatial convolution spatial pyramid VoVGSCSP; The output of the second C2fPC module is input to the Concat layer of the second enhancement unit, and the output of the third C2fPC module is input to the Concat layer of the first enhancement unit; the output of the SPPF module is input to the upsampling layer of the first enhancement unit and the Concat layer of the fourth enhancement unit; The output of the deformable grid spatial convolutional spatial pyramid VoVGSCSP of the first enhancement unit is input into the Concat layer of the third enhancement unit; The output of the deformable grid spatial convolution spatial pyramid VoVGSCSP of the second enhancement unit is input to the grid dilation convolution GSConv of the third enhancement unit; The output of the deformable grid space convolution spatial pyramid VoVGSCSP of the second enhancement unit, the output of the deformable grid space convolution spatial pyramid VoVGSCSP of the third enhancement unit, and the output of the deformable grid space convolution spatial pyramid VoVGSCSP of the fourth enhancement unit are all used as inputs of the detection head.

10. A cement pavement crack detection device, characterized in that: include: An image acquisition module, used to acquire a three-dimensional image of a cement pavement crack and convert the three-dimensional image into a two-dimensional image; A preprocessing module, used for performing missing value processing on the two-dimensional image to obtain a processed two-dimensional image; A training data set construction module, used to construct a model training data set based on the processed two-dimensional image; A model training module is used to train a crack detection model based on the model training data set to obtain a trained crack detection model; the crack detection model includes a feature extraction module, a feature enhancement module and a detection head, the feature extraction module is used to perform feature extraction on the image to obtain a feature map, the feature enhancement module is used to perform feature enhancement on the feature map to obtain an enhanced feature map, and the detection head is used to output a crack detection result based on the enhanced feature map; The detection module is used to process missing values ​​of the cement pavement image to be detected, and input the processed image into the trained crack detection model to obtain a crack detection result.