Low-light image enhancement method based on frequency domain and spatial domain perception

The low-light image enhancement method through frequency domain and spatial domain dual-domain perception, combined with U-Net network and multi-scale fusion mechanism, solves the problems of high-frequency information processing and information loss in the existing technology, and achieves better image enhancement effects and Model performance.

CN118674628AActive Publication Date: 2024-09-20SHANDONG NORMAL UNIV

Patent Information

Application Number
CN202410700421.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-20
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Existing low-light image enhancement technology is difficult to effectively handle high-frequency information in images under complex scenes and different shooting conditions. There are problems of information loss and overexposure or underexposure, which affects the training and inference efficiency of the model.

Method used

A low-light image enhancement method based on frequency domain and spatial domain dual-domain perception is adopted. The U-Net network structure is combined with a multi-scale fusion mechanism and frequency domain perception learning loss. Frequency domain features are used to capture image details and structure, and spatial domain processing controls brightness and contrast. , and adaptively adjust pixel weights through frequency domain sensing learning loss to reduce information loss and improve model performance.

Benefits of technology

It improves the visual effects and quality of low-light images, enhances image detail recovery capabilities, improves model training and inference efficiency, and enhances image processing capabilities under complex scenes and lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674628A
    Figure CN118674628A
Patent Text Reader

Abstract

The invention provides a low-light image enhancement method based on frequency domain and spatial domain perception, and the method achieves the effective enhancement of a low-light image through the construction of a training data set, the design of a dual-domain perception network, and the design of frequency domain perception learning loss and a multi-scale fusion mechanism. The advantages of the method are mainly reflected in three aspects: firstly, a double-domain sensing network using a frequency domain and a space domain is provided, image features can be captured more comprehensively, and the enhancement effect is effectively improved; secondly, a multi-scale fusion mechanism is adopted, so that information of different scales complements each other, and the visual effect and quality of the enhanced image are further improved; and finally, a frequency domain perception learning loss mechanism is introduced, different weights are given according to frequency domain features, and the capability of learning key features by the model is improved. In conclusion, the method has remarkable advantages and application prospects in the field of low-light image enhancement, and an effective solution is provided for solving the image quality problem under the low-light condition.
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 enhancement, and in particular relates to a low-light image enhancement method based on dual-domain perception of frequency domain and spatial domain. Background Art

[0002] Images not only enrich our sensory experience, but also play a key role in many important fields. For example, in medical diagnosis, doctors can diagnose diseases by analyzing medical images such as X-rays, CT scans, and MRIs. Due to the limitation of ambient light or the performance of photographic equipment, images usually have problems such as insufficient brightness, low contrast, and high noise, which seriously affect the visual effect and information transmission of the image.

[0003] Therefore, the research and application of low-light image enhancement technology is of great significance. First, by improving the brightness and contrast of low-light images and enhancing the details and texture of the images, the visual effect of the images can be effectively improved, making the images clearer and more realistic. Secondly, low-light image enhancement can improve the accuracy and efficiency of subsequent image processing and analysis tasks, provide people with better image information, and help improve people's visual perception and understanding ability. In addition, for some special industries and fields, such as video surveillance and medical imaging, low-light image enhancement technology can improve the accuracy and reliability of image recognition and analysis, and protect people's lives and property.

[0004] Low-light image enhancement technology can be classified into two categories: one is the traditional low-light image enhancement method, and the other is the low-light image enhancement method based on deep learning.

[0005] Traditional low-light image enhancement methods can be divided into two types: one based on histogram equalization and the other based on Retinex theory. The method based on histogram equalization mainly focuses on expanding the dynamic range of image pixels and improving the contrast of the image. The method based on Retinex theory regards the image as a complex composed of reflection component and illumination component, in which the reflection component is regarded as the result of enhancement, and the illumination component is obtained by estimation to obtain the final enhancement result. Although these methods have certain effects, since image decomposition is an ill-posed problem, the enhanced image often has increased noise, overexposure and other phenomena. These problems limit the application of traditional methods in low-light image enhancement tasks. With the development of deep learning and artificial intelligence technology, especially the widespread application of deep learning models such as convolutional neural networks (CNN), low-light image enhancement technology has made significant progress.

[0006] Image enhancement methods based on deep learning are also divided into two types: one is based on prior knowledge, and the other is based on end-to-end methods. Methods based on prior knowledge usually rely on artificially constructed prior models or rules, such as statistical characteristics or physical models of images. However, these prior knowledge may not always apply to all images and scenes. When the prior knowledge does not match the characteristics of the actual image, the enhancement effect may be affected and difficult to generalize to a wider range of situations. End-to-end methods can automatically learn the mapping relationship from input to output without manually designing and adjusting complex feature extraction and processing processes. They can learn image enhancement rules under various scenes and lighting conditions, and therefore have better generalization capabilities.

[0007] Although low-light image enhancement methods based on deep learning have achieved satisfactory results to a certain extent, there are still some important challenges: (1) For complex scenes and different shooting conditions, current methods may not be able to effectively process and retain high-frequency information in the image, such as important details and structural information. (2) In the training process, it is inevitable to face the challenge of data loss, which may have a negative impact on the training and inference efficiency of the model, and thus lead to performance degradation in practical applications. (3) During the network training process, if the same processing strategy is adopted for all pixels, it may cause overexposure or underexposure problems in the image area. Summary of the invention

[0008] In view of the shortcomings and development of the existing technology, the present invention proposes a low-light image enhancement method based on dual-domain perception of frequency domain and spatial domain. The specific technical solution is as follows:

[0009] A low-light image enhancement method based on dual-domain perception in frequency domain and spatial domain. This method can simultaneously utilize frequency domain and spatial domain features, and adopts a multi-scale fusion mechanism and frequency domain perception learning loss to solve the problem that only operating in the spatial domain cannot take into account both the global and local aspects. The method includes the following steps:

[0010] S1. Build a dataset. The dataset includes a series of paired low-light images and normal-light images. Each pair of images contains the same scene information and different lighting conditions.

[0011] S2. Build a low-light image enhancement network based on frequency domain and spatial domain dual-domain perception. The network adopts the U-Net network structure, including a spatial domain feature perception module for processing spatial domain features and a frequency domain feature perception module for processing frequency domain features. At the same time, a multi-scale fusion mechanism is set up to fuse image information of different scales into the network.

[0012] S3, construct frequency-domain-aware learning loss to constrain network training and obtain the optimal model;

[0013] S4. The image taken under low light conditions is used as input and processed by the optimal model to obtain an enhanced image.

[0014] Furthermore, the U-Net network structure described in step S2 is specifically as follows: first, the input image is input into the network, and the image features are processed through a convolutional layer, a dual-domain residual block and a downsampling operation, wherein the dual-domain residual block is composed of a spatial domain feature perception module and a frequency domain feature perception module;

[0015] For the spatial feature perception module, two convolutional layers and two LeakyReLU activation functions are used, and then a convolutional layer and a skip connection operation are used to deeply extract the spatial features and perform refined processing; for the frequency domain feature perception module, the spatial features are first converted into frequency domain features to obtain the amplitude and phase, and then the amplitude and phase are enhanced. This process includes two convolutional layers, a ReLU activation function and a skip connection. Finally, the enhanced frequency domain features are converted back to spatial domain features.

[0016] The multi-scale fusion mechanism is introduced through the shallow feature extraction module. The input image is scaled twice, and the shallow feature extraction module is used to extract the image features of different scales after scaling. Then the multi-scale image features are connected with the original features to reduce information loss. The shallow feature extraction module consists of two convolutional layers, a ReLU activation function and a Sigmoid activation function.

[0017] After the above processing, two upsampling operations are performed. In each upsampling process, it is processed through a convolution layer and a dual-domain residual block; finally, a convolution layer is used to reconstruct the high-dimensional feature map into the three channels required for the image, thereby obtaining an enhanced image.

[0018] Furthermore, the frequency-domain perceptual learning loss described in step S3 makes full use of the uneven distribution of high-frequency and low-frequency information of pixels. By performing feature representation in the frequency domain, those features that appear less frequently in the frequency domain but have a greater impact on image quality are emphasized, so that the network can better adapt to image scenes and lighting conditions. The frequency-domain perceptual learning loss is specifically expressed as follows:

[0019]

[0020] Where I represents the low-light image, Represents low-light image enhancement network The predicted enhanced image, R represents the normal lighting image, represents the high-frequency feature weight of the pixel, represents the low-frequency feature weight of the pixel, Represents the high-frequency features in the spatial domain, represents the low-frequency features in the spatial domain, ω1 and ω2 are weight factors, i represents the pixel number, and N represents the total number of pixels;

[0021] The spatial domain features of R are transformed into the frequency domain through Fourier transform operation to obtain the spectrum features. At this time, the center position of the spectrum features is represented as high-frequency information, and the surrounding is represented as low-frequency information. Then the spectrum distribution is transformed through the frequency shift operation of Fourier transform. The center position of the spectrum features after the shift is represented as low-frequency information, and the surrounding is represented as high-frequency information. The low-frequency information in the center is filtered by circular filtering to obtain the low-frequency information X lf , using inverse Fourier transform and inverse Fourier frequency shift operations to convert the low-frequency information X in the frequency domain lf Restore low-frequency information to the airspace Perform subtraction operation with the original feature to obtain high-frequency information in the spatial domain Then set the weight information through normalization and exponential operations and Thus different weights are assigned to different pixels.

[0022] The advantages of the present invention are:

[0023] (1) A dual-domain perception network of frequency domain and spatial domain is proposed. The frequency domain has rich information representation capabilities and can capture image details, textures, structures and other features, which helps to understand the image content more accurately. Spatial domain processing directly operates the pixel values ​​of the image and can more directly control the image's brightness, contrast, color and other attributes. By using a dual-domain perception network of spatial domain and frequency domain, the image brightness can be enhanced while the image detail information can be better restored.

[0024] (2) A multi-scale fusion mechanism is proposed. By using multi-scale information for fusion, the image features and structure can be captured more comprehensively, thereby improving the effect of low-light image enhancement. Information at different scales complements each other, making up for information loss during the training process, improving the training and reasoning efficiency of the model, and further improving the visual effect and quality of the enhanced image.

[0025] (3) A frequency-domain aware learning loss is proposed to adaptively adjust the contribution of different pixels to their frequency attributes, so that the network can focus more on learning high-frequency detail information, alleviate the negative impact of the uneven distribution of high- and low-frequency information in low-light images, and better guide the model to learn the key features of image data distribution, thereby improving the performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a flow chart of the low-light image enhancement method of the present invention;

[0027] Figure 2 is an overall network structure diagram of the low-light image enhancement method of the present invention;

[0028] Figure 3 is an internal structure diagram of the low-light image enhancement method of the present invention;

[0029] Figure 4 is a frequency domain perceptual learning loss structure diagram of the low-light image enhancement method of the present invention;

[0030] Figure 5 It is an example diagram of the results of the low-light image enhancement method of the present invention. DETAILED DESCRIPTION

[0031] The specific implementations described below are intended to further describe the present invention in detail to make the purpose and technical solution of the present invention clearer. The description of the specific implementations is only used to illustrate the technical features of the present invention and does not constitute a limitation on the protection scope of the present invention.

[0032] The present invention discloses a low-light image enhancement method based on frequency domain and spatial domain dual-domain perception, comprising the following steps:

[0033] S1. Construct a dataset. The training set consists of a series of paired low-light images and normal-light images.

[0034] In an embodiment, Figure 1 As shown in the figure, a dataset specifically for low-light image enhancement network training is constructed, which contains a large number of low-light images and normal-light images under the same background. Although these image pairs have the same scene information, there are significant differences in lighting conditions. Such a dataset construction method provides a wealth of training samples for the present invention, so that the model can learn how to extract useful information from low-light images and convert them into normal-light images. In this way, the model can be effectively trained under various lighting conditions, thereby improving its robustness and adaptability in practical applications.

[0035] S2. Construct a low-light image enhancement network based on dual-domain perception in frequency domain and spatial domain. The network adopts the U-Net network structure, including a spatial feature perception module and a frequency domain perception module, and sets a multi-scale fusion mechanism.

[0036] like Figure 2As shown in the figure, considering the computational efficiency challenges and poor enhancement effects brought by large-scale image processing, this study constructs a low-light image enhancement network based on dual-domain perception in frequency domain and spatial domain. The network adopts the U-Net network structure. First, the input 256×256 size image is downsampled twice to obtain images of 128×128 and 64×64 sizes respectively. In each downsampling process, in order to avoid information loss, a shallow extraction module is used to extract image features of different scales of 128×128 and 64×64 and then concat them with the original features. The concatenated features are processed by convolutional layers and dual-domain residual blocks. The dual-domain residual block consists of a spatial feature perception module and a frequency domain feature perception module, which helps to effectively extract and retain important features of the image to achieve better enhancement effects.

[0037] like Figure 3 As shown in the figure, the spatial feature perception module uses two convolutional layers and two LeakyReLU activation functions. The convolution kernel of the convolutional layer is 3×3 and the stride is 1. Then, a convolutional layer with a convolution kernel of 1×1 and a stride of 1 is used for skip connection. The spatial feature perception module perceives and extracts the original spatial features of the image to capture the contrast, brightness and structural features in the image, thereby providing a more discriminative and rich feature representation, helping the network to better understand the structure and content of the image, thereby effectively extracting and retaining important information in the image. The frequency domain feature perception module first converts the spatial features into frequency domain features to obtain the amplitude and phase. The amplitude and phase are respectively passed through two convolutional layers with a convolution kernel of 3×3 and a stride of 1, a ReLU activation function and a skip connection. The frequency domain feature perception module can help the network better understand the frequency distribution and global features of the image, thereby effectively enhancing the detailed information of the image, and thus effectively enhancing the low-light image.

[0038] In order to solve the problem of inevitable information loss during the training process of the network, the present invention adopts a multi-scale fusion mechanism and introduces a shallow feature module to effectively integrate image information of different scales into the network. The shallow feature module consists of two convolutional layers with a convolution kernel size of 3×3 and a step size of 1, a ReLU activation function and a Sigmoid activation function. Its main function is to extract the features of the image at different scales, and then connect these features with the original features through the Concat connection operation to make up for the possible information loss of the network during the training process. Specifically, through the operation of two convolutional layers, rich local features can be extracted from the input image. Then, through the ReLU activation function, the nonlinear expression ability of these features can be enhanced, thereby capturing more complex feature patterns. Next, the Sigmoid activation function is used to map the value range of the feature to between (0,1), which helps to control the dynamic range of the feature and improve the stability of the network. By introducing the shallow feature module, the network can better integrate information at different scales, thereby improving the ability to extract and represent image features, and further improving the effect of low-light image enhancement.

[0039] After the above processing, the 64×64 image is restored to 128×128 and 256×256 sizes through two upsamplings. In each upsampling process, it is processed through a convolution layer and a dual-domain residual block. Finally, a convolution layer is used to map the high-dimensional features to the 3D space required by the image to reconstruct the enhanced image.

[0040] S3. Use frequency-domain-aware learning loss to constrain network training and obtain the optimal model.

[0041] During the training process of the network, the present invention proposes a frequency domain-aware learning loss function, which aims to constrain the training of the network and guide it to learn more refined and rich frequency domain features to improve the performance of the network. This loss function uses the frequency domain characteristics to adjust the pixel weight distribution in view of the long-tail distribution characteristics of the low-frequency information and high-frequency information of the image, so that it pays more attention to the difficult-to-recover high-frequency information in the frequency domain during the learning process, so that the network can better capture the global frequency domain characteristics of the image. During the training process, the parameters of the network are continuously updated, and the weights of the network are gradually adjusted through the back propagation algorithm and optimizer to minimize the frequency domain-aware learning loss function. In this way, the performance of the network is gradually optimized so that it can generate better quality image enhancement results. Finally, a network model with optimal performance is obtained, which can be effectively applied to low-light image enhancement tasks.

[0042] like Figure 4As shown in the figure, the frequency-domain-aware learning loss makes full use of the uneven distribution of high-frequency and low-frequency information of pixels. By performing feature representation in the frequency domain, it emphasizes those features that appear less frequently in the frequency domain but have a greater impact on image quality, so that the network can better adapt to image scenes and lighting conditions. The frequency-domain-aware learning loss is specifically expressed as follows:

[0043]

[0044] Where I represents the low-light image, Represents low-light image enhancement network The predicted enhanced image, R represents the normal lighting image, represents the high-frequency feature weight of the pixel, represents the low-frequency feature weight of the pixel, Represents the high-frequency features in the spatial domain, represents the low-frequency features in the spatial domain, ω1 and ω2 are weight factors, i represents the pixel number, and N represents the total number of pixels.

[0045] In order to better distinguish high-frequency and low-frequency features, the present invention decomposes the image features. First, the image feature X in the spatial domain f Through Fourier transform FFT(·) it is transformed into frequency domain feature Y f , for the frequency domain feature Y f The high-frequency information is in the center, and the low-frequency information is around. Then, the low-frequency information is moved to the center of the spectrum through the frequency shift operation Shift(·) in Fourier transform to set a circular filter. Where (u0, v0) is the center position of (u, v), r is the radius, and the information smaller than r is set as low-frequency information and assigned a weight of α = 0.5, thus obtaining the filtered low-frequency information Y lf , and finally through the inverse Fourier transform FFT -1 (·) and the frequency shift operation Shift in the inverse Fourier transform -1 (·), the low-frequency information Y in the frequency domain lf Transformed into low-frequency information in the spatial domain Use the difference formula to obtain the corresponding high-frequency information in the spatial domain

[0046] This study uses high-frequency information and low frequency information Normalization is performed to make them comparable in magnitude:

[0047]

[0048] in In order to prevent normalization from generating zero values ​​and better adjust the weights of high and low frequencies, the present invention sets an exponential operation exp(·) to generate the final weight information High frequency weight and low frequency weight In the present invention, ω1=1 and ω2=0.5 are set, and the gradient vanishing problem that may be encountered during the training process can be effectively alleviated through normalization and exponential operations.

[0049] S4. Put the test data into the optimal model to generate an enhanced image. In the testing phase of the model, the low-light test data set is input into the carefully trained and optimized model, and finally an enhanced image with significantly improved visual effects is obtained. In the testing phase, the trained model is used without updating the model parameters. Figure 5 As shown in the figure, the first row represents low-light images, and the second row represents enhanced images generated by the network. This process is designed to evaluate the performance of the model on new data without further training or optimization. By using a trained model, its performance in actual applications can be accurately evaluated, and its effectiveness and stability in processing new data can be verified. This use of the testing phase helps ensure the reliability and availability of the model in actual applications, and provides a foundation and guarantee for subsequent application deployment and promotion.

[0050] The above contents are only preferred embodiments of the present invention, which are only used to further illustrate the present invention and cannot be used to limit the protection scope of the present invention. Those skilled in the art can improve and modify the present invention according to the above contents of the invention, and these improvements and modifications belong to the protection scope of the present invention.

Claims

1. A low-light image enhancement method based on frequency domain and spatial domain dual-domain perception. This method can simultaneously utilize frequency domain and spatial domain information, and adopts a multi-scale fusion mechanism and frequency domain perception learning loss to solve the problem that only operating in the spatial domain cannot take into account both the global and local aspects. The method includes the following steps: S1. Build a dataset. The dataset includes a series of paired low-light images and normal-light images. Each pair of images contains the same scene information and different lighting conditions. S2. Build a low-light image enhancement network based on frequency domain and spatial domain dual-domain perception. The network adopts the U-Net network structure, including a spatial domain feature perception module for processing spatial domain features and a frequency domain feature perception module for processing frequency domain features. At the same time, a multi-scale fusion mechanism is set up to fuse image information of different scales into the network. S3, construct frequency-domain-aware learning loss to constrain network training and obtain the optimal model; S4. The image taken under low light conditions is used as input and processed by the optimal model to obtain an enhanced image.

2. The low-light image enhancement method based on frequency domain and spatial domain dual-domain perception according to claim 1, characterized in that: The U-Net network structure described in step S2 is specifically as follows: first, the input image is input into the network, and the image features are processed through a convolutional layer, a dual-domain residual block, and a downsampling operation, wherein the dual-domain residual block is composed of a spatial domain feature perception module and a frequency domain feature perception module; For the spatial feature perception module, two convolutional layers and two LeakyReLU activation functions are used, and then a convolutional layer and a skip connection operation are used to deeply extract the spatial features and perform refined processing; for the frequency domain feature perception module, the spatial features are first converted into frequency domain features to obtain the amplitude and phase, and then the amplitude and phase are enhanced. This process includes two convolutional layers, a ReLU activation function and a skip connection. Finally, the enhanced frequency domain features are converted back to spatial domain features. The multi-scale fusion mechanism is introduced through the shallow feature extraction module. The input image is scaled twice, and the shallow feature extraction module is used to extract the image features of different scales after scaling. Then the multi-scale image features are connected with the original features to reduce information loss. The shallow feature extraction module consists of two convolutional layers, a ReLU activation function and a Sigmoid activation function. After the above processing, two upsampling operations are performed. In each upsampling process, it is processed through a convolution layer and a dual-domain residual block; finally, a convolution layer is used to reconstruct the high-dimensional feature map into the three channels required for the image, thereby obtaining an enhanced image.

3. The low-light image enhancement method based on frequency domain and spatial domain dual-domain perception according to claim 1, characterized in that: The frequency-domain-aware learning loss described in step S3 makes full use of the uneven distribution of high-frequency and low-frequency information of pixels. By performing feature representation in the frequency domain, it emphasizes those features that appear less frequently in the frequency domain but have a greater impact on image quality, so that the network can better adapt to image scenes and lighting conditions. The frequency-domain-aware learning loss is specifically expressed as follows: Where I represents the low-light image, Represents low-light image enhancement network The predicted enhanced image, R represents the normal lighting image, represents the high-frequency feature weight of the pixel, represents the low-frequency feature weight of the pixel, Represents the high-frequency features in the spatial domain, represents the low-frequency features in the spatial domain, ω1 and ω2 are weight factors, i represents the pixel number, and N represents the total number of pixels; The spatial domain features of R are transformed into the frequency domain through Fourier transform operation to obtain the spectrum features. At this time, the center position of the spectrum features is represented as high-frequency information, and the surrounding is represented as low-frequency information. Then the spectrum distribution is transformed through the frequency shift operation of Fourier transform. The center position of the spectrum features after the shift is represented as low-frequency information, and the surrounding is represented as high-frequency information. The low-frequency information in the center is filtered by circular filtering to obtain the low-frequency information X lf , using inverse Fourier transform and inverse Fourier frequency shift operations to convert the low-frequency information X in the frequency domain lf Restore low-frequency information to the airspace Perform subtraction operation with the original feature to obtain high-frequency information in the spatial domain Then set the weight information through normalization and exponential operations and Thus different weights are assigned to different pixels.

Citation Information

Patent Citations

  • Low-light image enhancement method based on deep convolution attention and multi-scale feature fusion

    CN116091357A

  • Dense image restoration method based on Transform

    CN117745587A

Cited By

  • Dynamic self-adaptive multi-view three-dimensional reconstruction method and model based on double-domain information fusion

    CN119741434A

  • Dynamic Adaptive Multi-View Stereo Reconstruction Method and Model Based on Dual-Domain Information Fusion

    CN119741434B

  • Backlight X-ray image multilayer noise removal method based on deep learning

    CN119991484A

  • Non-uniformity correction method and system based on spatial domain and frequency domain characteristics

    CN120580403A

  • Non-uniformity correction method and system based on spatial and frequency domain features

    CN120580403B