Video dehazing method based on depth information guidance

By introducing a depth information guidance mechanism into the video dehazing network, inserting the network frame by frame and using the attention mechanism and uncertainty to optimize the depth map estimation, the problems of insufficient information extraction and inaccurate fog concentration processing in the existing technology are solved, significantly. Improved video dehazing effect.

CN114255178BActive Publication Date: 2024-09-20TIANJIN UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111470522.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-09-20
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

Existing video dehazing networks have deficiencies in information extraction and fog concentration processing, resulting in inaccurate dehazing results.

Method used

A video dehazing method based on depth information guidance is adopted. By combining the dehazing sub-module and the depth prediction sub-module, the network is inserted frame by frame to extract multi-frame information, and the attention mechanism and uncertainty are used to optimize the depth map estimation and perform depth information Guidance to improve defogging effect.

Benefits of technology

It achieves full extraction of reference frame information and accurate distinction of fog concentration, improving the accuracy and performance of dehazing results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114255178B
    Figure CN114255178B
Patent Text Reader

Abstract

The present invention relates to a video defogging method based on a deep neural network, comprising the following steps: inserting the current frame and reference frame information into a defogging sub-network frame by frame to fully extract multi-frame information; estimating the depth map of the current frame through a depth prediction sub-network; adopting a non-local structure to fuse the features extracted in the first step and the depth map estimated in the second step, capturing the long-distance pixel correlation of three levels, namely, the depth map itself, the input feature itself, and the depth map and the input feature, so as to achieve the guidance of the depth map on video defogging and obtain the final defogging result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the research field of computer vision and image processing, and is a video defogging algorithm based on a deep neural network. Background Art

[0002] (1) Atmospheric scattering model: The atmospheric scattering model (see reference [1]) is an important reference model in the field of dehazing research. Its formula is as follows:

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

[0004] Among them, I is a foggy image, J is a clean image without fog, A is the atmospheric scattered light, x represents different pixels in the image, and t is the transmittance. Further, t can be expressed as follows:

[0005] t(x)=e -βd(x) ,

[0006] Where β and d represent the atmospheric scattering parameters and the scene depth of the image, respectively. According to the atmospheric scattering model, in the defogging research, given a foggy image I, in order to obtain a clean image J, there are mainly two methods: (1) Solve A and t respectively, and predict J according to the atmospheric scattering model. (2) Directly construct the mapping relationship between I and J through traditional non-deep learning methods or deep neural networks, and obtain J from I. This paper adopts the second method, which constructs the corresponding relationship between the input foggy video and the output defogging result through deep learning methods to complete video defogging.

[0007] (2) Video dehazing network based on deep learning: Research on video dehazing based on deep learning has made some progress. Li et al. (see reference [2]) first applied deep neural networks to the field of video dehazing. This work used the image dehazing algorithm AOD-NET as the basic network, explored different fusion methods for continuous video frames, and jointly trained the dehazing network and the video object detection network. Ren et al. (see reference [3]) combined semantic segmentation with video dehazing, designed a deep neural network for video dehazing, estimated the transmission rate, and obtained good dehazing results.

[0008] However, there are still some problems in these works. In the study of video defogging, when processing the current frame, the continuous n frames before the current frame (n is usually 2 or 3) and the continuous n frames after the current frame are taken as common input, and the information of the previous and next n frames is used as reference to assist the defogging of the current frame to obtain the defogging result of the current frame. However, the existing work directly splices the features of multiple frames at the beginning of the network, or extracts features from each frame separately and then splices the features. The single feature splicing operation fuses the information of different frames at the same time, which does not have strong learning ability and cannot make full use of the reference information between different frames. In addition, according to the atmospheric scattering model of fog, it can be seen that the concentration of fog in the same image is not the same, and it is closely related to the scene depth, that is, the distance from the scene to the lens: the fog concentration is large at a long distance, and the fog concentration is small at a close distance. It can be seen that the depth map of the image is closely related to the defogging operation. In previous video defogging studies, the important condition of scene depth was ignored, and the fog at different positions in the same frame was subjected to the same defogging process, resulting in inaccurate defogging results.

[0009] References

[0010] [1]Li B,Peng X,Wang Z,et al.An all-in-one network for dehazing and beyond[J].arXiv preprint arXiv:1707.06543,2017.

[0011] [2]Li B,Peng X,Wang Z,et al.End-to-end united video dehazing and detection[C].In Proceedings of the AAAI Conference on ArtificialIntelligence,2018.

[0012] [3]Ren W, Zhang J, Xu

[0013] [4]HarisM,ShakhnarovichG,UkitaN.Recurrent back-projection network for video super-resolution[C].In Proceedings of the IEEE / CVF Conference onComputer Vision and Pattern Recognition,2019:3897–3906. Summary of the invention

[0014] In order to solve the technical problems of insufficient extraction of reference frame information and failure to consider fog concentration in existing video defogging networks, the present invention proposes a video defogging method guided by depth information. For the defogging of the current frame, the first three frames and the last three frames are taken as reference frames and input into the network for processing. The network includes two branches: a defogging submodule and a depth prediction submodule. In the defogging submodule, multiple frames of images are inserted into the network in stages to fully extract information from adjacent frames. In the depth prediction submodule, multiple frames of images are also inserted into the network in stages, and the attention mechanism and uncertainty are used to optimize the depth map estimation. Finally, the depth map estimation result and the features extracted by the defogging submodule are fused through a non-local structure to achieve the guidance of video defogging by depth information. Technical solution of the present invention:

[0015] A video dehazing method based on a deep neural network comprises the following steps:

[0016] In the first step, the current frame and the reference frame information are inserted into the defogging network frame by frame to fully extract the multi-frame information; the specific steps are as follows:

[0017] (1) The frame to be defogged is taken as the current frame, and the three frames before and after the current frame are taken as reference frames. In different stages of the defogging sub-network, one frame of information from the current frame or the reference frame is inserted each time, and each frame is processed separately by the stage defogging module SDB;

[0018] (2) Feature splicing is performed on the output results of multiple SDB modules to obtain the output result of the defogging module;

[0019] The second step is to estimate the depth map of the current frame through the depth prediction sub-network; the specific steps are as follows:

[0020] (1) Multiple frames including the current frame and the reference frame are inserted into different stages of the depth prediction subnetwork in stages. Each stage of the network consists of feature concatenation and convolution. The features output from each stage are connected to a U-Net structure to perform depth estimation of the current frame, and 7 depth estimation results are obtained.

[0021] (2) Perform feature concatenation + convolution + softmax function operation on the features output from each stage to obtain a feature with 7 channels. The feature is split to obtain 7 weight coefficients. The 7 depth estimation results obtained in the previous step are weighted and summed according to the weight coefficients to obtain the result Depth after the fusion of the 7 depth estimation images.

[0022] (3) Calculate the variance of the 7 depth estimation results as the uncertainty of the 7 depth estimation results, and obtain the final depth estimation result D according to the following formula: t :

[0023] D t =(1-uncert)*Depth

[0024] In the third step, the non-local structure is used to fuse the features extracted in the first step and the depth map estimated in the second step, capturing the long-distance pixel correlations at three levels: the depth map itself, the input features themselves, and the depth map and the input features, so as to achieve the guidance of the depth map on video dehazing and obtain the final dehazing result.

[0025] Furthermore, its SDB module structure is as follows:

[0026] For the first SDB module, its input is only the features after convolution of the current frame, and its network structure consists of an RFDB module and a residual structure; for non-first SDB modules, there are two inputs, namely the output of the previous SDB module and the features after convolution of the reference frame, and its network structure consists of feature concatenation, an RFDB module and a residual structure; for the RFDB module, it is composed of residual structures of different levels. In this module, the input is respectively subjected to 1*1 convolution and SRB module, and the output results of the SRB module are again input into 1*1 convolution and SRB module, and this is repeated to obtain features of four different network depths. Afterwards, the features of the four different network depths are concatenated and then subjected to convolution operation to obtain the final output result, wherein the SRB module is composed of a residual structure containing a convolution and a Relu activation function.

[0027] Compared with the prior art, the present invention has the following advantages:

[0028] 1) By processing the reference frames frame by frame, the reference frame information is fully extracted;

[0029] 2) By estimating the depth map and using the depth-guided non-local structure, the depth map is applied to the video defogging research to distinguish and process the fog concentration;

[0030] 3) In the estimation of the depth map, a method of inserting reference frames in stages is used, and the attention mechanism and uncertainty mechanism are used to optimize the depth estimation results.

[0031] 4) Compared with the existing video and image defogging algorithms, the method proposed in this invention has superior performance. Figure 6 The experimental comparison results of the method of the present invention and some other methods on the video dehazing dataset are shown in Figure 2. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a schematic diagram of the network structure of video defogging in the present invention.

[0033] Figure 2 It is a schematic diagram of the SDB module in the network structure proposed by the present invention.

[0034] Figure 3 It is a schematic diagram of the RFDB module used in the present invention.

[0035] Figure 4 It is a schematic diagram of the depth prediction model structure proposed in the present invention.

[0036] Figure 5 It is a non-local structure used in the present invention.

[0037] Figure 6 This is a comparison of experimental results between the present invention and the comparative method on a video dehazing dataset, and evaluation is performed using two evaluation indicators, PSNR and SSIM. DETAILED DESCRIPTION

[0038] Combined with Figure 1 , attached Figure 2 , attached Figure 3 , and attached Figure 4 , attached Figure 5 The technical solution of the present invention is further described.

[0039] like Figure 1 As shown, it is a schematic diagram of the structure of the video defogging network proposed in the present invention. The network includes a defogging submodule, a depth prediction submodule and a depth-guided non-local structure. The network implements video defogging in the following steps:

[0040] S1, in the dehazing module, for the tth frame I in the video t , this paper takes the first three frames I t-3 ,I t-2 ,I t-1 And the next three frames I t+1 ,I t+2 ,I t+3As a reference, it guides the defogging of the current frame. Inspired by the RBPN method (see reference [4]), the present invention uses a method of inserting reference frames in stages. Specifically, at the beginning of the network, we insert I t Input, perform convolution operation, and send it to the first SDB (Stage Dehaze Block) module. In subsequent operations, I t-3 ,I t-2 ,…,I t+3 Respectively with I t The convolution + feature concatenation is combined and inserted into each SDB module at different stages, and the output of each SDB module is used as the input of the next SDB module. Next, the feature concatenation + convolution operation is performed on the output of the 7 SDBs to obtain the feature fusion at different stages in the dehazing network, which is recorded as Fea.

[0041] like Figure 2 The SDB module in the network structure diagram is shown in the figure. The two inputs of the SDB module are the output of the previous SDB module and I t with I t+i (I = -3, -2, ..., 3) after the concatenation, the two inputs are concatenated using Figure 3 The RFDB module shown further extracts features. In addition, inside each SDB module, there is a residual structure that adds features to the module input and output. For the first SDB module, there is only one input, which is the result of the current frame image after a layer of convolution.

[0042] like Figure 3 As shown in the figure, it is the network structure diagram of the RFDB module. The RFDB module consists of residual structures at different levels. In this module, the input is first subjected to 1*1 convolution and the SRB (Shallow Residual Block) module shown in the figure. The feature after 1*1 convolution is recorded as F1. The SRB module contains a residual structure and a Relu activation function. The output result of this SRB module is input into the 1*1 convolution and SRB module again, and the feature after 1*1 convolution is recorded as F2. Next, the output result of this SRB module is input into the 1*1 convolution and SRB module again, and the feature after 1*1 convolution is recorded as F3. Finally, the output of this SRB module is subjected to 3*3 convolution, and the result is recorded as F4. Finally, the F1, F2, F3, and F4 features are concatenated and then convolved to obtain the output result of the RFDB module.

[0043] S2, such as Figure 4As shown in FIG. 1 , the video depth prediction network structure proposed in the present invention is shown. Similar to the defogging network, the depth prediction network uses a stage-by-stage frame-by-frame insertion strategy for the reference frame, and predicts the depth map of the current frame at each stage. Figure 4 As shown in the figure, the network is divided into 7 stages, and the modules in each stage are composed of feature concatenation + convolution layer. The output of each module is passed through the U-Net structure, and 7 depth map estimation results are predicted at different stages of the network, which are recorded as Depth1, Depth2, ..., Depth7.

[0044] Next, the present invention uses the attention mechanism to fuse the 7 depth map results. For the features output from multiple stages, splicing + convolution + Softmax operations are used to obtain the feature Fea with 7 channels. Then Fea is split to obtain 7 features with 1 channel, which are recorded as W1, W2, ... W7. Then W1, W2, ... W7 are used as the weights of Depth1, Depth2, ... Depth7, respectively, and weighted summation is performed to obtain the result after the fusion of 7 features. The process can be expressed by the following formula:

[0045]

[0046] Where * represents vector dot product.

[0047] The depth maps predicted at different stages can be fused through the attention mechanism. However, for the seven different prediction results of Depth1, Depth2, ...Depth7, if the depth value difference of a certain pixel point in the 7 results is large, it means that the depth value prediction of this point at different stages of the network has a large uncertainty. It is difficult to get the best estimation result only by different weight allocations. For this reason, the present invention takes into account the uncertainty of the 7 depth map prediction results at each pixel point. The present invention calculates the uncertainty of Depth1, Depth2, ...Depth7 through the variance formula:

[0048]

[0049] Among them, Uncert represents the uncertainty map of the 7 depth estimation values, and mean is the pixel average of Depth1, Depth2, ... Depth7. According to the mathematical relationship, the pixel value of each point in Uncert is in the range of (0,1). For each point in Uncert, the larger the value, the greater the uncertainty of the estimation results of the depth value corresponding to the point at different stages of the network, resulting in a higher degree of unreliability of the depth estimation result Depth at this point, thus affecting the subsequent dehazing process. To this end, we use the following formula to eliminate the impact of the uncertainty of depth prediction at different stages:

[0050] D t =(1-Uncert)*Depth.

[0051] From the operation shown in this formula, it can be seen that the greater the uncertainty of a point in the depth map estimation result, D t The smaller the value of this point is, the less likely it is that the uncertainty of the depth estimation results at different stages of the depth prediction network will be affected. So far, the depth prediction result D t .

[0052] S3, then use the depth-guided non-local module DGNLB to perform the Fea obtained in S1 and the D obtained in S2 t To merge. Figure 5 The following is a schematic diagram of the network structure of the DGNLB module. t The feature Fea obtained by the dehazing subnetwork is used as input to obtain the optimized feature Z. First, three convolution operations are performed on the feature Fea at the same time to obtain the features θ, q. For the input depth map D t Two convolution operations are used to obtain features a and b. After reorganizing the dimensions of the obtained features, a and b, θ and Perform matrix multiplications separately to obtain the long-distance dependency graph within the same feature. Use the Softmax function on the results of the two matrix multiplications, perform matrix multiplication on the results, and then use the new Softmax function after the results, and then perform matrix multiplication with q. Next, a layer of convolution is added after the product, and the result is added to the input Fea pixel by pixel to obtain the final output Z of the DGNLB module. Through the depth-guided non-local module, the three levels of long-distance pixel correlation between the depth map itself, the input feature itself, and the depth map and the input feature are captured. Guided by the depth map, high-density fog and low-density fog in the input feature are distinguished, thereby obtaining a more accurate defogging result.

Claims

1. A video defogging method based on depth information guidance, comprising the following steps: In the first step, the current frame and the reference frame information are inserted into the defogging network frame by frame to fully extract the multi-frame information; the specific steps are as follows: (1) The frame to be defogged is taken as the current frame, and the three frames before and after the current frame are taken as reference frames. In different stages of the defogging sub-network, one frame of information from the current frame or the reference frame is inserted each time, and each frame is processed separately by the stage defogging module SDB; (2) Feature splicing is performed on the output results of multiple SDB modules to obtain the output result of the defogging module; The second step is to estimate the depth map of the current frame through the depth prediction sub-network; the specific steps are as follows: (1) Multiple frames including the current frame and the reference frame are inserted into different stages of the depth prediction subnetwork in stages. Each stage of the network consists of feature concatenation and convolution. The features output from each stage are connected to a U-Net structure to perform depth estimation of the current frame, and 7 depth estimation results are obtained. (2) Perform feature concatenation + convolution + softmax function operation on the features output from each stage to obtain a feature with 7 channels. The feature is split to obtain 7 weight coefficients. The 7 depth estimation results obtained in the previous step are weighted and summed according to the weight coefficients to obtain the result Depth after the fusion of the 7 depth estimation images. (3) Calculate the variance of the 7 depth estimation results as the uncertainty of the 7 depth estimation results, and obtain the final depth estimation result D according to the following formula: t : D t =(1-uncert)*Depth In the third step, the features extracted in the first step and the depth map estimated in the second step are fused using a non-local structure to capture the long-distance pixel correlations of the depth map itself, the input features themselves, and the depth map and the input features. This enables the depth map to guide video dehazing and obtain the final dehazing result. The SDB module structure is as follows: For the first SDB module, its input is only the features after the convolution of the current frame, and its network structure consists of an RFDB module and a residual structure; for the non-first SDB module, there are two inputs, namely the output of the previous SDB module and the features after the convolution of the reference frame, and its network structure consists of feature splicing, RFDB module and residual structure; for the RFDB module, it is composed of residual structures of different levels. In this module, the input is respectively subjected to 1*1 convolution and SRB module, and the output results of the SRB module are respectively input into 1*1 convolution and SRB module, and this is repeated to obtain features of four different network depths. After that, the features of the four different network depths are spliced ​​and then convolved to obtain the final output result, where The SRB module consists of a residual structure containing a convolution and a ReLU activation function.

Citation Information

Patent Citations

  • Depth estimation method and apparatus of monocular video, terminal, and storage medium

    CN108765481A

  • Joint estimation image defogging method based on convolutional neural network

    CN108805839A

  • Video defogging system based on deep learning

    CN110544216A

  • Image defogging method based on depth estimation assistance

    CN111553856A

  • Priori-driven deep learning image defogging method

    CN111681180A