A self-supervised denoising method for single-frame OCT images with enhanced edge details
By constructing an OCT single-frame image self-supervised denoising model that includes a global mask and a denoising network, combined with a spatial difference perception module and a content-aware feature reorganization module, the existing technology's reliance on clean reference images for OCT image denoising methods is solved. Limitations and loss of edge details, achieving efficient image denoising and detail retention.
Patent Information
- Application Number
- CN202410706336.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Existing OCT image denoising methods rely on a large number of clean reference images, which are difficult to obtain, and cannot fully extract and retain edge detail features in the image, resulting in poor denoising effects in complex noise situations and easy over-smoothing of edge details.
A self-supervised denoising method for OCT single-frame images that enhances edge details is adopted. By constructing a model including a global masker, a neighbor sampler, a denoising network and a global mask mapper, the spatial difference perception module and the content-aware feature recombination module are combined. , optimize the denoising network structure to retain edge information, calculate reconstruction loss and regularization loss for backpropagation, and avoid the limitation of requiring a large number of clean reference images.
It achieves efficient denoising of OCT images without clean reference images, accurately retains edge details and structural information, avoids over-smoothing of images, and improves the denoising effect.
Smart Images

Figure CN118279182B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of OCT image denoising, and in particular to an OCT single-frame image self-supervised denoising method for enhancing edge details. Background Art
[0002] Fundus OCT (Optical Coherence Tomography) images are an emerging technology that detects light through the refractive matrix of the inspected eye to reach the retina, obtains tissue thickness and distance information provided by reflections from different tissue interfaces in the eye, and restores it into images and data. Due to its advantages such as real-time, high resolution, and non-invasiveness, it has been widely used in ophthalmic imaging and diagnosis. However, similar to most word images, OCT images are susceptible to a variety of noise factors during the acquisition process. These noises will lead to a decline in image quality, which is manifested in low image signal-to-noise ratio, blurred edges, loss of details, and other problems, thereby affecting doctors' identification and quantitative analysis of symptoms. Therefore, in the rapid development and widespread application of OCT technology, image denoising is a key link in optimizing diagnostic efficiency.
[0003] Existing OCT image denoising methods usually use multi-frame averaging methods for denoising. However, multi-frame averaging is sensitive to registration errors and requires a long scanning time. Therefore, in practical applications, denoising methods based on single-frame images are more applicable to OCT images. Traditional single-frame image denoising methods are mainly based on transformation, spatial filtering and sparse representation methods, such as wavelet transform, adaptive filtering, etc., which can effectively suppress noise and retain image details to a certain extent. With the major breakthroughs of deep learning technology in the field of image processing, supervised denoising algorithms have gradually been applied to OCT image denoising. Compared with traditional methods, deep learning models can automatically learn the intrinsic noise distribution and structural characteristics of the data from a large number of training samples, thereby showing better denoising performance and improving the accuracy of doctors' disease identification.
[0004] However, there is still room for improvement when directly applying existing denoising methods to OCT image denoising. First, they rely heavily on large-scale noisy and clean reference image data pairs. In actual clinical applications, especially in rare diseases or complex situations where acquisition noise is difficult to avoid, it is difficult to obtain a sufficient number of noise-free OCT images of qualified quality as a reference for denoising network training. Secondly, existing denoising methods cannot fully extract and retain edge detail features and key structural information in OCT images. It is difficult to achieve the optimal denoising effect for complex and nonlinear noise structures, and it is easy to over-smooth edge details in OCT images.
[0005] For example, patent application CN110390650B discloses an OCT image denoising method based on dense connections and generative adversarial networks. According to the characteristics of noise randomness, it uses synthetic reference images so that the network can learn the mapping relationship between the noise image and the reference image to achieve the denoising effect. This patent is based on the need to learn the mapping relationship between the noise image and the reference image to achieve denoising. However, the above method has a high acquisition cost for the reference image and is not sensitive to edge information.
[0006] For example, patent application CN111402174A discloses a single OCT B-scan image denoising method and device, which acquires multiple groups of B-scan images, each group of images is scanned at the same time and position to obtain multiple images with the same content and independent and identically distributed noise; uses a shallow U-shaped network model as an image denoising model; inputs the single image to be denoised into the image denoising model, and obtains the denoised image at the output. This patent mainly uses data pairing to restore the quality of OCT images, and migrates the image data distribution from SD-OCT to EDI-OCT through unsupervised learning, which solves the problem that the existing SD-OCT denoising effect is poor and requires a large amount of paired data. However, the acquisition cost of the multiple frames of images that can be referenced by the above method is relatively high, and the structural characteristics of the denoised image will change due to the reference image. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide an OCT single-frame image self-supervised denoising method for enhancing edge details in view of the deficiencies of the above-mentioned prior art.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0009] A self-supervised denoising method for an OCT single-frame image with enhanced edge details comprises the following steps:
[0010] S1. Constructing a self-supervised denoising model for a single-frame OCT image; the self-supervised denoising model for a single-frame OCT image comprises a global masker, a neighboring sampler, a denoising network and a global mask mapper;
[0011] S2. Collect OCT data sets and synthesize Gaussian noise to generate OCT noise images ;
[0012] S3, OCT noise image Input global masker Get the mask image ;
[0013] S4. OCT noise image Input Proximity Sampler Get a pair of adjacent sample images ;
[0014] S5. Mask image Input denoising network Get the mask denoised image ;
[0015] S6, the adjacent sampling image Input denoising network Get the denoised neighboring sampled image ;
[0016] S7, OCT noise image Input denoising network Get the directly denoised image ;
[0017] S8, directly denoising the image Input Proximity Sampler Get a pair of directly denoised neighboring sampled images ;
[0018] S9, mask denoising image Input global mask mapper Get the mask restored image ;
[0019] S10. Calculate reconstruction loss and regularization loss , reconstruction loss To denoise the neighboring sampled image and neighboring sample images Combining the norms of the two, regularization loss Noise image through OCT , denoising neighboring sampled image , neighboring sampling image , a pair of directly denoised neighboring sampled images , And mask recovery image Calculate the reconstruction loss and regularization loss Add the two together to get the total loss Perform back propagation;
[0020] S11, restore the mask to the image and directly denoised image Perform weight sum to get weighted denoised image .
[0021] As a further preferred embodiment of the present invention, the denoising network The basic structure is a 6-layer U-shaped network, and is equipped with a spatial difference perception module, a spatial difference perception attention module and a content-aware feature reconstruction module. The spatial difference perception modules are evenly distributed in each layer of the denoising network to perceive the structural information through position information, the spatial difference perception attention modules are distributed in the bottom layer of the denoising network to efficiently encode the hierarchical structure through the attention mechanism to retain the edge information, and the content-aware feature reconstruction module is applied to the first upsampling of the denoising network to capture local details and avoid noise amplification through content information perception.
[0022] As a further preferred embodiment of the present invention, the denoising network The specific representation is to first convert the input image into a tensor array, and then perform downsampling and upsampling operations.
[0023] As a further preferred embodiment of the present invention, in the process of downsampling, the first layer is used twice The number of channels is expanded by two-dimensional convolution and twice ReLU activation function. Then, the spatial difference perception module is used to perceive the structural information and strengthen the feature extraction. Then, the maximum pooling is used to reduce the width and height of the array by half and back it up. After the fifth layer, the spatial difference perception attention module is used to interact the high-frequency structural information and content information in the high-dimensional feature map.
[0024] As a further preferred embodiment of the present invention, in the upsampling process, a content-aware feature reconstruction module is used to mine potential content information and retain edge details, so that the 5th layer of the network is added to the previous array backup in the channel dimension, and the upsampling starting from the 5th layer is copy expansion. The elements of size expand to The size of each block is the element value; when reaching the 4th layer, the spatial difference perception module is used to perceive the structural information and strengthen the feature extraction, and then it is added to the previous array backup in the channel dimension and used twice The two-dimensional convolution and the ReLU activation function are used to reduce the number of channels; after the first layer, the spatial difference perception module is used to perceive the structural information and strengthen the feature extraction, which is added to the original input image array. Then, four times Two-dimensional convolution and 4-fold ReLU activation function, finally, use The two-dimensional convolution reduces the number of channels and obtains the output array.
[0025] As a further preferred embodiment of the present invention, the specific representation of the spatial difference perception module is as follows: the input tensor array is , first back it up, then use 1 combined convolution layer and 1 ReLU activation function to get the array , the combined convolution layer is composed of vanilla convolution, center difference convolution, angle difference convolution, horizontal difference convolution and vertical difference convolution in parallel, and then the array With backup array Add and use once The two-dimensional convolution of ; Finally, the array With backup array Add to get the output array .
[0026] As a further preferred embodiment of the present invention, the specific representation of the spatial difference perception attention module is as follows: the input tensor array is , first back it up, then use 1 combined convolution layer and 1 ReLU activation function to get the array , then, the array With backup array Add and use once The two-dimensional convolution of , then, use spatial attention to get the array And back it up, then use pixel attention to get the array and with the backup array Multiply to get an array , finally, the array With backup array Add to get the output array .
[0027] As a further preferred embodiment of the present invention, the content-aware feature reorganization module is specifically represented as follows:
[0028] Assume the input tensor array is , first use Convolution takes the input array Number of slave channels Compress to ,in , the upsampling factor is , is a constant; subsequently, use 1 A 2D convolution, 1 batch normalization and 1 ReLU activation function are used to obtain a size of reorganize the product; then use the reorganized product to Perform content prediction and get the size The output array of , For the input array The image height, For the input array The image width.
[0029] As a further preferred embodiment of the present invention, in step S10, the calculation of reconstruction loss and regularization loss and back propagation are specifically expressed as:
[0030] Reconstruction loss for and Both Norm and The norm combination is as follows:
[0031] ,
[0032] in, is the L2 loss, is the L1 loss, is the parameter constant that controls the strength of L1 loss in the reconstruction loss;
[0033] Regularization Loss The definition is as follows:
[0034] ,
[0035] Then, the total loss The reconstruction loss and regularization loss The weights and are as follows:
[0036] ,
[0037] in, is the parameter constant that controls the strength of the regularization loss in the total loss;
[0038] Then, the total loss is back-propagated and iterative training is performed to obtain the optimal parameters. .
[0039] As a further preferred embodiment of the present invention, the mask restoration image and directly denoised image Perform weight sum to get weighted denoised image , as follows:
[0040] ,
[0041] in, A constant for the parameter that controls the intensity of the direct denoising image in the weighted denoising image.
[0042] The present invention has the following beneficial effects:
[0043] The present invention proposes a self-supervised denoising method for single-frame OCT images that enhances edge details, avoids the limitation of requiring a large number of clean reference images, and optimizes the interaction between global information and local details by fusing mask and subsampling strategies. The present invention optimizes the denoising network within the self-supervised framework based on the characteristics of OCT images, integrates the spatial diversity perception module and content recognition feature reorganization, and avoids the loss of edge feature information and details in OCT images. The method proposed by the present invention can perform self-supervised denoising on OCT images more accurately. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 Schematic diagram of the self-supervised denoising model for OCT single-frame images of the present invention;
[0045] Figure 2 This is the denoising network architecture diagram;
[0046] Figure 3 It is a system implementation flow chart;
[0047] Figure 4 This is a comparison diagram of the present invention and other denoising methods. DETAILED DESCRIPTION
[0048] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific preferred embodiments.
[0049] In the description of the present invention, it should be understood that the terms "left side", "right side", "upper part", "lower part" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. "First", "second" and the like do not indicate the importance of the components, and therefore cannot be understood as limiting the present invention. The specific dimensions used in this embodiment are only for illustrating the technical solution, and do not limit the scope of protection of the present invention.
[0050] like Figure 1 As shown, a self-supervised denoising method for an OCT single-frame image with enhanced edge details comprises the following steps:
[0051] S1. Constructing a self-supervised denoising model for a single-frame OCT image; the self-supervised denoising model for a single-frame OCT image comprises a global masker, a neighboring sampler, a denoising network and a global mask mapper;
[0052] S2. Collect OCT data sets and synthesize Gaussian noise to generate OCT noise images ;
[0053] S3, OCT noise image Input global masker Get the mask image ;
[0054] S4. OCT noise image Input Proximity Sampler Get a pair of adjacent sample images ;
[0055] S5. Mask image Input denoising network Get the mask denoised image ;
[0056] S6, the adjacent sampling image Input denoising network (Without calculating the gradient) get the denoised neighboring sampled image ;
[0057] S7, OCT noise image Input denoising network Get the directly denoised image ;
[0058] S8, directly denoising the image Input Proximity Sampler Get a pair of directly denoised neighboring sampled images ;
[0059] S9, mask denoising image Input global mask mapper Get the mask restored image ;
[0060] S10. Calculate reconstruction loss and regularization loss , the total loss is obtained by adding the two Perform back propagation;
[0061] S11, restore the mask to the image and directly denoised image Perform weight sum to get weighted denoised image .
[0062] The denoising network , the specific network structure is as follows Figure 2 As shown: Among them, the basis of the denoising network is a 6-layer U-shaped network, which incorporates the spatial difference perception module and content-aware feature reorganization to extract and retain the edge detail features and key structural information in the OCT image.
[0063] The network input image is converted to ,for The tensor array is backed up. During downsampling, the first layer uses 2 The two-dimensional convolution and the 2-fold ReLU activation function expand the number of channels from 3 to 48, and the array size is . Then, spatial difference perception (SDPM) is used to perceive the structural information and strengthen feature extraction, and the array size remains unchanged. Finally, the maximum pooling is used to reduce the width and height of the array by half and back it up. The array size is .
[0064] By analogy to the fifth layer, the array size is , using spatial difference aware attention (SDPAM) to interact high-frequency structural information and content information in high-dimensional feature maps. After that, the first upsampling is performed, using content-aware feature reconstruction (CAFR) to avoid amplifying high-frequency noise similar to edge details in OCT images, while mining potential content information and retaining edge details. The array size is . Then we reach the 5th layer of the network with the previous size of The array copies of are added together in the channel dimension to obtain a size of Then, use it twice The two-dimensional convolution and 2-times ReLU activation function of the array size is still .
[0065] The upsampling from layer 5 onwards is all copy expansion, which is The elements of size expand to Elements of size, each block value is the element value. After upsampling the array using replication expansion, the array size is . When reaching the 4th layer, spatial difference perception (SDPM) is used to perceive structural information and strengthen feature extraction, and the array size is still . Then, with the previous size of The array copies of are added together in the channel dimension to obtain a size of Finally, use 2 times The two-dimensional convolution and 2-fold ReLU activation function reduce the number of channels from 144 to 96, and the array size is .
[0066] After reaching the first layer, spatial difference perception (SDPM) is used to perceive structural information and strengthen feature extraction. The array size is .and Add the arrays of Then, use 4 times Two-dimensional convolution and 4-fold ReLU activation function, the array size is Finally, use The 2D convolution reduces the number of channels from 96 to 3, resulting in a size of The output array of .
[0067] The denoising network The spatial difference perception module (SDPM) contained in is specifically expressed as follows: Assume that the input tensor array is , first back it up, then use 1 combined convolution layer and 1 ReLU activation function to get the array , achieving spatial difference perception. The above combined convolution layer is a parallel combination of vanilla convolution, center difference convolution, angle difference convolution, horizontal difference convolution and vertical difference convolution. Then, the array With backup array Add and use once The two-dimensional convolution of Finally, the array With backup array Add to get the output array .
[0068] The denoising network The spatial difference-aware attention module (SDPAM) included in is specifically expressed as follows: Assume that the input tensor array is , first back it up, then use 1 combined convolution layer and 1 ReLU activation function to get the array , achieving spatial difference perception. Then, the array With backup array Add and use once The two-dimensional convolution of Then, we use spatial attention to get the array And back up. Using pixel attention, we get the array and with the backup array Multiply to get an array Finally, the array With backup array Add to get the output array .
[0069] The denoising network The content-aware feature reconstruction module (CAFR) contained in is specifically expressed as follows: Assume that the input tensor array is First use Convolution takes the input array Number of slave channels Compress to ,in , the upsampling factor is , is a constant. Then, use it once A 2D convolution, 1 batch normalization and 1 ReLU activation function are used to obtain a size of Rearrange the product. Use the rearrange product to resize the array Perform content prediction and get the size The output array of , For the input array The image height, For the input array The image width.
[0070] Calculate the reconstruction loss and regularization loss, back propagate, specifically expressed as:
[0071] Reconstruction loss for and Both Norm and The norm combination is as follows:
[0072] ,
[0073] in, is the L2 loss, is the L1 loss, A parameter constant that controls the strength of the L1 loss in the reconstruction loss.
[0074] To correct the neighboring sampled image pair The non-zero true value difference of avoids excessive smoothing of the image and regularizes the loss First, define it as follows:
[0075] ,
[0076] To balance the relationship between global structure and edge details, the mask part Replace the non-masked part , which makes up for the lack of transition constraints in the non-masked part and regularizes the loss The optimization results are as follows:
[0077] ,
[0078] Then, the total loss The reconstruction loss and regularization loss The weights and are as follows:
[0079] ,
[0080] in, is a parameter constant that controls the strength of the regularization loss in the total loss.
[0081] Then, the total loss is back-propagated and iterative training is performed to obtain the optimal parameters. . Mask recovery image and directly denoised image Perform weight sum to get weighted denoised image , as follows:
[0082] ,
[0083] in, A constant for the parameter that controls the intensity of the direct denoising image in the weighted denoising image.
[0084] It should be noted that the embodiments of the present invention and the features therein can be combined with each other without conflict; and all model training is completed using Python programming on an Intel Core i9-12900K processor and an NVIDIA RTX3090Ti graphics card.
[0085] Suppose that a self-supervised denoising model for single-frame OCT images with enhanced edge details is needed to denoise OCT images. To meet this requirement, a series of implementation steps are required to build a self-supervised denoising model for single-frame OCT images with enhanced edge details. The system flow is as follows: Figure 3 shown.
[0086] The following are Figure 3 Detailed step-by-step instructions:
[0087] Step S1: Data processing module: Data collection and preprocessing, synthesizing Gaussian noise into the collected OCT data set to generate an OCT noise single frame image, to ensure the quality and consistency of the data. Considering the characteristics of OCT images, it may be necessary to perform format conversion, standardization, normalization or other preprocessing operations on the data in order to make it suitable for the neural network model.
[0088] Step S2: Dataset construction module: The pre-processed image data is divided into a training set, a validation set and a test set. The training set and the validation set are the data sets used for model training.
[0089] Step S3: Model training module: train the OCT image denoising model using the training set constructed by the data set construction module, wherein the OCT image denoising model is a self-supervised denoising model for OCT single-frame images that enhances edge details. Before the validation set constructed by the data set construction module is input into the image denoising model after each validation cycle training, the OCT image without synthetic Gaussian noise is used as a standard to evaluate the denoising performance of the image denoising model, so as to facilitate real-time grasp of the training effect during training.
[0090] S3.1: During model training, the model parameters are optimized by minimizing the total loss mentioned above.
[0091] S3.2: Evaluate model performance on the validation set and adjust model hyperparameters, such as regularization loss strength, to optimize the model’s generalization ability.
[0092] Model training is as follows: learning rate is 0.0001, the learning rate update factor is 0.5, the optimizer weight decay factor 0.00000001, the number of channels extracted by the denoising network 3, the number of training batch samples 4, the size of the image that the filter views each time 256, the number of filters in the first layer of the network is 48, the number of validation cycles is 10, and the parameter constant controlling the strength of the L1 loss in the reconstruction loss is 0.4, a parameter constant that controls the strength of the regularization loss in the total loss 2, the parameter constant that controls the intensity of the direct denoising image in the weighted denoising image is 25. At the same time, after a certain number of iterations, the model performance is evaluated on the validation set, and the model hyperparameters, such as the regularization loss intensity, are adjusted to optimize the generalization ability of the model.
[0093] Step S4: Model evaluation module: Before the test set constructed by the dataset construction module is input into the trained image denoising model, the OCT image without synthetic Gaussian noise is used as the standard, and the peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM) are used to evaluate the performance of the denoising method in noise suppression.
[0094] Step S5: Model application module: deploy the model to the actual application environment, and input the OCT single-frame image to be denoised into the trained image denoising model to obtain the denoised image at the output end.
[0095] S5.1 Continuous monitoring: Continuously monitor the performance of the model and regularly update the model parameters to respond to possible changes in the OCT images.
[0096] Through the above implementation steps, a self-supervised denoising model for OCT single-frame images that enhances edge details can be constructed, thereby denoising OCT single-frame images more accurately. It should be noted that during the implementation process, flexible adjustments need to be made according to specific circumstances to ensure that the model can adapt to different business scenarios and data characteristics.
[0097] Effect display:
[0098] The present invention uses the real dataset OCTA-500 to verify the effectiveness of the proposed self-supervised denoising method for OCT single-frame images with enhanced edge details. The OCTA-500 dataset contains three-dimensional data of 500 eyes in two modalities, OCT and OCTA, six projection images, four text labels, and two segmentation labels. The peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM) are used to evaluate the performance of the denoising method in noise suppression. The OCTA3MM data in the real dataset OCTA-500 are taken for training and verification under three synthetic Gaussian noises (Gaussian 15, 25, 50). The results of the comparative test are shown in Tables 1 and 2. Figure 4 As shown in the figure, BM3D and Self2Self are self-supervised denoising methods. The peak signal-to-noise ratio and structural similarity index of the method of the present invention are higher than those of other methods, which proves that the method of the present invention is superior to other current models.
[0099] Table 1 Comparison of method results
[0100]
[0101] like Figure 4 As shown, Figure 4 (a) is a comparison chart when the noise level is Gaussian 15. Figure 4 (b) is a comparison chart when the noise level is Gaussian 25. Figure 4 (c) is a comparison chart when the noise level is Gaussian 50. Figure 4 The comparison methods BM3D and Self2Self are demonstrated. While achieving OCT single-frame image denoising, they cannot effectively retain the image edge details and easily change the brightness of the image itself, resulting in artifact generation, which illustrates the feasibility and practicality of the present invention. The self-supervised denoising method for OCT single-frame images with enhanced edge details performs self-supervised denoising on OCT single-frame images without a clean reference image, and enhances the edge details of the image.
[0102] The preferred embodiments of the present invention are described in detail above; however, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, various equivalent transformations can be made to the technical solutions of the present invention, and these equivalent transformations all belong to the protection scope of the present invention.
Claims
1. A self-supervised denoising method for single-frame OCT images with enhanced edge details, characterized by: The following steps are involved: S1. Constructing a self-supervised denoising model for a single-frame OCT image; the self-supervised denoising model for a single-frame OCT image comprises a global masker, a neighboring sampler, a denoising network and a global mask mapper; S2. Collect OCT data sets and synthesize Gaussian noise to generate OCT noise images ; S3, OCT noise image Input global masker Get the mask image ; S4. OCT noise image Input Proximity Sampler Get a pair of adjacent sample images ; S5. Mask image Input denoising network Get the mask denoised image ; S6, the adjacent sampling image Input denoising network Get the denoised neighboring sampled image ; S7, OCT noise image Input denoising network Get the directly denoised image ; S8, directly denoising the image Input Proximity Sampler Get a pair of directly denoised neighboring sampled images ; S9, mask denoising image Input global mask mapper Get the mask restored image ; S10. Calculate reconstruction loss and regularization loss , reconstruction loss To denoise the neighboring sampled image and neighboring sample images Combining the norms of the two, regularization loss Noise image through OCT , denoising neighboring sampled image , neighboring sampling image , a pair of directly denoised neighboring sampled images , And mask recovery image Calculate the reconstruction loss and regularization loss Add the two together to get the total loss Perform back propagation; S11, restore the mask to the image and directly denoised image Perform weight sum to get weighted denoised image .
2. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 1, characterized in that: The denoising network The basic structure is a 6-layer U-shaped network, and is equipped with a spatial difference perception module, a spatial difference perception attention module and a content-aware feature reconstruction module. The spatial difference perception modules are evenly distributed in each layer of the denoising network to perceive the structural information through position information, the spatial difference perception attention modules are distributed in the bottom layer of the denoising network to efficiently encode the hierarchical structure through the attention mechanism to retain the edge information, and the content-aware feature reconstruction module is applied to the first upsampling of the denoising network to capture local details and avoid noise amplification through content information perception.
3. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 2, characterized in that: The denoising network The specific representation is to first convert the input image into a tensor array, and then perform downsampling and upsampling operations.
4. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 3, characterized in that: In the downsampling process, the first layer uses 2 The number of channels is expanded by two-dimensional convolution and twice ReLU activation function. Then, the spatial difference perception module is used to perceive the structural information and strengthen the feature extraction. Then, the maximum pooling is used to reduce the width and height of the array by half and back it up. After the fifth layer, the spatial difference perception attention module is used to interact the high-frequency structural information and content information in the high-dimensional feature map.
5. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 4, characterized in that: In the upsampling process, the content-aware feature reorganization module is used to mine potential content information and retain edge details, and the 5th layer of the network is added to the previous array backup in the channel dimension. The upsampling starting from the 5th layer is copy expansion. The elements of size expand to The size of each block is the element value; when reaching the 4th layer, the spatial difference perception module is used to perceive the structural information and strengthen the feature extraction, and then it is added to the previous array backup in the channel dimension and used twice The two-dimensional convolution and the ReLU activation function are used to reduce the number of channels; after the first layer, the spatial difference perception module is used to perceive the structural information and strengthen the feature extraction, which is added to the original input image array. Then, four times Two-dimensional convolution and 4-fold ReLU activation function, finally, use The two-dimensional convolution reduces the number of channels and obtains the output array.
6. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 5, characterized in that: The specific representation of the spatial difference perception module is as follows: the input tensor array is , first back it up, then use 1 combined convolution layer and 1 ReLU activation function to get the array , the combined convolution layer is composed of vanilla convolution, center difference convolution, angle difference convolution, horizontal difference convolution and vertical difference convolution in parallel, and then, the array With backup array Add and use once The two-dimensional convolution of ; Finally, the array With backup array Add to get the output array .
7. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 5, characterized in that: The specific representation of the spatial difference perception attention module is as follows: let the input tensor array be , first back it up, then use 1 combined convolution layer and 1 ReLU activation function to get the array , then, the array With backup array Add and use once The two-dimensional convolution of , then, use spatial attention to get the array And back it up, then use pixel attention to get the array and with the backup array Multiply to get an array , finally, the array With backup array Add to get the output array .
8. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 5, characterized in that: The content-aware feature reorganization module is specifically represented as follows: Assume the input tensor array is , first use Convolution takes the input array Number of slave channels Compress to ,in , the upsampling factor is , is a constant; subsequently, use 1 A 2D convolution, 1 batch normalization and 1 ReLU activation function are used to obtain a size of reorganize the product; then use the reorganized product to Perform content prediction and get the size The output array of , For the input array The image height, For the input array The image width.
9. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 1, characterized in that: In step S10, the calculation of reconstruction loss and regularization loss, and back propagation, are specifically expressed as: Reconstruction loss for and Both Norm and The norm combination is as follows: , in, is the L2 loss, is the L1 loss, is the parameter constant that controls the strength of L1 loss in the reconstruction loss; Regularization Loss The definition is as follows: , Then, the total loss The reconstruction loss and regularization loss The weights and are as follows: , in, is the parameter constant that controls the strength of the regularization loss in the total loss; Then, the total loss is back-propagated and iterative training is performed to obtain the optimal parameters. .
10. The method for self-supervised denoising of an OCT single-frame image with enhanced edge details according to claim 1, characterized in that: The mask restores the image and directly denoised image Perform weight sum to get weighted denoised image , as follows: , in, A constant parameter that controls the intensity of the direct denoising image in the weighted denoising image.
