An optical fully connected neural network device and its working method

Through the optical fully connected neural network device, the compound eye lens array and the homogenizing plate are used to perform optical convolution calculations, which solves the problems of limited computing speed and high energy consumption in the existing technology, and achieves efficient and energy-saving computing effects.

CN118410844BActive Publication Date: 2024-09-17SOUTHEAST UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852141.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing deep convolutional neural network calculations rely on parallel computing of CPU and GPU in hardware, resulting in limited calculation speed and huge energy consumption, especially during data transmission and calculation.

Method used

Using an optical fully connected neural network device, including a display module, a fully connected module, a weight module and an integration module, optical convolution calculations are realized through a compound eye lens array and a homogenizing plate, replacing the window sliding in traditional convolution calculations, using optical masks and The homogenizing plate performs integration to reduce data transmission requirements.

Benefits of technology

The calculation speed is greatly improved, the calculation power consumption is reduced, and the efficiency and energy saving of optical convolution calculation are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410844B
    Figure CN118410844B
Patent Text Reader

Abstract

The present invention discloses an optical fully connected neural network device and a working method thereof, wherein the device comprises an optical input module, an optical fully connected image shifting module, an optical filtering module and an optical integration module. The optical image of the input module is copied and translated to the front of the optical filtering module by the optical fully connected image shifting module, and the weight of the neuron is carried out by the optical filtering module including a specific pattern array, and then projected onto the surface of the integration module for optical integration. By performing optical signal processing on a deep learning neural network by the optical fully connected neural network device, the processing speed can be greatly improved and the power consumption can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence, and specifically relates to an optical fully connected neural network device for performing deep convolutional neural network machine learning and a working method thereof. Background Art

[0002] Deep learning is one of the latest trends in machine learning and artificial intelligence research. It is also one of the most popular scientific research trends today. Deep learning methods have brought revolutionary advances to computer vision and machine learning. New deep learning techniques are constantly being born, surpassing the most advanced machine learning and even existing deep learning techniques. In recent years, many major breakthroughs have been made in this field around the world. Deep learning is a major method derived from machine learning and artificial neural networks, and artificial neural networks are the most commonly used form of deep learning. Convolutional neural networks are a deep learning model or a multi-layer perceptron similar to artificial neural networks, which are often used to analyze visual images. A convolutional neural network mainly consists of the following 5 layers: data input layer, convolution calculation layer, excitation layer, pooling layer, and fully connected layer. The fully connected layer is the last step of the convolutional neural network. All the features obtained after the convolution calculation are connected to all the outputs in the fully connected layer.

[0003] The fully connected neural network operation based on the central computing unit (CPU) can only perform one instruction at a time, so the neural network parameters are loaded, multiplied, stored, and then added and summed. The entire calculation process requires a large number of repeated instructions, which consumes computing energy and time. Therefore, in order to increase the speed, a parallel computing method based on a graphics processing unit (GPU) can be used in hardware to increase the speed by using its large storage capacity and multi-core.

[0004] Although GPU computing can greatly improve the speed of convolution calculation, a large amount of data to be calculated still needs to be sorted and transmitted to the GPU through the CPU, and the calculation results also need to be transmitted back to the CPU for the next round of calculation preparation. Therefore, the existing calculation is still based on the CPU+GPU method, which requires a large throughput calculation channel, limited calculation speed, and huge energy consumption. Summary of the invention

[0005] Technical problem: In view of the above-mentioned defects or deficiencies in the prior art, the present invention aims to provide an optical fully connected neural network device and a working method thereof for deep convolutional neural network machine learning, which utilizes optical principles to perform fully connected neural network calculations, thereby increasing the calculation speed while reducing the power consumption required for calculations.

[0006] Technical solution: To achieve the above functions, an optical fully connected neural network device of the present invention is as follows:

[0007] The device specifically includes a display module, a fully connected module, a weight module, and an integration module arranged in sequence; the display module is a monochrome display module with a display capacity of r×c, r is the row of the monochrome display module, and c is the column of the monochrome display module; the fully connected module includes an optical flat plate or a combination of multiple flat plates with an m×n compound eye lens array; the weight module is an optical mask plate, including a plurality of m×n pattern arrays, each pattern including r×c sub-pixels; the integration module is composed of an array of light averaging plates, and adjacent units of the light averaging plates corresponding to the pattern are provided with optical isolation devices.

[0008] Multiple optical fully connected neural network devices are combined in parallel, and the display modules of each device respectively display different channels of the signal to be processed, and the optical neural network connections are processed in parallel.

[0009] The display module is a liquid crystal display, a micro light emitting diode display, an organic light emitting diode display, a digital micromirror display, a silicon-based liquid crystal display or a projection display.

[0010] The materials of the fully connected module, weight module and integral module are glass, quartz inorganic materials, or polymethyl methacrylate, polycarbonate, polyethylene terephthalate, polypropylene, polystyrene, polyvinyl chloride, acrylonitrile / butadiene / styrene copolymer, thermoplastic polyurethane elastomer rubber, polyimide, polystyrene, polysulfone, polydiacid diamide organic materials, or a composite material of the above two organic materials, and the composite form is a single layer or a multi-layer laminate.

[0011] The display module is the output of the preceding optical system.

[0012] The device is based on a two-layer fully connected neural network, including a first layer consisting of an input layer and a hidden layer and a second layer consisting of a hidden layer and an output layer, wherein the input layer includes an input quantity X (x1, x2, ... xj), the hidden layer includes h neurons, the output layer includes an output quantity O (o1, o2, ... ok) composed of k neurons, each neuron in the hidden layer is connected to the neurons in the input quantity X and the output quantity O, a two-layer fully connected neural network is established, and the intrinsic connection between the input and the output is established through the weight and bias of each neuron; in order to facilitate optical processing, the input quantity, the hidden layer and the output quantity are converted into a two-dimensional matrix form, and the sizes thereof are r×c≥j, m×n≥h, and p×q≥k respectively; wherein r is the row of the input layer, c is the column of the input layer, j is the number of input quantities, m is the row of the hidden layer, n is the column of the hidden layer, h is the number of neurons in the hidden layer, p is the row of the output layer, q is the column of the output layer, and k is the number of output quantities.

[0013] A plurality of optical fully-connected neural network devices are serially combined, and the zth integration module of each optical fully-connected neural network device is processed by the zth nonlinear processing module and simultaneously serves as the zth display module of the subsequent device to serially process the optical fully-connected neural network multiple times.

[0014] The working method of an optical fully connected neural network device of the present invention is specifically as follows:

[0015] Step 1: The display module displays the r×c image of the signal to be processed;

[0016] Step 2: According to the focal length of the compound eye lens, by adjusting the distance between the display module, the fully connected module and the weight module, the r×c image displayed by the display module is copied to the positions of the m×n r×c weight patterns corresponding to the weight module through the fully connected module, and the size and position of the copied shifted image coincide with each weight pattern;

[0017] Step 3: After the copied image block passes through the weight pattern, it is projected onto the surface of the integration module for optical integration and the optical fully connected neural network integration result is displayed.

[0018] An optical fully connected neural network device and a working method thereof of the present invention are specifically as follows, where z is greater than or equal to 1:

[0019] Step 1: The zth display module displays the r×c image of the signal to be processed;

[0020] Step 2: According to the focal length of the zth compound eye lens, by adjusting the distance between the zth display module, the zth fully connected module and the zth weight module, the r×c image displayed by the zth display module is copied to the positions of the m×n r×c zth weight patterns corresponding to the zth weight module through the zth fully connected module, and the size and position of the copied shifted image coincide with each zth weight pattern;

[0021] Step 3: After the copied image block passes through the zth weight pattern, it is projected onto the surface of the zth integration module for optical integration and the zth integration result is displayed;

[0022] Step 4: According to the focal length of the zth compound eye lens, by adjusting the distance between the zth nonlinear processing module, the z+1th fully connected module and the z+1th weight module, after the zth integral result passes through the zth nonlinear processing module, the displayed m×n image is copied through the z+1th fully connected module to the position of the p×q m×n z+1th weight pattern corresponding to the z+1th weight module, and the size and position of the copied shifted image coincide with each z+1th weight pattern;

[0023] Step 5: After the copied image block passes through the z+1th weight pattern, it is projected onto the surface of the z+1th integration module for optical integration and the z+1th integration result is displayed;

[0024] Step 6: The z+1th integral result passes through the z+1th nonlinear processing module and displays the z+1th layer fully connected neural network result.

[0025] Beneficial effects: Compared with the prior art, the advantages of the present invention are as follows:

[0026] 1. The compound eye lens array replaces the window sliding in the traditional convolution calculation, and uses the optical mask and homogenizer made of the convolution kernel array to realize optical convolution, which greatly improves the calculation speed.

[0027] 2. The convolution calculation process does not involve high-speed data transmission, which is more energy-efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Non-limiting and non-exhaustive embodiments of the present disclosure are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various figures unless otherwise specified.

[0029] Figure 1 It is a schematic diagram of a two-layer fully connected neural network.

[0030] Figure 2 is a schematic diagram of a device according to the present invention,

[0031] Figure 3 is a schematic diagram depicting a method for serial operation of a device disclosed in the present invention;

[0032] The figure includes: a display module 1, a fully connected module 2, a weight module 3, an integration module 4; a compound eye lens 20, a weight pattern 30, a sub-pixel 300, a light averaging plate 40, and a light isolation device 41. DETAILED DESCRIPTION

[0033] The following is a description of the specific embodiments in conjunction with the accompanying drawings. Specific exemplary embodiments in which the present invention may be implemented are described by way of example. These embodiments are described in sufficient detail to enable those skilled in the art to practice the concepts disclosed herein, and it should be understood that the various disclosed embodiments may be modified and other embodiments may be utilized without departing from the scope of the present disclosure. Therefore, the following detailed description is not to be considered restrictive.

[0034] The present invention aims to provide an optical fully connected neural network device and a working method thereof, which uses optical principles to perform convolution calculations, thereby increasing the calculation speed and reducing the power consumption required for calculations. To achieve the above functions, the present invention adopts the following examples:

[0035] Example 1: Figure 1 The 2-layer fully connected neural network shown in the figure includes an input layer, a hidden layer, and an output layer, where the input layer includes the input quantity X (x1, x2, ...x j ), the hidden layer includes h neurons, and the output layer includes the output O (o1, o2, ... k ). Each neuron in the hidden layer is connected to the input X and the output O, and a two-layer fully connected neural network is established. The intrinsic connection between input and output is established through the weight and bias of each neuron. In order to facilitate optical processing, the input, hidden layer and output can usually be converted into a two-dimensional matrix form, with dimensions of r×c=j, m×n=h, and p×q=k respectively.

[0036] Combination Figure 1 The 2-layer fully connected neural network shown in Figure 2 As shown, the present invention discloses a single-layer optical fully connected neural network device, including a display module 1, a fully connected module 2, a weight module 3, and an integration module 4. The display module 1 is a monochrome display module with a display capacity of r×c, which can be a liquid crystal display, a micro-light emitting diode display, an organic light emitting diode display, a digital micromirror display, a silicon-based liquid crystal display or a projection display; the fully connected module 2 is an optical flat plate or a combination of multiple flat plates including an array of m×n compound eye lenses 20, each lens in the compound eye can be single-sided or double-sided, and the compound eye lens 20 is a cylindrical lens, a spherical lens, a single convex lens, a concave lens or a composite lens composed of multiple lenses; the weight module 3 is an optical mask plate, including a plurality of m×n pattern 30 arrays, each pattern 30 includes r×c sub-pixels 300, and its transmittance represents the weight coefficient of the neuron; the integration module 4 is an array of multiple light averaging plates. In order to prevent light crosstalk, the adjacent units of the light averaging plates corresponding to the pattern 30 are provided with a light isolation device 41, and the transmittance of each unit represents the bias coefficient of the neuron. The materials of the fully connected module 2, the weight module 3 and the integral module 4 are glass inorganic materials, or organic materials such as polymethyl methacrylate, polycarbonate, polyethylene terephthalate, polypropylene, polystyrene, polyvinyl chloride, acrylonitrile / butadiene / styrene copolymer, thermoplastic polyurethane elastomer rubber, polyimide, polystyrene, polysulfone, polydiacid diamine, etc., or composite materials of the above two organic materials, and the composite form is a single layer or a multi-layer laminate.

[0037] The working method of the optical fully connected neural network device is as follows:

[0038] Step 1: the display module 1 displays the image of the signal to be processed;

[0039] Step 2: According to the focal length of the compound eye lens 20, by adjusting the distances between the display module 1, the fully connected module 2 and the weight module 3, the image displayed by the display module 1 is formed into a real image at the position of the pattern 30 corresponding to the weight module 3, and the size and position of the image shifting coincide with the pattern 30;

[0040] Step 3: The image block after image shifting is filtered by the pattern 30 and then projected onto the surface of the integration module 4 for optical integration and the result of the optical fully connected neural network is displayed on the homogenizer 40 .

[0041] Embodiment 2:

[0042] According to an optical fully-connected neural network device described in Example 1, multiple optical fully-connected neural network devices are combined in parallel, and the display module 1 of each device displays different channels of the signal to be processed respectively, and optical convolution is processed in parallel.

[0043] The working method is as follows:

[0044] Step 1: the display module 1 displays the r×c image of the signal to be processed;

[0045] Step 2: According to the focal length of the compound eye lens 20, by adjusting the distances between the display module 1, the fully connected module 2 and the weight module 3, the r×c image displayed by the display module 1 is copied to the positions of the m×n r×c weight patterns 30 corresponding to the weight module 3 through the fully connected module 2, and the size and position of the copied shifted image coincide with each weight pattern 30;

[0046] Step 3: After the copied image block passes through the weight pattern 30, it is projected onto the surface of the integration module 4 for optical integration and displays the optical fully connected neural network integration result.

[0047] Embodiment 3:

[0048] According to the optical fully connected neural network device described in embodiment 1, a plurality of optical fully connected neural network devices are serially combined, and the zth integration module 4 of each optical convolution device z After the zth nonlinear processing module 5 z Then the z+1th display input module 1 as the subsequent device z+1 Serial multi-processing optical fully connected neural network.

[0049] The working method is as follows, taking z to be greater than or equal to 1:

[0050] Step 1: Display module 1 z Display the r×c image of the signal to be processed;

[0051] Step 2: According to the zth fly-eye lens 20 zThe focal length of the zth display module 1 is adjusted z , the zth fully connected module 2 z and the zth weight module 3 z The distance between the zth display module 1 z The displayed r×c image passes through the zth fully connected module 2 z Copy m×n r×c real images to the zth weight module 3 z The corresponding m×n r×c zth weight pattern 30 z The size and position of the copied image are the same as each z-th weight pattern 30 z Correspondence overlap;

[0052] Step 3: Copy the image block after the image shift and pass it through the zth weight pattern 30 z After that, project it to the zth integration module 4 z Perform optical integration on the surface and display the zth integration result 40 z ;

[0053] Step 4: According to the zth fly-eye lens 20 z The focal length of the zth nonlinear processing module is adjusted by z 、z+1th fully connected module 2 z+1 and the z+1th weight module 3 z+1 The distance between them makes the zth integral result 40 z After the zth nonlinear processing module 5 z After that, the displayed m×n image passes through the z+1th fully connected module 2 z+1 Copy p×q m×n real images to the z+1th weight module 3 z+1 The corresponding p×q m×n z+1th weight pattern 30 z+1 The size and position of the copied image are the same as each z+1th weight pattern 30 z+1 Corresponding overlap; z+1th fly-eye lens 20 z+1 , located in the z+1th fully connected module 2 z+1 forward;

[0054] Step 5: Copy the image block after the image shift and pass it through the z+1th weight pattern 30 z+1 After that, project it to the z+1th integration module 4 z+1 Perform optical integration on the surface and display the z+1th integral result 40 z+1 ;

[0055] Step 6: The z+1th integral result is 40 z+1 After the z+1th nonlinear processing module 5 z+1 The result of the fully connected neural network at layer z+1 is then displayed.

[0056] Embodiment 4: According to an optical convolution device and a working method thereof described in Embodiment 1, the integration module 4 can also reduce the averaging effect by controlling the thickness of the light averaging plate or implement optical maximum pooling by using a nonlinear optical selection module.

[0057] Embodiment 5: According to the optical fully-connected neural network device described in Embodiment 1, multiple optical fully-connected neural network devices are combined in series or in parallel.

[0058] Embodiment 6: According to the optical fully-connected neural network device described in Embodiment 1, the display module 1 is the output of the preceding optical system.

[0059] Embodiment 7: According to an optical convolution device and a working method thereof described in embodiments 1 to 6, the weight module 3 and the integration module 4 are integrated into one component, and the graphic of the filter module is directly attached to a plane of the integration module.

Claims

1. An optical fully connected neural network device, Features The device specifically comprises a display module 1, a fully connected module 2, a weight module 3, and an integration module 4 arranged in sequence; the display module 1 is a monochrome display module with a display capacity of r×c, where r is the row of the monochrome display module and c is the column of the monochrome display module; the fully connected module 2 comprises an optical flat plate or a combination of multiple flat plates with an array of m×n compound eye lenses 20; the weight module 3 is an optical mask plate, comprising an array of several m×n patterns 30, each pattern 30 comprising r×c sub-pixels 300; the integration module 4 is composed of an array of light averaging plates 40, and the adjacent units of the light averaging plates 40 corresponding to the pattern 30 have light isolation devices 41; m is the row of the hidden layer, and n is the column of the hidden layer; A plurality of the optical fully connected neural network devices are combined in parallel, and the display module 1 of each device displays different channels of the signal to be processed respectively, and the optical neural network connection is processed in parallel; The display module 1 is a liquid crystal display, a micro light emitting diode display, an organic light emitting diode display, a digital micromirror display, a liquid crystal on silicon display or a projection display.

2. An optical fully connected neural network device according to claim 1, Features The materials of the fully connected module 2, the weight module 3 and the integral module 4 are glass inorganic materials, or polymethyl methacrylate, polycarbonate, polyethylene terephthalate, polypropylene, polystyrene, polyvinyl chloride, acrylonitrile / butadiene / styrene copolymer, thermoplastic polyurethane elastomer rubber, polyimide, polystyrene, polysulfone, polydiacid diamide organic materials, or composite materials of the above two organic materials, and the composite form is a single layer or a multi-layer laminate.

3. An optical fully connected neural network device according to claim 1, Features The display module 1 is the output of the preceding optical system.

4. The optical fully connected neural network device according to claim 1, Features The device is based on a 2-layer fully connected neural network, including a first layer consisting of an input layer and a hidden layer, and a second layer consisting of a hidden layer and an output layer, wherein the input layer includes an input quantity X (x1, x2, ... xj), the hidden layer includes h neurons, and the output layer includes an output quantity O (o1, o2, ... ok) composed of k neurons, and each neuron in the hidden layer is connected to the neurons in the input quantity X and the output quantity O. A 2-layer fully connected neural network is established, and the intrinsic connection between the input and the output is established through the weight and bias of each neuron; the input quantity, the hidden layer and the output quantity are converted into a two-dimensional matrix form, and the sizes thereof are r×c≥j, m×n≥h, and p×q≥k respectively; wherein r is the row of the input layer, c is the column of the input layer, j is the number of the input quantity, m is the row of the hidden layer, n is the column of the hidden layer, h is the number of neurons in the hidden layer, p is the row of the output layer, and q is the column of the output layer.

5. An optical fully connected neural network device according to claim 1, Features A plurality of optical fully connected neural network devices are serially combined, and the zth integration module 4 of each optical fully connected neural network device z After the zth nonlinear processing module 5 z After processing, the z+1th display module 1 is also used as the subsequent device z+1 Serial multi-processing optical fully connected neural network.

6. A method for operating an optical fully connected neural network device as claimed in claim 1 or 2, Features The working method is as follows: Step 1: The display module 1 displays the r×c image of the signal to be processed, wherein r is the row of the input layer and c is the column of the input layer; Step 2: According to the focal length of the compound eye lens 20, by adjusting the distance between the display module 1, the fully connected module 2 and the weight module 3, the r×c image displayed by the display module 1 is copied to the positions of the m×n r×c weight patterns 30 corresponding to the weight module 3 through the fully connected module 2, and the size and position of the copied image coincide with each weight pattern 30; m is the row of the hidden layer, and n is the column of the hidden layer; Step 3: After the copied image block passes through the weight pattern 30 , it is projected onto the surface of the integration module 4 for optical integration and the optical fully connected neural network integration result is displayed on the homogenizer 40 .

7. A method for operating an optical fully connected neural network device as claimed in claim 3, 4 or 5, Features The working method is as follows, taking z to be greater than or equal to 1: Step 1: Display module 1 z Display the r×c image of the signal to be processed; Step 2: According to the zth fly-eye lens 20 z The focal length of the zth display module 1 is adjusted z , the zth fully connected module 2 z and the zth weight module 3 z The distance between the zth display module 1 z The displayed r×c image passes through the zth fully connected module 2 z Copy m×n r×c real images to the zth weight module 3 z The corresponding m×n r×c zth weight pattern 30 z The size and position of the copied image are the same as each z-th weight pattern 30 z Correspondence overlap; Step 3: Copy the image block after the image shift and pass it through the zth weight pattern 30 z After that, project it to the zth integration module 4 z Perform optical integration on the surface and display the zth integration result 40 z ; Step 4: According to the zth fly-eye lens 20 z The focal length of the zth nonlinear processing module is adjusted by z 、z+1th fully connected module 2 z+1 and the z+1th weight module 3 z+1 The distance between them makes the zth integral result 40 z After the zth nonlinear processing module 5 z After that, the displayed m×n image passes through the z+1th fully connected module 2 z+1 Copy p×q m×n real images to the z+1th weight module 3 z+1 The corresponding p×q m×n z+1th weight pattern 30 z+1 The size and position of the copied image are the same as each z+1th weight pattern 30 z+1 Correspondence overlap; Step 5: Copy the image block after the image shift and pass it through the z+1th weight pattern 30 z+1 After that, project it to the z+1th integration module 4 z+1 Perform optical integration on the surface and display the z+1th integral result 40 z+1 ; Step 6: The z+1th integral result is 40 z+1 After the z+1th nonlinear processing module 5 z+1 The result of the fully connected neural network at layer z+1 is then displayed.