Optical diffraction neural network system
By using technologies such as event cameras and blazed gratings in the optical computing system, a high-speed optical diffraction neural network architecture is constructed, which solves the problem of limited processing speed of the optical computing system and realizes an efficient, low-power, high-speed optical computing system.
Patent Information
- Application Number
- CN202410769113.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-17
AI Technical Summary
The processing speed of existing optical computing systems is limited by the conflict between the reception rate of the optical receiver and the processing architecture, resulting in the overall operating speed being unable to meet demand.
Adopting a high-speed optical diffraction neural network architecture based on event cameras, a single sDPU processing unit is composed of laser, DMD, SLM and event cameras to achieve parallel processing and back-propagation parameter updates. Combined with blazed gratings and appropriate device distance configuration, the calculation speed is improved. and energy efficiency ratio.
It achieves extremely high-speed system inference speed with low power consumption and high accuracy, breaking through the processing speed bottleneck of the existing optical computing system. The computing speed reaches 1601.6 TOPs/s, the energy efficiency ratio reaches 31.75 TOPs/W, and the single frame is significantly reduced. Processing delay improves overall operating efficiency.
Smart Images

Figure CN118657183A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical computing, and in particular to an optical diffraction neural network system. Background Art
[0002] Deep neural networks play a vital role in solving many cutting-edge artificial intelligence problems. Currently, traditional electronic-based deep neural networks rely on a large number of transistors in von Neumann computers, resulting in huge energy and resource consumption, and gradually facing the bottleneck of Moore's Law.
[0003] As an alternative to electronic neural networks, emerging photonic neural networks use photons instead of electrons and utilize optical phenomena such as reflection, refraction, diffraction and interference of light in a series of optical instruments to simulate the full connection process between neurons, thereby realizing the functions of neural networks and making their mark in the field of artificial intelligence.
[0004] Compared with traditional electronic neural networks, photonic neural networks can theoretically perform calculations at the speed of light. The high-throughput characteristics of light give optical computing extremely strong parallel data processing capabilities, thereby improving the speed bottleneck. At the same time, optical computing completes the calculation process through the interaction of light fields and does not require a large number of transistors, so its resource and energy consumption is extremely low. In addition, existing nanomanufacturing technology also ensures the integration and effectiveness of optical computing in chip-level applications.
[0005] At present, optical computing architecture has been initially verified and applied in many fields. Diffractive neural networks based on spatial light modulation have the advantages of high precision, programmability and high throughput, and can refer to the existing technology1.
[0006] Prior art 1: Zhou, T., Lin, X., Wu, J. et al. Large-scale neuromorphic optoelectronic computing with a reconfigurable diffractive processing unit. Nature. Photonics 15, 367–373 (2021). However, a major limiting factor of this solution is the receiving rate of the optical receiver, especially the receiving rate of the commonly used CMOS detector is only 30-120 frames per second, and the high frame rate photodetector is not only expensive, but also has a limited operating time. Another limiting factor is the conflict of processing architecture. The optical computing system includes multiple ports, and the information processing speed of each port is different. Therefore, the overall operating speed of the system is largely limited by the slower end. These factors cause the overall processing speed of the optical computing system to be far from meeting the demand.
[0007] Therefore, how to realize an optical computing system with low power consumption and high inference speed has become a technical problem that technicians in this field need to solve. Summary of the invention
[0008] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows: An optical diffraction neural network system includes a laser, a DMD, an SLM and an event camera. The laser emits light to the DMD and transmits the light to the SLM through an optical path system; the light is diffracted by the SLM and received by the event camera; the event camera generates a pulse event according to changes in the incident light.
[0009] Furthermore, the pulse events are stored in an event data pool; the pulse events are received and processed, and the pulse events are organized according to a set data structure; the pulse events with the set data structure are sent to a thread pool through a parallel processing unit, merged into event frames, and used as the first queue for DMD image import.
[0010] Furthermore, the DMD, SLM and event camera act as a single sDPU processing unit; the DMD loads the DMD picture in the first queue, and generates inputs for the middle layer of the optical diffraction neural network system according to the DMD picture.
[0011] Furthermore, in the last layer of the optical diffraction neural network system, a classification result corresponding to the DMD image is generated according to the output result of the event camera, and the classification result is stored in the second queue.
[0012] Furthermore, the actual output and the sDPU state of each layer in the optical diffraction neural network system are measured, and the output and the sDPU state of each layer in the simulated optical diffraction neural network system are measured; the sDPU state of each layer of the optical diffraction neural network system and the sDPU state of each layer of the simulated optical diffraction neural network system are compared, and the actual output of the optical diffraction neural network system and the output of the simulated optical diffraction neural network system are compared to obtain a loss function value, and the parameters of the error prediction network are updated based on the loss function value; the output and the sDPU state of each layer of the simulated optical diffraction neural network system are replaced with the output and the sDPU state of each layer of the optical diffraction neural network system; in back propagation, the parameters of the simulated optical diffraction neural network system are continuously updated to minimize the value of the loss function of the classification and recognition task.
[0013] Furthermore, a blazed grating is superimposed on the phase loaded onto the SLM, and the order of the blazed grating is 2.
[0014] Furthermore, the distance between the event camera and the SLM is not less than 234.91 mm.
[0015] Furthermore, the distance between the event camera and the SLM is 30 cm or 35 cm; the distance between the DMD and the SLM is 40 cm.
[0016] Furthermore, when merging into an event frame, if the accumulated sum of the polarity values of the pulse events corresponding to any pixel within a fixed time interval is not less than 1, the value of any pixel in the event frame is set to 255, otherwise it is set to 0.
[0017] Furthermore, by splicing multiple networks into a single-layer network, a single-layer network three-classification or more classification task is achieved, wherein any one of the multiple networks can only achieve a two-classification task.
[0018] The technical solution of the present invention has one or more of the following beneficial technical effects: (1) The present invention innovatively proposes a high-speed optical diffraction neural network architecture based on an event camera. This architecture achieves extremely high system inference speed under the premise of low power consumption and high accuracy, thus breaking through the processing speed bottleneck of existing optical computing systems. In one embodiment, the maximum computing speed can reach 1601.6 TOPs / s and the energy efficiency ratio can reach 31.75 TOPs / W.
[0019] (2) The parallel processing architecture that integrates the adaptive training process can maintain high performance even when physical errors cannot be completely eliminated. It can also significantly reduce the latency caused by single-frame processing and improve overall operating efficiency. This architecture can maintain the system's inference performance during physical deployment while expanding the system's processing bandwidth, enabling high-throughput data exchange and information processing.
[0020] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is an exemplary single diffraction processing unit architecture diagram; Figure 2 is a schematic diagram of sDPU; Figure 3 is a schematic diagram of the parallel processing architecture proposed by the present invention; Figure 4 This is a schematic diagram of the S2NN, S3NN and S4NN networks built based on sDPU; Figure 5 It is a flow chart of the operation of the optical diffraction neural network system of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0023] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.
[0024] Figure 1 An exemplary single Diffractive Processing Unit (sDPU) architecture diagram of the present invention is shown.
[0025] The sDPU of the present invention includes a laser, a reflector, a digital micromirror device (DMD), a spatial light modulator (SLM) and an event camera.
[0026] Optionally, the sDPU further includes a depolarizing beam splitter (NPBS).
[0027] The laser emitted by the laser passes through at least several lenses (L1, L2), and then is reflected by a reflector and then enters the DMD, and the light output by the DMD enters the SLM.
[0028] The light output by the SLM passes through several lenses (L3, L4) and then is directed into the event camera.
[0029] Furthermore, the light output by the DMD passes through the NPBS and is then projected onto the SLM; the light output by the SLM passes through the NPBS and a number of lenses and is then projected onto the event camera.
[0030] Generally speaking, for a neural network, the neuron can be simplified to the following model: y=f(w1x1+w2x2+...+w n x n ), where f(.) is the activation function, w is the weight matrix, the input is x, and the output is y.
[0031] In the sDPU, the DMD provides input x, the SLM provides a weight matrix w, and the multiplication and accumulation calculation process is completed in the light path from the SLM to the event camera. The pixel circuit in the event camera determines whether to stimulate (pulse) events and outputs them according to the intensity changes of the input light in the present invention. The pixel circuit of the event camera outputs discrete pulse events, and the pulse events output by the event camera are equivalent to the output y of the neuron.
[0032] DMD is a micro-electromechanical system with electronic input and optical output. It is composed of many small aluminum reflective mirrors, each of which is called a pixel. DMD can be produced based on semiconductor manufacturing technology, and the imaging pattern is determined by controlling the rotation and time domain response of the micro-mirrors.
[0033] Each micro-mirror unit of DMD is an independent individual and can be flipped at different angles (positive or negative). Therefore, the light reflected by the micro-mirror can present different angles, corresponding to the brightness of the digital image pixels.
[0034] When a signal "1" is given to the micro-reflector, it deflects a positive angle, and the reflected light passes through the projection lens along the optical axis and forms an image on the screen, forming a bright pixel. When a signal "0" is given to the micro-reflector, it deflects a negative angle, and the reflected light beam cannot pass through the projection lens, so a dark pixel is presented. The "1" and "0" states of the control signal correspond to the "on" and "off" states of the micro-reflector, respectively. When a given graphic data control signal sequence is written into the CMOS circuit, the incident light is modulated by the DMD, and the graphic can be displayed on the image plane.
[0035] Figure 2 The schematic diagram of sDPU is shown. The coherent light output by the laser is used as the input of DMD, and the input of a layer in the network is controlled by controlling DMD. There is an optical relay between SLM and DMD, and SLM controls or determines the connection strength, that is, the weight, of neurons in different layers of the network.
[0036] In other words, the sDPU in the present invention includes an optical signal output layer DMD, an optical signal tuning layer SLM, and an optical signal receiving layer, namely, an event camera. The present invention innovatively introduces an event camera as the optical signal receiving layer.
[0037] The internal state of the sDPU affects the performance of the entire network system, including: the distance between the DMD, SLM and event camera, the size of the modulation area used by the components and the value of the optical wavelength used.
[0038] In the present invention, DMD and SLM can be implemented as different layers in the network at different time intervals. For example, the pulse events output by the first layer are processed and used to control the DMD to obtain the corresponding optical input. For example, through the data flow control and buffer module, the SLM is adjusted to have a weight matrix corresponding to the next layer of the network. Therefore, different network layers in the same hardware implement information processing layer by layer. Therefore, the present invention realizes the function of the optical diffraction neural network (DONN) system by loop construction.
[0039] Preferably, the sensor used in the present invention is an event camera, which determines whether to issue a pulse event based on whether the intensity and direction of the light changes exceed a threshold. When the light intensity in the sensing area does not change much, the pixel circuit of the event camera will not issue a pulse event, so the event camera removes redundant information from the CMOS sensor and has the characteristics of sparseness and high resolution.
[0040] The optical diffraction neural network system of the present invention includes multiple layers of sDPU, and the DONN system can be implemented as S2NN, S3NN and S4NN. Among them, the implementation of one layer of sDPU includes the aforementioned DMD, DLM, event camera, several optical devices (such as lenses, etc.), and controller; S3NN is a time-stacked S2NN, and S4NN is a single-shot S2NN.
[0041] The controller is at least used to implement the functions implemented by the data flow control and buffer module. For example, the controller can be implemented by a computer, FPGA, Ni control board, ASIC, which undertakes control and information processing functions.
[0042] When implementing and deploying the sDPU optical diffraction neural network system, the above components need to be regulated and aligned to control the connection of the information transmission path, and errors in this process will reduce the performance of the entire system. The error correction scheme proposed in the present invention includes an error prediction network, which can reduce the loss of the entire network system during physical deployment.
[0043] First, a set of initial physical system deployment parameters can be obtained through computer simulation to ensure the accuracy of the neural network, and an optical input layer and phase deployment layer that are initially suitable for the physical system can be obtained for subsequent actual deployment.
[0044] refer to Figure 3 , which shows a schematic diagram of the parallel processing architecture proposed by the present invention. The event camera captures the area with obvious changes in light and dark in the square according to the changes in the input light signal, and the corresponding pixel circuit outputs a pulse event and sends it to the event data pool.
[0045] exist Figure 3 The right side shows a schematic diagram of the parallel processing of information in timing (1-2-3...) and spatial domain (ABCDEF) by multiple components or modules involved in the present invention. For example, at the first moment, the DMD loads the picture in the first queue (1A); at the second moment, the event camera senses the change in light (1B), and at the same time, the DMD loads the next picture in the first queue (2A); at the third moment, the event camera outputs the pulse event value event data pool (1C), and at the same time, the event camera continues to sense new changes in light (2B), and at the same time, the DMD loads the next picture in the first queue (3A); and so on, until the classification results for the photos loaded by the DMD at the beginning (1A) are stored in the second queue (1F). After that, multiple pictures are processed in parallel and cyclically.
[0046] After the pulse event is sent to the event data pool, it is processed through a multi-stage pipeline and integrated into the adaptive training process. While maintaining the reasoning performance of the network system during physical deployment, it also expands the processing bandwidth of the system, enabling high-throughput data exchange and information processing. The pipeline design of the present invention that integrates parallel processing technology includes the following steps: The event sensor captures the light signal and generates pulse events based on the changes in the light sensitivity of the pixel in real time, and sends them to the event data pool. In the first stage of the pipeline, these pulse events are received and preliminarily processed, and organized into a preliminary data structure.
[0047] Then, in the second-stage pipeline, the pulse events with the preliminary data structure enter the thread pool through the parallel processing unit, and synthesize the complete image frame and re-enter the first queue, that is, the queue containing the DMD picture.
[0048] The present invention's staged processing for event cameras allows the system to process multiple data batches simultaneously, greatly improving processing speed and responsiveness.
[0049] Furthermore, when the entire network is inferred to the last layer, the classification is completed according to the output result of the last layer of the network. For example, for the DMD pictures in the first queue, the corresponding classification results are stored in the second queue.
[0050] Furthermore, the adaptive training process refers to that during the entire training process, the network iteratively updates the parameters of the DONN and / or the error prediction network for each learning sample in an end-to-end manner, and the training process is as follows: 1) Measure the actual output of DONN and the sDPU state of each layer in the physical system; 2) Extract the corresponding simulation output and the sDPU simulation state of each layer from the simulated DONN; 3) Compare the actual output of the DONN in the physical system with the simulated output of the simulated DONN, and compare the sDPU state of each layer in the physical system with the simulated sDPU state of each layer in the simulated DONN, minimizing the similarity loss of back-propagation, which continuously updates the parameters of the error prediction network.
[0051] In this step, the loss function value is obtained by comparing the actual output of the DONN in the physical system with the simulated output of the simulated DONN, and the loss function value is used to update the parameters of the error prediction network in the direction of a smaller loss function value.
[0052] Preferably, the error prediction network is Unet or ResNet, which is generally different from the simulated DONN and the DONN network structure in the physical system.
[0053] 4) Replace the output of the simulated DONN network and the sDPU state of each layer with the measured values in the corresponding physical system, continuously update the parameters of the simulated DONN network in back propagation, and minimize the value of the loss function of the classification and recognition task.
[0054] Repeat these four steps on all training samples until the value of the minimized loss function converges, and finally the DONN and physical parameters that match the physical system errors can be obtained.
[0055] Illustratively, a simulated DONN may be implemented in a controller.
[0056] In the above process, the error prediction network plus the simulated DONN network is equal to the DONN in the physical system. Through the output of each layer, various errors in the system are learned. During system training, the parameters of DONN need to be continuously corrected to reduce performance loss during physical deployment.
[0057] refer to Figure 4 , which gives the schematic diagram of the S2NN, S3NN and S4NN networks built based on sDPU in the present invention. Among them, S2NN is used to classify pictures, S3NN is used to classify videos, and S4NN is a streamlined system based on S3NN, which improves robustness and speed, and can achieve classification and recognition of targets through a single-layer network.
[0058] For S2NN, a multi-layer diffractive optical neural network is built by several sDPUs connected in sequence. The same physical hardware can be used for each layer, just as Figure 3 The parallel information processing flow shown is the same.
[0059] Since the light will produce unmodulated zero-order light after passing through the SLM, the phase loaded on the SLM needs to be superimposed with a blazed grating. The order of the blazed grating will affect the angle between the zero-order light and the first-order light, which together with the actual area of the incident light will affect the optimal distance between the SLM and the event camera.
[0060] For S2NN, preferably, the order of the blazed grating is 2 to ensure a larger separation angle between the zero-order light and the first-order light.
[0061] For example, the size of the DMD loading pattern is 800×800, and the size of the SLM loading phase is 400×400. While ensuring the pixel utilization rate, the physical limitations of other devices are taken into account. The maximum diffraction angle after the parallel light is incident on the SLM and the minimum value D that the event camera and the SLM can achieve full connection min It can be calculated by the following formula: ; ; Where λ is the wavelength of the incident light, d f is the side length of the SLM pixel, and N is the number of pixels actually used. In one embodiment, λ=532nm, d f =12.5μm, N=400×400, corresponding to φ max is 1.22°, D min It is 234.91mm.
[0062] Furthermore, SLM uses a larger pixel area of 800×800 resolution to achieve stronger computing power.
[0063] Furthermore, considering the deviation of the physical system and the need to completely separate the zero-order light and the first-order light in optical calculations, the distance D between the event camera and the SLM is finally set to 300 mm. This distance not only ensures the sufficient occurrence of diffraction, thereby ensuring the full connection efficiency and thus fully mobilizing the overall performance of the system, but also this distance allows the zero-order light and the first-order light to be better separated without being affected by each other.
[0064] Furthermore, the distance D between the event camera and the SLM can be set to 35 cm to further separate the zero-order light and the first-order light.
[0065] The output of the first layer of S2NN is collected and processed by the event camera, and then sent back to the DMD, and then the second layer of reasoning is performed, and the cycle repeats until the last layer of reasoning is completed.
[0066] For example, for the MINST dataset, an S2NN implementation includes four layers, the distance between the event camera and the SLM is set to 30 cm, the DMD is 40 cm away from the SLM, the diffraction layer is 400×400, and the propagation space size is 500×500. In this case, the network inference accuracy can reach 100%.
[0067] Furthermore, the sDPU in S2NN can be designed into 5 layers to improve the reasoning accuracy.
[0068] Further, in one embodiment, the ambient light is set to 50 lux through the ambient light source.
[0069] The initial MNIST dataset size is 28×28, which needs to be enlarged to 800×800 and padded to the input format acceptable to DMD (2560×1600, center rotated 45 degrees). For the MNIST dataset, after the fourth layer of S2NN, the classification results for the MNIST dataset can be obtained.
[0070] For the KTH dataset, an S3NN implementation includes six layers, and the distance between the event camera and the SLM is set to 30 cm. When preprocessing the KTH dataset, the cumulative time of the jogging category is set to 0.5 seconds, and the other actions are set to 1 second, which can obtain the optimal classification effect for the three categories of jogging, walking, and running. Based on the same physical parameter conditions of the aforementioned four-layer S2NN implementation, the single-frame reasoning accuracy can reach 92.38%, and the video reasoning accuracy can reach 100%.
[0071] For extremely high-speed image processing scenarios, the relative positions of the components remain unchanged through the single-layer S4NN network, but the size of a single diffraction layer is 1500×500, which is composed of three small networks with a diffraction layer size of 300×300 and a propagation space size of 500×500. Each small network is used to distinguish any two actions in the three types of data sets, and finally a winner-takes-all strategy is used to obtain the prediction output for a single action.
[0072] Furthermore, inserting a frame of all-black pattern between the two pictures can ensure that the state of each pattern at the previous moment is consistent when the light is incident, so that the event camera has the same initialization state when receiving the data of a single picture, thereby avoiding the influence of the previous picture on the next picture.
[0073] For the boxing, clapping and waving data sets of the KTH dataset, the accuracy of the three small networks are 94%, 96% and 98% respectively, and the final overall three-category recognition accuracy can reach 94.65%.
[0074] Furthermore, for a video dataset, such as a 160×120 resolution and a 25fps frame rate, it can be padded to a preset size, such as 700×700, and a layer of mask extraction method is used to obtain black and white video data. The event camera is then used to convert the video data into pulse events, and then the pulse events are accumulated into event frames at fixed time intervals, and then input into DONN to perform inference operations.
[0075] The accumulation method of event frames can be described by the following formula: ; Among them, x e ,y e is the coordinate of the impulse event e, t e is the timestamp, p e is the polarity value, △t e is a fixed time interval. In other words, for the coordinates (x e ,y e ), if the accumulated sum of the polarity values of the pulse events generated within a fixed time interval is not less than 1, the pixel value is set to 255, otherwise it is set to 0. Through this method, a binary image can be obtained.
[0076] For example, the resolution of several event cameras is 1280×720, and the central 700×700 area is selected, and then the event frame image is reduced to 400×400 and padded to 500×500 through bilinear interpolation to meet the boundary conditions of free space transmission and adapt to the size of the SLM mask. When actually deployed on the DMD, it also needs to be scaled and padded to a size of 2560×1600 to adapt to the DMD.
[0077] In contrast, in one embodiment, assuming that a video within 10 seconds contains 10 million events, the total data size corresponding to the present invention is approximately 48MB, while for a frame camera based on a traditional CMOS sensor, if the same frame rate as the event camera is used for comparison, the amount of video data collected in the same scene is close to 232GB. In other words, the data stream of the present invention is only 0.02% of the data generated by the traditional CMOS sensor, which saves a lot of computing resources in training.
[0078] Preferably, for the jogging dataset, the accumulated fixed time interval △t e Set to 0.5 seconds, the fixed time interval △t of other types of data sets e Set to 1 second. This setting will produce better inference accuracy. Alternatively, the fixed time interval △t of these datasets e Both can be set to 0.5 seconds.
[0079] In S4NN, the classification function that needs to be implemented using a multi-layer neural network can be implemented on a single-layer network by using encoding, thereby improving the overall operation speed of the system, saving computing resources, reducing the system's assembly accuracy requirements, and improving overall robustness.
[0080] For example, for the three types of data sets B, C, and W, three types of training data sets BC, BW, and CW are formed by combining them, and three single-layer networks with a size of 300×300 are trained respectively: network 1, network 2, and network 3.
[0081] Then the three networks are spliced into a whole, and the input of the DMD is changed from a single frame image to three replicated side-by-side images, which correspond to the three networks on the SLM one by one. Finally, the winner-takes-all strategy is applied according to the output results of different areas on the event camera. That is, if the output results of different areas on the event camera show that a certain classification result is greater than or equal to 2, the input image can be identified as the classification result. In other words, the present invention realizes the function of a single-layer three-classification network through three two-classification grids.
[0082] Similarly, for S4NN, two of the three categories can be merged into one, such as BC&W and CB&W. After training Network 1 and Network 2, they are concatenated to achieve a single-layer network with three categories.
[0083] Furthermore, for the 4-category data set, they can be combined into 6 categories and the corresponding 6 networks can be trained. According to the winner-takes-all strategy, when the number of recognitions of a certain action as a certain category is greater than or equal to 3, the classification result is determined to be that category.
[0084] Figure 5 The operation flow chart of the optical diffraction neural network system of the present invention is shown. The optical diffraction neural network system of the present invention includes a laser, a DMD, an SLM and an event camera. The laser emits light to the DMD, and transmits the light to the SLM through the optical path system; the light is diffracted by the SLM and received by the event camera; the event camera generates a pulse event according to the change of the incident light.
[0085] Furthermore, the DMD, SLM and event camera act as a single sDPU processing unit; the DMD loads the DMD picture in the first queue, and generates inputs for the middle layer of the optical diffraction neural network system according to the DMD picture.
[0086] Furthermore, the pulse events are stored in an event data pool; the pulse events are received and processed, and the pulse events are organized according to a set data structure; the pulse events with the set data structure are sent to a thread pool through a parallel processing unit, merged into event frames, and used as the first queue for DMD image import.
[0087] Furthermore, in the last layer of the optical diffraction neural network system, a classification result corresponding to the DMD image is generated according to the output result of the event camera, and the classification result is stored in the second queue.
[0088] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.
[0089] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An optical diffraction neural network system, comprising a laser, a DMD, a SLM and an event camera, characterized in that: The laser emits light to the DMD, and transmits the light to the SLM through the optical path system; After the light is diffracted by the SLM, it is received by the event camera; The event camera generates a pulse event according to changes in incident light.
2. The optical diffraction neural network system according to claim 1, characterized in that: storing the pulse event into an event data pool; Receive and process pulse events, and organize pulse events according to the set data structure; The pulse events with the set data structure are sent to the thread pool through the parallel processing unit, merged into event frames, and used as the first queue for DMD image import.
3. The optical diffraction neural network system according to claim 1 or 2, characterized in that: The DMD, SLM and event camera act as a single sDPU processing unit; The DMD loads the DMD picture in the first queue and generates inputs of the middle layer of the optical diffraction neural network system according to the DMD picture.
4. The optical diffraction neural network system according to claim 3, characterized in that: In the last layer of the optical diffraction neural network system, the classification results corresponding to the DMD images are generated according to the output results of the event camera, and the classification results are stored in the second queue.
5. The optical diffraction neural network system according to claim 3, characterized in that: Measuring the actual output and the sDPU state of each layer in the optical diffraction neural network system, and measuring the output and the sDPU state of each layer in the simulated optical diffraction neural network system; Comparing the sDPU state of each layer of the optical diffraction neural network system with the sDPU state of each layer of the simulated optical diffraction neural network system, and comparing the actual output of the optical diffraction neural network system with the output of the simulated optical diffraction neural network system, obtaining a loss function value, and updating the parameters of the error prediction network based on the loss function value; Replace the output of the simulated optical diffraction neural network system and the sDPU state of each layer with the output of the optical diffraction neural network system and the sDPU state of each layer; In back propagation, the parameters of the simulated optical diffraction neural network system are continuously updated to minimize the value of the loss function of the classification recognition task.
6. The optical diffraction neural network system according to claim 3, characterized in that: A blazed grating is superimposed on the phase loaded onto the SLM, wherein the order of the blazed grating is 2.
7. The optical diffraction neural network system according to claim 6, characterized in that: The distance between the event camera and the SLM is not less than 234.91 mm.
8. The optical diffraction neural network system according to claim 7, characterized in that: The distance between the event camera and the SLM is 30 cm or 35 cm; The DMD is 40 cm away from the SLM.
9. The optical diffraction neural network system according to claim 2, characterized in that: When merging into an event frame, if the cumulative sum of the polarity values of the pulse events corresponding to any pixel within a fixed time interval is not less than 1, the value of any pixel in the event frame is set to 255, otherwise it is set to 0.
10. The optical diffraction neural network system according to claim 3, characterized in that: By splicing multiple networks into a single-layer network, a single-layer network three-classification or more classification tasks are implemented based on a winner-takes-all strategy, where any one of the multiple networks can only implement a two-classification task.
Citation Information
Cited By
Card camera power consumption optimization method and system based on image processing
CN120017959A
A card camera power consumption optimization method and system based on image processing
CN120017959B
