Non-training phase reconstruction method and device based on complex neural network
Through the non-training phase reconstruction method based on complex neural networks, complex convolution and activation functions are used to process complex signals, which solves the problems of traditional algorithms in phase recovery, achieves efficient phase reconstruction, and improves accuracy and robustness. And no additional training data is required.
Patent Information
- Application Number
- CN202210622995.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-02
AI Technical Summary
Existing phase recovery algorithms have problems such as initial solution sensitivity, slow convergence speed, and tendency to fall into local solutions and stagnation when solving high-dimensional ill-conditioned inverse problems. Moreover, traditional real number neural networks lack information interaction between real and imaginary parts when processing complex signals. Ability,generalization depends on dataset size.
A non-training phase reconstruction method based on complex neural networks is proposed. By constructing a complex neural network, the collected data is used to reconstruct the phase in a non-training manner. Complex convolution, activation function and weight initialization are used, and a physical imaging model is used to minimize the simulation collected data. The difference with the actual collected data updates the network parameters to achieve convergence of the network parameters.
It effectively solves the shortcomings of traditional algorithms in phase recovery, improves the accuracy and robustness of phase reconstruction, matches complex signal characteristics, does not require additional training samples, and reduces data dependence.
Smart Images

Figure CN115099389B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computational photography. Background Art
[0002] Phase recovery generally refers to the process of using the amplitude to recover the phase when the amplitude of the measured signal in a given linear space domain (such as Fourier transform) is known. It has a wide range of applications in optics, X-ray crystallography, medical image reconstruction and other fields. For example, in optical imaging, due to the limitations of observation methods, most optical acquisition devices (such as CCD cameras, photosensitive films, and human eye imaging) can only capture the intensity of the light field but cannot obtain the phase of the light wave. The phase information of the signal in the transformed measurement value is difficult to obtain, so the amplitude and phase of the original signal can only be reversely solved based on the limited amplitude information. As a classic inverse problem, phase recovery has the typical characteristics of non-convexity and pathology. Usually, it is necessary to use certain prior knowledge and impose other physical constraints to solve it.
[0003] Since the 1970s, phase retrieval algorithms have emerged in an endless stream. The solution methods mainly include methods based on the intensity transfer equation and iterative projection algorithms based on error descent. The most classic iterative projection algorithm is the GS algorithm proposed by RW Gerchberg and WO Saxton in 1972 to solve the in-situ aberration correction problem of space telescopes. The GS algorithm recovers the light field signal of the initial plane by repeatedly iterating between different measurement planes and substituting the amplitude measurement values as the constraints of each plane. After the GS algorithm was proposed, it has been widely used because the experimental device required by the algorithm is simple and not easily affected by external factors such as vibration. However, it is limited by simple dual-plane iteration and limited target plane amplitude constraints. Therefore, when solving pathological problems such as phase retrieval, there are still many shortcomings such as sensitivity to the initial solution, slow convergence speed, and easy to fall into local solutions and stagnate.
[0004] In recent years, with the rise of deep learning technology, its powerful nonlinear fitting ability has significant advantages in solving the high-dimensional ill-conditioned inverse problem of traditional phase recovery, which provides the possibility of further improving the accuracy and robustness of phase recovery algorithms. Therefore, researchers have made many efforts to apply it to phase recovery, but most networks are data-driven. For example, S. Li et al. used a neural network model trained on an image dataset to learn the mapping relationship between input and output and directly perform end-to-end phase recovery. Its generalization is closely related to the size and richness of the dataset learned by the network. In addition, the network structure is based on a real number network, while the collected data for phase recovery research actually includes amplitude and phase, which is a complex number. Simply considering the real and imaginary parts, or considering the amplitude and phase angle, loses the original relationship of the complex number.
[0005] Based on the above, the present invention proposes a complex neural network for phase recovery and reconstructs the phase in a non-training manner. Summary of the invention
[0006] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0007] To this end, a first object of the present invention is to propose a non-training phase reconstruction method based on a complex neural network, which is used to reconstruct the phase in a non-training manner.
[0008] The second object of the present invention is to provide a non-training phase reconstruction device based on a complex neural network.
[0009] To achieve the above object, a first aspect of the present invention proposes a non-training phase reconstruction method based on a complex neural network, comprising:
[0010] S1, obtain the target collection data;
[0011] S2, constructing a complex neural network, wherein the input of the complex neural network is the collected data, and the output is the amplitude image and the phase image of the target scene;
[0012] S3, using the complex neural network as a generator, inputting the acquisition data, and outputting the reconstructed amplitude image and phase image; using the reconstructed amplitude image and phase image to calculate the simulated acquisition data according to the physical imaging model; updating the network parameters by minimizing the difference between the simulated acquisition data and the acquisition data;
[0013] S4. Repeat S3 to make the network parameter update converge, and output the final amplitude image and phase image of the target.
[0014] In addition, the non-training phase reconstruction method based on complex neural network according to the above embodiment of the present invention may also have the following additional technical features:
[0015] Further, in one embodiment of the present invention, the collected data includes amplitude and phase information of the scene of the target, and the collection method includes any one or more of the following methods:
[0016] Coherent diffraction imaging, where coherent light irradiates the target and forms a diffraction pattern in the far field, and the sensor records the intensity information of the diffraction pattern;
[0017] Fourier stack imaging, which uses the sensor to collect a series of low-resolution intensity maps through frequency domain processing;
[0018] In autocorrelation scattering imaging, light passes through the scattering medium to form a speckle pattern, which is collected by the sensor.
[0019] Furthermore, in one embodiment of the present invention, the input and output of the complex neural network are complex signals, and the operations of each layer of the neural network are based on complex operations, including complex convolution, complex activation function, and complex weight initialization.
[0020] Further, in one embodiment of the present invention, the complex convolution includes:
[0021] For the complex input data c=a+ib, g=e+if, the convolution of the complex numbers c and g is expressed as: c*g=(a+ib)*(e+if)=(a*eb*f)+i(a*f+b*e), and the real and imaginary parts of the convolution result can be obtained respectively through real convolution.
[0022] Furthermore, in one embodiment of the present invention, the complex activation function performs activation operations on the real part and the imaginary part of the complex input data respectively, wherein, for the complex input data c=a+ib, the activation function f(x), the complex activation function is f(c)=f(a)+if(b).
[0023] Furthermore, in one embodiment of the present invention, the complex weight initialization is to initialize the amplitude and phase or the real part and the imaginary part respectively.
[0024] Further, in an embodiment of the present invention, the difference between the simulation collection data and the collection data includes any one or more of the following:
[0025] Mean square error, mean absolute error, smoothed mean absolute error.
[0026] Further, in one embodiment of the present invention, updating the network parameters by minimizing the difference between the simulated collected data and the collected data includes:
[0027] Only the collected data is used as supervision during the updating process, and no additional training data is required.
[0028] To achieve the above object, a second aspect of the present invention proposes a non-training phase reconstruction device based on a complex neural network, comprising the following modules:
[0029] The acquisition module is used to obtain the target acquisition data;
[0030] A construction module, used for constructing a complex neural network, the input of the complex neural network is the collected data, and the output is the amplitude image and the phase image of the target scene;
[0031] An optimization module, used to use the complex neural network as a generator, input the acquisition data, and output a reconstructed amplitude image and a phase image; use the reconstructed amplitude image and the phase image to calculate the simulated acquisition data according to the physical imaging model; and update the network parameters by minimizing the difference between the simulated acquisition data and the acquisition data;
[0032] The iterative module is used to repeatedly optimize the module so that the network parameters are updated and converged, and output the final amplitude image and phase image of the target.
[0033] Furthermore, in one embodiment of the present invention, the input and output of the complex neural network are complex signals, and the operations of each layer of the neural network are based on complex operations, including complex convolution, complex activation function, and complex weight initialization.
[0034] The non-training phase reconstruction method and device based on complex neural network proposed in the embodiment of the present invention use complex neural network to match the data characteristics of the phase reconstruction task, solve the problem that traditional real neural network lacks information interaction between real part and imaginary part and has weak ability to represent complex signals, and does not require additional training samples and has low dependence on data. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0036] Figure 1 A flowchart of a non-training phase reconstruction method based on a complex neural network provided in an embodiment of the present invention.
[0037] Figure 2 A schematic diagram of a phase reconstruction measurement model provided by an embodiment of the present invention.
[0038] Figure 3 A schematic diagram of complex neural network convolution provided in an embodiment of the present invention.
[0039] Figure 4 A flow chart of a non-training phase reconstruction method based on a complex neural network provided in an embodiment of the present invention.
[0040] Figure 5 A schematic flow chart of a non-training phase reconstruction device based on a complex neural network provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0042] The following describes a non-training phase reconstruction method and device based on a complex neural network according to an embodiment of the present invention with reference to the accompanying drawings.
[0043] Example 1
[0044] Figure 1 A flowchart of a non-training phase reconstruction method based on a complex neural network provided in an embodiment of the present invention.
[0045] like Figure 1 As shown, the non-training phase reconstruction method based on complex neural network includes the following steps:
[0046] S1, obtain the target collection data;
[0047] S2, constructing a complex neural network, the input of the complex neural network is the collected data, and the output is the amplitude image and phase image of the target scene;
[0048] S3, using a complex neural network as a generator, inputting the collected data, and outputting the reconstructed amplitude image and phase image; using the reconstructed amplitude image and phase image to calculate the simulated collected data according to the physical imaging model; updating the network parameters by minimizing the difference between the simulated collected data and the collected data;
[0049] S4. Repeat S3 to make the network parameter update converge and output the final target amplitude image and phase image.
[0050] Further, in one embodiment of the present invention, the collected data includes amplitude and phase information of the scene of the target, and the collection method includes any one or more of the following methods:
[0051] Coherent diffraction imaging, where coherent light irradiates the target and forms a diffraction pattern in the far field, and the sensor records the intensity information of the diffraction pattern;
[0052] Fourier stack imaging, which uses the sensor to collect a series of low-resolution intensity maps through frequency domain processing;
[0053] In autocorrelation scattering imaging, light passes through the scattering medium to form a speckle pattern, which is collected by the sensor.
[0054] Furthermore, in one embodiment of the present invention, the input and output of the complex neural network are complex signals, and the operations of each layer of the neural network are based on complex operations, including complex convolution, complex activation function, and complex weight initialization.
[0055] Further, in one embodiment of the present invention, the complex convolution includes:
[0056] For the complex input data c=a+ib, g=e+if, the convolution of the complex numbers c and g is expressed as: c*g=(a+ib)*(e+if)=(a*eb*f)+i(a*f+b*e), and the real and imaginary parts of the convolution result can be obtained respectively through real convolution.
[0057] Furthermore, in one embodiment of the present invention, the complex activation function performs activation operations on the real part and the imaginary part of the complex input data respectively, wherein, for the complex input data c=a+ib, the activation function f(x), the complex activation function is f(c)=f(a)+if(b).
[0058] Furthermore, in one embodiment of the present invention, the complex weight initialization is to initialize the amplitude and phase or the real part and the imaginary part respectively.
[0059] Further, in an embodiment of the present invention, the difference between the simulation collection data and the collection data includes any one or more of the following:
[0060] Mean square error, mean absolute error, smoothed mean absolute error.
[0061] Specifically, the error between the simulated collected data and the actual collected data is used as the loss function, including but not limited to the mean square error, mean absolute error, and smoothed mean absolute error. The back propagation algorithm is used to update the network parameters so that the network is optimized and iterated in the direction of reducing the loss function.
[0062] Further, in one embodiment of the present invention, updating the network parameters by minimizing the difference between the simulated collected data and the collected data includes:
[0063] Only the collected data is used as supervision during the updating process, and no additional training data is required.
[0064] Example 2
[0065] like Figure 2As shown, firstly, acquisition data is acquired, taking the coherent diffraction imaging system as an example. The high-brightness coherent light emitted from the light source passes through the spatial filter, and a coherent light beam of sufficient size is obtained, which is then irradiated on the object. At this time, the light wave carries the information of the object and is called the object wave. After the object wave propagates a distance of D, an intensity diffraction distribution is formed and recorded by the CCD, which is the acquired acquisition data.
[0066] like Figure 3 As shown, a complex neural network is constructed, whose input is the collected data and output is the amplitude image and phase image of the target. The basic operation is complex convolution. Input complex tensor c=a+ib, complex convolution kernel Z=X+iY, where X, Y, a, and b are real numbers. The complex convolution process is: Z*c=(X+iY)*(a+ib)=(X*aY*b)+i(Y*a+X*b). For the complex activation function, in this embodiment, the complex generalization form of the LReLU function, CLReLU, is used. Input real number x, LReLU(x) can be expressed as:
[0067]
[0068] Then the complex data c=a+ib is input, and the complex activation function is CReLU(c)=CReLU(a)+iCReLU(b), where i is the imaginary unit, i 2 = -1. For the initialization of complex weights, normal distribution initialization is adopted in this embodiment, and the amplitude and phase are initialized separately.
[0069] like Figure 4 As shown, a complex neural network is used as a generator, the collected data is input, and the network outputs the amplitude image and phase image of the target. It further includes:
[0070] 1) The collected data is used as the input of the complex neural network, and after forward reasoning, the reconstructed amplitude image and phase image are output.
[0071] 2) According to the physical imaging model, the reconstructed amplitude image and phase image are used to simulate the acquisition data.
[0072] 3) Update the network parameters by minimizing the difference between the simulated collected data and the actual collected data.
[0073] 4) Repeat steps (1)-(3) to update the network parameters in a non-training manner to converge, and output the target amplitude image and phase image.
[0074] After the network iteration optimization is completed, the output of the complex neural network is the reconstructed complex domain target variable with amplitude and phase. The reconstruction process is simple, solving the problem that traditional real neural networks lack information interaction between the real and imaginary parts and have weak ability to represent complex signals. It matches the complex data characteristics of the phase reconstruction task and does not require data set training.
[0075] The non-training phase reconstruction method based on complex neural network proposed in the embodiment of the present invention uses complex neural network to match the data characteristics of the phase reconstruction task, solves the problem that traditional real neural network lacks information interaction between real and imaginary parts and has weak ability to represent complex signals, and does not require additional training samples and has low dependence on data.
[0076] In order to implement the above embodiment, the present invention also proposes a non-training phase reconstruction device based on a complex neural network.
[0077] Figure 5 A schematic structural diagram of a non-training phase reconstruction device based on a complex neural network provided in an embodiment of the present invention.
[0078] like Figure 5 As shown, the non-training phase reconstruction device based on complex neural network includes: an acquisition module 100, a construction module 200, an optimization module 300, and an iteration module 400, wherein:
[0079] The acquisition module is used to obtain the target acquisition data;
[0080] A construction module is used to construct a complex neural network, the input of the complex neural network is the collected data, and the output is the amplitude image and phase image of the target scene;
[0081] An optimization module is used to use a complex neural network as a generator, input the collected data, and output the reconstructed amplitude image and phase image; use the reconstructed amplitude image and phase image to calculate the simulated collected data according to the physical imaging model; and update the network parameters by minimizing the difference between the simulated collected data and the collected data;
[0082] The iterative module is used to repeatedly optimize the module so that the network parameters are updated and converged, and output the final amplitude image and phase image of the target.
[0083] Furthermore, in one embodiment of the present invention, the input and output of the complex neural network are complex signals, and the operations of each layer of the neural network are based on complex operations, including complex convolution, complex activation function, and complex weight initialization.
[0084] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0085] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0086] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A non-training phase reconstruction method based on complex neural network, It is characterized in that The following steps are involved: S1. Acquire the collected data of the target, wherein the collection method of the collected data includes any one or more of the following methods: coherent diffraction imaging, in which coherent light irradiates the target to form a diffraction pattern in the far field, and the sensor records the intensity information of the diffraction pattern; Fourier stack imaging, in which a series of low-resolution intensity images are collected by the sensor through frequency domain processing; autocorrelation scattering imaging, in which light passes through a scattering medium to form a speckle pattern, and the sensor collects the speckle pattern; S2, constructing a complex neural network, the input of the complex neural network is the collected data, and the output is the amplitude image and phase image of the target scene; S3, using the complex neural network as a generator, inputting the acquisition data, and outputting the reconstructed amplitude image and phase image; using the reconstructed amplitude image and phase image to calculate the simulated acquisition data according to the physical imaging model; updating the network parameters by minimizing the difference between the simulated acquisition data and the acquisition data; S4. Repeat S3 to make the network parameter update converge, and output the final amplitude image and phase image of the target.
2. The method according to claim 1, It is characterized in that The input and output of the complex neural network are complex signals, and the operations of each layer of the neural network are based on complex operations, including complex convolution, complex activation function, and complex weight initialization.
3. The method according to claim 2, It is characterized in that The complex convolution includes: For the complex input data c=a+ib, g=e+if, the convolution of the complex numbers c and g is expressed as: c*g=(a+ib)*(e+if)=(a*eb*f)+i(a*f+b*e), and the real and imaginary parts of the convolution result can be obtained respectively through real convolution.
4. The method according to claim 2, It is characterized in that The complex activation function performs activation operations on the real part and imaginary part of the complex input data respectively, wherein, for the complex input data c=a+ib, the activation function f(x), the complex activation function is f(c)=f(a)+if(b).
5. The method according to claim 2, It is characterized in that The complex weight initialization is to initialize the amplitude and phase or the real part and the imaginary part respectively.
6. The method according to claim 1, It is characterized in that The difference between the simulation collection data and the collection data includes any one or more of the following: Mean square error, mean absolute error, smoothed mean absolute error.
7. The method according to claim 1, It is characterized in that The updating of network parameters by minimizing the difference between the simulation collected data and the collected data comprises: During the updating process, only the collected data is used as supervision, and no additional training data is required.
8. A non-training phase reconstruction device based on complex neural network, It is characterized in that Includes the following modules: An acquisition module, used to acquire acquisition data of the target, wherein the acquisition method of the acquisition data includes any one or more of the following methods: coherent diffraction imaging, in which coherent light irradiates the target to form a diffraction pattern in the far field, and the sensor records the intensity information of the diffraction pattern; Fourier stack imaging, in which a series of low-resolution intensity images are collected by the sensor through frequency domain processing; autocorrelation scattering imaging, in which light passes through a scattering medium to form a speckle pattern, and the sensor collects the speckle pattern; A construction module, used for constructing a complex neural network, the input of the complex neural network is the collected data, and the output is an amplitude image and a phase image of the target scene; An optimization module, used to use the complex neural network as a generator, input the acquisition data, and output a reconstructed amplitude image and a phase image; use the reconstructed amplitude image and the phase image to calculate the simulated acquisition data according to the physical imaging model; and update the network parameters by minimizing the difference between the simulated acquisition data and the acquisition data; The iterative module is used to repeatedly optimize the module so that the network parameters are updated and converged, and output the final amplitude image and phase image of the target.
9. The device according to claim 8, It is characterized in that The input and output of the complex neural network are complex signals, and the operations of each layer of the neural network are based on complex operations, including complex convolution, complex activation function, and complex weight initialization.
