An unsupervised low-light image enhancement method based on color consistency prior
By constructing an unsupervised low-light image enhancement method based on color consistency priors, and utilizing self-attention guidance and illumination adjustment modules, the application limitations of unsupervised image enhancement on mobile devices and the problem of image color distortion are solved, thereby improving naturalness and realism.
Patent Information
- Application Number
- CN202410492147.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-04-23
AI Technical Summary
Existing unsupervised low-light image enhancement algorithms have limited application on mobile and embedded devices, and the problems of image color distortion and over-enhancement of bright areas have not been effectively solved.
We construct an unsupervised low-light image enhancement method based on color consistency prior. We utilize a self-attention-guided illumination estimation module and an illumination adjustment module, combined with color consistency prior and self-attention regularization design, to achieve unsupervised image enhancement.
It reduces application costs, improves the naturalness and realism of image enhancement, is applicable to low-light images from different sources, has strong generalization ability, and suppresses excessive enhancement of image highlights.
Smart Images

Figure CN118279207B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer vision technology, specifically relating to an unsupervised low-light image enhancement method based on color consistency prior. Background Technology
[0002] Low-light image enhancement is an important and challenging task in computer vision. Its goal is to improve the low visibility and low contrast of images caused by low-light conditions, while also restoring damage introduced by dark environments or point light sources, such as noise, artifacts, and color distortion. These problems not only pose challenges to human visual perception but also present serious challenges to other visual tasks, particularly nighttime object detection.
[0003] Deep convolutional neural networks (CNNs) have achieved remarkable results in low-light image enhancement. Compared to traditional methods, CNNs can achieve superior visual quality enhancement by learning better feature representations. This achievement is supported by large-scale datasets and powerful computing capabilities. However, most CNN-based methods rely on paired training samples, but obtaining pairs of low-light and normal-light images of the same scene is extremely challenging. To break free from the dependence on paired training data, some unsupervised deep learning methods have been proposed, which can recover better lighting and contrast in specific contexts. However, most unsupervised methods still heavily rely on carefully selected multi-exposure or unpaired training data, which limits their ability to handle different types of images. Therefore, exploring new strategies to address the needs of different real-world scenarios is particularly crucial.
[0004] Supervised low-light image enhancement algorithms have limited application on mobile or embedded devices lacking dedicated graphics cards or high-performance edge computing platforms, hindering their widespread adoption in real-world scenarios. Therefore, designing a lightweight and effective unsupervised low-light image enhancement algorithm to meet the practical needs of mobile and embedded devices has become a pressing issue. Furthermore, unsupervised methods, lacking paired image constraints, can lead to uncontrollable color biases in certain situations, causing color distortion. Moreover, unsupervised methods struggle to adequately enhance bright areas, often resulting in over-enhancing and loss of detail and texture in the highlights. Summary of the Invention
[0005] To address the aforementioned technical problems, this invention proposes an unsupervised low-light image enhancement method based on color consistency priors, comprising:
[0006] S1: Construct a low-light image enhancement network model, which includes: a self-attention-guided illumination estimation module and an illumination adjustment module;
[0007] S2: Acquire the low-light image to be enhanced, which may be derived from a public dataset or captured by a camera.
[0008] S3: Input the low-light image into the self-attention-guided illumination estimation module to initially estimate the illumination components;
[0009] S4: The lighting adjustment module is used to refine and optimize the initially estimated lighting components to obtain the enhanced image;
[0010] S5: Utilize color consistency priors to construct a consistency loss function for the color ratios of different channels on the same pixel between the enhanced image and the low-light image, thereby achieving unsupervised image enhancement;
[0011] S6: Through the design of self-attention regularization, it suppresses the over-enhancement of the highlight parts of the image.
[0012] The beneficial effects of this invention are:
[0013] This invention provides a foundation for subsequent enhancement processing by accurately estimating the illumination components of low-light images; it achieves unsupervised image enhancement by utilizing color consistency priors, eliminating the need for large amounts of labeled data and reducing application costs; at the same time, through self-attention regularization design, it effectively suppresses excessive enhancement of the highlight parts of the image, improving the naturalness and realism of the enhancement effect, and is applicable to low-light images from different sources, exhibiting strong generalization ability. Attached Figure Description
[0014] Figure 1 This is a schematic diagram of the overall network model structure of an unsupervised low-light image enhancement method based on color consistency prior according to the present invention. Detailed Implementation
[0015] 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.
[0016] An unsupervised low-light image enhancement method based on color consistency prior, such as Figure 1 As shown, it includes:
[0017] S1: Construct a low-light image enhancement network model, which includes: a self-attention-guided illumination estimation module and an illumination adjustment module;
[0018] S2: Obtain the low-light image to be enhanced, which may be derived from a public dataset or captured by a camera.
[0019] S3: Input the low-light image into the self-attention-guided illumination estimation module to initially estimate the illumination components;
[0020] S4: The lighting adjustment module is used to refine and optimize the initially estimated lighting components to obtain the enhanced image;
[0021] S5: Utilize color consistency priors to construct a consistency loss function for the color ratios of different channels on the same pixel in the enhanced image and the low-light image, thereby achieving unsupervised image enhancement;
[0022] S6: Through the design of self-attention regularization, it suppresses the over-enhancement of the highlight parts of the image.
[0023] The low-light image is input into a self-attention-guided illumination estimation module to initially estimate the illumination components, including:
[0024] Illumination constraints are established for the R, G, and B channels of the low-light image to adjust the image exposure, accurately restore the image color, and make the image present a more natural visual effect.
[0025] The low-light image v and its corresponding illumination constraint component are concatenated along the channel dimension to obtain the intermediate feature component u of the low-light image v.
[0026] A preliminary illumination estimate is performed on the intermediate feature component u to obtain the preliminary estimated illumination component x.
[0027] Illumination constraints are established for the R, G, and B channels of the low-light image, including:
[0028] α - (i, j) = Γ - -p - (i, j)
[0029] Where, α - (i, j) represents the illumination constraint of the corresponding channel at pixel coordinates (i, j), p - (i, j) represents the pixel grayscale value of the corresponding channel at coordinates (i, j), Γ - This indicates the maximum grayscale value within the corresponding channel.
[0030] Illumination constraints are established for the R, G, and B channels of the low-light image to adjust the image exposure, accurately restore the image color, and make the image present a more natural visual effect, including:
[0031]
[0032] Among them, I SA (i, j) represents the illumination constraint component at pixel coordinates (i, j) in the image, α r (i, j) represents the illumination constraint of the R channel at pixel coordinates (i, j), α g (i, j) represents the illumination constraint of the G channel at pixel coordinates (i, j), α b (i, j) represents the illumination constraint of the B channel at pixel coordinates (i, j). This indicates a channel connection operation.
[0033] The low-light image v is concatenated with its corresponding illumination constraint component along the channel dimension to obtain the intermediate feature component u of the low-light image v, including:
[0034]
[0035] Where u represents the intermediate feature component, I SA The image represents the overall illumination constraint component, where v represents the low-light image. This indicates a channel connection operation.
[0036] A preliminary illumination estimate is performed on the intermediate feature component u to obtain the preliminary estimated illumination component x, including:
[0037]
[0038] Where x represents the preliminary estimated illumination component, and u represents the intermediate feature component. θ represents the network structure of the self-attention guided illumination estimation module, and θ represents the network parameters of the self-attention guided illumination estimation module.
[0039] The illumination adjustment module is used to refine and optimize the initially estimated illumination components, resulting in an enhanced image, including:
[0040]
[0041] y = s + v
[0042] Where y represents the enhanced image, s represents the self-calibration features, and x represents the preliminary estimated illumination components. This represents the network structure of the illumination adjustment module. This represents the network parameters of the illumination adjustment module, where v represents the low-light image.
[0043] By leveraging color consistency priors, a consistency loss function is constructed between the enhanced image and the low-light image for different channel color ratios on the same pixel, achieving unsupervised image enhancement, including:
[0044] Constructing a color consistency loss effectively constrains the enhancement intensity of each color channel:
[0045]
[0046] in, This represents the color consistency loss, where c1 and c2 represent different color channels of the image, p and q represent images with different channels, and E represents the color consistency loss. c L represents the image after network enhancement. c This represents the input image, where R, G, and B represent the red, green, and blue channels of the image, respectively.
[0047] Fidelity loss is used to preserve important details of the original image to ensure that the estimated illumination components remain highly consistent with the input of each module at the pixel level.
[0048]
[0049] in, denoted by , where T represents the number of illumination enhancement modules and illumination adjustment modules, x represents the preliminary estimated illumination components, y represents the enhanced image, and s represents the self-calibration feature.
[0050] A smoothing term with a spatial variation norm is used as the illumination smoothing loss:
[0051]
[0052] in, The value represents the illumination smoothing loss, N represents the total number of pixels, N(i) represents the neighboring pixels of pixel i in the 5×5 window, and w i,j Indicates color affinity, x i Indicates the i-th and j-th preliminary estimated illumination components, x j express;
[0053] The color affinity w i,j Calculation:
[0054]
[0055] Where c represents the image channel in the YUV color space, y c This represents the enhanced image under color channel c, s c This represents the self-calibration characteristics under color channel c, where σ represents the Gaussian kernel standard deviation, and σ = 0.1.
[0056] Color constancy loss is used to ensure that each color is rendered as gray on an average basis across the entire image, thus addressing potential color bias issues that may occur in enhanced images.
[0057]
[0058] in, J represents the loss of color constancy. p J represents the average gray value of the p channel in the enhanced image. q ε represents the average gray value of the q channel in the enhanced image, and ε represents a pair of channels in the RGB image.
[0059] By combining various losses, a consistency loss function is constructed between the enhanced image and the normally illuminated image for different channel color ratios on the same pixel:
[0060]
[0061] in, Represents the consistency loss function. Indicates loss of color consistency. Indicates a loss of fidelity. Indicates the loss of illumination smoothness. This indicates a loss of color constancy.
[0062] By employing self-attention regularization, excessive enhancement of the image's highlight components is suppressed, including:
[0063] Lighting constraint component I SA The output of the illumination enhancement module is multiplied element-wise to assign higher enhancement weights to dark areas of the image and lower enhancement weights to bright areas, thereby achieving image regularization design and adjusting the weights of each region of the image.
[0064] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. An unsupervised low-light image enhancement method based on color consistency prior, characterized in that, include: S1: Construct a low-light image enhancement network model, which includes: a self-attention-guided illumination estimation module and an illumination adjustment module; S2: Obtain the low-light image to be enhanced, which may be derived from a public dataset or captured by a camera. S3: Input the low-light image into the self-attention-guided illumination estimation module to initially estimate the illumination components; S4: The lighting adjustment module is used to refine and optimize the initially estimated lighting components to obtain the enhanced image; S5: Utilize color consistency priors to construct a consistency loss function for the color ratios of different channels on the same pixel in the enhanced image and the low-light image, thereby achieving unsupervised image enhancement; By leveraging color consistency priors, a consistency loss function is constructed between the enhanced image and the low-light image for different channel color ratios on the same pixel, achieving unsupervised image enhancement, including: Constructing a color consistency loss effectively constrains the enhancement intensity of each color channel: in, Indicates loss of color consistency. Represents different color channels of an image. and Represents images from different channels. This represents the image after network enhancement. This represents the input image. These represent the red, green, and blue channels of the image, respectively. Fidelity loss is used to preserve important details of the original image to ensure that the estimated illumination components remain highly consistent with the input of each module at the pixel level. in, Indicates a loss of fidelity. This indicates the number of light enhancement modules and light adjustment modules. This indicates a preliminary estimate of the light component. This represents the enhanced image. Indicates self-calibration characteristics; A smoothing term with a spatial variation norm is used as the illumination smoothing loss: in, Indicates the loss of illumination smoothness. Represents the total number of pixels. express Pixels in window Adjacent pixels, Indicates color affinity. This indicates the initial estimated illumination components for the i-th and j-th elements. express; The color affinity Calculation: in, Represents the image channels in the YUV color space. This represents the enhanced image under color channel c. This indicates the self-calibration feature under color channel c. This represents the Gaussian kernel standard deviation. ; Color constancy loss is used to ensure that each color is rendered as gray on an average basis across the entire image, thus addressing potential color bias issues that may occur in enhanced images. in, Indicates loss of color constancy. Indicating the enhanced image The average gray value of the channel, Indicating the enhanced image The average gray value of the channel, This represents a pair of channels in an RGB image; By combining various losses, a consistency loss function is constructed between the enhanced image and the normally illuminated image for different channel color ratios on the same pixel: S6: Through the design of self-attention regularization, it suppresses the over-enhancement of the highlight parts of the image.
2. The unsupervised low-light image enhancement method based on color consistency prior as described in claim 1, characterized in that, The low-light image is input into a self-attention-guided illumination estimation module to initially estimate the illumination components, including: Illumination constraints are established for the R, G, and B channels of the low-light image to adjust the image exposure, accurately restore the image color, and make the image present a more natural visual effect. Low-light images The corresponding illumination constraint components are stitched together in the channel dimension to obtain the low-light image. intermediate feature components ; For intermediate feature components A preliminary illumination estimate is performed to obtain the preliminary estimated illumination components. .
3. The unsupervised low-light image enhancement method based on color consistency prior as described in claim 2, characterized in that, Illumination constraints are established for the R, G, and B channels of the low-light image, including: in, Indicates the corresponding channel in pixel coordinates Lighting constraints on Indicates the corresponding channel in coordinates The pixel grayscale value at that location, This indicates the maximum grayscale value within the corresponding channel.
4. The unsupervised low-light image enhancement method based on color consistency prior as described in claim 2, characterized in that, Illumination constraints are established for the R, G, and B channels of the low-light image to adjust the image exposure, accurately restore the image color, and make the image present a more natural visual effect, including: in, Represents the pixel coordinates of an image The lighting constraint component on, Indicates the R channel at pixel coordinates Lighting constraints on Indicates the G channel at pixel coordinates Lighting constraints on Indicates the B channel at pixel coordinates Lighting constraints on This indicates a channel connection operation.
5. The unsupervised low-light image enhancement method based on color consistency prior as described in claim 2, characterized in that, Low-light images The corresponding illumination constraint components are stitched together in the channel dimension to obtain the low-light image. intermediate feature components ,include: in, Indicates intermediate feature components, Represents the overall illumination constraint components of the image. Indicates a low-light image. This indicates a channel connection operation.
6. The unsupervised low-light image enhancement method based on color consistency prior as described in claim 2, characterized in that, For intermediate feature components A preliminary illumination estimate is performed to obtain the preliminary estimated illumination components. ,include: in, This indicates a preliminary estimate of the light component. Indicates intermediate feature components, This represents the network structure of the self-attention-guided illumination estimation module. This represents the network parameters of the self-attention-guided illumination estimation module.
7. The unsupervised low-light image enhancement method based on color consistency prior as described in claim 1, characterized in that, The illumination adjustment module is used to refine and optimize the initially estimated illumination components, resulting in an enhanced image, including: in, This represents the enhanced image. Indicates self-calibration characteristics. This indicates a preliminary estimate of the light component. This represents the network structure of the illumination adjustment module. This indicates the network parameters of the illumination adjustment module. This indicates a low-light image.
8. The unsupervised low-light image enhancement method based on color consistency prior as described in claim 1, characterized in that, By employing self-attention regularization, excessive enhancement of the image's highlight components is suppressed, including: Lighting constraint components The output of the illumination enhancement module is multiplied element-wise to assign higher enhancement weights to dark areas of the image and lower enhancement weights to bright areas, thereby achieving image regularization design and adjusting the weights of each region of the image.
Citation Information
Patent Citations
Unsupervised learning method and system for low-illumination image enhancement
CN113313657A
Low-illumination image enhancement method and system and readable storage medium
CN115170415A
