Tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion

By using pixel-adaptive multi-scale feature fusion technology in tunnel disease diagnosis, combined with sub-pixel convolution and graph convolution modules, the problem of aliasing effects caused by complex backgrounds is solved, and high-precision tunnel disease detection and classification are achieved.

CN118781418APending Publication Date: 2024-10-15XIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410908377.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In tunnel disease diagnosis, the aliasing effect caused by complex background reduces the ability to process complex scale changes of the detection object, resulting in serious aliasing effects in feature fusion, affecting detection accuracy.

Method used

Using a pixel-adaptive multi-scale feature fusion method, deep features are used to enhance shallow features by constructing a feature enhancement module that mixes sub-pixel convolution and graph convolution, and a pixel adaptive module that mixes graph convolution and nonlinear activation. , Reduce the aliasing effect caused by semantic information and background information.

Benefits of technology

It achieves high-precision detection and classification of potential diseases in tunnel structures, supplements lost channel information, improves detection accuracy, and reduces the impact of aliasing effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118781418A_ABST
    Figure CN118781418A_ABST
Patent Text Reader

Abstract

The invention discloses a tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion. The tunnel disease diagnosis method is specifically implemented according to the following steps: step 1, data preprocessing; step 2, constructing a feature enhancement module based on mixing of sub-pixel convolution and graph convolution; step 3, constructing a pixel adaptive module based on image convolution and nonlinear activation mixing; and step 4, predicting by using fusion features. According to the method, the aliasing effect caused by a complex background frequently existing in a defect detection task is solved, high-precision detection and classification of potential diseases in a tunnel structure are realized, human resources are saved, a method system of multi-scale feature fusion in the fields of computer vision and artificial intelligence is enriched, development of the field of tunnel disease diagnosis is supported, and the method is suitable for popularization and application. And a choice is provided for improving the tunnel disease diagnosis precision and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision and artificial intelligence, and specifically relates to a tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion. Background Art

[0002] Tunnel disease diagnosis is a key technology in the field of computer vision and artificial intelligence. Its core goal is to automatically identify and evaluate tunnel disease conditions from images captured by tunnels, sensor data or other information obtained by detection means using image capture devices. Through the powerful feature extraction and pattern recognition capabilities of deep neural networks, high-precision detection and classification of potential diseases in tunnel structures can be achieved.

[0003] In recent years, in the field of tunnel disease diagnosis, the complex background often exists in defect detection tasks, which will further aggravate the aliasing effect in feature fusion. How to alleviate the aliasing effect has become the key to improving the accuracy of defect detection tasks. With the development of machine learning and deep learning, a method of extracting target features using multi-layer convolutional networks has emerged, but its weak processing ability for the size of complex objects reduces its ability to process complex scale changes of the detection object. The FPN-based method adds a multi-scale feature fusion design on the basis of SSD, which greatly improves the detection accuracy through multi-scale feature fusion, but also brings the problem of aliasing effect. In defect detection tasks, the target object has low contrast with the surrounding background and lacks significance. This will further aggravate the aliasing effect in feature fusion, that is, in addition to the mutual interference between object features, the features of the defect are easily obscured by complex background information. This has a huge obstacle to the accurate identification and analysis of objects and structures of different scales in tunnel disease images. Summary of the invention

[0004] The purpose of the present invention is to provide a tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion, which solves the aliasing effect caused by complex background in existing defect detection tasks.

[0005] The technical solution adopted by the present invention is a tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion, which is specifically implemented according to the following steps:

[0006] Step 1: Data preprocessing;

[0007] Step 2: Construct a feature enhancement module based on a mixture of sub-pixel convolution and graph convolution;

[0008] Step 3: Construct a pixel-adaptive module based on a mixture of graph convolution and nonlinear activation;

[0009] Step 4: Use fusion features for prediction.

[0010] The technical solution of the present invention is also characterized in that:

[0011] Step 1 is implemented as follows:

[0012] Step 1.1, collect images captured from the tunnel by the image capture device, distinguish different disease categories and annotate them, mark the diseased area as the detection target, and build a labeled tunnel disease training set;

[0013] Step 1.2, creating samples that are similar to the original image but different from the original image by implementing random vertical or horizontal rotation transformation;

[0014] Step 1.3: Input the images in the tunnel disease dataset into the backbone network, and map each scale extracted by the backbone network to the s-layer feature. where h s 、w s 、c s are the height, width and number of channels of the s layer, respectively, and R represents the real number domain;

[0015] Step 1.4, input feature P s Input it into the 1×1 convolution layer, unify the number of channels to c, and record the obtained features as in Indicates the number of channels specified uniformly.

[0016] Step 2 is implemented as follows:

[0017] Step 2.1, construct sub-pixel convolution upsampling and improve image resolution through pixel scrubbing operator;

[0018] Step 2.2: construct a graph convolutional layer for pixel skip fusion to fuse the scrubbed features.

[0019] Step 2.1 is implemented as follows:

[0020] Step 2.1.1, construct sub-pixel convolution, and feed the output of step 1.2 into sub-pixel convolution, where the sub-pixel convolution layer is defined as:

[0021]

[0022] Among them, r is the transfer factor, F is the input feature, PS(F) x,y,c is the feature pixel output at the coordinate (x, y, c), and (·) are floor function and modulus operation respectively, c is the number of channels;

[0023] Step 2.1.2: Send the output of step 2.1.1 to the graph convolution layer of pixel skip fusion. The pixel scrubbing operator in the graph convolution layer evenly spreads the pixels of different channel dimensions in the same spatial position in the spatial dimension, making the channel dimension become 1 / r of the original channel dimension. 2 , pixel skip fusion is introduced to integrate the scrubbed features, where the graph convolution layer is defined as:

[0024]

[0025] Among them, f r×r,stride=r represents an r×r convolutional layer with stride set to r, where stride is the step size, P s The features of each scale extracted by the backbone network are mapped to the s layer. The input feature P s Feature pixels output by the sub-pixel convolution layer.

[0026] Step 3 is implemented as follows:

[0027] Step 3.1, construct a pixel guide module to reduce the semantic differences between cross-scale features;

[0028] Step 3.2, build a channel weight module to generate channel weights to guide feature fusion.

[0029] Step 3.1 is as follows: the two adjacent layers output from step 1.3 are fed into the pixel guide module. The sth layer and the s+1th layer represent their input features P s and P s+1 , P s and P s+1 Input into the 1×1 convolution layer, unify the number of channels, and the obtained feature is recorded as C s and C s+1 , constructed according to C s+1 The semantic information distribution infers C s Pixel-guided module for important semantic information, scale features The calculation formula is shown in formula (3):

[0030]

[0031] in, represents the features updated by the pixel-guided module, P s represents the input feature of the sth layer, f 1×1 () represents a 1×1 convolutional layer, C s represents the features extracted by the sth layer through the 1×1 convolutional layer, Indicates that C s+1 The semantic information distribution represented by C s The semantic information in .

[0032] In step 3.1.1, from C s+1 Extract C ps , C ps Defined as:

[0033]

[0034] where Γ s+1→s (·) can get soft space gating ⊙ refers to Hadamard matrix multiplication, Indicates the number of channels specified uniformly, U s+1→s Indicates that the s+1 layer feature C s+1 Mapped to the upsampling of the s layer, when When negative, it means Will erase C s The corresponding semantic information; when When positive, it means The corresponding semantic information will be enhanced, where soft spatial gating The calculation formula is shown in formula (5):

[0035]

[0036] Among them, g(·) is a gate function that reflects the pixel distribution of target semantic information and background information in the feature map, e(·) represents an exponential function, and g(·) is constructed using average pooling and maximum pooling in the channel dimension. Extract the background information of the feature, while the maximum pooling Extract the characteristic information of the target itself and extract the characteristic distribution map through a 7×7 convolutional layer, where The calculation formula is shown in formula (6):

[0037]

[0038] Among them, cat[·] represents average pooling and max pooling splicing, f 7×7 Represents a 7×7 convolutional layer.

[0039] Step 3.2 is as follows: Construct a channel weight module to generate channel weights to guide feature fusion. Extract a channel weight and then Multiply by the channel weight Get the output As shown in formula (7):

[0040]

[0041] in, Indicates from Extracted channel weights;

[0042] Channel weights are generated using multiple fully connected layers to extract semantic information from the spatial information features obtained by average pooling and maximum pooling operations. The calculation formula is shown in formula (8):

[0043]

[0044] Among them, σ(·) represents the sigmoid function, and are the weights of multiple fully connected layers, represents average pooling, represents the maximum pooling, Represents the field of real numbers.

[0045] The beneficial effects of the present invention are:

[0046] The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion of the present invention does not participate in the model training process for data preprocessing and result analysis output. It is based on deep learning pixel adaptive multi-scale feature fusion, and extracts multi-scale features through a network with SwinTransformer as the backbone, making the initial features more diversified. In addition, a feature enhancement module based on a mixture of sub-pixel convolution and graph convolution and a pixel adaptive module based on a mixture of graph convolution and nonlinear activation are added to enhance shallow features with deep features, while eliminating the aliasing effect caused by semantic information and background information as much as possible. The aliasing effect caused by the complex background that often exists in defect detection tasks is solved, and high-precision detection and classification of potential diseases in tunnel structures are achieved. The lost channel information can be supplemented to achieve high-precision detection and classification of potential diseases in tunnel structures. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a network architecture diagram of the tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion of the present invention;

[0048] Figure 2 is a network architecture diagram of a feature enhancement module based on a mixture of sub-pixel convolution and graph convolution in the tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion of the present invention;

[0049] Figure 3 is a network architecture diagram of a pixel adaptive module based on a mixture of graph convolution and nonlinear activation in the tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion of the present invention;

[0050] Figure 4is a network architecture diagram of a pixel wizard module in a tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to the present invention;

[0051] Figure 5 is a network architecture diagram of a channel weight module in a tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to the present invention; DETAILED DESCRIPTION

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

[0053] Example 1

[0054] The present invention provides a tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion, such as Figure 1 As shown, the specific implementation steps are as follows:

[0055] Step 1: Data preprocessing;

[0056] Step 1 is implemented as follows:

[0057] Step 1.1, collect images captured from the tunnel by the image capture device, distinguish different disease categories and annotate them, mark the diseased area as the detection target, and build a labeled tunnel disease training set;

[0058] Step 1.2, by implementing random vertical or horizontal rotation image transformation, create samples that are similar to the original image but have differences, thereby enriching the tunnel disease dataset;

[0059] Step 1.3: Input the images in the tunnel disease dataset into the backbone network, and map each scale extracted by the backbone network to the s-layer feature. where h s 、w s 、c s are the height, width and number of channels of the s layer, respectively, and R represents the real number domain;

[0060] Step 1.4, input feature P s Input it into the 1×1 convolution layer, unify the number of channels to c, and record the obtained features as in Indicates the number of channels specified uniformly.

[0061] Step 2: Construct a feature enhancement module based on a mixture of sub-pixel convolution and graph convolution, such as Figure 2 As shown;

[0062] Step 3: Construct a pixel-adaptive module based on a mixture of graph convolution and nonlinear activation, such as Figure 3 As shown;

[0063] Step 4: Predict using fusion features;

[0064] The fused features are used to complete the prediction through TOOD and output the results.

[0065] Example 2

[0066] The present invention is based on the tunnel disease diagnosis method of pixel adaptive multi-scale feature fusion, wherein step 2 is specifically implemented according to the following steps:

[0067] Step 2.1, construct sub-pixel convolution upsampling, improve the image resolution through the pixel scrubbing operator, and make the features originally on different channels adjacent in space;

[0068] Step 2.1.1: Traditional feature pyramid methods often add additional paths to supplement the lost channel information, which aggravates the aliasing effect. In order to enrich the channel information and avoid the aliasing effect, a sub-pixel convolution is constructed, and the output of step 1.2 is fed into the sub-pixel convolution, where the sub-pixel convolution layer is defined as:

[0069]

[0070] Among them, r is the transfer factor, F is the input feature, PS(F) x,y,c is the feature pixel output at the coordinate (x, y, c), and (·) are floor function and modulus operation respectively, c is the number of channels;

[0071] Step 2.1.2: Send the output of step 2.1.1 to the graph convolution layer of pixel skip fusion. The pixel scrubbing operator in the graph convolution layer evenly spreads the pixels of different channel dimensions in the same spatial position in the spatial dimension, making the channel dimension become 1 / r of the original channel dimension. 2 In order to avoid the accuracy problem caused by the interference between pixels in different channels after the pixel features are discontinuous, pixel jump fusion is introduced to integrate the washed features, where the graph convolution layer is defined as:

[0072]

[0073] Among them, f r×r,stride=r represents an r×r convolutional layer with stride set to r, where stride is the step size, P s The features of each scale extracted by the backbone network are mapped to the s layer. The input feature P s Feature pixels output by the sub-pixel convolution layer.

[0074] Step 2.2, construct a graph convolution layer for pixel skipping fusion to fuse the scrubbed features to avoid mutual interference between original pixels of different channels and interference between discontinuous features.

[0075] Example 3

[0076] The present invention is based on the tunnel disease diagnosis method of pixel adaptive multi-scale feature fusion, wherein step 3 is specifically implemented according to the following steps:

[0077] Step 3.1, in order to reduce the semantic differences between cross-scale features, guide the fusion of corresponding pixels, and eliminate the aliasing effect caused by background information and semantic information, a pixel guide module is constructed, such as Figure 4 As shown;

[0078] Step 3.1 is as follows: the two adjacent layers output from step 1.3 are fed into the pixel guide module. The sth layer and the s+1th layer represent their input features P s and P s+1 , P s and P s+1 Input into the 1×1 convolution layer, unify the number of channels, and the obtained feature is recorded as C s and C s+1 , since the features obtained from the s+1th layer Than the features obtained from the sth layer Has more semantic information, so the construction is based on C s+1 The semantic information distribution infers C s Pixel-guided module for important semantic information, scale features The calculation formula is shown in formula (3):

[0079]

[0080] in, represents the features updated by the pixel-guided module, P s represents the input feature of the sth layer, f 1×1 () represents a 1×1 convolutional layer, C s represents the features extracted by the sth layer through the 1×1 convolutional layer, Indicates that C s+1 The semantic information distribution represented by C s The semantic information in .

[0081] In step 3.1, from C s+1 Extract C ps , C ps Defined as:

[0082]

[0083] where Γ s+1→s (·) can get soft space gating ⊙ refers to Hadamard matrix multiplication, Indicates the number of channels specified uniformly, U s+1→s Indicates that the s+1 layer feature C s+1 Mapped to the upsampling of the s layer, when When negative, it means Will erase C s The corresponding semantic information; when When positive, it means The corresponding semantic information will be enhanced, where soft spatial gating The calculation formula is shown in formula (5):

[0084]

[0085] Among them, g(·) is a gate function that reflects the pixel distribution of target semantic information and background information in the feature map, e(·) represents an exponential function, and g(·) is constructed using average pooling and maximum pooling in the channel dimension. Extract the background information of the feature, while the maximum pooling Extract the characteristic information of the target itself and extract the characteristic distribution map through a 7×7 convolutional layer, where The calculation formula is shown in formula (6):

[0086]

[0087] Among them, cat[·] represents average pooling and max pooling splicing, f 7×7 Represents a 7×7 convolutional layer;

[0088] Step 3.2, build a channel weight module, generate channel weights to guide feature fusion, and retain the semantic information you want to enhance, such as Figure 5 As shown;

[0089] Step 3.2 is as follows: Since each channel focuses on different information, a channel weight module is constructed to generate channel weights to guide feature fusion. Extract a channel weight and then Multiply by the channel weight Get the output As shown in formula (7):

[0090]

[0091] in, Indicates from Extracted channel weights;

[0092] Channel weights are generated using multiple fully connected layers to extract semantic information from the spatial information features obtained by average pooling and maximum pooling operations. The calculation formula is shown in formula (8):

[0093]

[0094] Among them, σ(·) represents the sigmoid function, and are the weights of multiple fully connected layers, represents average pooling, represents the maximum pooling, Represents the field of real numbers.

[0095] The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion of the present invention is adopted, and the results thereof are compared with those of the traditional diagnosis method as shown in Table 1 below:

[0096] Table 1

[0097] Model AP50 F1 score Param Retinanet 0.377 0.354 29.5M Deformable_detr 0.420 0.387 31.7M CE-FPN 0.471 0.377 26.2M Faster RCNN 0.485 0.380 30.2M Yolov8 0.540 0.399 36.2M Ours 0.724 0.573 27.5M

[0098] AP50: Average precision. F1 score: F1 score. Param: Parameter quantity. The best and second best scores are indicated in bold and underlined, respectively.

[0099] The network model trained by the method proposed in the present invention achieved higher AP50 and F1 score values ​​on the tunnel disease dataset using the detected disease results as input. In addition, while achieving higher performance, the parameter quantity was also effectively controlled.

Claims

1. A tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion, characterized in that: Follow the steps below to implement it: Step 1: Data preprocessing; Step 2: Construct a feature enhancement module based on a mixture of sub-pixel convolution and graph convolution; Step 3: Construct a pixel-adaptive module based on a mixture of graph convolution and nonlinear activation; Step 4: Use fusion features for prediction.

2. The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to claim 1 is characterized in that: The step 1 is specifically implemented according to the following steps: Step 1.1, collect images captured from the tunnel by the image capture device, distinguish different disease categories and annotate them, mark the diseased area as the detection target, and build a labeled tunnel disease training set; Step 1.2, creating samples that are similar to the original image but different from the original image by implementing random vertical or horizontal rotation transformation; Step 1.3: Input the images in the tunnel disease dataset into the backbone network, and map each scale extracted by the backbone network to the s-layer feature. where h s 、w s 、c s are the height, width and number of channels of the s layer, respectively, and R represents the real number domain; Step 1.4, input feature P s Input it into the 1×1 convolution layer, unify the number of channels to c, and record the obtained features as in Indicates the number of channels specified uniformly.

3. The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to claim 1 is characterized in that: The step 2 is specifically implemented according to the following steps: Step 2.1, construct sub-pixel convolution upsampling and improve image resolution through pixel scrubbing operator; Step 2.2: construct a graph convolutional layer for pixel skip fusion to fuse the scrubbed features.

4. The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to claim 3 is characterized in that: The step 2.1 is specifically implemented according to the following steps: Step 2.1.1, construct sub-pixel convolution, and feed the output of step 1.2 into sub-pixel convolution, where the sub-pixel convolution layer is defined as: Among them, r is the transfer factor, F is the input feature, PS(F) x,y,c is the feature pixel output at the coordinate (x, y, c), and (·) are floor function and modulus operation respectively, c is the number of channels; Step 2.1.2: Send the output of step 2.1.1 to the graph convolution layer of pixel skip fusion. The pixel scrubbing operator in the graph convolution layer evenly spreads the pixels of different channel dimensions in the same spatial position in the spatial dimension, making the channel dimension become 1 / r of the original channel dimension. 2 , pixel skip fusion is introduced to integrate the scrubbed features, where the graph convolution layer is defined as: Among them, f r×r,stride=r represents an r×r convolutional layer with stride set to r, where stride is the step size, P s The features of each scale extracted by the backbone network are mapped to the s layer. The input feature P s Feature pixels output by the sub-pixel convolution layer.

5. The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to claim 1 is characterized in that: The step 3 is specifically implemented according to the following steps: Step 3.1, construct a pixel guide module to reduce the semantic differences between cross-scale features; Step 3.2, build a channel weight module to generate channel weights to guide feature fusion.

6. The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to claim 5 is characterized in that: The step 3.1 is specifically as follows: the two adjacent layers output from step 1.3 are sent to the pixel guide module, and the sth layer and the s+1th layer respectively represent that their input features are P s and P s+1 , P s and P s+1 Input into the 1×1 convolution layer, unify the number of channels, and the obtained feature is recorded as C s and C s+1 , constructed according to C s+1 The semantic information distribution infers C s Pixel-guided module for important semantic information, scale features The calculation formula is shown in formula (3): in, represents the features updated by the pixel-guided module, P s represents the input feature of the sth layer, f 1×1 () represents a 1×1 convolutional layer, C s represents the features extracted by the sth layer through the 1×1 convolutional layer, Indicates that through C s+1 The semantic information distribution represented by C s The semantic information in .

7. The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to claim 6 is characterized in that: In step 3.1, from C s+1 Extract C ps , C ps Defined as: where Γ s+1→s (·) can get soft space gating ⊙ refers to Hadamard matrix multiplication, Indicates the number of channels specified uniformly, U s+1→s Indicates that the s+1 layer feature C s+1 Mapped to the upsampling of the s layer, when When negative, it means Will erase C s The corresponding semantic information; when When positive, it means The corresponding semantic information will be enhanced, where soft spatial gating The calculation formula is shown in formula (5): Among them, g(·) is a gate function that reflects the pixel distribution of target semantic information and background information in the feature map, e(·) represents an exponential function, and g(·) is constructed using average pooling and maximum pooling in the channel dimension. Extract the background information of the feature, while the maximum pooling Extract the characteristic information of the target itself and extract the characteristic distribution map through a 7×7 convolutional layer, where The calculation formula is shown in formula (6): Among them, cat[·] represents average pooling and max pooling splicing, f 7×7 Represents a 7×7 convolutional layer.

8. The tunnel disease diagnosis method based on pixel adaptive multi-scale feature fusion according to claim 5 is characterized in that: The step 3.2 is specifically as follows: construct a channel weight module to generate channel weights to guide feature fusion. Extract a channel weight and then Multiply by the channel weight Get the output As shown in formula (7): in, Indicates from Extracted channel weights; Channel weights are generated using multiple fully connected layers to extract semantic information from the spatial information features obtained by average pooling and maximum pooling operations. The calculation formula is shown in formula (8): Among them, σ(·) represents the sigmoid function, and are the weights of multiple fully connected layers represents average pooling, represents the maximum pooling, Represents the field of real numbers.