Construction method of road crack segmentation system fusing infrared and visible light images

By improving the RTFormer model, introducing infrared image branches and visible light and infrared fusion modules, combined with knowledge distillation technology, and optimizing the DAPPM module, the problem of insufficient identification of small cracks in complex environments is solved, the accuracy and reliability of crack detection are improved, and the model complexity and computational requirements.

CN118762264AActive Publication Date: 2024-10-11NORTHEAST FORESTRY UNIV

Patent Information

Application Number
CN202410904750.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-11
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Under complex lighting and diverse environmental conditions, it is difficult for existing technologies to effectively identify small cracks, and traditional feature fusion methods lead to information redundancy and increased computational burden.

Method used

By improving the RTFormer model, introducing the infrared image branch, using the visible and infrared fusion module (IFF) for feature fusion, combined with knowledge distillation technology, the DAPPM module is optimized to enhance feature extraction and fusion capabilities.

Benefits of technology

It improves the accuracy and reliability of crack detection, overcomes identification difficulties under insufficient light and reflective conditions, reduces model complexity and computing requirements, and is suitable for operation of equipment with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762264A_ABST
    Figure CN118762264A_ABST
Patent Text Reader

Abstract

The invention relates to a construction method of a road crack segmentation system fusing infrared and visible light images, and belongs to the technical field of crack detection. The problem of insufficient identification of small cracks under different illumination and weather conditions is solved. Comprising the following steps: improving an RTFormer model; a visible light and infrared fusion module IFF is provided; the DDAPPM is used for improving a DAPPM module; a knowledge distillation mode is used for training. According to the invention, the introduced infrared image branch effectively overcomes the environmental limitation caused by only depending on the visible light image, and can still maintain a high recognition rate under the condition of insufficient light or light reflection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for constructing a crack segmentation system integrating infrared and visible light images, and belongs to the technical field of crack detection. Background Art

[0002] With the rapid development of transportation infrastructure, the detection of surface defects on roads and bridges is particularly important. Early detection of cracks is crucial to extending the service life of roads and ensuring driving safety. In recent years, image segmentation technology based on deep learning has made remarkable achievements in the field of crack detection. Image segmentation technology in the field of computer vision is a basic and key technology. Especially in the inspection of roads and bridges, high-precision image segmentation tasks such as crack detection are crucial for early identification and prevention of potential structural problems. Although the application of deep learning technology, especially convolutional neural networks (CNN) and Transformer models, has significantly improved the accuracy of image segmentation, the detection accuracy and robustness under complex lighting and diverse environmental conditions are still facing challenges. These models still have shortcomings when processing images in complex environments, such as the identification of small cracks under different lighting and weather conditions.

[0003] Existing research has paid little attention to how to effectively fuse infrared and visible light images to improve crack detection performance under variable lighting and different weather conditions. Relying solely on visible light images will be subject to environmental limitations such as shadow occlusion and texture similarity, resulting in reduced recognition rate. In addition, traditional feature fusion methods, such as direct splicing, easily lead to redundant information in the feature space, increasing the computational burden of subsequent processing.

[0004] Previous scholar Ma fused infrared and visible light images through gradient transfer and total variation minimization methods, improving the visibility and information richness of images under various lighting conditions; DenseFuse (a new deep learning framework for infrared and visible light image fusion) uses a deep learning framework for feature extraction and fusion, enhancing the feature integration capability of infrared and visible light images; although DenseFuse and RTFormer are both advanced technologies in the field of image fusion, they adopt different technical paths. DenseFuse focuses on optimizing the feature extraction process through the DenseBlock structure, while RTFormer uses the self-attention mechanism of Transformer to process image data. Both have their own advantages in the field of image fusion and are suitable for different application scenarios.

[0005] Therefore, it is urgent to propose a method for constructing a road crack segmentation system that integrates infrared and visible light images to solve the above technical problems. Summary of the invention

[0006] The purpose of the present invention is to solve the problem of insufficient recognition of fine cracks under different lighting and weather conditions, and to provide a method for constructing a road crack segmentation system that integrates infrared and visible light images. A brief overview of the present invention is given below to provide a basic understanding of certain aspects of the present invention. It should be understood that this overview is not an exhaustive overview of the present invention. It is not intended to identify the key or important parts of the present invention, nor is it intended to limit the scope of the present invention.

[0007] The technical solution of the present invention:

[0008] The method for constructing a road crack segmentation system integrating infrared and visible light images comprises the following steps:

[0009] Step 1: Improve the RTFormer model;

[0010] Step 2: Propose visible light and infrared fusion module IFF;

[0011] Step 3: DDAPPM: Improve the DAPPM module;

[0012] Step 4: Use knowledge distillation to train.

[0013] Preferably: Step 1 comprises the following steps:

[0014] Step 11: Introduction of infrared branch:

[0015] A branch dedicated to processing infrared images is added to the RTFormer model; infrared images can provide different information from visible light images, such as temperature distribution, and are particularly suitable for identifying cracks in low light or other complex lighting conditions;

[0016] Step 12: Optimization of feature fusion:

[0017] The Layer-3 layer of the RTFormer model is selected to fuse the infrared image features and the visible light image features. The Layer-3 layer is located deeper in the network and can process higher-level feature information. Experiments show that fusing at this layer can maximize the complementarity of the two image features and improve the accuracy of crack detection.

[0018] Step 13: Deepen the network structure: Add additional layers compression3e and Layer-3-1e to the infrared image branch and the visible light branch respectively to enhance the depth and feature extraction capabilities of the network; these newly added layers enable the network to better capture and fuse complex features from different sources while maintaining relative complexity.

[0019] Preferably: Step 2 comprises the following steps:

[0020] Step 21: Feature enhancement:

[0021] IFF uses an attention mechanism to preprocess and enhance features from visible light and infrared images; the attention mechanism can automatically identify and emphasize the most important information in both images. For example, in crack detection, attention is focused on crack edges or areas with significant contrast to the environment.

[0022] Specifically, the visible light image is preprocessed to improve its contrast, and the infrared image is denoised and enhanced. In the feature fusion process, the channel attention operation is applied to amplify important features and suppress irrelevant features.

[0023] Step 22: Fusion strategy:

[0024] The enhanced features are not simply concatenated but fused by addition operations. The fusion method is element-wise addition, which helps to integrate multi-scale features and improve detection performance. This method effectively combines local and global information, keeps the number of channels unchanged, reduces model complexity and computational burden, and avoids the feature redundancy problem introduced by traditional fusion methods.

[0025] Step 23, module integration:

[0026] IFF is integrated into the backbone of the RTFormer network to ensure that the features of visible and infrared data can be effectively integrated throughout the network, thereby improving the model's ability to identify cracks;

[0027] Specifically, the feature fusion results after the above processing are used as part of the IFF module to further remove interference features and enhance the fused features; the output of the IFF module is integrated into the backbone of the RTFormer network to achieve more efficient feature fusion and target detection.

[0028] Preferably: Step 3 comprises the following steps:

[0029] Step 31: DAPPM structure improvement:

[0030] On the basis of the original DAPPM, more dense connections and pooling operations are added to better aggregate features from different network depths; this design helps the model capture richer contextual information, especially when processing images of large scale and complex backgrounds, thus obtaining DDAPPM;

[0031] Step 32: Feature reuse:

[0032] Through the improved dense connection method, each layer is connected not only to the previous layer, but also to all previous layers, that is, the layers are connected to each other. For example, the third layer that receives the features of the first layer is connected to the first layer, which means that the extracted information is retransmitted to the first layer, that is, feature reuse. This can maximize information flow and feature reuse. This method helps to improve the representation ability of features, especially in distinguishing between crack areas and non-crack areas in images. The layer refers to the internal layer of RTFormer;

[0033] Step 33: Multi-scale information fusion:

[0034] The DDAPPM module uses pooling layers of different scales and can process multi-scale information. This multi-scale fusion strategy enables the model to better understand the overall scene structure while retaining key details. The pooling layer reduces the spatial size of the feature map through pooling operations. The two are inseparable in function and structure. The pooling operation is the core calculation process of the pooling layer, and the pooling layer is the specific layer type that implements the pooling operation.

[0035] Preferably: Step 4 comprises the following steps:

[0036] Step 41: Teacher model training:

[0037] First, a teacher model is trained. The model has a large number of parameters and high complexity, and can achieve high performance on the training data. The process of training the teacher model can be the same as the process of training a common deep learning model. Here, the best model improved so far is defined as the teacher model.

[0038] Step 42, student model design and training: network structure design, design a student model, which is simplified in structure but learns from the teacher model through the distillation process. During the training process, the student model not only learns the standard training objectives, but also learns to imitate the output of the teacher model. This is achieved by adding a distillation loss function. The student model is smaller than the teacher model. In knowledge distillation, KL divergence loss is often used to measure the difference between the probability distribution of the student model output and the probability distribution of the teacher model output. KL divergence loss is used for the soft labels output by the teacher model, and cross entropy loss is used for the real labels.

[0039] The present invention has the following beneficial effects:

[0040] The infrared image branch introduced in the present invention effectively overcomes the environmental limitations faced by relying solely on visible light images, such as shadow occlusion and visual recognition problems with similar textures, and can still maintain a high recognition rate under low light or reflective conditions;

[0041] The addition of infrared imaging technology in the present invention can utilize spectral information of different wavelengths to enhance the visualization of cracks, thereby improving the accuracy and reliability of detection;

[0042] The present invention applies knowledge distillation technology in model design, which effectively reduces the number of model parameters and computing requirements, making the model more suitable for running on resource-constrained devices; this is particularly important for field applications, especially in mobile monitoring equipment or remote monitoring systems, and can achieve real-time and efficient crack detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a structural diagram of the road crack segmentation system that integrates infrared and visible light images.

[0044] Figure 2 This is the RTFormer-F4 network architecture diagram.

[0045] Figure 3 It is the interactive fusion module diagram;

[0046] Figure 3 a is a schematic diagram of the interactive fusion module structure;

[0047] Figure 3 b is a schematic diagram of the feature interaction fusion module structure.

[0048] Figure 4 This is the improved diagram of DAPPM structure;

[0049] Figure 4 a is a schematic diagram of the DAPPM structure;

[0050] Figure 4 b is a schematic diagram of the DDAPPM structure.

[0051] Figure 5 It is a diagram of the distillation learning process. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is described below by the specific embodiments shown in the accompanying drawings. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0053] Specific implementation method 1: Combination Figure 1-5 The present embodiment is described. The method for constructing a road crack segmentation system that integrates infrared and visible light images in the present embodiment is characterized by comprising the following steps:

[0054] Step 1: RTFormer14 is a deep learning model for image segmentation tasks; RTFormer is based on the Transformer architecture and is a model for processing sequence data, especially in the field of natural language processing; in image segmentation, the use of Transformer can effectively capture long-distance dependencies in the image, thereby improving the accuracy of segmentation; however, the present invention is inspired by DenseFuse to improve the RTFormer model and is applied to road crack segmentation based on the fusion of infrared and visible light images based on the RTFormer-slim model;

[0055] Step 1: Copy the original single visible light input channel into an identical channel to process the infrared image, including the following steps:

[0056] Step 11: Introduction of infrared branch:

[0057] A branch dedicated to processing infrared images is added to the RTFormer model; infrared images can provide different information from visible light images, such as temperature distribution, and are particularly suitable for identifying cracks in low light or other complex lighting conditions;

[0058] Step 12: Optimization of feature fusion:

[0059] The Layer-3 layer of the RTFormer model is selected to fuse the infrared image features and the visible light image features. The Layer-3 layer is located deeper in the network and can process higher-level feature information. Experiments show that fusing at this layer can maximize the complementarity of the two image features and improve the accuracy of crack detection.

[0060] Step 13: Deepen the network structure: Add additional layers (compression3e and Layer-3-1e) to the infrared image branch and the visible light branch respectively. Compression3e is a component in the RTFormer model used to quickly extract local information of the image in the first three stages. Layer-3-1e is another important component in the RTFormer model used to efficiently obtain the global context information required for the semantic segmentation task in the last two stages. Layer-3-1e is the same module in the network structure. This name is used to distinguish it from the original module of the same name) to enhance the depth and feature extraction capability of the network. These newly added layers enable the network to better capture and fuse complex features from different sources while maintaining relative complexity.

[0061] By fusing infrared images, we can effectively overcome the environmental limitations of visible light images, such as shadow occlusion and texture similarity. Infrared images can provide temperature distribution information and maintain high performance in low light or other complex lighting conditions, thereby improving recognition rates.

[0062] Step 2: Propose the visible light and infrared fusion module IFF (Interaction Feature Fusion, internal fusion module);

[0063] In order to effectively extract features, a feature fusion module Interaction Feature Fusion (IFF) based on the attention mechanism is proposed; this module is used to fuse visible light and infrared branch features in the backbone network; the IFF structure is similar to the Interaction Fusion Module (IFM), the difference is that IFM uses attention features to enhance visible light and infrared features respectively and then concat them; while IFF uses attention features to enhance the fusion features of visible light and infrared, and uses Add operation instead of Concat operation to keep the number of channels unchanged, which is conducive to reducing the subsequent calculation amount; IFF uses the following strategy, which specifically includes the following steps:

[0064] Step 21: Feature enhancement:

[0065] IFF uses an attention mechanism to preprocess and enhance features from visible light and infrared images; the attention mechanism can automatically identify and emphasize the most important information in both images. For example, in crack detection, attention is focused on crack edges or areas with significant contrast to the environment.

[0066] Specifically, the visible light image is preprocessed to improve its contrast, and the infrared image is denoised and enhanced. In the feature fusion process, channel attention operations (such as CBAM) are applied to amplify important features and suppress irrelevant features.

[0067] Step 22: Fusion strategy:

[0068] The enhanced features are not simply spliced ​​but fused through addition operations (Add), and the fusion method is element-wise addition (Add), which helps to integrate multi-scale features and improve detection performance; this method effectively combines local and global information, keeps the number of channels unchanged, reduces model complexity and computational burden, and avoids the feature redundancy problem introduced by traditional fusion methods; using addition operations instead of splicing can achieve effective feature integration without increasing computational complexity, thereby improving the recognition ability and segmentation accuracy of the model;

[0069] Step 23, module integration:

[0070] IFF is integrated into the backbone of the RTFormer network to ensure that the features of visible and infrared data can be effectively integrated throughout the network, thereby improving the model's ability to identify cracks;

[0071] Specifically, the feature fusion results after the above processing are used as part of the IFF module to further remove interference features and enhance the fused features; the output of the IFF module is integrated into the backbone of the RTFormer network (backbone network) to achieve more efficient feature fusion and target detection;

[0072] Step 3: DDAPPM: Improved DAPPM module;

[0073] The DDAPPM module is used to fuse the features of the low-resolution infrared image branch, extract context information, input feature maps of different resolutions into the next convolutional layer, and finally connect the outputs of all layers together; in order to strengthen the transmission of features and increase the reuse rate of features, the DDAPPM module uses dense connections. Step 3 specifically includes the following steps:

[0074] Step 31: DAPPM structure improvement:

[0075] In the original DAPPM( Figure 4 a, Deep Fusion Pyramid Pooling Module), more dense connections and pooling operations are added to better aggregate features from different network depths (the connections between different sub-blocks in the module represent the integration of information at different depths); this design helps the model capture richer contextual information, especially when processing images of large scale and complex backgrounds, thus obtaining DDAPPM ( Figure 4 b, DDAPPM is an improvement of DAPPM. The connection of DDAPPM modules is denser than that of DAPPAM, which increases the mutual complementation of information in network circulation);

[0076] Step 32: Feature reuse:

[0077] Through the improved dense connection method, each layer is connected not only to the previous layer, but also to all previous layers, that is, the layers are connected to each other. For example, the third layer that receives the features of the first layer is connected to the first layer, which means that the extracted information is retransmitted to the first layer, that is, feature reuse. This can maximize information flow and feature reuse. This method helps to improve the representation ability of features, especially in distinguishing between crack areas and non-crack areas in images. The layer refers to the internal layer of RTFormer;

[0078] Step 33: Multi-scale information fusion:

[0079] The DDAPPM module uses pooling layers of different scales to process multi-scale information. This multi-scale fusion strategy enables the model to better understand the overall scene structure while retaining key details. The pooling layer reduces the spatial size of the feature map through pooling operations. The two are inseparable in function and structure. The pooling operation is the core calculation process of the pooling layer, and the pooling layer is the specific layer type that implements the pooling operation.

[0080] Step 4: Use knowledge distillation to train;

[0081] Knowledge Distillation Figure 5 ) is a model training technique that improves the performance of a small network by transferring knowledge from a large, complex (teacher model) to a small, simplified (student model); this method is particularly suitable for applications that need to be deployed in resource-constrained environments, such as mobile devices or edge computing devices; in the image segmentation task of detecting road cracks by first fusing infrared and visible light, the use of knowledge distillation can reduce the model size and computing requirements while maintaining high accuracy; Liu's research proposed a structured knowledge distillation method for semantic segmentation, which, combined with the other steps of the present invention, effectively improved the performance of the student model by transferring knowledge from the teacher model to the student model. Step 4 specifically includes the following steps:

[0082] Step 41: Teacher model training:

[0083] First, train a teacher model (a large RTFormer model, the RTFormer-slim model is the model in the paper RTFormer: Efficient design for real-time semantic segmentation with transformer, which is translated as efficient design for real-time semantic segmentation using transformer). This model has a large number of parameters and high complexity, and can achieve high performance on the training data. The process of training the teacher model can be the same as the process of training an ordinary deep learning model. Here, the best model improved so far is defined as the teacher model.

[0084] Step 42, student model design and training: network structure design, design a student model (smaller and more efficient RTFormer model), which is simplified in structure but learns from the teacher model through the distillation process. During the training process, the student model not only learns standard training objectives (such as cross entropy loss), but also learns to imitate the output of the teacher model. This is achieved by adding a distillation loss function (KLLoss). The student model is smaller than the teacher model. In knowledge distillation, KL divergence loss (KLDivLoss) is usually used to measure the difference between the probability distribution output by the student model and the probability distribution output by the teacher model. KL divergence loss is used for the soft label output by the teacher model, and cross entropy loss is used for the real label.

[0085] The improved RTFormerF10 model of the present invention has been extensively verified by experiments, and its performance on the self-built data set is better than that of the basic model; in particular, in terms of the mIoU evaluation index, the model is 1% higher than the basic model, reaching 0.8541; this performance improvement is attributed to the fact that the model can more accurately identify and segment crack areas, and can maintain a high recognition rate even in low light or reflective conditions; the infrared image branch introduced by the present invention effectively overcomes the environmental limitations faced by relying solely on visible light images, such as shadow occlusion and texture similarity visual recognition problems; the addition of infrared imaging technology enables the system to utilize spectral information of different wavelengths, enhances the visualization of cracks, and thus improves the accuracy and reliability of detection; the application of knowledge distillation technology in model design effectively reduces the number of model parameters and computing requirements, making the model more suitable for running on resource-constrained devices; this is particularly important for field applications, especially in mobile monitoring equipment or remote monitoring systems, which can achieve real-time and efficient crack detection.

[0086] It should be noted that in the above embodiments, as long as the technical solutions are not contradictory, they can be arranged and combined, and those skilled in the art can exhaust all possibilities based on the mathematical knowledge of arrangement and combination. Therefore, the present invention will no longer describe the technical solutions after arrangement and combination one by one, but it should be understood that the technical solutions after arrangement and combination have been disclosed by the present invention.

[0087] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. Construction method of road crack segmentation system integrating infrared and visible light images, Features: The following steps are involved: Step 1: Improve the RTFormer backbone network; Step 2: Propose visible light and infrared fusion module IFF; Step 3: Improve the DAPPM module; Step 4: Use knowledge distillation to train.

2. The method for constructing a road crack segmentation system integrating infrared and visible light images according to claim 1, Features: Step 1 includes the following steps: Step 11: Introduction of infrared branch: Add infrared image branch to RTFormer model; Step 12: Optimization of feature fusion: Choose to fuse the infrared image features and visible light image features at Layer-3 of the model; Step 13: Deepen the network structure: add additional layers to the infrared image branch and the visible light branch respectively.

3. The method for constructing a road crack segmentation system integrating infrared and visible light images according to claim 2, Features: Step 2 includes the following steps: Step 21: Feature enhancement: IFF uses the attention mechanism to preprocess and enhance features from visible and infrared images; Step 22: Fusion strategy: The enhanced features are fused through addition operation; Step 23, module integration: IFF is integrated into the backbone of the RTFormer network.

4. The method for constructing a road crack segmentation system integrating infrared and visible light images according to claim 3, Features: Step 3 includes the following steps: Step 31, DAPPM improvements: Based on DAPPM, dense connection and pooling operations are added to obtain DDAPPM; Step 32: Feature reuse: All layers are connected to each other; Step 33: Multi-scale information fusion: DDAPPM uses pooling layers of different scales.

5. The method for constructing a road crack segmentation system integrating infrared and visible light images according to claim 4, Features: Step 4 includes the following steps: Step 41: Teacher model training: Train a teacher model. The process of training the teacher model can be the same as the process of training a common deep learning model. Step 42: Student model design and training: Design a student model that learns from the teacher model through a distillation process. During training, the student model learns the standard training objective and learns to imitate the output of the teacher model, which is achieved by adding a distillation loss function.

Citation Information

Patent Citations

  • Lightweight infrared and visible light image fusion method, system, equipment and medium

    CN116363034A

  • Infrared and visible light image fusion system based on distillation-fusion-semantic joint driving

    CN117274759A

  • Method and system for identifying crack based on infrared imaging

    CN118014978A

  • Road crack detection method based on infrared and visible light fusion

    CN118261860A

  • KR20220044027A

Cited By

  • Visible light-infrared image structure adaptive fusion crack detection method and system

    CN120047432A

  • Visible Light-Infrared Image Structure Adaptive Fusion-Based Crack Detection Method and System

    CN120047432B