SS-oct compressive imaging method based on deep learning and spectral domain and spatial domain joint sub-sampling

Through the method of deep learning and spectral domain joint sub-sampling, SS-OCT image compression is optimized, solving the problem of low OCT image quality caused by fixed sub-sampling mask, and achieving higher quality image reconstruction and data compression rate. balance.

WO2024193719A1PCT designated stage expired Publication Date: 2024-09-26ALWAYS (WUXI) MEDICAL TECH CO LTD

Patent Information

Application Number
PCT/CN2024/088631
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-04-18
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

The fixed subsampling mask in the existing SS-OCT image compression method cannot be jointly optimized with OCT image reconstruction, resulting in low quality of the reconstructed OCT image.

Method used

Using the method of deep learning and joint sub-sampling in the spectral domain and spatial domain, by constructing a mask neural network, a stripe completion neural network and an enhanced neural network, synchronous parameter gradient descent updates are performed, and the two-dimensional mask and OCT image reconstruction are optimized, combining IDFT and Classic post-processing algorithm to optimize the image sampling system.

Benefits of technology

Under the same data compression ratio, the reconstruction quality of OCT images is improved, the problem of poor image quality caused by fixed subsampling masks is solved, and the best balance between image reconstruction quality and data compression rate is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088631_26092024_PF_FP
    Figure CN2024088631_26092024_PF_FP
Patent Text Reader

Abstract

The present invention relates to the technical field of image processing. Disclosed are an SS-OCT compressive imaging method based on deep learning and spectral domain and spatial domain joint sub-sampling, the method comprising: step one, acquiring a complete sample interference fringe and a complete target detection interference fringe; step two, constructing and generating an image sampling system; and step three, inputting the complete target detection interference fringe into the image sampling system, so as to obtain a target image. In the present invention, parameter gradient descent updating is synchronously performed on a mask neural network, an enhancement neural network and a fringe completion neural network, such that a two-dimensional mask and OCT image reconstruction are jointly optimized, and the problem of the poor effect of OCT image reconstruction caused by an empirical fixed two-dimensional mask being used in the current OCT image sampling system is solved, thereby achieving the technical effect of improving the quality of OCT image reconstruction under the same data compression ratio.
Need to check novelty before this filing date? Find Prior Art

Description

A SS-OCT compression imaging method based on deep learning and spectral and spatial domain joint subsampling Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an SS-OCT compression imaging method using deep learning and spectral and spatial domain joint subsampling. Background Art

[0002] Swept-spectrum optical coherence tomography (SS-OCT) is a non-invasive volumetric imaging modality widely used in the biomedical field. Thanks to advances in laser technology, the imaging rate of SS-OCT (typically quantified by the A-line rate of the scanning light source) has increased from a few hertz to several megahertz. For a typical 200kHz SS-OCT, if 2048 spectral sampling points are measured at 12 bits, the data bandwidth can exceed 800MB / s. Researchers have proposed various strategies to reduce data bandwidth. However, most existing methods achieve this reduction by adopting a "subsampling and reconstruction" paradigm: first, the object interferogram is spectrally or spatially subsampled, and then the OCT image is reconstructed through signal processing techniques.

[0003] The above method requires a fixed subsampling mask to reduce the data bandwidth. Since the fixed subsampling mask cannot be optimized together with the OCT image reconstruction, the reconstructed OCT image quality is not high.

[0004] Currently, no effective solutions have been proposed for the problems in related technologies.

[0005] Summary of the Invention

[0006] In response to the shortcomings of the existing technology, the present invention provides an SS-OCT image compression method based on deep learning and spectral and spatial domain joint subsampling, which has the advantages of neural network joint synchronous optimization, and solves the problem that a fixed subsampling mask cannot be jointly optimized with OCT image reconstruction, resulting in low quality of reconstructed OCT images.

[0007] To solve the technical problem that the fixed subsampling mask cannot be optimized together with the OCT image reconstruction, resulting in low quality of the reconstructed OCT image, the present invention provides the following technical solutions:

[0008] A SS-OCT image compression method combining deep learning and spectral and spatial domain joint subsampling includes the following steps: first, obtaining complete sample interference fringes and complete target detection interference fringes;

[0009] Step 2: Build and generate image sampling system;

[0010] S1: Construct mask neural network, stripe completion neural network and enhancement neural network;

[0011] S2: training the mask neural network, the stripe completion neural network, and the enhancement neural network to obtain the trained mask neural network, the trained stripe completion neural network, and the trained enhancement neural network, respectively;

[0012] The following steps are involved:

[0013] S21: Input random noise to the mask neural network after the current nth iteration and output a generated two-dimensional mask; n is an integer with a minimum value of 0;

[0014] When n=0, the corresponding mask neural network, stripe completion neural network and enhancement neural network are the mask neural network, stripe completion neural network and enhancement neural network constructed by S1 respectively;

[0015] S22: Multiply the two-dimensional mask and the corresponding points of the complete sample interference fringe to obtain the undersampled fringe;

[0016] S23: inputting the undersampled stripes into the stripe completion neural network after the current nth iteration to obtain the completed sample stripes;

[0017] S24: Apply IDFT to the completed sample stripes to obtain a preliminary reconstructed image;

[0018] S25: inputting the preliminary reconstructed image into the enhanced neural network after the current nth iteration, and outputting the enhanced image;

[0019] S26: The complete sample interference fringes are subjected to IDFT to obtain a preliminary OCT image, and the preliminary OCT image is calculated using a classical post-processing algorithm to obtain the true value of the image;

[0020] S27: Determine whether the similarity between the enhanced image and the true image meets the standard. If so, the mask neural network after the current n-th iteration, the stripe completion neural network after the current n-th iteration, and the enhancement neural network after the current n-th iteration are all trained, and the trained mask neural network, the trained stripe completion neural network, and the trained enhancement neural network are obtained. The image sampling system is constructed and the process proceeds to step S3.

[0021] If the standard is not met, the parameters of the mask neural network after the current n-th iteration, the stripe completion neural network after the current n-th iteration, and the enhanced neural network after the current n-th iteration are updated to obtain the mask neural network after the n+1-th iteration, the stripe completion neural network after the current n+1-th iteration, and the enhanced neural network after the n+1-th iteration, and the mask neural network after the n+1-th iteration, the stripe completion neural network after the current n+1-th iteration, and the enhanced neural network after the n+1-th iteration are used to replace the mask neural network after the n-th iteration, the stripe completion neural network after the current n-th iteration, and the enhanced neural network after the current n-th iteration, and the process returns to step S21 to perform the next training of the mask neural network, the stripe completion neural network, and the enhanced neural network.

[0022] S3: Generates a two-dimensional mask generated by the trained mask neural network output, a trained stripe completion neural network, a trained enhancement neural network, and an IDFT image sampling system;

[0023] Step 3: Input the complete target detection interference fringes into the image sampling system to obtain the target image.

[0024] Preferably, the method for obtaining complete sample interference fringes and complete target detection interference fringes in step 1 is:

[0025] The sample object and the object to be tested are collected by the OCT system to obtain complete sample interference fringes and complete target detection interference fringes.

[0026] Preferably, the method of constructing the mask neural network in step S1 and generating the two-dimensional mask in step S3 is:

[0027] The input of the mask neural network is random noise, and two sets of feature maps are output through a U-Net architecture with four layers of upsampling and four layers of downsampling. Each upsampling or downsampling layer contains two layers of convolutional layers. The last two sets of feature maps are activated by the GumbeSoftmax function to generate a two-dimensional mask.

[0028] The GumbeSoftmax activation function is

[0029] Where D and are the outputs of the mask neural network and the Gumbel Softmax activation function, respectively. A randomly selected channel serves as the two-dimensional mask. g is independent and identically sampled random noise from the Gumbel(0,1) distribution. τ is the value that controls the density of the Gumbel distribution. p and c are the pixel index and channel index, respectively. represents the output of the Gumbel Softmax activation function when channel c is and pixel p is; represents the output of the mask neural network when channel c is and pixel p is; represents the output of the random noise when channel c is and pixel p is.

[0030] Preferably, the method for constructing the stripe completion neural network in step S3 is:

[0031] The input of the fringe completion neural network is the undersampled interference fringes, and the completed sample fringes are obtained through the output of the U-Net architecture with four layers of downsampling and four layers of upsampling, where each layer of upsampling or downsampling contains two convolutional layers.

[0032] Preferably, the method for constructing an enhanced neural network is:

[0033] The input of the enhanced neural network is the preliminary reconstructed image, and the enhanced OCT image is obtained through the output of the U-Net architecture with four layers of downsampling and four layers of upsampling, where each layer of upsampling or downsampling contains two convolutional layers.

[0034] Preferably, the method of training the mask neural network, the enhancement neural network and the stripe completion neural network is:

[0035] In the training framework, the batch size used is 1, the initial learning rate is 0.001, the network is trained for 30 epochs using the AdamW optimizer with momentum of (0.9, 0.999), and then the learning rate is reduced using the cosine decay strategy.

[0036] Preferably, the method for obtaining a preliminary reconstructed image by performing IDFT (inverse discrete Fourier transform) on the completed sample fringes and the method for obtaining a preliminary OCT image by performing IDFT (inverse discrete Fourier transform) on the complete sample interference fringes are respectively as follows: the completed sample fringes are used as input of the IDFT(x) command in a matlab or python program, and the preliminary reconstructed image is output after operation;

[0037] The complete sample interference fringes are used as the input of the IDFT(x) command in the MATLAB or Python program, and the preliminary OCT image is obtained after calculation.

[0038] Preferably, the method for calculating the image true value by using a classical post-processing algorithm on the preliminary OCT image is:

[0039] The preliminary OCT image is first subjected to logarithmic function, and then the true value of the image is obtained through thresholding and normalization.

[0040] Preferably, three sets of loss functions are constructed to evaluate the mask neural network, the enhanced neural network, and the stripe completion neural network respectively. The three sets of loss functions are specifically: L 掩膜 , L 条纹 , L 图像 ;

[0041] Among them, L 掩膜 Used to calculate the data compression ratio of the two-dimensional mask;

[0042] L 条纹 Used to evaluate the effect of stripe completion network;

[0043] L 图像 Used to evaluate the effect of image enhancement network;

[0044] During the training stage of the mask neural network, the enhanced neural network, and the stripe completion neural network, the three sets of loss functions are weightedly summed and their gradients are back-propagated to iteratively solve the mask neural network, the enhanced neural network, and the stripe completion neural network until the value of the weighted sum of the three sets of loss functions no longer decreases. It is then judged that the similarity between the enhanced image and the true image meets the standard, and the optimized two-dimensional mask, enhanced neural network, and stripe completion neural network are obtained. Otherwise, the mask neural network, enhanced neural network, and stripe completion neural network continue to be trained.

[0045] A SS-OCT compression imaging system based on deep learning and spectral and spatial domain joint subsampling includes a subsampling mask generation module, an interference fringe repair module, and an image enhancement module. The subsampling mask module is used to sample the complete interference fringes collected by the SS-OCT system to obtain undersampled interference fringes, and then the target is obtained through the interference fringe repair module and the image enhancement module.

[0046] Compared with the existing technology, the present invention provides a SS-OCT compression imaging method based on deep learning and spectral and spatial domain joint subsampling, which has the following beneficial effects:

[0047] 1. The present invention synchronizes the gradient descent update of the parameters of the mask neural network with the enhancement neural network and the fringe completion neural network, thereby achieving joint optimization of the two-dimensional mask and OCT image reconstruction. This solves the problem of poor OCT image reconstruction caused by the use of empirical fixed two-dimensional masks in current OCT image sampling systems, and achieves the optimal OCT image reconstruction quality of the image sampling system of the present invention under the same data compression ratio.

[0048] 2. The present invention uses a chain derivation method to backpropagate gradients and simultaneously performs gradient descent optimization and update on the parameters of the mask neural network, the enhanced neural network, and the stripe completion neural network. After the weighted sum of the three sets of loss functions of L mask, L stripe, and L image converges, an optimal balance can be achieved between image reconstruction quality and data compression rate. This solves the problem that fixed empirical subsampling masks, such as center masks and random masks, cannot be jointly optimized with OCT image reconstruction, resulting in low quality of reconstructed OCT images. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] FIG1 is a flow chart of the present invention;

[0050] FIG2 is a schematic diagram of the human myocardial reconstruction effect of the present invention;

[0051] FIG3 is a schematic diagram of the human finger reconstruction effect of the present invention;

[0052] FIG4 is a schematic diagram of the onion epidermis reconstruction effect of the present invention;

[0053] FIG5 is a schematic diagram showing the comparison of reconstruction effects of random mask and central mask according to the present invention. DETAILED DESCRIPTION

[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0055] As introduced in the background technology, in order to solve the shortcomings of the existing technology, this application proposes an SS-OCT image compression method that combines deep learning and spectral and spatial domain joint subsampling.

[0056] Example 1:

[0057] Please refer to Figure 1, which shows a SS-OCT compression imaging method using deep learning and spectral and spatial domain joint subsampling, including:

[0058] Step 1: Obtain complete sample interference fringes and complete target detection interference fringes;

[0059] Among them, the method for obtaining complete sample interference fringes and complete target detection interference fringes is: collecting sample objects and objects to be tested through the OCT system to obtain complete sample interference fringes and complete target detection interference fringes, wherein the OCT system converts coherent light into electrical signals through the photoelectric detector therein, and the electrical signals are sampled by the data acquisition card to obtain interference fringes.

[0060] Preferably, the sample interference fringes are obtained from a dataset imaged by a commercial OCT system (Thorlabs Ganymede, Newton, NJ), which contains 3784 OCT images and corresponding interference fringes from 17 samples.

[0061] Step 2: Build and generate image sampling system;

[0062] The construction and generation method of the image sampling system is:

[0063] S1: Construct mask neural network, stripe completion neural network and enhancement neural network;

[0064] The mask neural network is constructed as follows: the input of the mask neural network is random noise, and two sets of feature maps are output through a four-layer upsampling and four-layer downsampling U-Net architecture, where each upsampling or downsampling U-Net architecture contains two convolutional layers;

[0065] The fringe completion neural network is constructed as follows: the input of the fringe completion neural network is undersampled interference fringes, and the completed sample fringes are output through a four-layer downsampling and four-layer upsampling U-Net architecture, where each upsampling or downsampling U-Net architecture contains two convolutional layers;

[0066] The method for constructing the enhanced neural network is as follows: the input of the enhanced neural network is the preliminary reconstructed image, and the enhanced OCT image is output through a U-Net architecture with four layers of downsampling and four layers of upsampling, where each layer of upsampling or downsampling architecture contains two convolutional layers.

[0067] S2: training the mask neural network, the stripe completion neural network, and the enhancement neural network to obtain the trained mask neural network, the trained stripe completion neural network, and the trained enhancement neural network, respectively;

[0068] Among them, the methods for training mask neural network, enhancement neural network and stripe completion neural network are:

[0069] In the training framework, the batch size used is 1, the initial learning rate is 0.001, the network is trained for 30 epochs using the AdamW optimizer with momentum of (0.9, 0.999), and then the learning rate is reduced using the cosine decay strategy.

[0070] Among them, the specific operation of the cosine decay strategy to reduce the learning rate is: using the CosineAnnealingLR function in Torch, the learning rate decreases according to the cosine function.

[0071] S21: Input random noise to the mask neural network after the current nth iteration and output a generated two-dimensional mask; n is an integer with a minimum value of 0;

[0072] When n=0, the corresponding mask neural network, stripe completion neural network and enhancement neural network are the mask neural network, stripe completion neural network and enhancement neural network constructed by S1 respectively;

[0073] The two sets of feature maps in step S1 are activated by the GumbeSoftmax function to generate a two-dimensional mask, where the GumbeSoftmax activation function is:

[0074] Where D and are the outputs of the mask neural network and the Gumbel Softmax activation function, respectively. We randomly select a channel as the 2D mask, g is independent and identically sampled random noise from a Gumbel(0,1) distribution, τ controls the density of the Gumbel distribution, and p and c are the pixel and channel indices, respectively. represents the output of the Gumbel Softmax activation function for channel c and pixel p; represents the output of the mask neural network for channel c and pixel p; represents the output of the random noise for channel c and pixel p.

[0075] S22: Multiply the two-dimensional mask and the corresponding points of the complete sample interference fringes to obtain undersampled fringes.

[0076] S23: Inputting the undersampled stripes into the stripe completion neural network after the current nth iteration to obtain the completed sample stripes.

[0077] S24: The completed sample stripes are subjected to IDFT (inverse discrete Fourier transform) to obtain a preliminary reconstructed image;

[0078] Among them, the method of obtaining a preliminary reconstructed image by performing IDFT (inverse discrete Fourier transform) on the completed sample stripes is as follows: the completed sample stripes are used as the input of the IDFT(x) command in the matlab or python program, and the preliminary reconstructed image is obtained after calculation.

[0079] S25: Input the preliminary reconstructed image into the enhanced neural network after the current nth iteration, and output the enhanced image.

[0080] S26: The complete sample interference fringes are subjected to IDFT (inverse discrete Fourier transform) to obtain a preliminary OCT image, and the preliminary OCT image is calculated using a classical post-processing algorithm to obtain the true value of the image;

[0081] Among them, the methods for obtaining preliminary OCT images by IDFT (inverse discrete Fourier transform) of the complete sample interference fringes are as follows: the complete sample interference fringes are used as the input of the IDFT(x) command in the matlab or python program, and the preliminary OCT image is obtained after calculation;

[0082] The method of calculating the true value of the image by using the classical post-processing algorithm for the preliminary OCT image is as follows:

[0083] The preliminary OCT image is first subjected to logarithmic function, and then the true value of the image is obtained through thresholding and normalization. That is, the preliminary OCT image is used as the input of the log10(x) function in Matlab, and then the output value of the logarithmic function (denoted as X) is input into Matlab according to the (X-3) / 3 function, and the true value of the image is obtained by output.

[0084] S27: Determine whether the similarity between the enhanced image and the true image meets the standard. If so, the mask neural network after the current n-th iteration, the stripe completion neural network after the current n-th iteration, and the enhancement neural network after the current n-th iteration are all trained, and the trained mask neural network, the trained stripe completion neural network, and the trained enhancement neural network are obtained. The image sampling system is constructed and the process proceeds to step S10.

[0085] If the standard is not met, the parameters of the mask neural network after the current n-th iteration, the stripe completion neural network after the current n-th iteration, and the enhanced neural network after the current n-th iteration are updated to obtain the mask neural network after the current n+1-th iteration, the stripe completion neural network after the current n+1-th iteration, and the enhanced neural network after the current n+1-th iteration, and return to step S2;

[0086] The method for updating the parameters of the enhanced neural network after the current nth iteration is: stochastic gradient descent, that is, iteratively updating the network weights and bias terms by calculating the gradient of the loss function on small batches of data.

[0087] The method for judging whether the similarity between the enhanced image and the true image meets the standard is:

[0088] Construct three sets of loss functions to evaluate the mask neural network after the current nth iteration, the enhancement neural network after the current nth iteration, and the stripe completion neural network after the current nth iteration. The three sets of loss functions are specifically: L 掩膜 , L 条纹 , L 图像 ;

[0089] Among them, L 掩膜 Used to calculate the data compression ratio of the two-dimensional mask;

[0090] L 条纹 Used to evaluate the effect of the stripe completion network after the current nth iteration;

[0091] L 图像 Used to evaluate the effect of the image enhancement network after the current nth iteration;

[0092] During the training stage of the mask neural network, the enhanced neural network, and the stripe completion neural network, the three sets of loss functions are weightedly summed and their gradients are back-propagated to iteratively solve the mask neural network after the n+1th iteration, the enhanced neural network after the n+1th iteration, and the stripe completion neural network after the n+1th iteration until the value of the weighted sum of the three sets of loss functions no longer decreases. It is then judged that the similarity between the enhanced image and the true image meets the standard, and the trained two-dimensional mask, the trained enhanced neural network, and the trained stripe completion neural network are obtained. Otherwise, the mask neural network, the enhanced neural network, and the stripe completion neural network continue to be trained.

[0093] S3: Generate an image sampling system including the current two-dimensional mask, the trained stripe completion neural network, the trained enhancement neural network and the IDFT.

[0094] Step 3: Input the complete target detection interference fringes into the image sampling system to obtain the target image.

[0095] The present invention uses a chain derivation method to backpropagate gradients and simultaneously performs gradient descent optimization and update on the parameters of the mask neural network, the enhancement neural network, and the stripe completion neural network. After the weighted sum of the three loss functions of L mask, L stripe, and L image converges, an optimal balance can be achieved between image reconstruction quality and data compression rate. This solves the problem that fixed empirical subsampling masks, such as center masks and random masks, cannot be jointly optimized with OCT image reconstruction, resulting in low quality of reconstructed OCT images.

[0096] Example 2:

[0097] Please refer to Figures 2-5, which show an SS-OCT compression imaging system that combines deep learning and spectral and spatial domain subsampling. The system uses the SS-OCT image compression method, including a subsampling mask generation module, an interference fringe repair module, and an image enhancement module. The complete interference fringes collected by the SS-OCT system are sampled through the subsampling mask module to obtain undersampled fringes, and then the target image is obtained through the interference fringe repair module and the image enhancement module.

[0098] The subsampling mask generation module generates a subsampling mask by inputting noise. The subsampling mask samples the data collected by the SS-OCT system to form undersampling fringes. The undersampling fringes are then repaired by the interference fringe repair module to obtain the completed sample fringes. The image enhancement module performs image enhancement on the completed sample fringes to obtain the target image.

[0099] Furthermore, the subsampling mask generation module includes a U-Net architecture with a 1-channel input and a 2-channel output, and a Gumbel Softmax activation function. The U-Net architecture includes a four-layer downsampling module, a four-layer upsampling module, and skip connections. The Gumbel Softmax activation function encodes the output of the U-Net architecture to generate a (0, 1) subsampling mask.

[0100] The interference fringe repair module includes a U-Net architecture with a single input channel and a single output channel, and an IDFT (Inverse Discrete Fourier Transform). The U-Net architecture includes a four-layer downsampling module, a four-layer upsampling module, and skip connections. The U-Net architecture first completes the undersampled fringes to obtain completed sample fringes, which are then converted into a preliminary reconstructed image using the IDFT.

[0101] The image enhancement module includes a U-Net architecture with two input channels and one output channel. The U-Net architecture is used to perform image enhancement on the initially reconstructed image to obtain an enhanced image (i.e., the target image).

[0102] The image compression system uses the L1 norm of the difference between the target image and the true image, the L2 norm of the difference between the patched fringe (i.e., the completed sample fringe) and the original fringe (i.e., the complete sample interference fringe), and the data compression ratio (i.e., the proportion of the total number of 1s in the formed two-dimensional mask), which is specifically: □ = □ image +λ1·□ fringe +λ2·□;

[0103] Where □ is the total loss, □ is the L1 norm of the difference between the target image and the true image; is the weight of □; □ is the L2 norm of the difference between the patched stripes and the original stripes; is the weight of □; □ is the total number of 1s in the two-dimensional mask;

[0104] Furthermore, the subsampling mask generation module is used to generate a subsampling mask based on the input noise to sample the complete fringes acquired by SS-OCT. Then, the fringes completion module and the image enhancement module are used to obtain the enhanced image (i.e., the target image). Specifically,

[0105] a1. For the complete sample interference fringes acquired by SS-OCT, adjust the image to a 2048*992 resolution by zero-padding or cropping;

[0106] a2. Input the noise into the generator in the subsampling mask generation module, and then generate a subsampling mask with only 0 and 1 (i.e., a two-dimensional mask) through the Gumbel Softmax activation function;

[0107] a3. For the sub-sampling mask generated in a2, multiply it with the corresponding points of the complete sample interference fringe to obtain the under-sampling fringe;

[0108] a4. For the undersampled stripes obtained in step a3, the stripe repair module is used to obtain the completed sample stripes;

[0109] a5. Perform an IDFT operation on the completed sample stripes obtained in a4 to obtain a preliminary reconstructed image (i.e., a preliminary reconstructed OCT image);

[0110] a6. For the preliminary reconstructed image obtained in a5, an enhanced image (i.e., the target image) is obtained by performing an image enhancement module;

[0111] The above-mentioned subsampling mask generation module, interference fringe repair module and image enhancement module are all U-Net architecture networks. All architecture networks have four downsampling (and corresponding upsampling) blocks, and the initial features of the input layer are set to 32 features. The downsampling block uses the LeaklyReLU (negative slope of 0.2) activation function, and the upsampling block uses the ReLU activation function. All blocks use batch normalization, and each block has two convolutional layers. The subsampling mask generation module has 1 input channel and 2 output channels. The interference fringe repair module has 1 input channel and 1 output channel. The image enhancement module has 2 input channels and 1 output channel.

[0112] In the training framework, the batch size used was 1, the initial learning rate was 0.001, and the network was trained for 30 cycles using the AdamW optimizer with a momentum of (0.9, 0.999), and then the learning rate was reduced using the cosine decay strategy. All experiments were trained and tested using NVIDIA GeForce RTX 3090 GPU cards.

[0113] Furthermore, two human coronary arteries, two human fingers and an onion acquired by the same device are used as a test set to further illustrate the generalization of the proposed technique.

[0114] Case 1:

[0115] In this case, the peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM) are used to evaluate the performance of the present invention. Experiments are conducted on human coronary arteries, human fingers, and onions, respectively. The experimental results are shown in Table 1.

[0116] Table 1

[0117] It is clear that image quality steadily degrades with increasing compression ratio; the same trend is observed when the test set deviates from coronary artery samples to fingers and onions. However, even with the loss of a significant amount of original data, the original image can still be recovered; a PSNR of 24.2 dB can be achieved when using only 1.6% of the data. Three exemplary reconstructed OCT images (one coronary artery, one finger, and one onion) obtained by using 1.6%, 3.6%, 10%, 25%, and 50% of the original data, along with the corresponding ground-truth images, are shown in Figures 2, 3, and 4, respectively. It is clear that even for the highest DCR (62.5) except for the onion, the overall structural information is distinguishable, and for high DCRs (e.g., 27.8), most of the texture information is well preserved. Where DCR is the data compression ratio.

[0118] Case 2:

[0119] This case study, compared to Case 2, performs a comparative study on the human coronary artery dataset by replacing the learnable mask with other empirically fixed mask patterns, such as random spectrum subsampling (referred to as "random mask") and truncating the spectrum from the center (referred to as "center mask"). It should be noted that the entire network was retrained and fine-tuned for each different mask pattern. Figure 5 shows the corresponding results for different DCRs.

[0120] The proposed learnable mask performs best among all mask patterns at all different DCRs. In particular, for very high DCR (1%), only the proposed method is able to reconstruct the image with a PSNR exceeding 21dB. In contrast, the center mask performs relatively well at low DCR (50%), where the corresponding PSNR is almost 1.8dB higher than the random mask and 2.2dB lower than that of the present invention. However, when the DCR increases (e.g., 1% and 5%), its performance begins to deteriorate, with streak-like artifacts appearing; on the other hand, the reconstruction results obtained by using the random mask only degrade with increasing DCR.

[0121] While the embodiments of the present invention have been shown and described, it will be apparent to those skilled in the art that various changes, modifications, substitutions, and alterations can be made to the embodiments without departing from the principles and spirit of the invention.

Claims

1. A SS-OCT image compression method based on deep learning and spectral and spatial joint subsampling, characterized by: The following steps are involved: Step 1: Train each neural network; Training the mask neural network, the stripe completion neural network and the enhancement neural network until convergence, and obtaining a trained mask neural network, a trained stripe completion neural network and a trained enhancement neural network; The convergence is when the similarity between the enhanced image and the true image value reaches the standard; The enhanced image is obtained by the following steps: inputting random noise into the mask neural network after the current iteration, and outputting a two-dimensional mask; multiplying the two-dimensional mask with the corresponding points of the complete sample interference fringes to obtain undersampled fringes; inputting the undersampled fringes into the fringe completion neural network after the current iteration to obtain the completed sample fringes; performing IDFT on the completed sample fringes to obtain a preliminary reconstructed image; inputting the preliminary reconstructed image into the enhancement neural network after the current iteration, and outputting the enhanced image; Step 2: Generate an image sampling system, which includes a two-dimensional mask generated by the trained mask neural network output, a trained stripe completion neural network, a trained enhancement neural network, and IDFT; Step 3: Input the complete target detection interference fringes into the image sampling system to obtain the target image.

2. The SS-OCT image compression method of deep learning and spectral and spatial domain joint subsampling according to claim 1, characterized in that: The method for acquiring complete sample interference fringes and complete target detection interference fringes is: collecting sample objects and objects to be tested through an OCT system to obtain complete sample interference fringes and complete target detection interference fringes.

3. The SS-OCT image compression method of deep learning and spectral and spatial domain joint subsampling according to claim 1, characterized in that: The true value of the image is obtained by the following steps: the complete sample interference fringes are subjected to IDFT to obtain a preliminary OCT image, and the preliminary OCT image is calculated using a classical post-processing algorithm to obtain the true value of the image.

4. The SS-OCT image compression method of deep learning and spectral and spatial domain joint subsampling according to claim 1, characterized in that: The method of constructing a mask neural network and generating a two-dimensional mask in step S3 includes: The input of the mask neural network is random noise, and two sets of feature maps are output through a U-Net architecture with four layers of upsampling and four layers of downsampling. Each layer of upsampling or downsampling contains two layers of convolutional layers. The last two sets of feature maps generate a two-dimensional mask through the GumbeSoftmax activation function; The GumbeSoftmax activation function is Where D and are the outputs of the mask neural network and the Gumbel Softmax activation function, respectively; a randomly selected channel is used as a two-dimensional mask; g is an independent and identically sampled random noise in the Gumbel (0,1) distribution, τ is the value that controls the density of the Gumbel distribution, p and c are the pixel index and channel index, respectively, represents the output of the Gumbel Softmax activation function when the channel is c and the pixel is p; represents the output of the mask neural network when the channel is c and the pixel is p; represents the output of the random noise when the channel is c and the pixel is p; Methods for constructing a stripe completion neural network include: The input of the stripe completion neural network is the undersampled stripes, and the completed sample stripes are obtained through the output of the U-Net architecture with four layers of downsampling and four layers of upsampling, where each layer of upsampling or downsampling contains two convolutional layers; Methods for building enhanced neural networks include: The input of the enhanced neural network is the preliminary reconstructed image, and the enhanced OCT image is obtained through the output of the U-Net architecture with four layers of downsampling and four layers of upsampling, where each layer of upsampling or downsampling contains two convolutional layers.

5. The SS-OCT image compression method of deep learning and spectral and spatial domain joint subsampling according to claim 1, characterized in that: Methods for training mask neural networks, enhancement neural networks, and stripe completion neural networks include: In the training framework, the batch size used was 1, the initial learning rate was 0.001, the network was trained for 30 epochs using the AdamW optimizer with a momentum of (0.9, 0.999), and then the learning rate was reduced using the cosine decay strategy.

6. The SS-OCT image compression method of deep learning and spectral and spatial domain joint subsampling according to claim 1, characterized in that: The method of obtaining a preliminary reconstructed image by IDFT of the completed sample fringes and the method of obtaining a preliminary OCT image by IDFT of the complete sample interference fringes are as follows: the completed sample fringes are used as the input of the IDFT(x) command in the matlab or python program, and the preliminary reconstructed image is output after operation; The complete sample interference fringes are used as the input of the IDFT(x) command in the matlab or python program, and the preliminary OCT image is obtained after calculation.

7. The SS-OCT image compression method of deep learning and spectral and spatial domain joint subsampling according to claim 1, characterized in that: The method of calculating the image truth value by using the classical post-processing algorithm for the preliminary OCT image is: The preliminary OCT image is first subjected to logarithmic function, and then the true value of the image is obtained through thresholding and normalization.

8. A SS-OCT image compression method based on deep learning and spectral and spatial joint subsampling, characterized by: The following steps are involved: Step 1: Obtain complete sample interference fringes and complete target detection interference fringes; Step 2: Build and generate image sampling system; S1: Construct mask neural network, stripe completion neural network and enhancement neural network; S2: training the mask neural network, the stripe completion neural network and the enhancement neural network to obtain a trained mask neural network, a trained stripe completion neural network and a trained enhancement neural network respectively; The following steps are involved: S21: input random noise to the mask neural network after the current nth iteration, and output a generated two-dimensional mask; n is an integer, and the minimum value is 0; S22: multiply the two-dimensional mask and the corresponding points of the complete sample interference fringes to obtain undersampled fringes; S23: inputting the under-sampled stripes into the stripe completion neural network after the current nth iteration to obtain the completed sample stripes; S24: Apply IDFT to the completed sample stripes to obtain a preliminary reconstructed image; S25: inputting the initially reconstructed image into the enhanced neural network after the current nth iteration, and outputting the enhanced image; S26: The complete sample interference fringes are subjected to IDFT to obtain a preliminary OCT image, and the preliminary OCT image is calculated by a classical post-processing algorithm to obtain the true value of the image; S27: Determine whether the similarity between the enhanced image and the true value of the image meets the standard. If so, the mask neural network after the current n-th iteration, the stripe completion neural network after the current n-th iteration, and the enhancement neural network after the current n-th iteration are all trained, and the trained mask neural network, the trained stripe completion neural network, and the trained enhancement neural network are obtained. The image sampling system is constructed and enters step S3; If the standard is not met, update the parameters of the mask neural network after the current n-th iteration, the stripe completion neural network after the current n-th iteration, and the enhanced neural network after the current n-th iteration to obtain the mask neural network after the n+1-th iteration, the stripe completion neural network after the n+1-th iteration, and the enhanced neural network after the n+1-th iteration, and return to step S21; S3: Generate a two-dimensional mask including the output of the trained mask neural network, the trained stripe completion neural network, the trained enhancement neural network and the IDFT image sampling system; Step 3: Input the complete target detection interference fringes into the image sampling system to obtain the target image.

9. The SS-OCT image compression method of deep learning and spectral and spatial domain joint subsampling according to claim 8, characterized in that: Three sets of loss functions are constructed to evaluate the mask neural network after the current nth iteration, the enhancement neural network after the current nth iteration, and the stripe completion neural network after the current nth iteration. The three sets of loss functions are specifically: L 掩膜 , L 条纹 , L 图像 ; Among them, L 掩膜 Used to calculate the data compression ratio of the 2D mask; L 条纹 Used to evaluate the effect of the stripe completion network after the current nth iteration; L 图像 Used to evaluate the effect of the image enhancement network after the current nth iteration; In the training stage of the mask neural network, the enhanced neural network, and the stripe completion neural network, the three sets of loss functions are weighted summed and their gradients are back-propagated to iteratively solve the mask neural network after the n+1th iteration, the enhanced neural network after the n+1th iteration, and the stripe completion neural network after the n+1th iteration until the value of the weighted sum of the three sets of loss functions no longer decreases, then it is judged that the similarity between the enhanced image and the true value of the image meets the standard, and the trained two-dimensional mask, the trained enhanced neural network, and the trained stripe completion neural network are obtained. Otherwise, continue to train the mask neural network, enhanced neural network, and stripe completion neural network.

10. A SS-OCT compression imaging system with deep learning and spectral and spatial joint subsampling, using the SS-OCT image compression method according to any one of claims 1 to 9, characterized in that: It includes a sub-sampling mask generation module, an interference fringe repair module and an image enhancement module. The complete interference fringes collected by the SS-OCT system are sampled by the sub-sampling mask module to obtain under-sampling fringes, and then the target image is obtained by the interference fringe repair module and the image enhancement module.

Citation Information

Patent Citations

  • CT image detection method and device based on deep learning and control equipment

    CN109829880A

  • CT image enhanced display method and computer readable storage medium

    CN111798535A

  • Image anomaly detection method based on deep convolutional generative adversarial network

    CN113658115A

  • Magnetic resonance imaging active undersampling method for slice adaptation

    CN114723840A

  • Real-time hologram generation method of neural network based on Fourier inspiration

    CN115797231A

Cited By

  • Efficient three-dimensional reconstruction method based on data-driven compression and adaptive splitting

    CN119206088A

  • Depth reconstruction model robustness evaluation method and device for hyperspectral calculation imaging

    CN121582762A

  • Microorganism microscopic image accurate focusing method

    CN121763551A