Artificial neural network reconstruction method for sparse sampling Fourier stack imaging based on least absolute difference
The sparse sampling Fourier stack imaging artificial neural network reconstruction method based on least square solves the problem of slow acquisition speed in stack imaging technology and achieves efficient high-resolution image reconstruction, surpassing the limitations of traditional methods.
Patent Information
- Application Number
- CN202111448561.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-11-30
AI Technical Summary
Existing stacked imaging technology suffers from the problem that the large sample size of data collection images results in slow collection speed and the inability to achieve high-resolution real-time imaging.
The sparse sampling Fourier stack imaging artificial neural network reconstruction method based on least square is used to sample the sparse images to be reconstructed, input the trained artificial neural network, and use the stochastic gradient descent optimization method to construct the loss function and optimize the model. to reconstruct the amplitude and phase information of high-resolution images.
The clarity and efficiency of image reconstruction are improved, and clear high-resolution images can be efficiently reconstructed with a very low number of input sub-images, surpassing the limitations of traditional methods.
Smart Images

Figure CN114066735B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of Fourier stack imaging, and in particular relates to a sparse sampling Fourier stack imaging artificial neural network reconstruction method based on least absolute multiplication. Background Art
[0002] The stack imaging technology proposed in recent years (which is divided into two categories: spatial stack imaging and Fourier stack imaging) uses synthetic aperture and phase retrieval technology to scan only a sub-area of the sample or a low-resolution image of the sample each time, and solves the sample's high-resolution complex amplitude (including attenuation and phase information) optimization solution through computational imaging methods. Stack imaging technology can maintain the unity of large field of view and high resolution of image acquisition, and reconstruct the sample phase information and attenuation information at the same time (using a specific algorithm to further reconstruct the sample depth information). There are currently two main types of methods: the first type evolved from the classic GS algorithm (proposed by Gerchberg Saxton in 1972). Although the various GS algorithms are different in form, the core idea is the same: simulate the intermediate solution to propagate forward to the image space in the optical path system, assign the value operation to make the intermediate solution amplitude after forward propagation equal to the measured value, and invert the updated intermediate solution to the incident plane after constraint, and then perform the next forward and reverse cycle; the second type of method is based on the gradient descent method. The gradient descent method establishes the system objective function, compares the total difference (energy function) between the measured intensity image and the calculated image, and solves the analytical expression of the total difference and the partial derivative of the required parameter. The required parameter is updated by the gradient descent (or similar algorithm) method until convergence. The prominent bottleneck restricting the application of stacked imaging is the large sample size of data acquisition images, which leads to slow acquisition speed and inability to implement high-resolution real-time imaging. Summary of the invention
[0003] In order to solve the problems existing in the above prior art, the present invention proposes a sparse sampling Fourier stack imaging artificial neural network reconstruction method based on least absolute difference, the method comprising: acquiring a sparse image to be reconstructed, sampling the acquired sparse image to be reconstructed to obtain a low-resolution sub-image; inputting all the obtained low-resolution sub-images into a trained artificial neural network to obtain a reconstructed super-resolution image;
[0004] The process of training an artificial neural network includes:
[0005] S1: Obtain an original image data set, perform interval sampling on each image data in the original image data set to obtain low-resolution sub-images; divide the obtained low-resolution sub-images to obtain a training set and a test set;
[0006] S2: construct an artificial neural network; use the artificial neural network model to process the low-resolution sub-images in the training set to obtain the intensity of the image;
[0007] S3: loss function of the model constructed based on the intensity of the reconstructed Fourier stack image;
[0008] S4: Use stochastic gradient descent optimization method to optimize the loss function;
[0009] S5: All data in the training set are input into the model for iteration. When the iteration is completed, the amplitude and phase information of the reconstructed high-resolution image is obtained, and the model training is completed.
[0010] Preferably, the process of using an artificial neural network model to process low-resolution sub-images in a training set includes: obtaining the size of the low-resolution sub-image, extracting initial features of the low-resolution sub-image, and performing Fourier forward transform on the obtained initial features; obtaining the frequency domain center origin of the low-resolution sub-image; using a two-dimensional fftshift operation to process the frequency domain center origin, the Fourier forward transform of the initial features, and the size of the low-resolution sub-image, cropping the processing result, obtaining the cropped image, performing inverse Fourier transform, and obtaining an outgoing wave of the low-resolution sub-image; and calculating the intensity of the low-resolution sub-image based on the outgoing wave.
[0011] Furthermore, the formula for the outgoing wave of the low-resolution sub-image is:
[0012]
[0013] in, and denote the two-dimensional Fourier transform and inverse transform, respectively. is a two-dimensional fftshift operation, Crop is an image cropping operation, (k x ,k y ) represents the coordinates of the origin of the frequency domain center of the low-resolution sub-image, and (Nx, Ny) represents the size of the low-resolution sub-image.
[0014] Furthermore, the formula for calculating the intensity of the low-resolution sub-image is:
[0015]
[0016] Among them, exit represents the outgoing wave of the low-resolution sub-image, represents the convolution operation, and LF represents the lens transfer function.
[0017] Preferably, the loss function of the model is:
[0018]
[0019] Among them, J i is the measurement image, TV is the total variation function, λ is the weight coefficient for balancing data terms and constraint terms, and n is the number of low-resolution images used to train the artificial neural network.
[0020] Preferably, the formula for optimizing the loss function using the stochastic gradient descent optimization method is:
[0021]
[0022] in, It is the partial derivative solved by reverse conduction of neural network error, and α is the learning rate.
[0023] The present invention uses a stochastic gradient descent optimization method to optimize the loss function of the model, so that the trained model is more accurate and the reconstructed high-resolution reconstruction image has higher clarity. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 To compare the amplitude and phase diagrams of the simulation data reconstructed by the present invention with those by the conventional method;
[0025] Figure 2 Amplitude and phase diagrams of experimental data reconstructed by the present invention and the traditional method. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 creative work are within the scope of protection of the present invention.
[0027] A least-abnormal-based sparse sampling Fourier stack imaging artificial neural network reconstruction method, the method comprising: performing sparse image sampling with a Fourier stack imaging device to obtain a series of low-resolution acquired images; establishing a Fourier stack imaging forward model, sequentially inputting the acquired low-resolution images into the forward model, comparing the difference between the artificial neural network simulation generated image and the acquired image (including the minimum absolute deviation and the image sparse prior), establishing a least-abnormal-based system loss function, and using error back propagation to train and update the artificial neural network weights to obtain a reconstructed high-resolution phase recovery image.
[0028] Different from the traditional optimization methods of Fourier stack images, such as the Gerchberg-Saxton algorithm or the Wirtingerflow algorithm, whose optimization target is the average mean square error, the present invention fully considers the signal characteristics of the images collected by Fourier stack imaging, that is, most of the collected images are dark field images. This type of collected dark field image is different from the bright field image, and the main signal is distributed in the darker area of the image brightness. In the case of sparse sampling of Fourier stack imaging, the use of the traditional average mean square error will result in the situation that the image cannot be reconstructed. The use of the least square error proposed by the present invention can successfully perform image phase recovery.
[0029] The process of training an artificial neural network includes:
[0030] S1: Obtain an original image data set, perform interval sampling on each image data in the original image data set to obtain low-resolution sub-images; divide the obtained low-resolution sub-images to obtain a training set and a test set;
[0031] S2: construct an artificial neural network; use the artificial neural network model to process the low-resolution sub-images in the training set to obtain the intensity of the image;
[0032] S3: loss function of the model constructed based on the intensity of the reconstructed Fourier stack image;
[0033] S4: Use stochastic gradient descent optimization method to optimize the loss function;
[0034] S5: All the data in the training set are input into the model for iteration. When the iteration is completed, the amplitude and phase information of the reconstructed high-resolution image is obtained, and the model training is completed.
[0035] The process of using an artificial neural network model to process low-resolution sub-images in a training set includes: obtaining the size of the low-resolution sub-image, extracting the initial features of the low-resolution sub-image, and performing Fourier forward transform on the obtained initial features; obtaining the frequency domain center origin of the low-resolution sub-image; using a two-dimensional fftshift operation to process the frequency domain center origin, the Fourier forward transform of the initial features, and the size of the low-resolution sub-image, cropping the processing result, and performing Fourier inverse transform on the cropped image to obtain an outgoing wave of the low-resolution sub-image; and calculating the intensity of the low-resolution sub-image based on the outgoing wave.
[0036] The specific process of training an artificial neural network includes:
[0037] S1: Get the original image data. The low-resolution image collected by all LEDs is recorded as (Nx, Ny). The commonly used numbers are 225 (15*15), 289 (17*17), and 441 (21*21). Use interval sampling to obtain several low-resolution sub-images (25 images are used in the application example). Use this image as the input of the artificial neural network.
[0038] S2: Establishing an artificial neural network, the variables to be solved in the network are the amplitude and phase information of the object to be restored;
[0039] V = Aexp(jθ), the image size is recorded as (NX, NY), usually NX = aNx, NY = aNY, a is the scale factor, typically 3, 4 or 5, depending on the physical parameters of Fourier stack imaging. Assign initial values to the A matrix and the θ matrix. The A matrix can be assigned a random value or use the central LED image as the initial value. The θ matrix is generally set to 0. V represents the input low-resolution sub-image.
[0040] S3: The forward process of Fourier stack imaging is described using the artificial neural network forward model. x ,β y ) as an example, tilting the monochromatic light incident on the sample is equivalent to the shift of the origin of the frequency domain center, that is, (k x ,k y ), the outgoing wave formed is
[0041]
[0042] in and denote the two-dimensional Fourier transform and inverse transform, respectively. is a two-dimensional fftshift operation. Crop is an image cropping operation, which crops a sub-region image of size (Nx, Ny) with (kx, ky) as the center. The intensity formula of the simulated image is:
[0043]
[0044] in, represents the convolution operation, and LF represents the lens transfer function.
[0045] S4: Establish system loss function
[0046]
[0047] Among them J iis the measured image, TV is the total variation function, and λ is the weight coefficient of the balanced data term and constraint term. n is the number of low-resolution images used to train the artificial neural network, and the value of n can be 1, 3, 5, 7, etc. Different from the traditional optimization function objective, the data constraint term of the system cost function proposed in the present invention is the minimum absolute deviation, which can be solved by the least square method, that is, solving this loss function is equivalent to solving the least square problem with sparse constraints, which is different from the commonly used least square solution method.
[0048] S5: Use stochastic gradient descent optimization method to optimize the loss function;
[0049]
[0050] in It is the partial derivative solved by reverse conduction of neural network error, and α is the learning rate.
[0051] S6 inputs all data into the model for iteration. When the iteration is completed, the amplitude and phase information of the reconstructed high-resolution image is obtained, and the model training is completed.
[0052] The original data obtained is two images with a resolution of 640×640, that is, Figure 1 (a1) and (a2) are used as amplitude and phase images to generate a total of 441 low-resolution sub-images of size 128×128, and then 25 low-resolution sub-images are obtained at equal intervals through sparse sampling to form a sparse sampling data set. The high-resolution amplitude image and phase image reconstructed by the proposed least-abnormal sparse sampling Fourier stack image artificial neural network reconstruction method are shown in Figure 2. Figure 1 (c1) and (c2).
[0053] In order to measure the model performance, a sparse sampling Fourier stack imaging image reconstruction method based on a neural network in the present invention is compared with the classic GS reconstruction method, and the results are obtained. Figure 1 The reconstruction results shown in (b1) and (b2) show that when using the same 25 sparsely sampled data sets, the GS algorithm cannot effectively reconstruct super-resolution images, while the method of the present invention can efficiently reconstruct clear images when using a very small number of input sub-images. At the same time, the experimental acquisition data is compared, using 25 128*128 low-resolution images, and the reconstructed image size is 384*384, Figure 2 (a1) and (a2) are the reconstruction results of the full sampling of 441 images. Figure 2 (b1) and (b2) are traditional GS methods. Figure 2(c1) and (b2) are reconstructed by the method of the present invention. From the results, it can be observed that the central part of the image (the area below the numbers 8 and 9) of the GS method is not correctly reconstructed, the numbers "5, 6" and the area next to them are not distinguished, and the number "8" is blurred. The central area of the present invention is correctly reconstructed, and the numbers "5, 6" are clearly visible. Only the area next to the numbers "5, 6" is slightly blurred, and the number "8" is clearly visible.
[0054] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A sparse sampling Fourier stack imaging artificial neural network reconstruction method based on least absolute difference, characterized in that: include: Acquire a sparse image to be reconstructed, and sample the acquired sparse image to be reconstructed to obtain a low-resolution sub-image; All the obtained low-resolution sub-images are input into the trained artificial neural network to obtain the reconstructed super-resolution image; The process of training an artificial neural network includes: S1: Obtain an original image data set, perform interval sampling on each image data in the original image data set to obtain low-resolution sub-images; divide the obtained low-resolution sub-images to obtain a training set and a test set; S2: construct an artificial neural network; use the artificial neural network model to process the low-resolution sub-image in the training set to obtain the intensity of the image; specifically: obtain the size of the low-resolution sub-image, extract the initial features of the low-resolution sub-image, and perform Fourier forward transform on the obtained initial features; obtain the frequency domain center origin of the low-resolution sub-image; use a two-dimensional fftshift operation to process the frequency domain center origin, the Fourier forward transform of the initial features, and the size of the low-resolution sub-image, crop the processing result, obtain the cropped image, perform inverse Fourier transform, and obtain the outgoing wave of the low-resolution sub-image; calculate the intensity of the low-resolution sub-image based on the outgoing wave; The formula for the outgoing wave of the low-resolution sub-image is: Where V represents the input low-resolution sub-image, and denote the two-dimensional Fourier transform and inverse transform, respectively. is a two-dimensional fftshift operation, Crop is an image cropping operation, (k x ,k y ) represents the coordinates of the origin of the frequency domain center of the low-resolution sub-image, and (Nx, Ny) represents the size of the low-resolution sub-image; The formula for the intensity of the low-resolution sub-image is: Among them, exit represents the outgoing wave of the low-resolution sub-image, represents the convolution operation, LF represents the lens transfer function; S3: Construct a model loss function according to the intensity of the reconstructed Fourier stack image; solve the loss function of the model to obtain the loss function value; wherein solving the loss function is equivalent to solving the least squares problem with sparse constraints; wherein the loss function of the model is: Among them, J i is the measurement image, TV is the total variation function, λ is the weight coefficient of the balanced data term and constraint term, and n is the number of low-resolution images used to train the artificial neural network; S4: The loss function is optimized using the stochastic gradient descent optimization method; the optimization formula is: Where V represents the input low-resolution sub-image, is the partial derivative solved by reverse conduction of the neural network error, α is the learning rate; S5: All the data in the training set are input into the model for iteration. When the iteration is completed, the amplitude and phase information of the reconstructed high-resolution image is obtained, and the model training is completed.
