A hybrid frequency domain defogging algorithm based on an omnidirectional state space model
By combining an omnidirectional state-space model with discrete wavelet transform and the four-directional scanning mechanism of visual Mamba, dynamic cross-level feature fusion and context-gated fusion are achieved, solving the problems of incomplete local dehazing and insufficient high-frequency detail recovery in traditional convolutional neural networks in dehazing foggy images, and realizing efficient high-frequency texture recovery of foggy images.
Patent Information
- Application Number
- CN202611290998.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional convolutional neural networks suffer from problems in dehazing foggy images, such as incomplete or excessive dehazing in some areas, failure to effectively utilize frequency domain features, and difficulty in effectively integrating shallow and deep features. This results in insufficient recovery of high-frequency texture details, especially in scenes with fine structures such as insulators.
A hybrid frequency domain dehazing method based on the omnidirectional state space model (Mamba) is adopted, which combines discrete wavelet transform with the four-directional scanning mechanism of visual Mamba. Through dynamic cross-level feature fusion and context-gated fusion, high-fidelity restoration of high-frequency textures is achieved.
It significantly improves the high-frequency texture restoration effect of foggy images with extremely low computational cost, achieving a PSNR of 33.08dB and an SSIM of 0.9826, which is superior to mainstream defogging algorithms and is suitable for drone devices with limited computing power.
Smart Images

Figure CN123160367A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer vision and artificial intelligence, specifically to a hybrid frequency domain dehazing algorithm based on an omnidirectional state space model. Background Technology
[0002] The U-Net network was first proposed by Ronneberger et al. in 2015. Its initial design aimed to address the technical challenges of scarce training samples and the need for precise pixel-level localization in biomedical image segmentation tasks. This network is a classic architecture improved upon Fully Convolutional Networks (FCNs), named for its symmetrical "U"-shaped topology. The model structure is as follows: Figure 1 As shown. Although U-Net was originally designed for image segmentation tasks, thanks to its excellent multi-scale feature aggregation capabilities and classic encoding and decoding structure, it has now been widely used in low-level computer vision restoration tasks such as image dehazing, image denoising, and super-resolution reconstruction, becoming an important basic architecture for building various image restoration models.
[0003] The overall architecture of U-Net mainly consists of three core parts: a shrinking path, an expanding path, and skip connections that enable feature fusion. The shrinking path, located on the left side of the architecture, acts as the encoder, composed of repeatedly stacked convolutional and max-pooling layers. Its core function is to reduce the spatial resolution of the feature map through progressive downsampling, thereby expanding the network's receptive field and efficiently extracting high-dimensional abstract semantic features and global contextual information from the image. The expanding path, located on the right side of the architecture, acts as the decoder. It gradually restores the spatial size of the feature map through upsampling operations and uses deconvolution or interpolation algorithms to map the abstract semantic features extracted in the encoding stage back to the resolution scale of the original image, thus achieving pixel-level prediction and reconstruction of the image.
[0004] Compared to traditional encoding / decoding networks, U-Net's most distinctive design highlight lies in its unique skip connection mechanism. At each layer of the network, the shallow feature maps extracted by the shrinking path are copied and cropped, and then concatenated and fused with the deep feature maps of the corresponding layers of the expanding path in the channel dimension. This design effectively compensates for the loss of spatial detail information during multiple downsampling processes in deep convolutional networks. By organically fusing the abstract semantic information of the deep layers with the fine texture information of the shallow layers, the decoder can more accurately restore the edge contours and detailed textures of the image, significantly improving the precision of the image restoration results.
[0005] In image restoration tasks involving complex environments such as image dehazing, the structural advantages of U-Net are particularly prominent. Images acquired in foggy weather generally suffer from low contrast and blurred details. Relying solely on deep abstract semantic features makes it difficult to achieve accurate reconstruction of clear images. U-Net's multi-scale feature fusion mechanism allows the network to retain key semantic information such as global atmospheric light distribution while directly introducing high-frequency texture information contained in shallow features through skip connections. This characteristic is highly compatible with the needs of this study to restore small fault areas and fine texture details on the insulator surface, and also provides important theoretical support for the structural design of the foggy insulator image dehazing network based on the omnidirectional state space model proposed later. However, firstly, the convolutional kernels of traditional convolutional neural networks have fixed local receptive fields. Although stacking deep networks can expand the receptive field, it is still difficult to effectively model the global contextual dependencies of the image. For the spatially non-uniformly distributed fog concentration in foggy images, CNN methods often exhibit incomplete or excessive dehazing in certain areas. Secondly, haze primarily manifests as attenuation of high-frequency components in the frequency domain, while existing methods mostly process it in the spatial domain, failing to effectively utilize frequency domain features to guide the dehazing process. This results in insufficient recovery of high-frequency texture details, particularly in scenarios with intricate structures such as insulators. Thirdly, the traditional U-Net architecture directly stitches together encoder and decoder features via skip connections. However, shallow features often contain haze noise and lack semantic information, while deep features possess global consistency but lose high-frequency details. Simple stitching cannot effectively integrate these heterogeneous features, limiting the reconstruction quality. Summary of the Invention
[0006] The purpose of this invention is to provide a hybrid frequency domain dehazing method based on the omnidirectional state-space model (Mamba). This method abandons the computationally complex traditional Transformer architecture, uses U-Net as the backbone, and combines discrete wavelet transform with the four-directional scanning mechanism of visual Mamba to achieve high-fidelity restoration of high-frequency textures in degraded images with extremely low computational cost.
[0007] The present invention adopts the following technical solution:
[0008] A hybrid frequency domain dehazing algorithm based on an omnidirectional state-space model includes the following steps:
[0009] Step 1, Shallow feature extraction: Given an input foggy image, the network uses a shallow feature extraction module (several convolutional layers) at the front end to map low-dimensional pixels to a high-dimensional feature space and generate initial features.
[0010] Step 2: Multi-scale hierarchical coding and frequency domain-aware feature extraction. The features enter the three-level cascaded encoder stage. Each encoder consists of a core Hybrid Frequency-Aware Component (HFAC) and downsampling operations.
[0011] Step 3, Dynamic Cross-Level Feature Fusion: To address the bottleneck issue of the disconnect between shallow details and deep semantics in the traditional U-Net architecture, a Dynamic Cross-Level Fusion (DCLF) module is introduced at the encoder-decoder connection. The specific implementation of this module consists of the following three aspects:
[0012] Step 4: Symmetric decoding reconstruction and context gating fusion. The decoder adopts a structure that is strictly symmetrical with the encoder. It gradually restores the spatial resolution through upsampling. In each upsampling process, the features of the corresponding level of the encoder are introduced through skip connections.
[0013] Step 5, Image generation and output, using a hybrid loss function combining time and frequency domains to constrain network training. , ,in The temporal Charbonnier loss is used for pixel-level reconstruction; The FFT loss in the frequency domain is used to calculate the L1 distance between the predicted and real images in the real and imaginary parts using Fast Fourier Transform, and the model is explicitly supervised to recover the decayed high-frequency edges and texture details.
[0014] Furthermore, in step 2, the hybrid frequency domain sensing component adopts a cascaded architecture that deeply couples Discrete Wavelet Transform (DWT) with visual Mamba.
[0015] Furthermore, step 2 specifically includes the following steps:
[0016] Step 2.1: The features are decomposed into four complementary sub-bands (low frequency, horizontal high frequency, vertical high frequency, and diagonal high frequency) using Discrete Wavelet Transform (DWT, using Haar wavelet basis). After channel splicing, the features are fused and the spatial features rich in frequency domain priors are sent to the Mamba module.
[0017] Step 2.2 introduces a visual Mamba module with a four-directional scanning mechanism to enhance omnidirectional long-range modeling. The feature map is expanded and scanned in one dimension from four paths: horizontal forward, horizontal reverse, vertical forward, and vertical reverse, to establish long-distance sequence dependencies and spatial associations.
[0018] Step 2.3: After the Mamba branch, a dehazing perception module (HATB) is cascaded. The dehazing perception module includes a multi-head transposed self-attention (MDTA) to calculate cross-channel feature correlations and combines an attention-gated feedforward network (AGFN) to adaptively adjust the information flow and suppress haze noise.
[0019] The features output by the encoder in the three stages described above are denoted as shallow features. Mid-layer features and deep features .
[0020] Furthermore, the implementation of the dynamic cross-level fusion module in step 3 is specifically divided into the following three aspects:
[0021] (1) Multi-scale feature alignment: parallel reception Mid-layer features and deep features It is unified with deep features through bilinear interpolation and 1×1 convolution. Same spatial resolution and channel dimensions;
[0022] (2) Dynamic fusion based on selective kernel: The selective kernel mechanism (SKFusion) is adopted to add the three features and globally average pool them into channel descriptors. After passing through multilayer perceptron (MLP) and Softmax normalization, channel attention weights for the three branches are generated, and then the features are weighted and fused using these weights.
[0023] (3) Post-processing refinement: The fused features are sent back to the dehazing perception module (HATB) for feature recalibration and output to the decoder.
[0024] Furthermore, in step 4, to address the issues of background noise and feature misalignment in skip connections, a Context-Gated Fusion (CGF) module is designed to receive upsampled features from the previous level. and skip connection features from sibling encoders First, the components are concatenated along the channel dimension, then projected onto the 2C channels using a 1×1 convolution, and finally divided into two parts along the channel dimension. The SimpleGate gating mechanism is used for fusion. This mechanism generates a gating effect through the interaction of features themselves, without the need for explicit activation functions, thus avoiding the gradient vanishing problem and reducing computational overhead.
[0025] Compared with the prior art, the present invention has the following advantages:
[0026] 1. Thanks to the linear complexity of the state-space model (Mamba) and the simple gating mechanism (SimpleGate), this model has only 5.96M parameters (about 4.5% of Dehamer's) and only 45.43 GFLOPs of computation, which can be deployed on drones with limited computing power while ensuring extremely high inference speed.
[0027] 2. Innovatively, the frequency domain prior of Discrete Wavelet Transform (DWT) is coupled with Mamba global modeling, which effectively overcomes the pain points of insufficient receptive field and easy loss of high-frequency information in foggy weather in traditional CNNs. On the SFID synthetic fog dataset, the PSNR reaches 33.08dB and the SSIM reaches 0.9826, which is significantly better than the mainstream defogging algorithms.
[0028] 3. By dynamically aggregating multi-scale features through the DCLF module of the bottleneck layer and the CGF module of the decoding end, background noise caused by skip connections is adaptively filtered out, resulting in excellent visual restoration effect for small, low-contrast targets (such as broken insulators) in foggy backgrounds. Attached Figure Description
[0029] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 This is a diagram of the U-Net network model structure.
[0031] Figure 2 This is a structural diagram of the HF-Mamba network model.
[0032] Figure 3 This is a structural diagram of the HFAC module.
[0033] Figure 4 This is a schematic diagram of the overall structure of DCLF.
[0034] Figure 5 This is a schematic diagram of the internal structure of the SKFusion module.
[0035] Figure 6 is a schematic diagram of the internal structure of the CGF module. Detailed Implementation
[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] The defogging method provided by this invention is as follows: Figure 2 The main steps of this method include: shallow feature extraction; multi-scale hierarchical coding and frequency domain-aware feature extraction; dynamic cross-level feature fusion; symmetric decoding reconstruction and context-gated fusion; image generation and output.
[0038] This invention uses the SFID (Synthetic Fog Insulator Dataset) as the experimental dataset for validation. This dataset contains 6850 high-resolution, clear images collected by drones in real power line scenarios, covering various materials including glass, ceramics, and composite insulators. An atmospheric scattering model was used to generate 6850 corresponding synthetic fog images, constructing paired training data. The dataset was divided into a training set (5480 pairs) and a test set (1370 pairs) in an 8:2 ratio.
[0039] The model was trained on a machine equipped with an Intel(R) Core(TM) i7-14700KF CPU and two NVIDIA GeForce RTX 4060 Ti GPUs (16GB VRAM each). The operating system was Ubuntu 20.04LTS, based on Python 3.10 and the PyTorch 2.2.1 deep learning framework, using CUDA 12.6 for GPU acceleration. A distributed data parallelism (DDP) strategy was employed, with an equivalent batch size of 32. The total training epochs were 300, using the AdamW optimizer with an initial learning rate of 1.5 × 10⁻⁴ and weight decay of 1 × 10⁻⁴. Learning rate scheduling employed a combination of linear warm-up (for the first 5% of epochs) and cosine annealing.
[0040] The first step is shallow feature extraction. Given a foggy input image, the network uses a shallow feature extraction module (several convolutional layers) at the front end to map low-dimensional pixels to a high-dimensional feature space, generating initial features.
[0041] The second step involves multi-scale hierarchical coding and frequency-domain-aware feature extraction. The features are then processed into a three-stage cascaded encoder. Each encoder stage consists of a core Hybrid Frequency-Aware Component (HFAC) and downsampling operations.
[0042] The structural design of the HFAC module is as follows: Figure 3 As shown, an innovative cascaded architecture that deeply couples Discrete Wavelet Transform (DWT) with visual Mamba is adopted.
[0043] First, the features are decomposed into four complementary subbands (low frequency, horizontal high frequency, vertical high frequency, and diagonal high frequency) using Discrete Wavelet Transform (DWT, with Haar wavelet basis). After channel splicing, feature fusion is performed, and the spatial features rich in frequency domain priors are sent to the Mamba module.
[0044] Then, a visual Mamba module with a four-directional scanning mechanism is introduced to enhance omnidirectional long-range modeling. The feature map is unfolded and scanned in one dimension from four paths: horizontal forward, horizontal reverse, vertical forward, and vertical reverse, respectively, to establish long-distance sequence dependencies and spatial associations.
[0045] Finally, a dehazing perception module (HATB) is cascaded after the Mamba branch. HATB includes a multi-head transposed self-attention (MDTA) to calculate cross-channel feature correlations and incorporates an attention-gated feedforward network (AGFN) to adaptively adjust the information flow and suppress haze noise.
[0046] The features output by the encoder in the three stages described above are denoted as shallow features. Mid-layer features and deep features .
[0047] The third step is dynamic cross-level feature fusion. To address the bottleneck issue of the separation between shallow details and deep semantics in the traditional U-Net architecture, a dynamic cross-level fusion module (DCLF) is introduced at the encoder-decoder connection, such as... Figure 4 As shown. The specific implementation of this module is divided into the following three aspects:
[0048] (1) Multi-scale feature alignment: parallel reception Mid-layer features and deep features It is unified with deep features through bilinear interpolation and 1×1 convolution. Same spatial resolution and channel dimensions.
[0049] (2) Dynamic fusion based on selective kernels: adopting a selective kernel mechanism (SKFusion), such as Figure 5As shown, the three features are summed and globally averaged to form a channel descriptor. After passing through a multilayer perceptron (MLP) and Softmax normalization, channel attention weights for the three branches are generated. These weights are then used to perform weighted fusion of the features.
[0050] (3) Post-processing refinement: The fused features are sent back to the dehazing perception module (HATB) for feature recalibration and output to the decoder.
[0051] The fourth step is symmetric decoding reconstruction and context-gated fusion. The decoder adopts a structure that is strictly symmetrical with the encoder, and gradually restores spatial resolution through upsampling. During each upsampling stage, features from the corresponding level of the encoder are introduced through skip connections.
[0052] To address the issues of background noise and feature misalignment in skip connections, a Context-Gated Fusion (CGF) module is designed, such as... Figure 6 As shown. Receive upsampled features from the previous level. and skip connection features from sibling encoders First, the layers are concatenated along the channel dimension, then projected onto the 2C channels using a 1×1 convolution, and finally divided into two parts along the channel dimension. The SimpleGate gating mechanism is used for fusion. This mechanism generates a gating effect through the interaction of features themselves, eliminating the need for explicit activation functions, avoiding the gradient vanishing problem, and reducing computational overhead.
[0053] The fifth step is image generation and output. A hybrid loss function combining time and frequency domains is used to constrain network training. .in The temporal Charbonnier loss is used for pixel-level reconstruction; The FFT loss in the frequency domain is used to calculate the L1 distance between the predicted and real images in the real and imaginary parts using Fast Fourier Transform, and the model is explicitly supervised to recover the decayed high-frequency edges and texture details.
[0054] This invention compares several mainstream dehazing methods on the SFID dataset, and the results are shown in Table 1. Our method achieves the best results in both peak signal-to-noise ratio (PSNR) and structural similarity (SSIM) metrics, while maintaining low parameter count and computational complexity.
[0055]
Claims
1. A hybrid frequency domain dehazing algorithm based on an omnidirectional state-space model, characterized in that, Includes the following steps: Step 1, Shallow feature extraction: Given an input foggy image, the network uses the front-end shallow feature extraction module to map low-dimensional pixels to a high-dimensional feature space to generate initial features. Step 2: Multi-scale hierarchical coding and frequency domain sensing feature extraction. The features enter the three-level cascaded encoder stage. Each encoder consists of a core hybrid frequency domain sensing component and downsampling operation. Step 3, Dynamic cross-level feature fusion: To solve the bottleneck problem of the separation between shallow details and deep semantics in the traditional U-Net architecture, a dynamic cross-level fusion module is introduced at the encoder-decoder connection. Step 4: Symmetric decoding reconstruction and context gating fusion. The decoder adopts a structure that is strictly symmetrical with the encoder. It gradually restores the spatial resolution through upsampling. In each upsampling process, the features of the corresponding level of the encoder are introduced through skip connections. Step 5, Image generation and output, using a hybrid loss function combining time and frequency domains to constrain network training. , ,in The temporal Charbonnier loss is used for pixel-level reconstruction; The FFT loss in the frequency domain is used to calculate the L1 distance between the predicted and real images in the real and imaginary parts using Fast Fourier Transform, and the model is explicitly supervised to recover the decayed high-frequency edges and texture details.
2. The hybrid frequency domain dehazing algorithm based on an omnidirectional state-space model according to claim 1, characterized in that: In step 2, the hybrid frequency domain sensing component adopts a cascaded architecture that deeply couples discrete wavelet transform with visual Mamba.
3. The hybrid frequency domain dehazing algorithm based on an omnidirectional state-space model according to claim 2, characterized in that, Step 2 specifically includes the following steps: Step 2.1: Use discrete wavelet transform to decompose the features into four complementary sub-bands, perform feature fusion after channel splicing, and send the spatial features rich in frequency domain priors into the Mamba module. Step 2.2 introduces a visual Mamba module with a four-directional scanning mechanism to enhance omnidirectional long-range modeling. The feature map is expanded and scanned in one dimension from four paths: horizontal forward, horizontal reverse, vertical forward, and vertical reverse, to establish long-distance sequence dependencies and spatial associations. Step 2.3: A dehazing perception module is cascaded after the Mamba branch. The dehazing perception module includes multi-head transpose self-attention calculation of cross-channel feature correlation, and combines attention-gated feedforward network to adaptively adjust information flow and suppress haze noise. The features output by the encoder in the three stages described above are denoted as shallow features. Mid-layer features and deep features .
4. The hybrid frequency domain dehazing algorithm based on an omnidirectional state-space model according to claim 3, characterized in that, The implementation of the dynamic cross-level fusion module in step 3 is divided into the following three aspects: (1) Multi-scale feature alignment: parallel reception Mid-layer features and deep features It is unified with deep features through bilinear interpolation and 1×1 convolution. Same spatial resolution and channel dimensions; (2) Dynamic fusion based on selective kernel: The selective kernel mechanism is adopted to add the three features and global average pool them into channel descriptors. After passing through a multilayer perceptron and Softmax normalization, channel attention weights for the three branches are generated, and then the features are weighted and fused using these weights. (3) Post-processing refinement: The fused features are sent back to the dehazing perception module for feature recalibration and then output to the decoder.
5. The hybrid frequency domain dehazing algorithm based on an omnidirectional state-space model according to claim 4, characterized in that, In step 4, to address the issues of background noise and feature misalignment in skip connections, a context-gated fusion module is designed to receive upsampled features from the previous level. and skip connection features from sibling encoders First, the components are concatenated along the channel dimension, then projected onto the 2C channels using a 1×1 convolution, and finally divided into two parts along the channel dimension. The SimpleGate gating mechanism is used for fusion. This mechanism generates a gating effect through the interaction of features themselves, without the need for explicit activation functions, thus avoiding the gradient vanishing problem and reducing computational overhead.
