Traffic scene image defogging method based on multi-stage receptive field enhancement

By introducing the residual hybrid atrous convolution module and feature fusion module into AOD-Net, building a staged model architecture, and using a hybrid loss function, the problems of complex structure and small receptive field of the image dehazing algorithm in the existing technology are solved. It achieves high-quality, real-time image defogging effect and is suitable for the field of autonomous driving.

CN118840286APending Publication Date: 2024-10-25HUAIYIN INSTITUTE OF TECHNOLOGY
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410974756.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing image defogging algorithms have problems in application such as complex structure, large amount of calculation, and complex parameters, making it difficult to meet real-time requirements. Moreover, the receptive field of the lightweight two-stage model is too small, resulting in the loss of detailed information and dark images. question.

Method used

Design a traffic scene image dehazing method based on multi-stage receptive field enhancement. By introducing the residual hybrid atrous convolution module and the feature fusion and enhancement module into AOD-Net, we build a staged model architecture of different scales and use a hybrid loss function. Conduct training to increase the feature receptive field and retain detailed information.

Benefits of technology

It achieves improved feature extraction capabilities without increasing the amount of calculation, retains more texture and detail information, improves the quality and real-time performance of image defogging, and meets the real-time needs of the autonomous driving field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118840286A_ABST
    Figure CN118840286A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of image processing, and discloses a traffic scene image defogging method based on multi-stage receptive field enhancement, which comprises the following steps: designing a residual mixed cavity convolution module to enlarge a feature receptive field so as to improve the feature information extraction capability of a model; a feature enhancement attention module is introduced, and different weights are given to different levels of features and fused; three stage-type model structures with different scales are built, and detail information of features is reserved; and training the model by using a loss function of MS-SSIM and L1 weighted fusion to obtain a clear defogged image which is more in line with subjective visual perception of human eyes. Aiming at the problems of fuzzy details and low contrast caused by the influence of fog on the traffic scene image, the method achieves a good defogging effect on the traffic scene image under the foggy weather condition, the recovered image is clearer and more natural, technical and data support is provided for application of a vehicle auxiliary driving system in a complex weather environment, and the method is suitable for popularization and application. And the development of the vehicle automatic driving field is further promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to a traffic scene defogging method based on multi-stage receptive field enhancement. Background Art

[0002] Fog in a broad sense includes all physical phenomena that limit visual effects, such as fog, haze, dust, and smoke. Under the influence of fog, light passing through the surface of an object is absorbed and reflected by particles in the atmosphere, resulting in poor image quality, blurred details, and dim colors, which affects the effective information contained in the image and brings difficulties to subsequent high-level tasks such as target detection and target tracking. At present, vehicle autonomous driving is developing rapidly, and its core development lies in ensuring vehicle driving safety. In the actual driving process, due to the insufficient clarity of the acquired image, it will have an adverse effect on the decision-making and operation of the vehicle's assisted driving system, and in serious cases, it will cause traffic accidents. Therefore, how to effectively restore foggy images and extract more information has become a key issue in the field of autonomous driving safety.

[0003] In recent years, image defogging algorithms have been continuously developed and can be roughly divided into three categories: image enhancement defogging algorithms, image restoration defogging algorithms, and defogging algorithms based on deep learning. Image enhancement defogging algorithms highlight some details of the image by improving the contrast of foggy images, thereby improving the visual effect of the image. For example, the histogram equalization algorithm is based on the principle that more information is highlighted when the image has a uniformly distributed grayscale level. The image histogram is evenly processed to enhance the image contrast and amplify the image details. The image restoration defogging algorithm is mainly based on the atmospheric degradation model, and the corresponding defogging processing is performed to obtain a clear image. For example, the dark channel prior algorithm DCP finds the prior relationship between the fog-free image and certain parameters in the atmospheric scattering model by performing feature analysis on a large number of fog-free images. Defogging algorithms based on deep learning are usually divided into one-stage and two-stage algorithms. The former uses an end-to-end convolutional neural network to directly restore the input foggy image to obtain a defogging image. For example, the defogging algorithm based on the generative adversarial network GAN uses the generator-discriminator method of the unsupervised model for model training, which can generate clear samples. The latter estimates the parameters in the atmospheric degradation model through convolutional neural networks. For example, AOD-Net transforms the atmospheric scattering model formula, simplifies the defogging model, and greatly improves the defogging processing speed. Its network structure is simple, consisting of only five layers of convolution, and can be well embedded in other advanced computer vision tasks.

[0004] Existing image dehazing algorithms have the following disadvantages in specific application scenarios: (1) Existing one-stage dehazing algorithms have complex structures, large model calculations and complex parameters, making it difficult to meet real-time application requirements. (2) The lightweight two-stage model represented by AOD-Net has a too simple model structure, too small receptive field, and easy loss of detail information in the forward propagation of the neural network, which affects the model's learning effect on image features, resulting in target detail loss, blurring and distortion, and dark images in the processed images. Summary of the invention

[0005] In order to solve the prior art problems raised in the above background technology, the present invention provides a traffic scene image defogging method based on multi-stage receptive field enhancement.

[0006] Technical solution: The present invention provides a traffic scene image defogging method based on multi-stage receptive field enhancement, comprising the following steps:

[0007] S1: Data acquisition and preprocessing;

[0008] S2: Modify the K value estimation module in AOD-Net: design the residual hybrid hole convolution module RHD to increase the feature receptive field and improve the feature extraction ability of the model; introduce the feature fusion and enhancement module to weightedly fuse features at different levels and enhance the context information of the features;

[0009] S3: Build a staged model architecture with three different scales to integrate feature information at different scales;

[0010] S4: Train the model using the hybrid loss function.

[0011] The data acquisition and preprocessing described in step S1 include:

[0012] S1.1: Randomly select 50,000 pairs of clear and foggy images from the RESIDE dataset, and divide them into training set and validation set in a ratio of 9:1; use the RESIDE sub-dataset OTS as the test set;

[0013] S1.2: Crop the image to 480×640 pixels.

[0014] The residual hybrid atrous convolution module RHD described in step S2 is composed of atrous convolution groups with different expansion rates and a residual connection. This module replaces the standard convolution layers Conv2, Conv3, and Conv4 in the original AOD-Net.

[0015] Furthermore, the dilated convolution group is composed of three dilated convolutions with different dilation rates of r = [1, 3, 5], and one RHD contains two identical and serially connected dilated convolution groups. This mixed convolution group can effectively improve the receptive field of the model. The residual connection refers to the direct addition of the previous input feature to the feature after the mixed convolution group to compensate for the information loss in the propagation.

[0016] The feature enhancement attention module FEA described in step S2 performs linear weighted fusion of features from different levels to enhance feature information.

[0017] Furthermore, the feature enhanced attention module FEA first uses the activation function Sigmoid to process the features of different levels of the input to obtain the corresponding weight parameters F w =σ(Conv 1×1 (F)), and then the input features are weighted and fused with the corresponding feature weights by element-by-element multiplication to obtain the final result: Among them, F represents the input feature, Conv 1×1 represents a convolution with a kernel size of 1×1, σ represents the activation function Sigmoid, Represents element-wise multiplication;

[0018] The staged model architecture described in step S4 is a gradual end-to-end model structure formed by sequentially connecting single-scale algorithm models of three different spatial scales.

[0019] Furthermore, the three different spatial scales are the scales of the original 480×640 pixel image after being downsampled by one and two times, i.e., 120×160 and 30×40. The model alleviates the problem of image detail and texture information loss by sequentially fusing image features of three different scales.

[0020] The mixed loss function in step S5 is as follows:

[0021]

[0022] Among them, L MS-SSIM represents the MS-SSIM loss function; L l1 represents the L1 loss function; α represents the weight, and its value is 0.01. express σG Gaussian coefficients at the M scale;

[0023] The MS-SSIM loss function is defined as follows:

[0024]

[0025] in, represents the central pixel of pixel P; MS-SSIM represents the multi-scale structural similarity calculation of pixels.

[0026] The MS-SSIM function is defined as follows:

[0027]

[0028] Among them, L(x,y), C(x,y) and S(x,y) represent the brightness contrast factor, contrast factor and structure contrast factor of the image respectively; α M , β i and γ i Parameters representing the relative importance of regulating the three factors.

[0029] The L1 loss function is defined as follows:

[0030]

[0031] Among them, x(p) represents the predicted value; y(p) represents the true value; N represents the number of pixels in the area; and p represents a pixel.

[0032] Compared with the prior art, the present invention can bring at least one of the following beneficial effects:

[0033] (1) In view of the problems that the existing one-stage defogging algorithm has a complex structure, large model calculation amount and complex parameters, and is difficult to meet the real-time application requirements, the present invention innovates on the basis of the lightweight two-stage defogging algorithm AOD-Net to meet the real-time requirements of traffic scenes and provide technical support for the development of the autonomous driving field.

[0034] (2) To address the problem of the AOD-Net model having a single structure and a small receptive field, the present invention designs a residual hybrid convolution module RHD, which significantly increases the size of the feature receptive field without increasing the amount of calculation and improves the information extraction capability.

[0035] (3) To address the problem that the AOD-Net model easily causes loss of texture and detail information in forward propagation, thereby affecting the model's learning effect on image features, the present invention designs a feature enhanced attention module FEA and a staged model architecture to retain more texture and detail information while improving the model's dehazing capability.

[0036] (4) To address the problems of blurring, distortion, darkening, etc. of the restored image, the present invention designs a hybrid loss function to make the restored image more natural and more in line with the visual perception of the human eye, thereby further improving the quality of image restoration. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 The MRE-AOD algorithm flow chart provided for the example of the present invention;

[0038] Figure 2 A schematic diagram of a residual hybrid convolution module RHD provided by an example of the present invention;

[0039] Figure 3 Schematic diagram of the feature enhanced attention module FEA provided for an example of the present invention. DETAILED DESCRIPTION

[0040] In order to better understand the present invention, a traffic scene image defogging method based on multi-stage receptive field enhancement involved in the present invention is described in more detail below in conjunction with the accompanying drawings in the examples of the present invention.

[0041] The specific steps of a traffic scene image defogging method based on multi-stage receptive field enhancement involved in this example are as follows:

[0042] Step 1: Data acquisition and preprocessing of the dataset.

[0043] In this example, the datasets selected are the sub-datasets OTS and SOT (outdoor) of the public dataset RESIDE for model training and testing.

[0044] Among them, OTS contains 2061 clear outdoor images and 35 synthetic fog images corresponding to each clear image, a total of 72135 synthetic fog images. It uses the atmospheric scattering model to synthesize a blurred image for each clear image, and randomly selects a value between [0.7, 1.0] as the atmospheric light value A, and randomly selects a value between [0.6, 1.8] as the atmospheric scattering coefficient β; SOT contains 500 synthetic fog outdoor images.

[0045] This example randomly selects 50,000 images from OTS and divides them into training set and validation set in a ratio of 9:1; SOT is used as the test set to verify the generalization ability of the model.

[0046] Step 2: Construct a traffic scene image dehazing model MRE-AOD based on multi-stage receptive field enhancement. The specific process is as follows: Figure 1 shown.

[0047] (1) Defogging principle of the model

[0048] MRE-AOD restores foggy images mainly through two parts: K value estimation module and clear image restoration module.

[0049] The K value is converted from the atmospheric scattering model, which can be expressed as:

[0050] I(x)=J(x)t(x)+A(1-t(x)) (1)

[0051] Among them, I(x) represents the foggy image; J(x) represents the clear image to be restored; A represents the atmospheric light value; t(x) represents the transmission matrix, which is defined as:

[0052] t(x)=e -βd(x) (2)

[0053] Among them, β is the scattering coefficient of atmospheric light; d(x) is the distance between the object and the camera.

[0054] Formula (1) can be rewritten as:

[0055]

[0056] By estimating the values ​​of A and t(x), J(x) can be calculated to obtain a clear image. However, the separate estimation of the two values ​​will accumulate or even amplify the errors. Therefore, formula (3) can be converted to:

[0057] J(x)=K(x)I(x)-K(x)+b (4)

[0058] Where b is a constant, and the default value is b = 1; K(x) is the union of A and t(x), and is defined as:

[0059]

[0060] The MRE-AOD algorithm inputs the foggy image I(x) into the algorithm model, extracts the feature information of the image and obtains the K value through the K value estimation module, and obtains the restored clear image through formula (4) in the clear image restoration module.

[0061] (2) Improve K value estimation module

[0062] (2.1) Design the residual mixed hole convolution module RHD to increase the feature receptive field and improve the feature extraction ability of the model.

[0063] The specific structure of RHD is as follows Figure 2 As shown in the figure. RHD is composed of two groups of dilated convolutions with dilation rate r = [1, 3, 5] in series, and a residual connection is used to add the previous input feature map and the features after the mixed convolution group to compensate for the information loss in the propagation. This example uses RHD1, RHD2, and RHD3 to replace the standard convolution layers Conv2, Conv3, and Conv4 in the benchmark model AOD-Net.

[0064] Compared with traditional convolution, dilated convolution can expand the receptive field of feature maps without increasing the amount of calculation. Since the direct use of dilated convolution will produce a checkerboard effect and cause local information loss, the RHD in this example uses three dilated convolutions with different dilation rates whose common divisor is not greater than 1 to form a convolution combination. Its advantage is that it expands the receptive field to obtain global information while reducing the impact of the checkerboard effect.

[0065] (2.2) Design the feature fusion and enhancement module FEA to weightedly fuse features at different levels and enhance the contextual information of features.

[0066] The specific structure of FEA is as follows Figure 3 As shown. FEA is divided into two steps. The first step is to use 1×1 convolution to unify and fuse the dimensions of the input feature maps of four different receptive fields, and use the activation function Sigmoid to obtain the weight parameters of features at different levels. The calculation formula is:

[0067] F w =σ(Conv 1×1 (F)) (6)

[0068] Among them, F represents the input feature; Conv 1×1 represents the convolution with a kernel size of 1×1; σ represents the activation function Sigmoid.

[0069] The second step is to obtain the final result by weighted fusion of the input features and the corresponding feature weights through element-by-element multiplication. The calculation formula is:

[0070]

[0071] in, Represents element-wise multiplication.

[0072] (2.3) Building a staged model architecture

[0073] like Figure 1 As shown in the figure, in this example, the original blurred image of 480×640 pixels is downsampled by one and two times, and the resulting images are 120×160 and 30×40 pixels respectively. The model first inputs the image of 30×40 pixels into the K value estimation module and the clear image generation module to obtain a clear image, and then performs channel fusion on the processed clear image and the input image of 120×160 pixels. Similarly, the problem of image detail and texture information loss is alleviated by sequentially fusing the image features of three different scales.

[0074] Step 3: Use a mixed loss function.

[0075] The loss function calculates the difference between the forward calculation result of each iteration of the neural network and the true value, thereby guiding the next step of training in the right direction. The loss function used by the benchmark model AOD-Net is the L2 loss function, whose indicators are poorly correlated with the image quality perceived by humans, making the restored image effect inconsistent with the subjective perception of the human eye. MS-SSIM considers four aspects: resolution, brightness, contrast, and structure, so it can retain high-frequency information (edges and details of the image), making the image more consistent with human visual perception. However, since MS-SSIM is prone to changes in brightness and color deviations, and the L1 loss function can better keep the brightness and color unchanged, this example combines the two to complement each other. The specific loss function formula for the mixed MS-SSIM and L1 is as follows:

[0076]

[0077] Among them, L MS-SSIM represents the MS-SSIM loss function; L l1 represents the L1 loss function; α represents the weights of the two loss functions. In this example, the convergence effect is better when α=0.01; Represents σ G Gaussian coefficients at the M scale;

[0078] The MS-SSIM function is defined as follows:

[0079]

[0080] represents the central pixel of pixel P; MS-SSIM represents the multi-scale structural similarity calculation of pixels.

[0081] The MS-SSIM function is defined as follows:

[0082]

[0083] Among them, L(x,y), C(x,y) and S(x,y) represent the brightness contrast factor, contrast factor and structure contrast factor of the image respectively; α M , β i and γ i Parameters representing the relative importance of regulating the three factors.

[0084]

[0085] Among them, x(p) represents the predicted value; y(p) represents the true value; N represents the number of pixels in the area; and p represents the pixel index.

[0086] Step 4: Set training parameters, perform model training, and evaluate and compare the results.

[0087] Set the input image size to 480×640, the initial learning rate lr=0.0001, the weight decay coefficient weight_decay=0.0001, the number of training iterations epoch=100, the number of batch training data set samples batchsize=8, and select Adam as the training optimizer.

[0088] During the entire model training process, MS-SSIM and L1 hybrid loss functions are used to calculate the gap between the forward calculation results of each iteration of the neural network and the true value, so as to guide the next step of training in the right direction.

[0089] The model training process is as follows:

[0090] First, the images with a size of 30×40 after 4 times downsampling are input into the improved K value estimation module in MRE-AOD in batches according to the set batchsize to obtain the preliminary processed image, namely the K(x) value.

[0091] Secondly, the image is sent to the clear image restoration module to obtain the processed clear image. The clear image is upsampled by 2 times and the blurred image is downsampled by 2 times the original image size, and then sent to the second stage K value estimation module and clear image processing module;

[0092] Finally, the obtained clear image of 120×160 size is merged with the blurred image of the original size and sent to the K value calculation module and the clear image processing module of the third stage to obtain the final restored clear image.

[0093] The evaluation indicators are peak signal-to-noise ratio (PSNR) and structural similarity (SSIM), which are mainly used to compare the similarity or difference between an image and its reference image. The unit of PSNR is dB. The higher the value, the smaller the image distortion. The value of SSIM is between [0,1]. The larger the value, the smaller the image distortion. The specific formulas are shown in formulas (12) to (14):

[0094]

[0095] Where MSE represents the mean square error between the current image X and the reference image Y; H, W represent the height and width of the image; MAX I represents the maximum pixel value in the image; μ represents the mean; σ represents the variance; σ xy represents the covariance of x and y; C1 and C2 represent two constants to avoid division by zero.

[0096] The model training results and comparative experimental results are shown in Table 1.

[0097]

[0098] As can be seen from the table, the PSNR and SSIM indicators of the improved MRE-AOD model of the present invention are significantly improved compared with various classic models, and the inference speed is not much reduced compared with the benchmark model, and the degree of reduction is negligible, indicating that the defogging effect of the present invention is better and the processing time is also short, which can meet the real-time requirements.

[0099] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. After reading the content of the present invention, those skilled in the art may make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims 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 traffic scene image defogging method based on multi-stage receptive field enhancement, characterized in that: The following steps are included: S1: Data acquisition and preprocessing; S2: Improve the K value estimation module in AOD-Net: Use the residual hybrid hole convolution module RHD to replace Conv2, Conv3, and Conv4 in AOD-Net, and use the feature enhancement attention module FEA to replace concat3 in AOD-Net; S3: Build a staged model architecture to fuse feature information of different scales. The original 480×640 pixel image is downsampled twice to obtain 120×160 and 30×40 pixel images. The 30×40 pixel image is processed through the improved AOD-Net to obtain a 30×40 pixel clear image. The 30×40 pixel clear image is upsampled twice to obtain a 120×160 pixel clear image A, which is fused with the 120×160 pixel image through the improved AOD-Net to obtain a 120×160 pixel clear image B. The 120×160 pixel clear image B is upsampled twice to obtain a 480×640 pixel image A, which is fused with the 480×640 pixel image through the improved AOD-Net to obtain a dehazed 480×640 pixel image. S4: Train the model using the hybrid loss function.

2. According to claim 1, a traffic scene image defogging method based on multi-stage receptive field enhancement is characterized in that: The data acquisition and preprocessing described in S1 include: (1) We randomly selected 50,000 pairs of clear and foggy images from the RESIDE dataset and divided them into training and test sets in a ratio of 9:

1. We used the RESIDE sub-dataset OTS as the test set. (2) Crop the image to 480×640 pixels.

3. The traffic scene image defogging method based on multi-stage receptive field enhancement according to claim 1 is characterized in that: The residual hybrid dilated convolution module RHD is composed of dilated convolution groups with different dilation rates and a residual connection. The dilated convolution group consists of three dilated convolutions with different dilation rates of r = [1, 3, 5], and an RHD contains two identical and serially connected dilated convolution groups. The residual connection is composed of the previous input feature directly added to the feature after the mixed convolution group to compensate for the information loss in the propagation.

4. The traffic scene image defogging method based on multi-stage receptive field enhancement according to claim 1 is characterized in that: The feature enhanced attention module FEA first uses the activation function Sigmoid to process the input features at different levels to obtain the corresponding weight parameters F w =σ(Conv 1×1 (F)), and then the input features are weighted and fused with the corresponding feature weights by element-by-element multiplication to obtain the final result: Among them, F represents the input feature, Conv 1×1 represents a convolution with a kernel size of 1×1, σ represents the activation function Sigmoid, Represents element-wise multiplication.

5. The method for defogging traffic scene images based on multi-stage receptive field enhancement according to claim 1, characterized in that: The mixed loss function is as follows: Among them, L MS-SSIM represents the MS-SSIM loss function; L l1 represents the L1 loss function; α represents the weight, and its value is 0.

01. express σG Gaussian coefficients at the M scale; The MS-SSIM loss function is defined as follows: in, represents the central pixel of pixel P; MS-SSIM represents the multi-scale structural similarity calculation of pixels. The MS-SSIM function is defined as follows: Among them, L(x,y), C(x,y) and S(x,y) represent the brightness contrast factor, contrast factor and structure contrast factor of the image respectively; α M , β i and γ i Parameters representing the relative importance of regulating the three factors. The L1 loss function is defined as follows: Among them, x(p) represents the predicted value; y(p) represents the true value; N represents the number of pixels in the area; and p represents a pixel.

Citation Information

Cited By

  • Detection image uniform motion blur restoration method and device, equipment and storage medium

    CN119205571A

  • Dense visual scene reconstruction method and system

    CN119478277A

  • Deep learning defogging method based on texture brightness feature enhancement

    CN119831895A