Tunnel multi-disease multi-scale segmentation method and system in low-illumination environment

By improving and combining adaptive image enhancement and attention mechanism on EfficientNetV2, the problem of insufficient segmentation network performance in low-light environments is solved, and high-quality image segmentation in tunnel multi-disease detection is achieved.

CN119048473AActive Publication Date: 2024-11-29TONGJI UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411168427.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-11-29
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

The existing segmentation network cannot work effectively in low-light environments, resulting in low image segmentation quality and cannot adapt to the needs of building disease detection in low-light environments such as tunnels.

Method used

Improvements were made on EfficientNetV2, and combined with adaptive image enhancement S-shaped curve, pyramid pooling module and attention mechanism, multi-scale feature extraction and fusion are carried out to improve the performance of the network under low light.

Benefits of technology

By adaptively improving the pixel value of dark areas, reducing overexposure tone, enhancing feature extraction capabilities, improving the accuracy and quality of image segmentation, it is suitable for tunnel multiple diseases detection in low-illumination environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048473A_ABST
    Figure CN119048473A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision, in particular to a tunnel multi-disease multi-scale segmentation method and system in a low-illumination environment. The method comprises the following steps: constructing a smooth sharpening module, and carrying out noise reduction sharpening processing on an input image; performing improvement on the OfficientNetV2, and performing feature extraction on the picture by taking the OfficientNetV2 as a backbone network; an adaptive image enhancement S-shaped curve is added in a gradual down-sampling process, a dark part of the feature map is adaptively enhanced, and a highlight part is reduced; the feature maps are put into an improved pyramid pooling module for multi-scale feature extraction, and the feature maps of each scale are subjected to dimensionality reduction through a Hilbert curve and then subjected to calculation of a self-attention mechanism to obtain spatial information in the images; and fusing the multi-scale feature maps through channel attention, and performing up-sampling to the size of an original map to obtain a disease segmentation map. According to the method, the adaptive S enhancement curve is designed and added into the segmentation network, so that the problem of low segmentation precision caused by limited quality of the image generated by the unmanned aerial vehicle in the dark tunnel is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method and system for multi-damage multi-scale segmentation of a tunnel in a low-light environment. Background Art

[0002] Tunnels and some underground facilities have the characteristics of large space, closed environment, long service life and easy damage of building structures. Using drones to detect building defects is a very common method. However, the quality of images taken by drones is limited due to insufficient light in the space. The images generally show low illumination, low contrast and low signal-to-noise ratio, which has a significant impact on detection and segmentation. Therefore, it is very necessary to design a lightweight and real-time segmentation network that can work in this environment.

[0003] Segmentation technology is rapidly iterating and some mainstream network models have high segmentation accuracy, such as PSPNet, U-Net, and SETR. Some networks, such as Enet and SeaFormer, are lightweight and have low hardware requirements. However, these networks are designed and trained based on normal light conditions and cannot cope with segmentation in low-light environments. Summary of the invention

[0004] In order to solve the technical problem that existing solutions are all designed and trained based on normal light conditions and cannot cope with segmentation in low light environments, the embodiment of the present invention provides a tunnel multi-disease multi-scale segmentation method and system in low light environments. The technical solution is as follows:

[0005] On the one hand, a multi-scale segmentation method for tunnel multi-disease in a low-light environment is provided, characterized in that the method comprises:

[0006] S1. Obtain an image to be processed; construct a smoothing and sharpening module to perform noise reduction and sharpening processing on the image to be processed to obtain an input image;

[0007] S2, make improvements on EfficientNetV2, and use the improved EfficientNetV2 as the backbone network to extract features from the input image and obtain a feature map;

[0008] S3. In the process of stepwise downsampling, an adaptive image enhancement S-curve is added. The dark part of the feature map is adaptively enhanced and the highlight part of the feature map is reduced by the adaptive image enhancement S-curve to obtain a feature map with a resolution of 16×16.

[0009] S4, put the feature map with a resolution of 16×16 into the improved pyramid pooling module for multi-scale feature extraction, and use the Hilbert curve to reduce the dimension of each scale feature map and then calculate the self-attention mechanism to obtain the spatial information in the image;

[0010] S5. Multi-scale feature maps are fused through channel attention and upsampled to the original image size to obtain the disease segmentation map.

[0011] Optionally, in S1, obtaining an image to be processed; constructing a smoothing and sharpening module to perform noise reduction and sharpening processing on the image to be processed to obtain an input image, including:

[0012] Get the image to be processed;

[0013] The image to be processed is subjected to noise reduction processing by using Gaussian filtering, and then the smoothed image is subjected to edge detection and sharpening by using Laplace kernel;

[0014] The resolution of the smoothed and sharpened image is changed to a fixed size of 512×512 to obtain the input image.

[0015] Optionally, in S2, improvements are made on EfficientNetV2, and the improved EfficientNetV2 is used as the backbone network to extract features of the input image to obtain a feature map, including:

[0016] Input an input image of size 3×512×512 into the EfficientNetV2 network;

[0017] The input image is sampled 7 times to generate a feature map with a resolution of 16×16; the sizes of the feature maps generated in each layer are: 24×256×256, 48×128×128, 80×64×64, 160×32×32, 176×32×32, 304×16×16, and 512×16×16.

[0018] Optionally, S3, in the process of stepwise downsampling, an adaptive image enhancement S-curve is added, and the dark part of the feature map is adaptively enhanced and the highlight part of the feature map is reduced by the adaptive image enhancement S-curve to obtain a feature map with a resolution of 16×16, including:

[0019] In the process of step-by-step downsampling, an adaptive image enhancement S-curve is added, and the S-curve illumination enhancement operation is performed before each feature extraction stage; three stages are selected in the seven feature extraction stages for adaptive S-curve image illumination enhancement processing, and the three stages are: before the first stage, the enhanced resolution is: 3×512×512; before the second stage, the enhanced resolution is: 24×256×256; before the third stage, the enhanced resolution is: 48×128×128;

[0020] The formula of the curve is as follows (1):

[0021] (1)

[0022] in, For each pixel value; The weight calculated for the neural network, the value range is (-1, 1); Represents the enhanced pixel value.

[0023] Optionally, in S4, the feature map with a resolution of 16×16 is put into the improved pyramid pooling module for multi-scale feature extraction, and the feature map of each scale is reduced in dimension using the Hilbert curve and then the self-attention mechanism is calculated to obtain the spatial information in the image, including:

[0024] The feature maps with a resolution of 512×16×16 are average pooled to generate feature maps with resolutions of 170×8×8, 170×4×4, and 170×2×2;

[0025] The three feature maps are subjected to Hilbert curve dimensionality reduction, and the spatial weight map is generated by calculation of the self-made attention mechanism. The spatial weight map is then multiplied with the corresponding feature map to generate three new feature maps.

[0026] Optionally, in S5, multi-scale feature maps are fused by channel attention and upsampled to the original image size to obtain a disease segmentation map, including:

[0027] The three new feature maps are upsampled to a resolution of 16×16, and the three new feature maps with a resolution of 170×16×16 are concatenated with the original feature map with a resolution of 512×16×16 in the channel dimension;

[0028] Calculate channel attention on the concatenated feature map;

[0029] The feature map is directly upsampled to a segmentation map of size C×512×512, where C is the type to be segmented, and the disease segmentation map is obtained by obtaining the original image size.

[0030] On the other hand, a tunnel multi-disease multi-scale segmentation system under low illumination environment is provided, the system is applied to the tunnel multi-disease multi-scale segmentation method, and the system comprises:

[0031] The image processing module is used to obtain the image to be processed; a smoothing and sharpening module is constructed to perform noise reduction and sharpening processing on the image to be processed to obtain an input image;

[0032] The feature extraction module is used to improve EfficientNetV2 and use the improved EfficientNetV2 as the backbone network to extract features from the input image and obtain a feature map;

[0033] An image enhancement module is used to add an adaptive image enhancement S-curve in the process of gradual downsampling. The adaptive image enhancement S-curve is used to adaptively enhance the dark part of the feature map and reduce the highlight part of the feature map to obtain a feature map with a resolution of 16×16.

[0034] The pyramid pooling module is used to put the feature map with a resolution of 16×16 into the improved pyramid pooling module for multi-scale feature extraction. The feature map of each scale is reduced in dimension using the Hilbert curve and then the self-attention mechanism is calculated to obtain the spatial information in the image.

[0035] The feature fusion module is used to fuse multi-scale feature maps through channel attention and upsample them to the original image size to obtain the disease segmentation map.

[0036] Optionally, an image processing module is used to obtain an image to be processed;

[0037] The image to be processed is subjected to noise reduction processing by using Gaussian filtering, and then the smoothed image is subjected to edge detection and sharpening by using Laplace kernel;

[0038] The resolution of the smoothed and sharpened image is changed to a fixed size of 512×512 to obtain the input image.

[0039] On the other hand, a tunnel multi-disease multi-scale segmentation device is provided, and the tunnel multi-disease multi-scale segmentation device includes: a processor; a memory, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, any one of the above-mentioned tunnel multi-disease multi-scale segmentation methods is implemented.

[0040] On the other hand, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement any one of the above-mentioned tunnel multi-disease multi-scale segmentation methods.

[0041] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0042] In an embodiment of the present invention, the designed adaptive S-curve is a cluster of curve functions designed based on color adjustment experience, and the corresponding curve function is generated through deep learning. The curve function adaptively enhances the pixel value of the dark part and reduces the overexposed bright-tone pixels, which is beneficial to the subsequent backbone network to extract features from the feature map. In view of the environment involved in the present invention, EfficientNetV2 is selected as the backbone network and improved. The improvement of this part is mainly aimed at the information retention of the downsampling part in the backbone network. The present invention utilizes multi-scale feature fusion and combines the spatial attention mechanism and the channel attention mechanism to improve the extraction of image spatial information by the neural network. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0044] Figure 1 This is a flow chart of a multi-scale segmentation method for tunnel multi-diseases in a low-light environment provided by an embodiment of the present invention;

[0045] Figure 2 It is a diagram of an S-curve gradient generation model provided by an embodiment of the present invention;

[0046] Figure 3 It is a performance diagram of the S-shaped curve under different gradients provided by the embodiment of the present invention;

[0047] Figure 4 is a spatial information calculation graph in a feature pyramid provided by an embodiment of the present invention;

[0048] Figure 5 It is an adaptive S-curve underground building structure image enhancement visualization effect diagram provided by an embodiment of the present invention;

[0049] Figure 6 It is a block diagram of a tunnel multi-disease multi-scale segmentation system in a low-light environment provided by an embodiment of the present invention;

[0050] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0052] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0053] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0054] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0055] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0056] The embodiment of the present invention provides a tunnel multi-disease multi-scale segmentation method under low illumination environment, which can be implemented by a tunnel multi-disease multi-scale segmentation device, which can be a terminal or a server. Figure 1 The flowchart of the tunnel multi-disease multi-scale segmentation method is shown in FIG. 1 . The processing flow of the method may include the following steps:

[0057] S1. Obtain an image to be processed; construct a smoothing sharpening module (SSM) to perform noise reduction and sharpening processing on the image to be processed to obtain an input image;

[0058] In a feasible implementation, in S1, an image to be processed is obtained; a smoothing and sharpening module is constructed to perform noise reduction and sharpening processing on the image to be processed to obtain an input image, including:

[0059] Get the image to be processed;

[0060] The image to be processed is subjected to noise reduction processing by Gaussian filtering, and then the smoothed image is subjected to edge detection and sharpening by Laplace kernel;

[0061] The resolution of the smoothed and sharpened image is changed to a fixed size of 512×512 to obtain the input image.

[0062] In a feasible implementation manner, the image to be processed is a low-light tunnel photo taken by a drone, and the image to be processed is placed in a segmentation network.

[0063] In a feasible implementation, since there is a large amount of noise in the low-light image, and most of the noise is Gaussian noise, the input image can be preliminarily denoised and sharpened through the smoothing and sharpening module, which makes it more advantageous for the subsequent backbone network to extract features from the image.

[0064] S2, make improvements on EfficientNetV2, and use the improved EfficientNetV2 as the backbone network to extract features from the input image and obtain a feature map;

[0065] In a feasible implementation, in S2, an improvement is made on EfficientNetV2, and the improved EfficientNetV2 is used as a backbone network to extract features of the input image to obtain a feature map, including:

[0066] Input an input image of size 3×512×512 into the EfficientNetV2 network;

[0067] The input image is sampled 7 times to generate a feature map with a resolution of 16×16; the sizes of the feature maps generated in each layer are: 24×256×256, 48×128×128, 80×64×64, 160×32×32, 176×32×32, 304×16×16, and 512×16×16.

[0068] In a feasible implementation, improvements are made on EfficientNetV2 and used as the backbone network to extract features from images. The improvement method is to add an adaptive image enhancement S-curve before the 1st, 3rd and 4th stages of the eight stages of EfficientNetV2. The specific operation is as follows: before inputting into EfficientNetV2, the feature map of size 3×512×512 is adaptively enhanced, and the output is sent to EfficientNetV2. After the second stage of EfficientNetV2 outputs a 24×256×256 feature map, adaptive image enhancement is performed again and then sent to the third stage for feature extraction. The operations before the fourth stage are the same as before.

[0069] S3. In the process of stepwise downsampling, an adaptive image enhancement S-curve is added. The dark part of the feature map is adaptively enhanced and the highlight part of the feature map is reduced by the adaptive image enhancement S-curve to obtain a feature map with a resolution of 16×16.

[0070] In a feasible implementation, S3, an adaptive image enhancement S-curve is added during the stepwise downsampling process, and the dark part of the feature map is adaptively enhanced and the highlight part of the feature map is reduced by the adaptive image enhancement S-curve to obtain a feature map with a resolution of 16×16, including:

[0071] In the process of step-by-step downsampling, an adaptive image enhancement S-curve is added, and the S-curve illumination enhancement operation is performed before each feature extraction stage; three stages are selected in the seven feature extraction stages for adaptive S-curve image illumination enhancement processing, and the three stages are: before the first stage, the enhanced resolution is: 3×512×512; before the second stage, the enhanced resolution is: 24×256×256; before the third stage, the enhanced resolution is: 48×128×128;

[0072] The formula of the curve is as follows (1):

[0073] (1)

[0074] in, For each pixel value; The weight calculated for the neural network, the value range is (-1, 1); Represents the enhanced pixel value.

[0075] In a feasible implementation manner, the curve gradient generation module is as follows: Figure 2 As shown in the figure, different values ​​of the parameter α generated by the module affect the curve as follows Figure 3 As shown, the enhancement effect obtained by its module can be found in Figure 5 It can be seen that after enhancement, the detailed information of some underground building structure diseases is enhanced, which improves the recognition and segmentation effect of the subsequent network.

[0076] In a feasible implementation, the designed adaptive S-curve is a rough curve function designed based on color adjustment experience. Since most pixels in low-light images are distributed in dark tones, the gradient difference between pixels is not large, which makes it difficult for the neural network to extract semantic information from the image. The function of the adaptive S-curve is to increase the input low pixel value, appropriately lower the high pixel value (overexposed part) if there is one, and keep the monotonicity of the overall pixel value unchanged. Since the pixel distribution between each scene is different, and the pixel distribution within the scene is roughly the same, a neural network can be used to train a specific scene to achieve the best curve gradient adjustment, so that the feature map can be quickly enhanced. By adaptively improving the pixel value of the dark part and reducing the overexposed bright-tone pixels, it is beneficial for the subsequent backbone network to extract features from the feature map.

[0077] In view of the environment involved in the present invention, the network is generally deployed on the terminal. The network to be selected needs to be lightweight and real-time while having good feature extraction capabilities. Therefore, EfficientNetV2 is selected as the backbone network and improved. By adding an adaptive S-curve module before the 1st, 3rd, and 4th stages of EfficientNetV2, the dark features of the network output in the previous stage are enhanced to retain the dark information in the feature map in multiple stages. The improvement in this part is mainly aimed at the information retention of the down-sampling part in the backbone network.

[0078] S4, put the feature map with a resolution of 16×16 into the improved pyramid pooling module for multi-scale feature extraction, and use the Hilbert curve to reduce the dimension of each scale feature map and then calculate the self-attention mechanism to obtain the spatial information in the image;

[0079] In a feasible implementation, in S4, a feature map with a resolution of 16×16 is placed in an improved pyramid pooling module for multi-scale feature extraction, and a self-attention mechanism is used to calculate the spatial information in the image after dimension reduction using the Hilbert curve for the feature map of each scale, including:

[0080] The feature maps with a resolution of 512×16×16 are average pooled to generate feature maps with resolutions of 170×8×8, 170×4×4, and 170×2×2;

[0081] The three feature maps are subjected to Hilbert curve dimensionality reduction, and the spatial weight map is generated by calculation of the self-made attention mechanism. The spatial weight map is then multiplied with the corresponding feature map to generate three new feature maps.

[0082] In a feasible implementation, the pyramid pooling module is changed from the original four pooling modes to three, namely 2×2, 4×4, and 8×8. The feature maps of each scale are reduced in dimension using the Hilbert curve and the self-attention mechanism is calculated to obtain the spatial information in the image. Finally, the three feature maps are upsampled and concatenated with the original 16×16 feature map in the channel dimension. The implementation process is as follows: Figure 4 shown.

[0083] In a feasible implementation, the present invention utilizes multi-scale feature fusion and combines spatial attention mechanism and channel attention mechanism to improve the extraction of image spatial information by neural network. Different feature information is obtained by multi-scale pooling of 16×16 feature maps, and better features are extracted through spatial attention and channel attention. The Hilbert curve is used to reduce the dimension of low-resolution feature maps to improve the computing power of the spatial attention mechanism and improve the network's attention to the target.

[0084] S5. Multi-scale feature maps are fused through channel attention and upsampled to the original image size to obtain the disease segmentation map.

[0085] In a feasible implementation, in S5, multi-scale feature maps are fused by channel attention and upsampled to the original image size to obtain a disease segmentation map, including:

[0086] The three new feature maps are upsampled to a resolution of 16×16, and the three new feature maps with a resolution of 170×16×16 are concatenated with the original feature map with a resolution of 512×16×16 in the channel dimension;

[0087] Calculate channel attention on the concatenated feature map;

[0088] The feature map is directly upsampled to a segmentation map of size C×512×512, where C is the type to be segmented, and the disease segmentation map is obtained by obtaining the original image size.

[0089] In the embodiment of the present invention, the designed adaptive S-curve is a rough curve function designed based on the color adjustment experience, which is beneficial to the subsequent backbone network to extract features from the feature map by adaptively improving the pixel value of the dark part and reducing the overexposed bright pixels. In view of the environment involved in the present invention, EfficientNetV2 is selected as the backbone network and improved. The improvement of this part is mainly aimed at the information retention of the downsampling part in the backbone network. The present invention uses multi-scale feature fusion and combines the spatial attention mechanism and the channel attention mechanism to improve the extraction of image spatial information by the neural network.

[0090] Figure 6 1 is a block diagram of a tunnel multi-defect multi-scale segmentation system in a low-light environment according to an exemplary embodiment. The system is used for a tunnel multi-defect multi-scale segmentation method. Figure 6 The system includes an image processing module 310, a feature extraction module 320, an image enhancement module 330, a pyramid pooling module 340 and a feature fusion module 350. Among them:

[0091] The image processing module 310 is used to obtain an image to be processed; construct a smoothing and sharpening module to perform noise reduction and sharpening processing on the image to be processed to obtain an input image;

[0092] A feature extraction module 320 is used to perform improvements on EfficientNetV2 and use the improved EfficientNetV2 as a backbone network to perform feature extraction on an input image to obtain a feature map;

[0093] An image enhancement module 330 is used to add an adaptive image enhancement S-curve in the process of stepwise downsampling, and adaptively enhance the dark part of the feature map and reduce the highlight part of the feature map through the adaptive image enhancement S-curve to obtain a feature map with a resolution of 16×16;

[0094] The pyramid pooling module 340 is used to put the feature map with a resolution of 16×16 into the improved pyramid pooling module for multi-scale feature extraction, and perform self-attention mechanism calculation on the feature map of each scale after dimensionality reduction using the Hilbert curve to obtain spatial information in the image;

[0095] The feature fusion module 350 is used to fuse the multi-scale feature maps through channel attention and upsample them to the original image size to obtain a disease segmentation map.

[0096] Optionally, an image processing module is used to obtain an image to be processed;

[0097] The image to be processed is subjected to noise reduction processing by using Gaussian filtering, and then the smoothed image is subjected to edge detection and sharpening by using Laplace kernel;

[0098] The resolution of the smoothed and sharpened image is changed to a fixed size of 512×512 to obtain the input image.

[0099] Optionally, a feature extraction module 320 is used to input an input image of size 3×512×512 into an EfficientNetV2 network;

[0100] The input image is sampled 7 times to generate a feature map with a resolution of 16×16; the sizes of the feature maps generated in each layer are: 24×256×256, 48×128×128, 80×64×64, 160×32×32, 176×32×32, 304×16×16, and 512×16×16.

[0101] Optionally, the image enhancement module 330 is used to add an adaptive image enhancement S-curve in the process of stepwise downsampling, and perform an S-curve illumination enhancement operation before each feature extraction stage; three stages are selected in the seven feature extraction stages to perform adaptive S-curve image illumination enhancement processing, and the three stages are: before the first stage, the enhanced resolution is: 3×512×512; before the second stage, the enhanced resolution is: 24×256×256; before the third stage, the enhanced resolution is: 48×128×128;

[0102] The formula of the curve is as follows (1):

[0103] (1)

[0104] in, For each pixel value; The weight calculated for the neural network, the value range is (-1, 1); Represents the enhanced pixel value.

[0105] Optionally, a pyramid pooling module 340 is used to perform average pooling on feature maps with a resolution of 512×16×16 to generate feature maps with resolutions of 170×8×8, 170×4×4, and 170×2×2;

[0106] The three feature maps are subjected to Hilbert curve dimensionality reduction, and the spatial weight map is generated by calculation of the self-made attention mechanism. The spatial weight map is then multiplied with the corresponding feature map to generate three new feature maps.

[0107] Optionally, the feature fusion module 350 is used to upsample the three new feature maps so that the resolutions of the three new feature maps become 16×16, and to splice the three new feature maps with a resolution of 170×16×16 with the original feature map with a resolution of 512×16×16 in terms of channel dimension;

[0108] Calculate channel attention on the concatenated feature map;

[0109] The feature map is directly upsampled to a segmentation map of size C×512×512, where C is the type to be segmented, and the disease segmentation map is obtained by obtaining the original image size.

[0110] In the embodiment of the present invention, the designed adaptive S-curve is a rough curve function designed based on the color adjustment experience, which is beneficial to the subsequent backbone network to extract features from the feature map by adaptively improving the pixel value of the dark part and reducing the overexposed bright pixels. In view of the environment involved in the present invention, EfficientNetV2 is selected as the backbone network and improved. The improvement of this part is mainly aimed at the information retention of the downsampling part in the backbone network. The present invention uses multi-scale feature fusion and combines the spatial attention mechanism and the channel attention mechanism to improve the extraction of image spatial information by the neural network.

[0111] Figure 7 is a schematic diagram of the structure of a tunnel multi-disease multi-scale segmentation device provided by an embodiment of the present invention, such as Figure 7 As shown, the tunnel multi-disease multi-scale segmentation device may include the above Figure 6 The tunnel multi-disease multi-scale segmentation system shown. Optionally, the tunnel multi-disease multi-scale segmentation device 410 may include a first processor 2001 .

[0112] Optionally, the tunnel multi-disease multi-scale segmentation device 410 may further include a memory 2002 and a transceiver 2003 .

[0113] The first processor 2001, the memory 2002 and the transceiver 2003 may be connected via a communication bus.

[0114] Combine the following Figure 7 The various components of the tunnel multi-disease multi-scale segmentation device 410 are specifically introduced:

[0115] The first processor 2001 is the control center of the tunnel multi-disease multi-scale segmentation device 410, and may be a processor or a general term for multiple processing elements. For example, the first processor 2001 is one or more central processing units (CPUs), or may be application specific integrated circuits (ASICs), or may be configured to implement one or more integrated circuits of the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs).

[0116] Optionally, the first processor 2001 may execute various functions of the tunnel multi-disease multi-scale segmentation device 410 by running or executing a software program stored in the memory 2002 and calling data stored in the memory 2002 .

[0117] In a specific implementation, as an embodiment, the first processor 2001 may include one or more CPUs, such as Figure 7 CPU0 and CPU1 are shown in FIG.

[0118] In a specific implementation, as an embodiment, the tunnel multi-disease multi-scale segmentation device 410 may also include multiple processors, such as Figure 7 The first processor 2001 and the second processor 2004 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0119] The memory 2002 is used to store the software program for executing the solution of the present invention, and is controlled to be executed by the first processor 2001. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0120] Optionally, the memory 2002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2002 may be integrated with the first processor 2001, or may exist independently, and may be accessed through the interface circuit ( Figure 7 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0121] The transceiver 2003 is used to communicate with a network device or a terminal device.

[0122] Optionally, the transceiver 2003 may include a receiver and a transmitter ( Figure 7 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0123] Optionally, the transceiver 2003 may be integrated with the first processor 2001, or may exist independently, and may be connected to the first processor 2001 through the interface circuit ( Figure 7 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0124] It should be noted that Figure 7 The structure of the tunnel multi-disease multi-scale segmentation device 410 shown in the figure does not constitute a limitation on the router. The actual knowledge structure identification device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0125] In addition, the technical effects of the tunnel multi-disease multi-scale segmentation device 410 can refer to the technical effects of the tunnel multi-disease multi-scale segmentation method described in the above method embodiment, and will not be repeated here.

[0126] It should be understood that the first processor 2001 in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0127] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0128] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0129] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0130] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0131] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0133] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0134] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.

[0135] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A multi-scale segmentation method for tunnel multi-diseases in low-light environments, characterized in that: The method comprises: S1, obtaining an image to be processed; constructing a smoothing and sharpening module to perform noise reduction and sharpening processing on the image to be processed to obtain an input image; S2. Improve EfficientNetV2 and use the improved EfficientNetV2 as the backbone network to extract features from the input image to obtain a feature map; S3, adding an adaptive image enhancement S-curve in the process of stepwise downsampling, adaptively enhancing the dark part of the feature map and reducing the highlight part of the feature map through the adaptive image enhancement S-curve, to obtain a feature map with a resolution of 16×16; S4, put the feature map with a resolution of 16×16 into the improved pyramid pooling module for multi-scale feature extraction, and use the Hilbert curve to reduce the dimension of each scale feature map and then calculate the self-attention mechanism to obtain the spatial information in the image; S5. Multi-scale feature maps are fused through channel attention and upsampled to the original image size to obtain the disease segmentation map.

2. The multi-scale segmentation method for tunnels with multiple defects in a low-light environment according to claim 1 is characterized in that: In S1, an image to be processed is obtained; Constructing a smoothing and sharpening module to perform noise reduction and sharpening processing on the image to be processed to obtain an input image, including: Get the image to be processed; The image to be processed is subjected to denoising by using Gaussian filtering, and then the denoised image is subjected to edge detection and sharpening by using Laplace kernel; The resolution of the image after denoising and sharpening is changed to a fixed size of 512×512 to obtain the input image.

3. The multi-scale segmentation method for tunnel multi-diseases in low-light environment according to claim 2 is characterized in that: In S2, improvements are made on EfficientNetV2, and the improved EfficientNetV2 is used as the backbone network to extract features from the input image to obtain a feature map, including: Input an input image of size 3×512×512 into the EfficientNetV2 network; The input image is sampled 7 times to generate a feature map with a resolution of 16×16; the sizes of the feature maps generated in each layer are: 24×256×256, 48×128×128, 80×64×64, 160×32×32, 176×32×32, 304×16×16, and 512×16×16.

4. The multi-scale segmentation method for tunnel multi-diseases in a low-light environment according to claim 3 is characterized in that: The step S3 adds an adaptive image enhancement S-curve in the process of stepwise downsampling, adaptively enhances the dark part of the feature map and reduces the highlight part of the feature map by the adaptive image enhancement S-curve, and obtains a feature map with a resolution of 16×16, including: An adaptive image enhancement S-curve is added during the 7 sampling processes of the input image, and the S-curve illumination enhancement operation is performed before each feature extraction stage; three stages are selected in the seven feature extraction stages for adaptive S-curve image illumination enhancement processing, wherein the three stages are: before the first stage, the enhanced resolution is: 3×512×512; before the second stage, the enhanced resolution is: 24×256×256; before the third stage, the enhanced resolution is: 48×128×128; The formula of the curve is as follows (1): (1) in, For each pixel value; The weight calculated for the neural network, the value range is (-1, 1); Represents the enhanced pixel value.

5. The multi-scale segmentation method for tunnel multi-diseases in low-light environment according to claim 4 is characterized in that: In S4, the feature map with a resolution of 512×16×16 is placed in the improved pyramid pooling module for multi-scale feature extraction, and the feature map of each scale is reduced in dimension using the Hilbert curve and then the self-attention mechanism is calculated to obtain the spatial information in the image, including: The feature map with a resolution of 512×16×16 is averagely pooled in three sizes to generate feature maps with resolutions of 170×8×8, 170×4×4, and 170×2×2. The three feature maps are subjected to Hilbert curve dimensionality reduction, a spatial weight map is generated by calculation of a self-made attention mechanism, and the spatial weight map is multiplied with the corresponding feature map to generate three new feature maps.

6. The multi-scale segmentation method for tunnels with multiple defects in a low-light environment according to claim 5 is characterized in that: In S5, multi-scale feature maps are fused through channel attention and upsampled to the original image size to obtain a disease segmentation map, including: The three new feature maps are upsampled to make the resolution of the three new feature maps become 16×16, and the three new feature maps with a resolution of 170×16×16 are spliced ​​with the original feature map with a resolution of 512×16×16 in channel dimension; Calculate channel attention on the concatenated feature map; The feature map is directly upsampled to a segmentation map of size C×512×512, where C is the type to be segmented, and the disease segmentation map is obtained by obtaining the original image size.

7. A tunnel multi-disease multi-scale segmentation system in a low-light environment, the tunnel multi-disease multi-scale segmentation system is used to implement the tunnel multi-disease multi-scale segmentation method according to any one of claims 1 to 6, characterized in that: The system comprises: The image processing module is used to obtain the image to be processed; construct a smoothing and sharpening module to perform noise reduction and sharpening processing on the image to be processed to obtain an input image; A feature extraction module, used to make improvements on EfficientNetV2 and use the improved EfficientNetV2 as a backbone network to extract features from the input image to obtain a feature map; An image enhancement module, used for adding an adaptive image enhancement S-curve in the process of stepwise downsampling, adaptively enhancing the dark part of the feature map and reducing the highlight part of the feature map through the adaptive image enhancement S-curve, so as to obtain a feature map with a resolution of 16×16; The pyramid pooling module is used to put the feature map with a resolution of 16×16 into the improved pyramid pooling module for multi-scale feature extraction. The feature map of each scale is reduced in dimension using the Hilbert curve and then the self-attention mechanism is calculated to obtain the spatial information in the image. The feature fusion module is used to fuse multi-scale feature maps through channel attention and upsample them to the original image size to obtain the disease segmentation map.

8. The tunnel multi-disease multi-scale segmentation system in low-light environment according to claim 7 is characterized in that: The image processing module is used to obtain the image to be processed; The image to be processed is subjected to noise reduction processing by using Gaussian filtering, and then the smoothed image is subjected to edge detection and sharpening by using Laplace kernel; The resolution of the smoothed and sharpened image is changed to a fixed size of 512×512 to obtain the input image.

9. A tunnel multi-disease multi-scale segmentation device under low illumination environment, characterized in that: The tunnel multi-disease multi-scale segmentation device under low illumination environment includes: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Low-illumination image brightness enhancement and super-resolution method based on double-channel codec

    CN112614061A

  • Systems and Methods for Selective Enhancement of Objects in Images

    US20210150681A1

  • High-dynamic reconstruction method and apparatus for low-illumination remote sensing image

    WO2023201876A1