Medical image enhancement method and system based on generative adversarial and latent space decomposition
By employing a LasdrillGAN architecture constrained by latent space decomposition and illumination uniformity, this method addresses the issues of inaccurate separation of content and style features and insufficient illumination uniformity in existing medical image enhancement methods. It achieves the generation of high-quality medical images and is applicable to the enhancement of medical images such as confocal microscope images, fundus color images, and endoscope images.
Patent Information
- Application Number
- CN202311295254.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-08
AI Technical Summary
Existing medical image enhancement methods struggle to accurately separate image content and stylistic features, and cannot effectively improve image illumination uniformity, thus affecting the effectiveness of clinical diagnosis and intelligent medical diagnosis.
We employ a latent space decomposition representation and an illumination homogenization-constrained generative adversarial network (LasdrillGAN) architecture to map images to the latent space and decompose them into content feature components and style feature components. We construct self-supervised constraint terms and introduce illumination homogenization constraint terms. We then use a bidirectional generative adversarial network to enhance medical images.
It significantly improves the imaging quality of medical images without requiring strict alignment of image pairs, enhancing the uniformity of illumination and the clarity of local details, and has potential clinical application value.
Smart Images

Figure CN117372243B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of image processing technology, specifically relating to a medical image enhancement method and system based on generative adversarial science and latent space decomposition. Background Technology
[0002] In recent years, the rapid development of medical imaging technology has brought about a revolution in the field of clinical medicine. Medical images typically provide clinicians with a wealth of information about biological or anatomical tissues; this plays a crucial role in accurate diagnosis and treatment. However, regardless of whether the same or different equipment is used, medical images often exhibit significant quality variations—manifesting defects such as uneven grayscale, low contrast, noticeable blurring, or noise, all of which can occur during image acquisition. Figure 1 Examples of high- and low-quality medical images in three modalities are presented. Compared to natural scene images, most medical images are formed by imaging processes with specific quality degradation factors, which can lead to a variety of low-quality appearances, posing additional challenges to clinical applications. The low quality of medical images also affects the performance of many subsequent image analysis tasks, such as specific structure segmentation and lesion detection, or other computer-aided diagnostic tasks. Therefore, fully automated and reliable medical image enhancement techniques are crucial for clinical diagnosis and intelligent medical diagnosis.
[0003] Prior to this, several traditional medical image enhancement methods have been proposed. These methods include histogram equalization (HE), dark channel prior (DCP), filtering-based methods, and Retinex-based methods. However, they are often sensitive to certain parameters that lack adaptability and require manual adjustment. Recently, due to improvements in data volume and computational performance, deep learning techniques have also demonstrated their advantages in low-level computer vision tasks, where image enhancement can be viewed as an image-to-image transformation task. The most common deep learning methods are based on supervised learning, which requires strictly aligned image pairs during training. For medical images, it is difficult to obtain such low / high-quality image pairs for training in real-world scenarios. Therefore, some unsupervised learning frameworks have emerged, but these frameworks are often unstable, sometimes amplifying noise or producing artifacts. Therefore, it is of great significance to research a stable medical image enhancement technique that does not require aligned image pairs and can fully capture local information.
[0004] Previous research has shown that Cycle-consistent Generative Adversarial Networks (CycleGANs), as a popular non-paired learning architecture for image-to-image translation, have the advantage of transferring knowledge of typical image representations learned in one image domain to another without requiring strictly aligned image pairs. However, CycleGANs primarily focus on learning global appearance within an image domain and inter-domain cycle consistency, failing to accurately separate image content and style information. This can still lead to the loss of local details or the generation of artifacts in the translated image. Furthermore, due to the lack of relevant constraints, CycleGANs struggle to effectively improve the illumination uniformity of translated images. In medical images, global illumination quality and local detail are particularly important for clinical interpretation. High-quality medical images should have uniform illumination and clear, unambiguous structural details. Therefore, this invention views medical image enhancement as a transformation task from a low-quality image domain to a high-quality image domain, and proposes a new medical image enhancement framework, called Latent space decomposition representation and illumination homogenization constrained GAN (LasdrillGAN), by combining it with latent space decomposition representation and illumination homogenization constrained GAN. Summary of the Invention
[0005] This invention addresses the difficulty of existing image enhancement algorithms in accurately separating image content and style features for processing and effectively improving image illumination uniformity. It proposes a Latent space decomposition representation and illumination homogenization constrained generative adversarial network (LasdrillGAN) architecture for medical image enhancement. This architecture maps the image to the latent space and decomposes it into content feature components and style feature components based on a bidirectional generative adversarial network. It constructs self-supervised constraint terms using the reconstruction relationship between the content feature components and style feature components, and further introduces illumination homogenization constraint terms for the enhanced image.
[0006] To achieve the aforementioned objectives, the present invention employs the following solution:
[0007] One aspect of the present invention provides a medical image enhancement method based on generative adversarial science and latent space decomposition, comprising:
[0008] Acquiring low-quality images;
[0009] Construct a non-pairwise learning model based on a bidirectional generative adversarial network; the non-pairwise learning model includes: a content encoder E C Style Encoder E S Style enhancer Style Degrader Image reconstructor R and two discriminators D LQ and D HQ Among them, content encoder E C and style encoder E S The image is mapped to a latent space, and content and style features are extracted separately by the style enhancer. and style degenerate The input style features are converted into high-quality and low-quality style features respectively. The image reconstructor R generates an image with corresponding content and style features based on the input content and style features. The discriminator D... LQ The discriminator D learns to distinguish between real low-quality images and generated low-quality images from the input image. HQ Learn to distinguish between real, high-quality images and generated, high-quality images from input images;
[0010] The low-quality image is input into the non-paired learning model to obtain a high-quality image.
[0011] Another aspect of the present invention provides a medical image enhancement system based on generative adversarial science and latent space decomposition, characterized in that the system comprises:
[0012] The image acquisition module is used to acquire low-quality images;
[0013] The model building module is used to construct a non-pairwise learning model based on a bidirectional generative adversarial network; the non-pairwise learning model includes: a content encoder E C Style Encoder E S Style enhancer Style Degrader Image reconstructor R and two discriminators D LQ and D HQ Among them, content encoder E C and style encoder E S The image is mapped to a latent space, and content and style features are extracted separately by the style enhancer. and style degenerate The input style features are converted into high-quality and low-quality style features respectively. The image reconstructor R generates an image with corresponding content and style features based on the input content and style features. The discriminator D... LQ The discriminator D learns to distinguish between real low-quality images and generated low-quality images from the input image.HQ Learn to distinguish between real, high-quality images and generated, high-quality images from input images;
[0014] An image enhancement module is used to input the low-quality image into the non-paired learning model to obtain a high-quality image.
[0015] Compared with the prior art, the present invention has at least the following advantages:
[0016] (1) This invention constructs a bidirectional generative adversarial network LasdrillGAN to improve the imaging quality of medical images without providing strictly aligned high and low quality image pairs.
[0017] (2) The present invention maps the image to the latent space and decomposes it into content feature components and style feature components, and constructs self-supervised constraint terms by utilizing the reconstruction relationship between the content feature components and style feature components.
[0018] (3) This invention proposes for the first time an illumination uniformity constraint term and introduces it into the objective function of LasdrillGAN, so that the model can further improve the illumination uniformity of the enhanced image.
[0019] (4) The present invention has conducted rigorous quantitative evaluation on three different modalities of medical images: confocal microscopy, fundus color photography, and endoscopy. The results show that the technology used in the invention can effectively improve the imaging quality of medical images and has potential clinical application value. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 Examples of high- and low-quality medical images in different modalities;
[0022] Figure 2 This is a structural diagram of the LasdrillGAN components in one embodiment of the present invention; Figure 2 (a) in the text is the content / style encoder. Figure 2 (b) in the image is an image reconstructor. Figure 2 (c) in the diagram represents the discriminator. Figure 2 (d) in the text refers to the style enhancer / degrader;
[0023] Figure 3 This is a diagram of the overall training framework of LasdrillGAN in one embodiment of the present invention. Figure 3 (a) in the diagram represents the positive conversion process. Figure 3 (b) in the diagram represents the reverse conversion process;
[0024] Figure 4 This is a schematic diagram of the self-supervised constraint terms of LasdrillGAN in one embodiment of the present invention;
[0025] Figure 5 This is an image enhancement result of corneal confocal microscopy according to an embodiment of the present invention, wherein the left image is the original image and the right image is the corresponding enhancement result;
[0026] Figure 6 This is an enhanced fundus photograph result according to an embodiment of the present invention, wherein the left image is the original image and the right image is the corresponding enhanced result;
[0027] Figure 7 This is an endoscopic image enhancement result according to an embodiment of the present invention, wherein the left image is the original image and the right image is the corresponding enhancement result. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Examples of these preferred embodiments are illustrated in the drawings. The embodiments of the present invention shown in and described with reference to the drawings are merely exemplary, and the present invention is not limited to these embodiments.
[0029] It should also be noted that, in order to avoid obscuring the invention with unnecessary details, only the structures and / or processing steps closely related to the solution according to the invention are shown in the accompanying drawings, while other details that are not closely related to the invention are omitted.
[0030] One aspect of the present invention provides a medical image enhancement method based on generative adversarial science and latent space decomposition, comprising:
[0031] Acquiring low-quality images;
[0032] Construct a non-pairwise learning model based on a bidirectional generative adversarial network; the non-pairwise learning model includes: a content encoder E C Style Encoder E S Style enhancer Style Degrader Image reconstructor R and two discriminators D LQ and D HQ Among them, content encoder E C and style encoder E S The image is mapped to a latent space, and content and style features are extracted separately by the style enhancer. and style degenerate The input style features are converted into high-quality and low-quality style features respectively. The image reconstructor R generates an image with corresponding content and style features based on the input content and style features. The discriminator D... LQ The discriminator D learns to distinguish between real low-quality images and generated low-quality images from the input image. HQ Learn to distinguish between real, high-quality images and generated, high-quality images from input images;
[0033] The low-quality image is input into the non-paired learning model to obtain a high-quality image.
[0034] In one embodiment, the training process of the non-paired learning model includes two processes: forward transformation and reverse transformation.
[0035] During the forward transformation, for a real low-quality image a∈LQ, where LQ is the image domain containing the low-quality image, after passing through the content encoder E... C and style encoder E S After extracting content and style features separately, a style enhancer is used. The style features are transformed and combined with the content features, then input into the image reconstructor R to generate a corresponding high-quality image; the style degenerate is then used again. The style features are transformed and combined with the content features, then input into the image reconstructor R to regenerate the corresponding low-quality image; the style features of a are directly passed through the style degenerate. The transformed image, combined with content features, is input into the image reconstructor R, but it still generates a corresponding low-quality image.
[0036] During the reverse transformation, for a true high-quality image b∈HQ, where HQ is the image domain containing the high-quality image, after passing through the content encoder E... C and style encoder E S After extracting content and style features separately, a style degenerate is used. The style features are transformed and combined with the content features, then input into the image reconstructor R to generate a corresponding low-quality image; the style enhancer is then used again. The style features are transformed and combined with the content features, then input into the image reconstructor R to regenerate the corresponding high-quality image; the style features of b are directly passed through the style enhancer. The transformed image is combined with the content features and input into the image reconstructor R, which still generates a corresponding high-quality image.
[0037] In one embodiment, the objective function of the non-paired learning model includes a basic objective function, a self-supervised constraint term, and an illumination homogenization constraint term; the basic objective function includes an adversarial loss term, a cycle consistency loss term, and an identity mapping loss term; the self-supervised constraint term includes a self-reconstruction consistency constraint term and a mutual reconstruction style adversarial constraint term.
[0038] In one embodiment, the basic objective function is specifically:
[0039]
[0040] Among them, L adv L cyc and L idt λ1 and λ2 represent the adversarial loss term, the cycle consistency loss term, and the identity mapping loss term, respectively; λ1 and λ2 represent the weighting coefficients of the cycle consistency loss term and the identity mapping loss term, respectively.
[0041] In one embodiment, the expression for the self-reconstruction consistency constraint is:
[0042] L sr (E C E S ,R)=E a∈LQ [||R(E C (a), E S (a))-a||1]+E b∈HQ [||R(E C (b), E S (b))-b||1];
[0043] The expression for the mutual reconstruction style adversarial constraint term is:
[0044] L cr (E C E s R, D LQ D HQ ) = E a∈LQ,b∈HQ [log(1-D LQ (R(E C (b), E S (a))))]+E a∈LQ,b∈HQ [log(1-D HQ (R(E C (a), E S (b))))];
[0045] The expression for the illumination homogenization constraint term is:
[0046]
[0047] Where δ is a small positive constant, representing the boundary value between the illumination distribution matrices of the images before and after enhancement. E represents the calculation of the illumination matrix based on each p×p local region in the input image. global [·] indicates that the global average of the input image is calculated, f linear (·) indicates that the element values in the input matrix are linearly normalized to [0, 1].
[0048] Another aspect of the present invention provides a medical image enhancement system based on generative adversarial science and latent space decomposition, the system comprising:
[0049] The image acquisition module is used to acquire low-quality images;
[0050] The model building module is used to construct a non-pairwise learning model based on a bidirectional generative adversarial network; the non-pairwise learning model includes: a content encoder E C Style Encoder E S Style enhancer Style Degrader Image reconstructor R and two discriminators D LQ and D HQ Among them, content encoder E C and style encoder E S The image is mapped to a latent space, and content and style features are extracted separately by the style enhancer. and style degenerate The input style features are converted into high-quality and low-quality style features respectively. The image reconstructor R generates an image with corresponding content and style features based on the input content and style features. The discriminator D... LQ The discriminator D learns to distinguish between real low-quality images and generated low-quality images from the input image. HQ Learn to distinguish between real, high-quality images and generated, high-quality images from input images;
[0051] An image enhancement module is used to input the low-quality image into the non-paired learning model to obtain a high-quality image.
[0052] In one embodiment, the training process of the non-paired learning model includes two processes: forward transformation and reverse transformation.
[0053] During the forward transformation, for a real low-quality image a∈LQ, after passing through the content encoder E... C and style encoder E S After extracting content and style features separately, a style enhancer is used. The style features are transformed and combined with the content features, then input into the image reconstructor R to generate a corresponding high-quality image; the style degenerate is then used again. The style features are transformed and combined with the content features, then input into the image reconstructor R to regenerate the corresponding low-quality image; the style features of a are directly passed through the style degenerate. The transformed image, combined with content features, is input into the image reconstructor R, but it still generates a corresponding low-quality image.
[0054] During the inverse transformation, for a true high-quality image b∈HQ, after passing through the content encoder E... C and style encoder E S After extracting content and style features separately, a style degenerate is used. The style features are transformed and combined with the content features, then input into the image reconstructor R to generate a corresponding low-quality image; the style enhancer is then used again. The style features are transformed and combined with the content features, then input into the image reconstructor R to regenerate the corresponding high-quality image; the style features of b are directly passed through the style enhancer. The transformed image is combined with the content features and input into the image reconstructor R, which still generates a corresponding high-quality image.
[0055] In one embodiment, the objective function of the non-paired learning model includes a basic objective function, a self-supervised constraint term, and an illumination homogenization constraint term; the basic objective function includes an adversarial loss term, a cycle consistency loss term, and an identity mapping loss term; the self-supervised constraint term includes a self-reconstruction consistency constraint term and a mutual reconstruction style adversarial constraint term.
[0056] In one embodiment, the basic objective function is specifically:
[0057]
[0058] Among them, L adv L cyc and L idt λ1 and λ2 represent the adversarial loss term, the cycle consistency loss term, and the identity mapping loss term, respectively; λ1 and λ2 represent the weighting coefficients of the cycle consistency loss term and the identity mapping loss term, respectively.
[0059] In one embodiment, the expression for the self-reconstruction consistency constraint is:
[0060] L sr (E C E S ,R)=E a∈LQ [||R(E C (a), E S (a))-a||1]+E b∈HQ [||R(EC (b), E S (b))-b||1];
[0061] The expression for the mutual reconstruction style adversarial constraint term is:
[0062] L cr (E c E S R, D LQ D HQ ) = E a∈LQ,b∈HQ [log(1-D LQ (R(E C (b), E S (a))))]+E a∈LQ,b∈HQ [log(1-D HQ (R(E C (a), E S (b))))];
[0063] The expression for the illumination homogenization constraint term is:
[0064]
[0065] Where δ is a small positive constant, representing the boundary value between the illumination distribution matrices of the images before and after enhancement. E represents the calculation of the illumination matrix based on each p×p local region in the input image. global [·] indicates that the global average of the input image is calculated, f linear (·) indicates that the element values in the input matrix are linearly normalized to [0, 1].
[0066] This invention addresses the challenge of existing image enhancement algorithms in accurately separating image content and style features for processing and effectively improving image illumination uniformity. It proposes a Latent Space Decomposition Representation and Illumination Homogenization Constrained Generative Adversarial Network (LasdrillGAN) architecture for medical image enhancement. This architecture maps the image to a latent space and decomposes it into content and style feature components based on a bidirectional generative adversarial network. It constructs self-supervised constraints using the reconstruction relationship between the content and style feature components and further introduces illumination uniformity constraints specifically for enhanced images.
[0067] The technical solution of this invention to achieve the above objectives is as follows: 1) We regard the medical image enhancement task as a transformation task from a low-quality image domain to a high-quality image domain, and construct a non-paired learning framework based on a bidirectional generative adversarial network to realize this transformation task. 2) Our constructed non-paired learning framework maps the image to the latent space and decomposes it into content feature components and style feature components, and constructs a self-supervised constraint term using the reconstruction relationship between the content feature components and style feature components. 3) We introduce an illumination uniformity constraint term into the objective function of this non-paired learning framework to improve the illumination uniformity of the enhanced image. The framework includes a content encoder, a style encoder, a style enhancer, a style degrader, an image reconstructor, and two discriminators, wherein the content encoder and style encoder, the style enhancer and style degrader, and the two discriminators have the same network structure, such as... Figure 2 As shown, the specific content is as follows:
[0068] 1. A novel non-pairwise learning framework, LasdrillGAN
[0069] In this invention, our proposed LasdrillGAN framework can learn the mapping from the low-quality image domain (LQ) to the high-quality image domain (HQ) without using paired images during the training phase. Figure 3 As shown. Our LasdrillGAN employs a content encoder E C Style Encoder E S Style enhancer Style Degrader Image reconstructor R and a pair of discriminators (D) LQ and D HQ ), where the content encoder E C and style encoder E S The image is mapped to a latent space, and content and style features are extracted separately by the style enhancer. and style degenerate The input style features are converted into high-quality and low-quality style features respectively. The image reconstructor R generates an image with corresponding content and style features based on the input content and style features. For the discriminator, D... LQ D learns to distinguish between real low-quality images and generated low-quality images from input images. HQ The system learns to distinguish between real, high-quality input images and generated, high-quality images. During the testing phase, for low-quality images 'a', we use the pre-trained content encoder E. C and style encoder E S Content and style features are extracted separately, and then a style enhancer is applied. After transforming the style features, they are combined with the content features and input into the image reconstructor R to obtain the corresponding enhanced image. It can be represented as
[0070] To effectively extract image content and style features, the content encoder E... C and style encoder E S All models employ a pre-trained ResNet-101 feature extractor structure. Style enhancer and style degenerate All models employ the ResNeSt module with a grouped attention module. This module treats style features as combinations of different feature groups and then applies a channel attention mechanism to these feature groups, thereby achieving adaptive enhancement and degradation transformation of style features. The image reconstructor R consists of five upsampling modules. Each upsampling module adopts a structure of bicubic interpolation followed by a residual block. The residual block adopts two cascaded 3×3 convolution-batch normalization-Leaky ReLU forms, and a shortcut connection is used between the input and output.
[0071] For discriminant D LQ and D HQ We adopted the PatchGAN architecture for all tests. Unlike traditional discriminators, PatchGAN distinguishes between real and generated images based on local regions rather than the entire image. PatchGAN consists of five 4×4 convolutional layers, with the first three layers having a stride of 2 and the last two layers having a stride of 1. The first four layers use Leaky ReLU with a slope of 0.2, the middle three layers use batch normalization, and the output layer applies the Sigmoid activation function to obtain the final output, where each output pixel represents the probability that the corresponding local region of the input image is identified as coming from a real sample. With the above settings, we set the receptive field of PatchGAN, i.e., the size of the local region to be identified in the input image, to 70×70. This makes PatchGAN lighter and faster than traditional discriminators, while still guiding the entire framework to produce realistic processing results.
[0072] 2. The main objective function in the LasdrillGAN framework
[0073] As a bidirectional generative adversarial network framework, LasdrillGAN's basic objective function comprises three terms: adversarial loss, cycle consistency loss, and identity mapping loss. Furthermore, based on the reconstruction relationship between image content and style features and the uniform illumination distribution characteristics of high-quality images, LasdrillGAN also introduces self-supervised constraints and illumination homogenization constraints to constrain the accuracy of image content and style feature decomposition representations, and optimizes the illumination uniformity of the enhanced image during the learning process of medical image enhancement.
[0074] (1) Basic objective function
[0075] The basic objective function of LasdrillGAN is represented by the sum of adversarial loss, cycle consistency loss, and identity mapping loss.
[0076] The training process of LasdrillGAN includes two processes: forward transformation and inverse transformation, such as... Figure 3 As shown.
[0077] During the forward transformation, for a real low-quality image a∈LQ, after passing through the content encoder E... C and style encoder E S After extracting content and style features separately, a style enhancer is used. By transforming the style features and combining them with the content features, the input image reconstructor R can generate a corresponding high-quality image; the style degenerate is then used again. By transforming style features and combining them with content features, the input image reconstructor R can regenerate the corresponding low-quality image.
[0078] Specifically, the style characteristics of 'a' are directly processed by the style degenerate. The transformed image, combined with content features, is input into the image reconstructor R, still generating a corresponding low-quality image. Similarly, in the inverse transformation process, for a true high-quality image b∈HQ, after passing through the content encoder E... C and style encoder E S After extracting content and style features separately, a style degenerate is used. Transforming style features and combining them with content features, then inputting the image into image reconstructor R, generates a corresponding low-quality image; the style enhancer is then used again... By transforming style features and combining them with content features, the input image reconstructor R can regenerate the corresponding high-quality image.
[0079] Specifically, the style characteristics of b are directly processed by the style enhancer. The transformed image, combined with content features, is input into the image reconstructor R, still generating a corresponding high-quality image. Discriminator DH Q (D LQ The learning process distinguishes between generated high-quality (low-quality) images and real high-quality (low-quality) images, and the resulting adversarial loss term is represented as follows:
[0080]
[0081]
[0082] For a high-quality image b∈HQ, style features are sequentially processed by a style degenerate. and style enhancer The high-quality image generated by the image reconstructor R, after transformation and combination with content features, should be as consistent as possible with b, denoted as: Therefore, the cycle consistency loss term is defined as:
[0083]
[0084] Specifically, for high-quality images b∈HQ, style features are directly processed by the style enhancer. The high-quality image generated by the image reconstructor R after transformation and combination with content features should still be as consistent as possible with b, denoted as: Therefore, the identity mapping loss term is defined as:
[0085]
[0086] Therefore, the basic objective function is expressed as:
[0087]
[0088] Among them, L adv L cyc and L idt λ1 and λ2 represent the adversarial loss term, the cycle consistency loss term, and the identity mapping loss term, respectively; λ1 and λ2 represent the weighting coefficients of the cycle consistency loss term and the identity mapping loss term, respectively.
[0089] While this bidirectional generative adversarial network framework with only a basic objective function can achieve inter-domain image translation, the risk of erroneous translation remains due to biases in content and style feature learning. Furthermore, removing overly dark or bright areas from the image to make the overall enhanced image more uniform and consistent with human visual perception is a challenge. To address these issues, we introduce two new constraints—self-supervised constraints (such as...) Figure 4 (as shown) and illumination uniformity constraints (such as) Figure 3 (As indicated by the purple dashed arrow), to effectively constrain the content encoder E C and style encoder E S It accurately learns content and style features, guides the image reconstructor R to perform accurate reconstruction, and further enhances the illumination uniformity of the image.
[0090] (2) Self-supervised constraint terms
[0091] To ensure the accuracy of image content and style feature learning, we propose self-supervised constraints, including self-reconstruction consistency constraints and mutual reconstruction style adversarial constraints.
[0092] The purpose of the self-reconstruction consistency constraint is to enable the image reconstructor R to recover the corresponding original image as accurately as possible from the content and style features extracted from the same high-quality or low-quality image samples. Therefore, the expression for the self-reconstruction consistency constraint is as follows:
[0093] L sr (E C E S ,R)=E a∈LQ [||R(E C (a), E S (a))-a||1]+E b∈HQ [||R(E C (b), E S (b))-b||1](5)
[0094] The purpose of the mutual reconstruction style adversarial constraint is to combine content and style features from samples of different image domains, so that the image output by the image reconstructor R belongs to the image domain corresponding to the combined style features. Therefore, the expression for the mutual reconstruction style adversarial constraint is as follows:
[0095] L cr (E C E S R, D LQ D HQ ) = E a∈LQ,b∈HQ [log(1-D LQ (R(E C (b), E S (a))))]+E a∈LQ,b∈HQ [log(1-D HQ (R(E C (a), E S (b))))] (6)
[0096] (3) Illumination homogenization constraint
[0097] To improve the overall illumination uniformity of the enhanced image, we propose an illumination homogenization constraint. This constraint calculates and compares the illumination distribution matrix of the low-quality image 'a' before and after style enhancement, aiming to guide the framework to further improve the illumination uniformity of the enhanced image. The illumination distribution matrix is a quantitative feature reflecting the illumination non-uniformity in the enhanced image and can serve as prior knowledge for human vision. The steps for calculating the illumination distribution matrix of a given image 'I' are as follows:
[0098] 1) Calculate the global average gray level of image I;
[0099] 2) Divide the image I into n×m local regions of the same size without overlap, then calculate the average gray level of each local region and arrange them according to the location of the local region to obtain the illumination matrix;
[0100] 3) Subtract the global average gray level of image I from each element in the illumination matrix to form the illumination difference matrix;
[0101] 4) Linearly normalize the element values in the illumination difference matrix to [0, 1] to obtain the illumination distribution matrix.
[0102] Here is a brief explanation of the above steps: The global average gray level calculated in step 1 represents the overall illumination level in the input image. The average gray level of each local region divided in step 2 represents the local illumination distribution in the input image. From steps 3 to 4, we obtain the illumination difference matrix and illumination distribution matrix of image I. The entire process can be represented as:
[0103]
[0104] in, E represents the calculation of the illumination matrix based on each p×p local region in the input image. global [·] indicates that the global average of the input image is calculated, f linear (·) indicates that the element values in the input matrix are linearly normalized to [0, 1].
[0105] Based on the calculated illumination distribution matrix, we define the illumination homogenization constraint term as follows:
[0106]
[0107] Where δ is a small positive constant, representing the boundary value between the illumination distribution matrices of the images before and after enhancement.
[0108] It should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This way of describing the specification is only for clarity. Those skilled in the art should regard the specification as a whole, and the technical solutions of each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
Claims
1. A medical image enhancement method based on generative adversarial science and latent space decomposition, characterized in that, include: Acquiring low-quality images; Construct a non-pairwise learning model based on a bidirectional generative adversarial network; The non-pairwise learning model includes: a content encoder. Style encoder Style enhancer Style Degrader Image Reconstructor and two discriminators and Among them, the content encoder and style encoder The image is mapped to a latent space, and content and style features are extracted separately by the style enhancer. and style degenerate The image reconstructor converts the input style features into high-quality and low-quality style features respectively. The discriminator generates images with corresponding content and style features based on the input. The discriminator learns to distinguish between real low-quality images and generated low-quality images from the input image. Learn to distinguish between real, high-quality images and generated, high-quality images from input images; The low-quality image is input into the non-paired learning model to obtain a high-quality image.
2. The medical image enhancement method according to claim 1, characterized in that, The training process of the non-paired learning model includes two processes: forward transformation and reverse transformation. During the forward conversion process, for real low-quality images The For the image domain containing low-quality images, after passing through the content encoder and style encoder After extracting content and style features separately, a style enhancer is used. The style features are transformed and combined with the content features into the input image reconstructor. This generates a corresponding high-quality image; the style degenerate is then used again. The style features are transformed and combined with the content features into the input image reconstructor. Regenerate the corresponding low-quality image; The stylistic features are directly processed by the style degenerate. The transformed image is combined with content features and input into the image reconstructor. However, it still generates corresponding low-quality images; During the reverse conversion process, for real high-quality images The For the image domain containing high-quality images, after passing through the content encoder and style encoder After extracting content and style features separately, a style degenerate is used. The style features are transformed and combined with the content features into the input image reconstructor. This generates a corresponding low-quality image; the style enhancer is then used again. The style features are transformed and combined with the content features into the input image reconstructor. Regenerate the corresponding high-quality image; The style characteristics are directly processed by the style enhancer. The transformed image is combined with content features and input into the image reconstructor. It still generates corresponding high-quality images.
3. The medical image enhancement method according to claim 2, characterized in that, The objective function of the non-pairwise learning model includes a basic objective function, a self-supervised constraint term, and an illumination homogenization constraint term; the basic objective function includes an adversarial loss term, a cycle consistency loss term, and an identity mapping loss term; the self-supervised constraint term includes a self-reconstruction consistency constraint term and a mutual reconstruction style adversarial constraint term. The expression for the self-reconstruction consistency constraint is: ; The expression for the mutual reconstruction style adversarial constraint term is: ; The expression for the illumination homogenization constraint term is: ; in, A small positive constant represents the boundary value between the illumination distribution matrices of the images before and after enhancement. , This indicates that each segment in the input image is divided into... Calculate the illumination matrix for a local region of a certain size. This indicates that the global average of the input image is calculated. This means that the element values in the input matrix are linearly normalized to [0,1].
4. The medical image enhancement method according to claim 3, characterized in that, The specific basic objective function is as follows: ; ; in, , and These represent the adversarial loss term, the cycle consistency loss term, and the identity mapping loss term, respectively. and These represent the weighting coefficients of the cycle consistency loss term and the identity mapping loss term, respectively.
5. A medical image enhancement system based on generative adversarial science and latent space decomposition, characterized in that, include: The image acquisition module is used to acquire low-quality images; The model building module is used to build non-pairwise learning models based on bidirectional generative adversarial networks. The non-pairwise learning model includes: a content encoder. Style encoder Style enhancer Style Degrader Image Reconstructor and two discriminators and Among them, the content encoder and style encoder The image is mapped to a latent space, and content and style features are extracted separately by the style enhancer. and style degenerate The image reconstructor converts the input style features into high-quality and low-quality style features respectively. The discriminator generates images with corresponding content and style features based on the input. The discriminator learns to distinguish between real low-quality images and generated low-quality images from the input image. Learn to distinguish between real, high-quality images and generated, high-quality images from input images; An image enhancement module is used to input the low-quality image into the non-paired learning model to obtain a high-quality image.
6. The medical image enhancement system according to claim 5, characterized in that, The training process of the non-paired learning model includes two processes: forward transformation and reverse transformation. During the forward conversion process, for real low-quality images The For the image domain containing low-quality images, after passing through the content encoder and style encoder After extracting content and style features separately, a style enhancer is used. The style features are transformed and combined with the content features into the input image reconstructor. This generates a corresponding high-quality image; the style degenerate is then used again. The style features are transformed and combined with the content features into the input image reconstructor. Regenerate the corresponding low-quality image; The stylistic features are directly processed by the style degenerate. The transformed image is combined with content features and input into the image reconstructor. However, it still generates corresponding low-quality images; During the reverse conversion process, for real high-quality images The For the image domain containing high-quality images, after passing through the content encoder and style encoder After extracting content and style features separately, a style degenerate is used. The style features are transformed and combined with the content features into the input image reconstructor. This generates a corresponding low-quality image; the style enhancer is then used again. The style features are transformed and combined with the content features into the input image reconstructor. Regenerate the corresponding high-quality image; The style characteristics are directly processed by the style enhancer. The transformed image is combined with content features and input into the image reconstructor. It still generates corresponding high-quality images.
7. The medical image enhancement system according to claim 6, characterized in that, The objective function of the non-pairwise learning model includes a basic objective function, a self-supervised constraint term, and an illumination homogenization constraint term; the basic objective function includes an adversarial loss term, a cycle consistency loss term, and an identity mapping loss term; the self-supervised constraint term includes a self-reconstruction consistency constraint term and a mutual reconstruction style adversarial constraint term. The expression for the self-reconstruction consistency constraint is: ; The expression for the mutual reconstruction style adversarial constraint term is: ; ; The expression for the illumination homogenization constraint term is: ; in, A small positive constant represents the boundary value between the illumination distribution matrices of the images before and after enhancement. , This indicates that each segment in the input image is divided into... Calculate the illumination matrix for a local region of a certain size. This indicates that the global average of the input image is calculated. This means that the element values in the input matrix are linearly normalized to [0,1].
8. The system according to claim 7, characterized in that, The specific basic objective function is as follows: ; ; in, , and These represent the adversarial loss term, the cycle consistency loss term, and the identity mapping loss term, respectively. and These represent the weighting coefficients of the cycle consistency loss term and the identity mapping loss term, respectively.
Citation Information
Patent Citations
Image enhancement method for forward and reverse bidirectional learning based on symmetric neural network
CN113240605A
General image quality enhancement method and device based on cyclic consistency loss
CN113469904A
