Road disease image semantic segmentation method based on regional loss
By constructing the RLMT-Net model and combining the CNN backbone network and the feature pyramid network, the problem of low recognition rate of semantic segmentation of road images in unattended systems is solved, and efficient road disease detection and quantification is achieved, which is suitable for complex backgrounds and illumination changes. environment.
Patent Information
- Application Number
- CN202410742319.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-11
AI Technical Summary
The existing technology's semantic segmentation and recognition of road images in unattended systems has problems such as high data demand, background complexity, noise interference, low signal-to-noise ratio and low contrast, resulting in low recognition rate and low efficiency, making it difficult to meet actual engineering needs. .
The semantic segmentation method of road disease images based on regional loss is used to construct the RLMT-Net model and combine the CNN backbone network, feature pyramid network, quad tree, incoherence detector, sequence encoder and pixel decoder to perform target detection and semantics Segment, extract disease features and accurately quantify them.
It improves the semantic segmentation recognition rate and detection accuracy, enhances the ability to identify cracks and diseases, effectively prevents the influence of interference factors, and is suitable for environments with complex backgrounds and lighting changes.
Smart Images

Figure CN118736216A_ABST
Abstract
Description
Technical field:
[0001] The present invention relates to the technical field of road damage processing, and in particular to a method for semantic segmentation of road damage images based on regional loss. The method is suitable for automatic detection and analysis of road damage, and has broad application prospects in the fields of intelligent transportation systems, road maintenance management, and urban planning. Background technology:
[0002] When analyzing the road images and retrograde diseases collected by the unattended system, it is not appropriate to directly apply semantic segmentation technology to identify the entire image. First, the traditional semantic segmentation technology has a relatively high demand for training data. In terms of data set preparation, the time required for semantic segmentation is about fifteen times that of target detection. Secondly, in the road images taken by drones, there are a large number of factors that may cause semantic segmentation recognition failure: background complexity, interference from speckle noise, low signal-to-noise ratio, low contrast between cracks and background, and discontinuity of cracks, etc. Other interferences on the road surface during inspection: lane lines, moving vehicles, damaged lane lines, pedestrians, roadside facilities, etc. Furthermore, under the same image, the average detection speed and detection efficiency of semantic segmentation target detection technology alone are low. Finally, in the manual review stage, the calibration box generated by the target detection algorithm can quickly point out the location of the disease, while it is relatively difficult to locate the disease solely based on the semantic segmentation results.
[0003] Therefore, the method of the present invention first performs global target detection to lock the disease area map, and then performs semantic segmentation on these areas to accurately quantify the size of the disease, which is more in line with the needs of engineering practice. Summary of the invention:
[0004] The purpose of the present invention is to provide a method for semantic segmentation of road damage images based on regional loss, which can improve the semantic segmentation recognition rate in road detection and improve the accuracy and speed of road detection.
[0005] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0006] A road damage image semantic segmentation method based on regional loss, the segmentation method comprising the following steps:
[0007] Acquire image data containing road damage, and use target detection to obtain a damage area map, which contains the location information of the damage;
[0008] Constructing a RLMT-Net model, wherein the RLMT-Net model includes a CNN backbone network, a feature pyramid network FPN, a quadtree, an incoherence detector, a sequence encoder, a pixel decoder, and an incoherent query sequence module;
[0009] The feature pyramid network FPN has a four-layer cascade structure, which is denoted as P2, P3, P4, and P5 from bottom to top;
[0010] The CNN backbone network is used to extract disease features, and the output of the CNN backbone network is connected to the bottom layer P2 of the feature pyramid network FPN. At the same time, the output of the CNN backbone network is connected to the head frame (Box Head) operation, and the output of the head frame operation is used as the input of each layer of the feature pyramid network FPN;
[0011] The input image is first passed through the CNN backbone network to extract the image's disease features, and then the FPN generates a multi-level feature map for downstream processing;
[0012] The outputs of the P2, P3, and P4 layers of the feature pyramid network FPN are passed through the region proposal network (RPN) and the ROIAlign layer to obtain the region of interest RoI. The three regions of interest RoI of different scales construct the RoI feature pyramid.
[0013] The region of interest RoI obtained by processing the P4 layer of the feature pyramid network FPN through the region proposal network (RPN) and the ROI Align layer is subjected to a rough mask head to obtain a rough mask of the ROI region of interest of 28*28 scale;
[0014] Inputting the coarse mask into an incoherence detector, the incoherence detector includes a two-stage upsampling operation, and outputs an incoherence mask, the incoherence detector is used to refine the mask prediction of the incoherent nodes of the quadtree;
[0015] Starting from the detection point in the highest-level feature map in the RoI feature pyramid as the root node, a multi-level quadtree is constructed, the incoherent mask is given to the quadtree, and the quadtree is used to subdivide the incoherent areas detected in the region of interest at each scale and output the incoherent query sequence;
[0016] The incoherent query sequence module comprises a plurality of node encoders, the output of the incoherent query sequence module is connected to the sequence encoder, and the encoded sequence is obtained after being processed by the sequence encoder, and then the encoded sequence is input into the pixel decoder to obtain a sequential prediction result;
[0017] The RLMT-Net model is used to perform semantic segmentation on image data containing road damage and output damage images with segmentation labels.
[0018] Furthermore, the output of the quadtree is an incoherent query sequence having a plurality of incoherent nodes, and each incoherent node of the quadtree is encoded using a node encoder;
[0019] The node encoder is used to encode each quadtree node, including fusion embedding and position embedding. The nodes of the quadtree have fine-grained, coarse-grained and background information. The three are fused by fusion embedding, and position embedding is performed. The spatial distance and relationship between the nodes in each RoI are relatively encoded by position embedding, important local dependencies and correlations are captured, and node encoding is achieved.
[0020] Furthermore, the sequence encoder is used to integrate nodes at each level of the quadtree to achieve global and cross-scale spatial reasoning, and has three serially connected sequence encoders. The sequence encoder includes a multi-head self-attention mechanism and a fully connected feedforward network to process incoherent point sequences. The input of the first sequence encoder is the output result of the P5 layer of the FPN and the output of the incoherent query sequence module. The other two sequence encoders are sequentially connected after the first sequence encoder, and the output result of the P5 layer of the FPN is also separately input into the other two sequence encoders.
[0021] The pixel decoder is implemented in the form of a double-layer MLP multi-layer perceptron to decode the node output and generate the final mask label.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] The present invention automatically extracts quantitative data of road damage based on the Mask R-CNN model, which can meet the needs of efficient crack detection in actual engineering. The RLMT-Net (Region Loss Mask Transformer) model is compared with other semantic segmentation images in terms of pavement damage segmentation, which illustrates the superiority of the RLMT-Net model in maintaining stable recognition capabilities in various environments and the advantages of the model in semantic segmentation of road damage.
[0024] The RLMT-NET model of the present invention can learn better crack features and can effectively prevent the segmentation results from being affected by interference factors in the image. It has greatly improved the problems of low recognition accuracy and poor robustness in existing research and is beneficial to practical applications. Description of the drawings:
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1is a schematic diagram of a quadtree structure in a method for semantic segmentation of road damage images based on regional loss according to an embodiment of the present invention;
[0027] Figure 2 4 is a schematic diagram of the structure of an RLMT-Net model of a road damage image semantic segmentation method based on regional loss according to an embodiment of the present invention.
[0028] Figure 3 It is a schematic diagram of the loss area at different levels of the quadtree.
[0029] Figure 4 This is a graph showing how the loss changes with the number of iterations during the training process of a method for semantic segmentation of road damage images based on regional loss according to an embodiment of the present invention.
[0030] Figure 5 This is a comparison of the test results of the method according to the present invention on different public data sets, (a) original image, (b) ground truth, (c) RLMT-Net, (d) SegNet, (e) U-Net, (f) FCN8s, and (g) DeepLabv3+.
[0031] Figure 6 This is a comparison chart of generalization experimental results of a road damage image semantic segmentation method based on regional loss according to an embodiment of the present invention. Specific implementation method:
[0032] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention and are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in the field should be able to understand other possible implementations and advantages of the present invention. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components.
[0033] The method of the present invention can accurately detect and segment cracks and defects on the road even when it is sensitive to complex backgrounds, lighting changes and occlusion. Road pavement disturbance refers to various defects, damages or damages on the road surface, such as cracks, potholes, rutting, etc. These defects not only affect the appearance of the road, but also may have a negative impact on driving safety and driving comfort, and even cause traffic accidents.
[0034] MaskR-CNN is an instance segmentation algorithm that can be used for "target detection", "target instance segmentation", and "target key point detection". As an advanced instance segmentation technology, it has demonstrated its excellent performance in many research fields, especially when dealing with similar defects that are adhered or overlapped. Compared with traditional semantic segmentation methods, this algorithm can accurately identify and count each defect instance, rather than treating a group of defects as a single entity, thereby achieving refined processing of individual defects.
[0035] The road damage image semantic segmentation method based on regional loss of the present invention comprises the following steps: acquiring image data containing road damage, obtaining a damage area map by using target detection, wherein the damage area map has location information of the damage;
[0036] Construct the RLMT-Net model, which includes the CNN backbone network, feature pyramid network FPN, quadtree, incoherence detector, sequence encoder, pixel decoder and incoherent query sequence module;
[0037] The feature pyramid network FPN has a four-layer cascade structure, which is denoted as P2, P3, P4, and P5 from bottom to top;
[0038] The CNN backbone network is used to extract disease features. The output of the CNN backbone network is simultaneously connected to the bottom layer P2 of the feature pyramid network FPN. At the same time, the output of the CNN backbone network is connected to the BoxHead operation. The output of the BoxHead operation is used as the input of each layer of the feature pyramid network FPN.
[0039] The input image is first processed by the CNN backbone network to extract the image's disease features, and then the FPN generates a multi-level feature map for downstream processing. The outputs of the P2, P3, P4, and P5 layers are mainly used for downstream processing.
[0040] The outputs of the P2, P3, and P4 layers of the feature pyramid network FPN are passed through the region proposal network (RPN) and the ROIAlign layer to obtain the region of interest RoI. The three regions of interest RoI of different scales construct the RoI feature pyramid to effectively retain the spatial information in the RoI region and provide more accurate feature representation; the region proposal network (RPN) extracts three different levels of FPN {P i ,P i-1 ,P i-2}, i=4, and the size of {28,56,112} is output to obtain the RoI feature pyramid.
[0041] The region of interest (RoI) obtained by processing the P4 layer of the feature pyramid network FPN through the region proposal network (RPN) and the ROI Align layer is subjected to a rough mask head to obtain a rough mask of the ROI region of interest with a scale of 28*28; the bounding box of the feature map image is extracted and mapped using the RPN.
[0042] The coarse mask is input into the incoherence detector, which includes two-stage upsampling operation (changing the scale from 28*28 to 112*112), and the output is the incoherence mask; the incoherence mask is given to the quadtree to further decompose the incoherent quadrant points;
[0043] Starting from the detection point in the highest-level feature map of the RoI feature pyramid as the root node, a multi-level hierarchical quadtree is constructed. The quadtree is used to subdivide the incoherent areas (incoherent areas, i.e., loss areas) detected in each scale region of interest and output an incoherent query sequence;
[0044] The incoherent query sequence module comprises a plurality of node encoders, the output of the incoherent query sequence module is connected to the sequence encoder, and the encoded sequence is obtained after being processed by the sequence encoder, and then the encoded sequence is input into the pixel decoder to obtain a sequential prediction result.
[0045] The incoherence detector is used to refine the mask predictions of the quadtree with incoherent nodes.
[0046] The output of the quadtree is an incoherent query sequence, ie, having several incoherent nodes, which can improve recognition efficiency and represent discontinuities in the image, thereby compressing the image more effectively without losing details.
[0047] Since the sequence encoder uses the Transformer model, which has the characteristic of permutation invariance, the order of the sequence is not important. The node encoder can be used on the output of the quadtree to encode each quadtree node without considering the order of the nodes.
[0048] The node encoder is used to encode each quadtree node, including fusion embedding and position embedding. The nodes of the quadtree have fine-grained, coarse-grained and background information. The three are fused by fusion embedding, and they are restored to the original feature dimension through a fully connected layer, and position embedding is performed to achieve node encoding. The function of the node encoder is to use the feature pyramid network FPN to obtain the fine-grained features and coarse-grained features and background features of the corresponding position and level, and use position embedding to perform relative position encoding on the spatial distance and relationship between nodes in each RoI, and capture important local dependencies and correlations. The background features take into account the node features of the surrounding context and can capture local detail information.
[0049] The sequence encoder is used to integrate nodes at each level of the quadtree to achieve global and cross-scale spatial reasoning. The multi-head self-attention mechanism is a feature of transform, which can improve the model's modeling ability for sequence information, enhance the model's representation ability, robustness and generalization ability, and at the same time improve efficiency through parallel computing to better combat ambiguity in language.
[0050] It has three serially connected sequence encoders, which are composed of a multi-head self-attention mechanism and a fully connected feed-forward network to process incoherent query sequences. The input of the first sequence encoder is the output of the P5 layer of FPN and the output of the incoherent query sequence module. The other two sequence encoders are connected to the first sequence encoder in sequence, and the output of the P5 layer of FPN is also input to the other two sequence encoders separately. The output of the P5 layer of FPN has a size of 14×14.
[0051] The pixel decoder is implemented in the form of a two-layer MLP (Multilayer Perceptron) to decode the node output and generate the final mask label.
[0052] Figure 1 A schematic diagram of the structure of a quadtree. Figure 1 The middle right picture is a quadtree Q-tree structure, with a root node of 8*8 pixels, a child node of 4*4 pixels, a third-level child node of 2*2 pixels, and a fourth-level child node of 1*1 pixel. The quadtree Q-tree structure can be used to identify the loss area. Each node is divided into four child nodes, dividing the data area into four quadrants.
[0053] A quadtree is a tree-like data structure used for spatial indexing and multidimensional data. It recursively divides the space into four sub-quadrants and is suitable for processing points, regions, and other objects in two-dimensional space. It recursively divides the image space into four subspaces of equal size and continues to recurse until a specific number of layers is reached or a specific condition is met.
[0054] A quadtree is used to subdivide the detected incoherent areas, which refer to those parts of the image that may have some abnormality, inconsistency or irregularity. Incoherent areas are those parts that are significantly different from the surrounding environment or may have problems. These areas may appear due to noise, object boundaries, occlusion or other reasons. In the image segmentation task, incoherent areas may be pixel blocks that are not correctly classified, or in target detection, they may be parts that are misidentified or missed. A yellow point in a higher-level FPN feature P4 (such as a feature resolution of 28×28) has four quadrants in its adjacent lower-level FPN feature map P3 (such as a resolution of 56×56), and their granularity is different because they exist at different pyramid levels. Based on these detected irrelevant points, a multi-level hierarchical quadtree is constructed starting from the detection point in the highest-level feature map as the root node (the highest-level feature map refers to the feature map with the lowest resolution and the most complete information generated during image processing. In this feature map, some key points (detection points) can be detected. These points represent the area or object of interest. In layman's terms, it starts from a large area and divides the area into smaller parts layer by layer until a fine enough area is obtained to process and analyze the details in the image). At the fine level, only the detected irrelevant quadrant points can be further decomposed.
[0055] Then, the mask prediction of the incoherent nodes of the quadtree is refined using the incoherence detector. The process is: first predict on a coarse image, find and correct some errors; then, pass this corrected information to a finer part of the image, ensuring that the prediction of each layer is more and more accurate; through this step-by-step refinement method, the incoherent areas in the image can be found and marked more accurately. In the low-resolution prediction, the point labels belonging to the root layer of the quadtree are first corrected, and then these corrected point labels are propagated to the corresponding four quadrants of the adjacent finer layers through nearest neighbor interpolation.
[0056] The RLMT-Net model takes as input a road damage image containing cracks and their locations in the image. Based on hierarchical FPN, it processes instance segmentation in a multi-level, coarse-to-fine manner. Unlike using a single-level FPN feature for each object, RLMT-Net uses sparsely detected feature points in the incoherent image regions of each layer of the RoI feature pyramid as the input sequence of the Transforme system and outputs the corresponding segmentation label for each pixel in the input image. The segmentation label can be represented by 0 and 1 for the damage (crack) and background, respectively.
[0057] The incoherence detector is combined with the ROI pyramid to obtain regional losses of different scales.
[0058] Assume that the incoherence mask output by the incoherence detector is the finest scale at the bottom of the ROI pyramid, with a scale of 0, a coarse scale at the top, with a scale of 2, and a middle scale of 1. The resolution of each scale differs by a factor of 2. Use D↓ and U↑ to represent the nearest neighbor downsampling and upsampling.
[0059] The area loss D0 represented by the binary mask obtained in the incoherent area of scale 0 is:
[0060]
[0061] The regional loss D1 represented by the binary mask obtained in the incoherent region of scale 1 is:
[0062]
[0063] The regional loss D2 represented by the binary mask obtained in the incoherent region of scale 2 is:
[0064]
[0065] Among them, ⊕ represents the logical "XOR" operation; O ↓ The downsampling is performed by performing a logical OR operation within each 2x2 neighborhood, where l=1.
[0066] If the original mask value M l-1 If at least one pixel is different from the up-sampled mask, then the position where the pixel is different is an incoherent pixel, and all incoherent pixels constitute an incoherent region.
[0067] The following table shows the experimental analysis results of an incoherent region. The percentage represents the area ratio of the incoherent region in the object bounding box. Err is the ratio of all wrongly predicted pixels for each object. Acc is the accuracy of the coarse mask prediction in the incoherent region. AP Coarse is measured by using a coarse mask prediction for the entire target area, while AP GT Only irrelevant regions are filled with ground truth labels.
[0068] Table 1
[0069]
[0070] After a detailed analysis of the incoherent regions, the results show that most of the prediction errors are concentrated in these regions, accounting for about 43% of all incorrectly predicted pixels, while the bounding box region accounts for only 14%. In the incoherent regions, the accuracy of the coarse mask prediction is 56%, so choosing the P4 layer as the source of the coarse mask can significantly improve the final performance.
[0071] All irrelevant nodes from the three levels of the quadtree have coarse and fine features that can capture more contextual and semantic information and more local detail features respectively. These features are input into the Transforme system (consisting of three parts: sequence encoder, pixel decoder, and incoherent query sequence module). The size of the incoherent sequence output by the quadtree is C×N, where N is the total number of nodes and C is the dimension of the feature channel. Due to the permutation invariance of the Transformer model, the order of the sequence is not important. The encoder used by the Transforme system consists of two parts: node encoder and sequence encoder. The node encoder encodes each quadtree node using the following four different information clues: 1) fine-grained feature extraction from the corresponding position and level of the FPN pyramid; 2) relative position encoding, covering the spatial distance and relationship between nodes in each RoI, capturing important local dependencies and correlations; 3) node features of the surrounding context, capturing local detail information.
[0072] For each node, Figure 2 As shown, the fine-grained features, coarse segmentation cues, and context features are first concatenated and fused, and the fused features are restored to the original feature dimensions through a fully connected layer. Subsequently, the position embedding is added to the resulting feature vector.
[0073] On the quadtree, the point labels are corrected from the root layer of the quadtree downwards in sequence, and then propagated to the corresponding four quadrants of the adjacent finer layers through nearest neighbor interpolation, and this is done effectively step by step on incoherent nodes until the finest quadtree level is reached. The entire RLMT-Net model framework can be trained end-to-end, and the multi-task loss function of the entire RLMT-Net model It is expressed as follows:
[0074]
[0075] here, Represents a refinement of the loss between the segmentation labels output by the model and their true value labels. Binary Cross Entropy Loss Used to detect incoherent regions. represents the coarse mask prediction loss, λ {1,2,3} represents the hyperparameters {1.0, 1.0, 0.5}.
[0076] The parameters of each layer of the feature pyramid network FPN in this embodiment are:
[0077] Table 2 Parameters of each layer of feature pyramid network FPN
[0078]
[0079] The experimental environment of this embodiment is implemented based on the hardware in Table 3:
[0080] Table 3
[0081]
[0082] Dataset creation:
[0083] The dataset uses drones as the shooting method, and uses labelme to label the images of road damage collected by drones. The dataset used to train the RLMT-Net model is different from the dataset used for object detection in that all cracks are classified into one category, and other potholes and repair categories are retained. The dataset UAV-CR for semantic segmentation is a private dataset.
[0084] In order to verify the effectiveness of the model improvement, experiments were conducted on other public datasets, such as: (1) Crack500, which is 500 pavement crack images taken by a mobile phone at Temple University; (2) CFD dataset, which only contains 118 urban concrete road crack images with a resolution of approximately 480×320; (3) Crack675, which is 600 pavement crack images taken by a car sports camera. At the same time, the popular FCN, SegNet, Unet, and DeepLabv3+ models in the field of image semantic segmentation are compared with the effects of the RLMT-Net model of this application.
[0085] Experimental process: First, conduct qualitative analysis on private data to compare the effectiveness of model improvement, and then compare the results of other models on the same data set.
[0086] Stochastic gradient descent (SGD) was used for training with mini-batch. Data augmentation used flipping, translation, and rotation to avoid overfitting during model training. To overcome overfitting, early stopping was used, which took effect when the validation loss showed a continuous increase for five consecutive epochs. The model was trained for 200 epochs on the private dataset, 50 epochs were frozen, the learning rate was set to 0.0001, and it was reduced by a factor of 10 every 100 epochs, and the batch size was set to 8. On the Crack500 dataset, 200 epochs were trained, the learning rate was set to 0.0001, and it was reduced by a factor of 10 every 50 epochs, and the batch size was set to 8. Adam was used as the optimizer to adjust the hyperparameters, and the weight decay was 0.000001.
[0087] 80% of the data set is used for training and validation, forming trainvalset, and 20% is used for testset testing. In trainvalset, a cross-validation training method is adopted, in which 90% of the data is used for training and 10% of the data is used for validation.
[0088] In image semantic segmentation, commonly used indicators to evaluate the performance of the model include IoU (Intersection over Union), pixel accuracy, average accuracy, mean IoU (mIoU), F1 score and Dice coefficient. IoU measures the degree of overlap between the area predicted by the model and the true label; average accuracy and mIoU are the average values of pixel accuracy and IoU for each category, which more comprehensively evaluate the performance differences between different categories; F1 score combines precision and recall, and is suitable for the evaluation of multi-category segmentation tasks; Dice coefficient also measures the degree of overlap between the predicted area and the true area, and evaluates the accuracy and generalization ability of the model by calculating the ratio of the intersection to the average size.
[0089] They are calculated as follows:
[0090]
[0091] Pixel accuracy measures the ratio of the number of correctly classified pixels to the total number of pixels, denoted by P. all Indicates the total number of pixels P true Represents the number of correctly classified pixels. The pixel accuracy PixelAccuracy can be expressed as:
[0092]
[0093] Average Accuracy:
[0094]
[0095] F1Score combines precision and recall and can be expressed as:
[0096]
[0097] Training process:
[0098] Figure 4 The figure shows the change in loss during the training process, with the y-axis representing the loss and the x-axis representing the number of iterations. The average loss of the FCN, SegNet, Unet, and DeepLabv3+ models is compared. Figure 4 It is the average loss on the training set on the left, and the average loss on the validation set on the right. The green line represents the RLMT-NET model of this application; SegNet is represented by the black line in the figure; DeepLabv3+ is represented by the yellow curve; Unet is the red line in the figure; FCN is represented by purple.
[0099] from Figure 4 As can be seen, after 200 iterations, the training loss of the UNet model and the RLMT-NET model is Both have dropped to very low levels, but the RLMT-NET model has the lowest validation loss. The training loss of the SegNet model still has a downward trend. The DeepLabv3+ model has the highest training loss and validation loss.
[0100] The segmentation performance of the RLMT-Net model under different data sets is listed, as shown in Table 4. RLMT-Net has the highest recognition result in Crack675. Crack675 contains some road shadow areas, but the MPA of RLMT-Net in this data set is as high as 81.25%, indicating that the background noise area has little effect on the segmentation ability of the model. Therefore, it is verified that the RLMT-Net proposed in this paper can be used in actual engineering and has strong generalization and migration capabilities under various road conditions. However, it is necessary to improve the recognition accuracy of complex road surface disease morphology, rather than the generalization ability of the model under complex road surface background. It is necessary to improve the continuity of road surface cracks, so as to improve the characteristic analysis ability of road surface diseases and provide a basis for accurately calculating the degree of damage of road surface diseases.
[0101] Table 4
[0102]
[0103] In order to further study the generalization ability of the RLMT-Net model, the RLMT-Net model trained on the private dataset was used to make predictions on the CRACK500 dataset, and an F1 score of 0.61 was obtained.
[0104] Figure 5 The figure shows the segmentation results of road cracks, block cracks and image distortion. Figure 5 As shown in the first six rows, RLMT-Net can extract pavement cracks and block cracks well, and pavement cracks have high continuity. The segmentation results show that RLMT-Net can extract pavement cracks with high precision under conditions of image distortion and vehicle occlusion, completing the verification of RLMT-Net's generalization ability.
[0105] In order to see the generalization effect more intuitively and compare it with the prediction results of other models, Figure 6 Figure 2 shows several challenging images selected from the UAV-CR dataset and the corresponding prediction results of the RLMT-Net model. Figure 6As can be seen from the figure, the cracks in the first row of images are very thin, but the RLMT-Net model basically predicts the location and shape of the cracks except for a few missed predictions. The cracks in the second row of images have interference features, but the RLMT-Net model is not affected and still accurately predicts the location of the cracks in the image. Combining the above analysis and research, it can be concluded that the RLMT-Net model trained on the UAV-CR dataset still has a good performance on the CRACK500 dataset, indicating that the RLMT-Net model has good generalization ability.
[0106] This method calculates the accuracy, precision, recall, F1 score and mIoU of each model on four datasets, and provides the following table for comprehensive comparison. In addition, Table 5 also compares the experimental results of other researchers who used the same evaluation indicators and datasets.
[0107] Table 5
[0108]
[0109]
[0110] As can be seen from the above table, the F1 score and mIoU of the RLMT-NET model on the UAV-CR dataset, CRACK675 dataset, CRACK500 dataset and CDF are the best. On the UAV-CR dataset, the F1 score and mIoU of the RLMT-NET model reached 0.7957 and 0.8152, respectively, which are 6.56% and 2.30% higher than the second highest UNet model. On the CRACK675 dataset, the F1 score and mIoU of the RLMT-NET model reached 0.7382 and 0.7913, respectively, which are 8.27% and 2.20% higher than the second highest UNet model. On the CRACK500 dataset, the F1 score and mIoU of the RLMT-NET model reached 0.7046 and 0.7498, respectively, which are 2.03% and 1.15% higher than the second highest DeepLabv3+ model. On the UAV-PDD dataset, the F1 score and mIoU of the RLMT-NET model reached 0.6924 and 0.7601, respectively, which are 1.78% and 0.98% higher than the second highest UNet model.
[0111] In summary, with the help of the above technical solution of the present invention, a road damage image semantic segmentation method based on regional loss is provided. Combining all experimental results and comparisons, it can be seen that the RLMT-NET model in the present invention can learn better crack features and can effectively prevent the segmentation results from being affected by interference factors in the image. It has greatly improved the problems of low recognition accuracy and poor robustness in existing research, which is of great help to practical applications.
[0112] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0113] Any matters not described in the present invention are applicable to the prior art.
Claims
1. A road damage image semantic segmentation method based on regional loss, characterized in that: The segmentation method comprises the following steps: Acquire image data containing road damage, and use target detection to obtain a damage area map, which contains the location information of the damage; Constructing a RLMT-Net model, wherein the RLMT-Net model includes a CNN backbone network, a feature pyramid network FPN, a quadtree, an incoherence detector, a sequence encoder, a pixel decoder, and an incoherent query sequence module; The feature pyramid network FPN has a four-layer cascade structure, which is denoted as P2, P3, P4, and P5 from bottom to top; The CNN backbone network is used to extract disease features, and the output of the CNN backbone network is connected to the bottom layer P2 of the feature pyramid network FPN. At the same time, the output of the CNN backbone network is connected to the head frame (Box Head) operation, and the output of the head frame operation is used as the input of each layer of the feature pyramid network FPN; The input image is first passed through the CNN backbone network to extract the image's disease features, and then the FPN generates a multi-level feature map for downstream processing; The outputs of the P2, P3, and P4 layers of the feature pyramid network FPN are passed through the region proposal network (RPN) and the ROI Align layer to obtain the region of interest RoI. The three regions of interest RoI of different scales construct the RoI feature pyramid. The region of interest RoI obtained by processing the P4 layer of the feature pyramid network FPN through the region proposal network (RPN) and the ROI Align layer is subjected to a rough mask head to obtain a rough mask of the ROI region of interest of 28*28 scale; Inputting the coarse mask into an incoherence detector, the incoherence detector includes a two-stage upsampling operation, and outputs an incoherence mask, the incoherence detector is used to refine the mask prediction of the incoherent nodes of the quadtree; Starting from the detection point in the highest-level feature map in the RoI feature pyramid as the root node, a multi-level quadtree is constructed, the incoherent mask is given to the quadtree, and the quadtree is used to subdivide the incoherent areas detected in the region of interest at each scale and output the incoherent query sequence; The incoherent query sequence module comprises a plurality of node encoders, the output of the incoherent query sequence module is connected to the sequence encoder, and the encoded sequence is obtained after being processed by the sequence encoder, and then the encoded sequence is input into the pixel decoder to obtain a sequential prediction result; The RLMT-Net model is used to perform semantic segmentation on image data containing road damage and output damage images with segmentation labels.
2. The segmentation method according to claim 1, characterized in that: The output of the quadtree is an incoherent query sequence having a plurality of incoherent nodes, and each incoherent node of the quadtree is encoded using a node encoder; The node encoder is used to encode each quadtree node, including fusion embedding and position embedding. The nodes of the quadtree have fine-grained, coarse-grained and background information. The three are fused by fusion embedding, and position embedding is performed. The spatial distance and relationship between the nodes in each RoI are relatively encoded by position embedding, important local dependencies and correlations are captured, and node encoding is achieved.
3. The segmentation method according to claim 1, characterized in that: The sequence encoder is used to integrate nodes at each level of the quadtree to achieve global and cross-scale spatial reasoning. It has three serially connected sequence encoders. The sequence encoder includes a multi-head self-attention mechanism and a fully connected feedforward network to process incoherent point sequences. The input of the first sequence encoder is the output result of the P5 layer of the FPN and the output of the incoherent query sequence module. The other two sequence encoders are connected to the first sequence encoder in sequence, and the output result of the P5 layer of the FPN is also separately input into the other two sequence encoders. The pixel decoder is implemented in the form of a double-layer MLP multi-layer perceptron to decode the node output and generate the final mask label.
4. The segmentation method according to claim 1, characterized in that: The parameters of each layer of the feature pyramid network FPN are as follows:
Citation Information
Patent Citations
Road surface disease target detection and instance segmentation method based on road foreground image
CN111553236A
Pavement crack pixel level detection method based on instance segmentation algorithm
CN112258529A
Mask R-CNN-based underground drainage pipeline disease pixel level detection method
CN112686217A
Rural highway pavement disease intelligent detection method based on deep convolutional neural network
CN114937033A
Road disease identification and tracking method
CN116485843A
