Wavefront sensor construction method based on codec joint optimization
Through the joint optimization of the coding layer structure and wavefront reconstruction algorithm through deep learning technology, the problems of difficulty in obtaining phase information and high complexity of wavefront sensors in traditional photoelectric detection technology are solved, and the development of miniaturized and lightweight wavefront sensors is realized. Efficient wavefront reconstruction and high-precision data acquisition reduce equipment costs.
Patent Information
- Application Number
- CN202410797667.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Traditional photoelectric detection technology is difficult to obtain the phase information of light waves, resulting in the inability to achieve high-precision and high-resolution high-dimensional optical signal collection in applications in medical imaging, materials science, astronomy and other fields, and wavefront sensors are highly ill-conditioned and underdetermined. Reconstruction problems, complex structure and high cost limit its application.
A joint encoding and decoding optimization method based on deep learning technology is used to jointly optimize the encoding layer structure and wavefront reconstruction algorithm. The encoding layer is optimized through mathematical modeling and new material preparation, and is integrated into the surface of the wavefront sensor to simplify the optical system design and reduce the cost. cost.
It achieves high-quality and high-efficiency wavefront reconstruction of a miniaturized, lightweight wavefront sensor, improves the quality of collected data and reconstruction accuracy, simplifies the equipment structure, reduces costs, and enhances the practicality of applications.
Smart Images

Figure CN118364662B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computational imaging technology, and in particular to a method for constructing a wavefront sensor based on joint optimization of codecs. Background Art
[0002] At present, photoelectric detection technology has been widely used in various fields. Among them, the amplitude and phase of light waves are two key physical quantities that describe the wave nature of light waves. The amplitude reflects the reflectivity or transmittance of the target, while the phase reveals the propagation delay of the light wave and the inherent structure of the target. Traditional photoelectric detection technology usually only records the intensity information of the light wave and ignores the phase information, resulting in the inability to detect phase targets. However, in fields such as medical imaging, materials science, and astronomy, phase information often has higher value. For example, phase imaging plays an important role in observing the three-dimensional structure of living cells without labels, studying the microstructure of materials, and improving the resolution of astronomical observations. Therefore, obtaining phase information has become an important part of photoelectric detection tasks.
[0003] In related technologies, wavefront sensors are usually used to detect the phase information of light waves. The development of wavefront sensors has made it possible to solve the phase loss problem. However, in practical applications, wavefront sensors in related technologies rely on complex optical imaging systems and computing algorithms, and have problems such as multiple integration of optical devices, complex optical path calibration, and time-consuming reconstruction iterative algorithms. The complexity and high cost of the device structure limit its application. In addition, current wavefront sensors have problems such as highly pathological acquisition and highly underdetermined reconstruction, making it difficult to obtain high-precision and high-resolution high-dimensional optical signals. Summary of the invention
[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the first purpose of this application is to propose a wavefront sensor construction method based on joint optimization of codecs. This method jointly optimizes the coding layer structure and the wavefront reconstruction algorithm through deep learning technology, and can achieve high-quality and efficient wavefront reconstruction with a miniaturized and lightweight wavefront sensor.
[0006] The second object of this application is to propose a wavefront sensor construction system based on codec joint optimization;
[0007] The third object of the present application is to provide an electronic device;
[0008] A fourth objective of the present application is to provide a computer-readable storage medium.
[0009] To achieve the above object, the first aspect of the present application is to propose a wavefront sensor construction based on codec joint optimization, the method comprising the following steps:
[0010] Mathematically modeling the propagation process of the light wave relative to the wavefront sensor to obtain an encoding module, and constructing a neural network architecture including the encoding module and the decoding module;
[0011] Based on deep learning technology, the structure of the coding layer in the coding module and the wavefront reconstruction algorithm configured in the decoding module are jointly trained to obtain an optimized coding structure and reconstruction parameters;
[0012] An optimized coding layer is prepared by using a new material, and the original protective glass on the surface of the wavefront sensor is removed, and the prepared coding layer is integrated on the surface of the wavefront sensor;
[0013] The structure of the integrated coding layer is physically calibrated, and the network architecture is fine-tuned based on the current application task, and the reconstruction algorithm of the wavefront sensor is adjusted according to the fine-tuned reconstruction parameters.
[0014] Optionally, according to one embodiment of the present application, the encoding module includes: a first diffraction layer, the encoding layer, a second diffraction layer and a sensor layer, and the decoding module is a decoupled reconstruction network cascaded after the sensor layer, wherein the first diffraction layer is used to simulate the process of light waves diffracting to the encoding layer after interacting with the sample; the encoding layer is modeled as a phase transfer matrix, and the phase transfer matrix learns an optimized coding structure during training, and the encoding layer is used to simulate the modulation of the light wave; the second diffraction layer is used to simulate the process of light waves diffracting to the sensor layer after interacting with the encoding layer; the sensor layer is used to simulate the process of wavefront sensor acquiring images; the decoupled reconstruction network outputs corresponding phase information according to the input diffraction intensity map.
[0015] Optionally, according to an embodiment of the present application, the modulation process of the coding layer is expressed by the following formula:
[0016]
[0017] in, is the wavefront function of the coding layer exit surface, is the incident wavefront function at the coding layer plane, is the element-wise multiplication operator, is the phase modulation matrix of the coding layer.
[0018] Optionally, according to one embodiment of the present application, the structure of the coding layer in the encoding module and the wavefront reconstruction algorithm configured in the decoding module are jointly trained, including: using the phase transfer matrix and the parameters of the decoupled reconstruction network as optimizable parameters in the neural network architecture; using natural images as training sets, using deep learning technology to jointly optimize the optimizable parameters to obtain the optimized coding structure, and learning the mapping relationship between natural images and diffraction patterns and the mapping relationship between diffraction patterns and phase information.
[0019] Optionally, according to one embodiment of the present application, the new material includes: a photolithography mask, a liquid crystal and a metamaterial, and the preparation of the optimized coding layer by the new material includes: when using the metamaterial, converting the optimized phase transmission matrix into a height matrix of the metamaterial; and performing discrete manufacturing based on the height matrix.
[0020] Optionally, according to one embodiment of the present application, the physical calibration of the structure of the integrated coding layer includes: calculating the deviation between the structure of the integrated coding layer and the structure of the optimized coding layer, and based on the deviation, calibrating the structure of the integrated coding layer through a preset optical system to obtain calibrated structural parameters; replacing the structural parameters of the optimized coding layer with the calibrated structural parameters, and freezing the coding module parameters.
[0021] Optionally, according to an embodiment of the present application, fine-tuning the network architecture based on the current application task includes:
[0022] The optimized reconstruction parameters and the calibrated structural parameters are used as optimization parameters of the pre-trained network architecture; relevant data of the application task is obtained as training data, and the pre-trained network architecture is fine-tuned by the training data to obtain the fine-tuned reconstruction parameters.
[0023] To achieve the above objectives, the second aspect of the present application further proposes a wavefront sensor construction system based on codec joint optimization, comprising the following modules:
[0024] A modeling module, used for mathematically modeling the propagation process of the light wave relative to the wavefront sensor, obtaining an encoding module, and constructing a neural network architecture including the encoding module and the decoding module;
[0025] A joint training module, used to jointly train the structure of the coding layer in the coding module and the wavefront reconstruction algorithm configured in the decoding module based on deep learning technology to obtain an optimized coding structure and reconstruction parameters;
[0026] A preparation module, used to prepare an optimized coding layer using a new material, remove the original protective glass on the surface of the wavefront sensor, and integrate the prepared coding layer on the surface of the wavefront sensor;
[0027] The adjustment module is used to physically calibrate the structure of the integrated coding layer, fine-tune the network architecture based on the current application task, and adjust the reconstruction algorithm of the wavefront sensor according to the fine-tuned reconstruction parameters.
[0028] To achieve the above-mentioned purpose, the third aspect of the present application further proposes an electronic device, comprising:
[0029] processor;
[0030] a memory for storing instructions executable by the processor;
[0031] The processor is configured to execute the instructions to implement the wavefront sensor construction method based on codec joint optimization as described in any one of the first aspects above.
[0032] To achieve the above-mentioned purpose, the fourth aspect of the present application further proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the wavefront sensor construction method based on joint optimization of codecs as described in any one of the above-mentioned first aspects is implemented.
[0033] The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: the present application jointly optimizes the coding layer structure and the wavefront reconstruction algorithm through deep learning technology, thereby improving the quality of the collected data and the accuracy of the reconstruction. Among them, the introduction of the coding layer enables the light field information to be further refined and modulated, increasing the light field information collected by the sensor; and the powerful modeling ability of the deep learning model enables the sensor to learn the complex characteristics of the light field from limited data, so that high-quality wavefront reconstruction can be achieved even in the case of underdetermination, and efficient modulation of light waves can be achieved with higher efficiency. In addition, the sensor constructed by the present application adopts a lensless imaging architecture, which can directly integrate the optimized coding layer into the sensor surface, simplify the design of the optical system, reduce the cost of the equipment, simplify the complex equipment structure, avoid the problems of large volume, heavy weight and complex system of the wavefront sensing system, improve the practicality of the wavefront sensor, and is easy to deploy in practical applications. Therefore, the present application can perform high-quality and efficient wavefront reconstruction with a miniaturized and lightweight wavefront sensor.
[0034] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and / or additional aspects and advantages of the present application 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 method for constructing a wavefront sensor based on codec joint optimization proposed in an embodiment of the present application;
[0037] Figure 2 A schematic diagram of a light propagation process proposed in an embodiment of the present application;
[0038] Figure 3 A schematic diagram of a joint optimization of a neural network architecture proposed in an embodiment of the present application;
[0039] Figure 4 A schematic diagram of an integration process of a coding layer proposed in an embodiment of the present application;
[0040] Figure 5 A schematic diagram of calibrating and fine-tuning a network architecture proposed in an embodiment of the present application;
[0041] Figure 6 A schematic diagram of the structure of a wavefront sensor construction system based on codec joint optimization proposed in an embodiment of the present application;
[0042] Figure 7 A schematic diagram of the structure of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0043] 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.
[0044] It should be noted that the present application first analyzes in detail the two major problems faced by the wavefront sensing method in the relevant embodiments from the following aspects: First, the problem of high pathological acquisition. Wavefront sensing technology requires recording high-dimensional data of the light field, including amplitude and phase information. In practical applications, this usually involves measuring multi-angle, multi-wavelength or multi-diffraction distances of the light field to obtain sufficient information to reconstruct the complete wavefront. In addition, traditional photodetectors can usually only measure the intensity of light, but cannot directly obtain phase information. This leads to the loss of phase information during the acquisition process, limiting the accuracy and resolution of wavefront reconstruction. In order to achieve high-precision wavefront reconstruction, it is often necessary to collect complete light field information. However, due to technical limitations, such as the resolution of the detector, the complexity of the optical system, etc., the collected data is often incomplete, which increases the difficulty of reconstruction.
[0045] Second, the highly underdetermined reconstruction problem: Wavefront reconstruction usually involves recovering complete light field information from limited measurement data. Since the amount of collected data is much smaller than the degrees of freedom of the light field, the reconstruction problem is inherently underdetermined. In order to solve the underdetermined problem, existing reconstruction models often rely on some low-dimensional statistical prior knowledge. However, this prior knowledge may not be sufficient to capture all the characteristics of the light field, especially in complex scenes. In addition, in the underdetermined equations, additional degrees of freedom need to be eliminated to solve the problem. This is usually achieved through regularization techniques, but choosing appropriate regularization parameters is difficult and may affect the accuracy of the reconstruction results.
[0046] To this end, the present application proposes a wavefront sensor construction method and system based on joint optimization of encoding and decoding. The present application uses deep learning technology to jointly optimize the coding layer structure and the wavefront reconstruction algorithm. The constructed sensor can achieve efficient modulation of light waves.
[0047] A method, system and electronic device for constructing a wavefront sensor based on codec joint optimization proposed in an embodiment of the present invention will be described below with reference to the accompanying drawings.
[0048] Figure 1 A flow chart of a wavefront sensor construction method based on codec joint optimization proposed in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0049] Step S101: mathematically model the propagation process of the light wave relative to the wavefront sensor to obtain a coding module, and construct a neural network architecture including the coding module and the decoding module.
[0050] Specifically, the present application first constructs a neural network architecture including an encoding module and a decoding module, which mathematically models the light propagation process and integrates it into the network architecture as the encoding module of the network. The light propagation process is the process when the wavefront sensor detects the light wave, and the light wave reaches the sensor after passing through the sample. This process can include multiple stages such as the modulation process of the coding layer, the two-stage near-field diffraction process, and the sensor imaging process.
[0051] After the encoding module is modeled, a neural network is cascaded behind the encoding module as the decoding module of the network. The decoding module is used to convert the collected diffraction pattern into the phase information of the light wave, thereby completing the construction of the neural network architecture, which is convenient for obtaining the optimized sensor parameters through the network architecture in the future. Among them, the encoding module corresponds to the encoding layer structure, and the decoding module corresponds to the reconstruction algorithm.
[0052] In order to more clearly and intuitively explain the implementation principle of the neural network architecture constructed in this application, the following is combined with Figure 2 The actual physical process of light wave propagation shown in Figure 3 The neural network architecture shown is used as an example. Figure 3 As shown, in one embodiment of the present application, the encoding module includes: a first diffraction layer 10, an encoding layer 20, a second diffraction layer 30 and a sensor layer 40. The decoding module is a decoupled reconstruction network 50 cascaded after the sensor layer 40.
[0053] The first diffraction layer 10 is used to simulate the process of light waves diffracting to the coding layer 20 after interacting with the sample. That is, this layer simulates the process of light waves diffracting to the coding layer 20 after interacting with the sample. Figure 2 As shown in The process from the distance to the plane of the coding layer 20 can be expressed by the following formula:
[0054]
[0055] in, , , is the wavefront function of the sample plane, is the incident wavefront function at the coding layer plane, is the wavelength, is the wave number, is the inverse discrete Fourier transform, is the coherent transfer function, is the point spread function, is the convolution operation, k x for x The number of waves in the direction, k y for y The number of waves in the direction, k 0 is the wave number in vacuum.
[0056] The coding layer 20 is modeled as a phase transfer matrix, which learns the optimized coding structure during the training process. The coding layer 20 is used to simulate the modulation of the light wave. Specifically, the coding layer is modeled as a phase transfer matrix and serves as an optimizable parameter in the network. It can be continuously iterated and optimized through the training process in the future to achieve fine modulation of the light field and obtain more light field information. The coding layer 20 can also be called a modulation layer, which simulates the modulation process of the actual coding layer, which can be expressed by the following formula:
[0057]
[0058] in, is the wavefront function of the coding layer exit surface, is the incident wavefront function at the coding layer plane, is the element-wise multiplication operator, is the phase modulation matrix of the coding layer, Corresponding to the structure of the actual coding layer, this part is used to learn the optimized coding structure during the network training process.
[0059] The second diffraction layer 30 is used to simulate the process of light waves diffracting to the sensor layer 40 after interacting with the coding layer 20. Specifically, the diffraction layer 30 simulates the process of light waves diffracting to the sensor layer 40 after interacting with the coding layer 20. Figure 2 As shown in The process of propagating from the distance to the sensor can be expressed by the following formula:
[0060]
[0061] in, is the wavefront function of the sensor incident surface.
[0062] The sensor layer 40 is used to simulate the process of wavefront sensor collecting images. This process is a modulo operation and can be expressed by the following formula:
[0063]
[0064] in, It means taking the modulus value of the element and squaring it. Diffraction pattern collected by the sensor.
[0065] The decoupling reconstruction network 50 converts the diffraction intensity map obtained above into As input, it outputs phase information. During the network training process, this part can learn the mapping from diffraction pattern to phase information. By cascading the above five parts, the neural network architecture to be trained can be constructed.
[0066] Step S102: Based on deep learning technology, the structure of the coding layer in the coding module and the wavefront reconstruction algorithm configured in the decoding module are jointly trained to obtain optimized coding structure and reconstruction parameters.
[0067] Specifically, in the process of constructing the network architecture, the coding layer structure is used as the optimizable parameter of the network, and other optical propagation processes are used as the fixed operation layer of the network. Therefore, the optimization parameters only include the phase modulation matrix of the coding layer and the decoupling network parameters (i.e. Figure 3 The parameters of the decoupled reconstruction network 50 are equivalent to the wavefront reconstruction algorithm configured in the decoding module). This application uses deep learning technology to jointly optimize the coding layer structure and the reconstruction algorithm. Figure 3 After the training of the neural network architecture shown is completed, the optimized encoding structure and reconstruction parameters are obtained.
[0068] In one embodiment of the present application, the structure of the coding layer in the encoding module and the wavefront reconstruction algorithm configured in the decoding module are jointly trained, including: using the phase transfer matrix and the parameters of the decoupled reconstruction network as optimizable parameters in the neural network architecture; using natural images as training sets, using deep learning technology to jointly optimize the optimizable parameters to obtain an optimized coding structure, and learning the mapping relationship between natural images and diffraction patterns and the mapping relationship between diffraction patterns and phase information.
[0069] Specifically, in this embodiment, natural images are used as training data sets, and the encoding and decoding modules are jointly trained to achieve joint optimization of the coding layer structure and the network reconstruction parameters. While obtaining the optimal coding structure, the optimal mapping relationship between the natural image and the diffraction pattern is obtained, and the decoupled reconstruction network 50 can learn the optimal mapping relationship from the diffraction pattern to the phase information.
[0070] For example, since the optimization parameters only include the phase modulation matrix of the coding layer and the decoupling network parameters, the reconstruction network trained in this embodiment can be expressed as .in, is the network parameter of the decoupled network. After the network is constructed, the real data set is used as the training data set, such as Figure 3 As shown, the loss function is calculated, and the network is continuously iterated and optimized to obtain the optimized coding layer structure. (can be briefly described as encoding structure) and decoupled network parameters (i.e., reconstruction parameters). This can be used to finely modulate the light field and obtain more light field information.
[0071] It should be noted that when conducting deep learning training, a neural network such as a decoding module can be selected as a deep learning training model, and relevant deep learning training algorithms can be used for training. The specific training process can refer to the existing deep learning training process, and this application does not limit the specific training steps.
[0072] Therefore, in the joint optimization process, the present application uses natural images as training data sets, and through the training network, the coding layer structure and the wavefront reconstruction algorithm can be jointly optimized to achieve efficient modulation and reconstruction of light waves.
[0073] Step S103: preparing an optimized coding layer using a new material, removing the original protective glass on the surface of the wavefront sensor, and integrating the prepared coding layer on the surface of the wavefront sensor.
[0074] Specifically, the present application prepares the actual coding layer according to the optimized coding layer structure parameters obtained in the previous step, and integrates the prepared coding layer into the surface of the wavefront sensor constructed in the present application. Various advanced materials and technologies can be used in the preparation process.
[0075] In one embodiment of the present application, the selected new materials include but are not limited to: photolithography masks, liquid crystals and metamaterials, and the optimized coding layer is prepared by the new materials, including: when using metamaterials, converting the optimized phase transmission matrix into a height matrix of the metamaterial; and performing discrete manufacturing based on the height matrix.
[0076] Specifically, in this embodiment, a new material is used to prepare an optimized coding layer and integrate it onto the sensor surface. For example, for the preparation of a coding layer based on metamaterials, it is necessary to convert the optimized phase modulation matrix into a metamaterial height matrix and perform discrete manufacturing. Figure 4 As shown, a wavefront sensor is selected in advance, the protective glass on the surface of the sensor is removed first, and then the prepared coding layer is integrated onto the sensor to form an integrated device.
[0077] Therefore, the coding layer prepared by the present application will be used to directly replace the protective glass on the sensor surface to achieve more precise modulation of the wavefront. After removing the glass, based on the lensless imaging method adopted by the present application, no lens is included in the physical detection process, and the constructed wavefront sensor is very compact as a whole, so it can be easily integrated.
[0078] Step S104: Physically calibrate the structure of the integrated coding layer, fine-tune the network architecture based on the current application task, and adjust the reconstruction algorithm of the wavefront sensor according to the fine-tuned reconstruction parameters.
[0079] It should be noted that when the integrated sensor proposed in this application performs specific tasks, due to the influence of the coding layer preparation process and the integration process, there is often a deviation between the integrated coding layer structure and the optimized coding structure calculated in step S102, and further calibration is required.
[0080] In one embodiment of the present application, the structure of the integrated coding layer is physically calibrated, including: calculating the deviation between the structure of the integrated coding layer and the structure of the optimized coding layer, and based on the deviation, calibrating the structure of the integrated coding layer through a preset optical system to obtain the calibrated structural parameters; replacing the structural parameters of the optimized coding layer with the calibrated structural parameters, and freezing the coding module parameters.
[0081] Specifically, the actual coding layer structure obtained after the integration process is physically calibrated. During the calibration process, the accuracy of the coding layer structure is ensured through physical calibration, and the coding module parameters are frozen. In the specific implementation, an optical system for calibrating the actual coding layer structure is pre-built, that is, Figure 5 The calibration system in the code layer is calibrated by using relevant algorithms. , to compensate for the calculated deviation. At the same time, the encoding structure parameters in the trained neural network architecture are Replace with the actual calibrated structural parameters , and freeze the relevant parameters of the encoding module to avoid subsequent updates of the calibrated parameters.
[0082] Further, such as Figure 5 As shown, based on the current actual application requirements of the sensor, such as wavefront reconstruction tasks, phase recovery tasks and other application tasks, a small amount of data related to the current task is used to continue training the neural network architecture to achieve fine-tuning.
[0083] In one embodiment of the present application, the network architecture is fine-tuned based on the current application task, including: using the optimized reconstruction parameters and the calibrated structural parameters as the optimization parameters of the pre-trained network architecture; obtaining relevant data of the application task as training data, fine-tuning the pre-trained network architecture through the training data, and obtaining the fine-tuned reconstruction parameters.
[0084] Specifically, after freezing the calibrated encoding structure parameters, the pre-trained model to be fine-tuned according to the actual task can be expressed as Then, through actual collection and manual labeling, a small amount of data for the current task is obtained as training data, and training is continued with additional small amounts of data. Figure 5 The neural network architecture shown is fine-tuned to obtain the optimal reconstruction parameters for this task. .
[0085] Furthermore, the reconstruction algorithm of the wavefront sensor is adjusted according to the fine-tuned reconstruction parameters, and the reconstruction parameters in the wavefront reconstruction algorithm of the actually constructed wavefront sensor configuration are replaced with the optimal reconstruction parameters after the current fine-tuning. , that is, after calibration and fine-tuning of the wavefront sensor constructed in this application, the reconstruction network can be expressed as The final constructed wavefront sensor is then used to perform the current application task, which can detect phase information more efficiently and accurately and complete related tasks.
[0086] Therefore, this application effectively solves the problems of large size, heavy weight and complex system of existing wavefront sensing systems through integrated design at the hardware level, and realizes the deviceization of wavefront sensing. At the software level, the use of deep learning to reconstruct wavefront information not only improves the reconstruction speed, but also improves the reconstruction quality, and realizes high-quality and efficient wavefront information reconstruction.
[0087] In summary, the wavefront sensor construction method based on joint optimization of codec in the embodiment of the present application jointly optimizes the coding layer structure and the wavefront reconstruction algorithm through deep learning technology, thereby improving the quality of collected data and the accuracy of reconstruction. Among them, the introduction of the coding layer enables the light field information to be further refined and modulated, increasing the light field information collected by the sensor; and the powerful modeling ability of the deep learning model enables the sensor to learn the complex characteristics of the light field from limited data, so that high-quality wavefront reconstruction can be achieved even in underdetermined conditions, and efficient modulation of light waves can be achieved with higher efficiency. In addition, the sensor constructed by this method adopts a lensless imaging architecture, which can directly integrate the optimized coding layer into the sensor surface, simplify the design of the optical system, reduce the cost of the equipment, simplify the complex equipment structure, and avoid the problems of large volume, heavy weight and complex system of the wavefront sensing system, thereby improving the practicality of the wavefront sensor and making it easy to deploy in practical applications. Therefore, the method can perform high-quality and efficient wavefront reconstruction with a miniaturized and lightweight wavefront sensor.
[0088] In order to implement the above embodiment, the present application also proposes a wavefront sensor construction system based on codec joint optimization. Figure 6 This is a schematic diagram of the structure of a wavefront sensor construction system based on codec joint optimization proposed in an embodiment of the present application, such as Figure 6 As shown, the system includes a modeling module 100, a joint training module 200, a preparation module 300 and an adjustment module 400.
[0089] Among them, the modeling module 100 is used to mathematically model the propagation process of the light wave relative to the wavefront sensor, obtain the encoding module, and construct a neural network architecture including the encoding module and the decoding module.
[0090] The joint training module 200 is used to jointly train the structure of the coding layer in the coding module and the wavefront reconstruction algorithm configured in the decoding module based on deep learning technology to obtain optimized coding structure and reconstruction parameters.
[0091] The preparation module 300 is used to prepare an optimized coding layer using a new material, remove the original protective glass on the surface of the wavefront sensor, and integrate the prepared coding layer on the surface of the wavefront sensor.
[0092] The adjustment module 400 is used to physically calibrate the structure of the integrated coding layer, fine-tune the network architecture based on the current application task, and adjust the reconstruction algorithm of the wavefront sensor according to the fine-tuned reconstruction parameters.
[0093] In one embodiment of the present application, the joint training module 200 is specifically used to: use the phase transfer matrix and the parameters of the decoupled reconstruction network as optimizable parameters in the neural network architecture; use natural images as training sets, use deep learning technology to jointly optimize the optimizable parameters to obtain an optimized coding structure, and learn the mapping relationship between natural images and diffraction patterns, as well as the mapping relationship between diffraction patterns and phase information.
[0094] In one embodiment of the present application, the preparation module 300 is specifically used to: when using a metamaterial, convert the optimized phase transmission matrix into a height matrix of the metamaterial; and perform discrete manufacturing based on the height matrix.
[0095] In one embodiment of the present application, the adjustment module 400 is specifically used to: calculate the deviation between the structure of the integrated coding layer and the structure of the optimized coding layer, and based on the deviation, calibrate the structure of the integrated coding layer through a preset optical system to obtain the calibrated structural parameters; replace the structural parameters of the optimized coding layer with the calibrated structural parameters, and freeze the coding module parameters.
[0096] In one embodiment of the present application, the adjustment module 400 is also used to: use the optimized reconstruction parameters and the calibrated structural parameters as the optimization parameters of the pre-trained network architecture; obtain relevant data of the application task as training data, fine-tune the pre-trained network architecture through the training data, and obtain the fine-tuned reconstruction parameters.
[0097] In summary, the wavefront sensor construction system based on the joint optimization of codecs in the embodiment of the present application jointly optimizes the coding layer structure and the wavefront reconstruction algorithm through deep learning technology, thereby improving the quality of collected data and the accuracy of reconstruction. Among them, the introduction of the coding layer enables the light field information to be further refined and modulated, increasing the light field information collected by the sensor; and the powerful modeling ability of the deep learning model enables the sensor to learn the complex characteristics of the light field from limited data, thereby achieving high-quality wavefront reconstruction even in underdetermined conditions, and achieving efficient modulation of light waves with higher efficiency. In addition, the sensor constructed by the system adopts a lensless imaging architecture, which can directly integrate the optimized coding layer into the sensor surface, simplifying the design of the optical system, reducing the cost of the equipment, simplifying the complex equipment structure, and avoiding the problems of large size, heavy weight and complex system of the wavefront sensing system, improving the practicality of the wavefront sensor, and being easy to deploy in practical applications.
[0098] In order to implement the above embodiments, the present application also proposes an electronic device, such as Figure 7As shown, the electronic device 700 includes: a processor 710; a memory 720 for storing executable instructions of the processor 710; wherein the processor 710 is configured to execute instructions to implement a wavefront sensor construction method based on codec joint optimization as described in any of the above-mentioned first aspect embodiments.
[0099] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a wavefront sensor construction method based on codec joint optimization as described in any of the above first aspect embodiments is implemented.
[0100] 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 application. 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.
[0101] 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 this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0102] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0103] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0104] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0105] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0106] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0107] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for constructing a wavefront sensor based on joint optimization of codec, characterized in that: The following steps are involved: Mathematically modeling the propagation process of the light wave relative to the wavefront sensor to obtain an encoding module, and constructing a neural network architecture including the encoding module and the decoding module; Based on deep learning technology, the structure of the coding layer in the coding module and the wavefront reconstruction algorithm configured in the decoding module are jointly trained to obtain an optimized coding structure and reconstruction parameters; An optimized coding layer is prepared by using a new material, and the original protective glass on the surface of the wavefront sensor is removed, and the prepared coding layer is integrated on the surface of the wavefront sensor; Physically calibrating the structure of the integrated coding layer, fine-tuning the network architecture based on the current application task, and adjusting the reconstruction algorithm of the wavefront sensor according to the fine-tuned reconstruction parameters; The encoding module includes: a first diffraction layer, the encoding layer, a second diffraction layer and a sensor layer, and the decoding module is a decoupled reconstruction network cascaded after the sensor layer, wherein: The first diffraction layer is used to simulate the process of light waves diffracting to the coding layer after interacting with the sample; The coding layer is modeled as a phase transfer matrix, the phase transfer matrix learns an optimized coding structure during training, and the coding layer is used to simulate modulation of light waves; The second diffraction layer is used to simulate the process of light waves diffracting to the sensor layer after interacting with the coding layer; The sensor layer is used to simulate the process of wavefront sensor collecting images; The decoupling reconstruction network outputs corresponding phase information according to the input diffraction intensity map; The jointly training the structure of the coding layer in the coding module and the wavefront reconstruction algorithm configured in the decoding module includes: Using the phase transfer matrix and the parameters of the decoupling reconstruction network as optimizable parameters in the neural network architecture; Natural images are used as training sets, and deep learning technology is used to jointly optimize the optimizable parameters to obtain the optimized coding structure, and the mapping relationship between natural images and diffraction patterns and the mapping relationship between diffraction patterns and phase information are learned.
2. The method according to claim 1, characterized in that The modulation process of the coding layer is expressed by the following formula: in, is the wavefront function of the coding layer exit surface, is the incident wavefront function at the coding layer plane, is the element-wise multiplication operator, is the phase modulation matrix of the coding layer.
3. The method according to claim 1, characterized in that The novel material includes: a photolithography mask, a liquid crystal and a metamaterial. The optimized coding layer prepared by using the novel material includes: When using metamaterials, the optimized phase transmission matrix is converted into a height matrix of the metamaterial; Discretization is performed based on the height matrix.
4. The method according to claim 1, characterized in that: The physically calibrating the structure of the integrated coding layer includes: Calculating a deviation between the structure of the integrated coding layer and the structure of the optimized coding layer, and based on the deviation, calibrating the structure of the integrated coding layer through a preset optical system to obtain calibrated structural parameters; The optimized structural parameters of the coding layer are replaced with the calibrated structural parameters, and the coding module parameters are frozen.
5. The method according to claim 4, characterized in that The fine-tuning of the network architecture based on the current application task includes: The optimized reconstruction parameters and the calibrated structural parameters are used as optimization parameters of the pre-trained network architecture; Relevant data of the application task is obtained as training data, and the pre-trained network architecture is fine-tuned by the training data to obtain the fine-tuned reconstruction parameters.
6. A wavefront sensor construction system based on codec joint optimization, characterized in that: Includes the following modules: A modeling module, used for mathematically modeling the propagation process of the light wave relative to the wavefront sensor, obtaining an encoding module, and constructing a neural network architecture including the encoding module and the decoding module; A joint training module, used to jointly train the structure of the coding layer in the coding module and the wavefront reconstruction algorithm configured in the decoding module based on deep learning technology to obtain an optimized coding structure and reconstruction parameters; A preparation module, used to prepare an optimized coding layer using a new material, remove the original protective glass on the surface of the wavefront sensor, and integrate the prepared coding layer on the surface of the wavefront sensor; An adjustment module, used to physically calibrate the structure of the integrated coding layer, fine-tune the network architecture based on the current application task, and adjust the reconstruction algorithm of the wavefront sensor according to the fine-tuned reconstruction parameters; The encoding module includes: a first diffraction layer, the encoding layer, a second diffraction layer and a sensor layer, and the decoding module is a decoupled reconstruction network cascaded after the sensor layer, wherein: The first diffraction layer is used to simulate the process of light waves diffracting to the coding layer after interacting with the sample; The coding layer is modeled as a phase transfer matrix, the phase transfer matrix learns an optimized coding structure during training, and the coding layer is used to simulate modulation of light waves; The second diffraction layer is used to simulate the process of light waves diffracting to the sensor layer after interacting with the coding layer; The sensor layer is used to simulate the process of wavefront sensor collecting images; The decoupling reconstruction network outputs corresponding phase information according to the input diffraction intensity map; The joint training module is specifically used for: Using the phase transfer matrix and the parameters of the decoupling reconstruction network as optimizable parameters in the neural network architecture; Natural images are used as training sets, and deep learning technology is used to jointly optimize the optimizable parameters to obtain the optimized coding structure, and the mapping relationship between natural images and diffraction patterns and the mapping relationship between diffraction patterns and phase information are learned.
7. An electronic device comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the wavefront sensor construction method based on codec joint optimization as described in any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for constructing a wavefront sensor based on codec joint optimization as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Wavefront reconstruction method for pyramid wavefront sensor based on artificial neural network
CN116295873A
Super-resolution method and system for system parameter optimization
CN116703728A
