On-chip pulse image processing system based on dynamic vision and grayscale pulse sensor
By integrating dynamic vision and grayscale pulse sensors into the on-chip processing system, the problem of bandwidth limitation and incompatibility of readout methods in the pulse image processing system is solved, efficient pulse image processing is achieved, power consumption is reduced and system integration is improved. Spend.
Patent Information
- Application Number
- CN202210802119.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-07-07
AI Technical Summary
In the existing pulse image processing system, there are bandwidth limitations between the pulse sensor and the image processor, and the readout methods of the grayscale pulse sensor and the dynamic vision sensor are incompatible, resulting in low system integration and high power consumption, making it difficult to integrate in one system Integrated.
An on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors is designed, which realizes data format conversion through on-chip and on-chip data interaction modules, system micro-control modules, sensing modules, pulse image preprocessing modules and pulse image processing modules. and preprocessing to generate compatible pulse image data for intelligent processing.
It eliminates data transmission bandwidth limitations, reduces system power consumption, and realizes the integration of grayscale pulse sensors and dynamic vision sensors, improving system integration and processing efficiency.
Smart Images

Figure CN115190220B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of pulse vision imaging and pulse vision processing, and in particular to an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors. Background Art
[0002] As the third generation of neural network, pulse neural network has attracted the attention of scientific research and industry due to its biomimetic and low power consumption characteristics. At present, the research on pulse image processing system is in the development stage. The existing pulse image processing system includes pulse sensors and pulse image processors on different chips. The pulse sensor is used to complete the acquisition of pulse image data, and the pulse image processor is used to accelerate the processing process of the pulse neural network. The pulse sensor can include grayscale pulse sensor and dynamic vision sensor. The image signals of both are pulse data, which meets the requirements of pulse neural network and pulse image processor for input data. The problems existing in the existing pulse image processing system are: there is a serious bandwidth limitation between the pulse sensor and the pulse image processor; the readout method of the grayscale pulse sensor is incompatible with the readout method of the dynamic vision sensor. Summary of the invention
[0003] In view of this, the main purpose of the present disclosure is to provide an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors, in order to partially solve at least one of the above-mentioned technical problems.
[0004] In order to achieve the above objectives, the present disclosure provides an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors, comprising:
[0005] An on-chip and off-chip data interaction module is used to obtain data from an off-chip memory; a system microcontroller module is used to generate a control signal in response to the data from the off-chip memory; a sensing module is used to generate dynamic visual pixel data and grayscale pulse pixel data in response to the control signal and the intensity of light in the external environment, wherein the dynamic visual pixel data is represented in an address event representation manner, and the grayscale pulse pixel data is represented in a frame manner; a pulse image preprocessing module is used to restore the dynamic visual pixel data into a dynamic visual pixel data frame represented in a frame manner in response to the control signal, and is also used to preprocess the grayscale pulse pixel data and / or the dynamic visual pixel data frame in response to the control signal to generate pulse image data; a pulse image processing module is used to complete the pulse neural network processing task in response to the control signal and the pulse image data, and obtain a recognition result, so that the on-chip and off-chip data interaction module outputs the recognition result.
[0006] According to an embodiment of the present disclosure, the sensing module includes: an N×N pixel array, a dynamic visual imaging control module, a grayscale pulse imaging control module, a dynamic visual readout module and a grayscale pulse readout module, wherein N is a positive integer; wherein the grayscale pulse imaging control module is used to generate a grayscale pulse imaging control signal in response to the control signal; the N×N pixel array is used to generate the grayscale pulse pixel data in response to the grayscale pulse imaging control signal and the light intensity, and is also used to obtain the light intensity change in response to the light intensity, so as to generate a dynamic visual pixel request signal according to the light intensity change; the dynamic visual imaging control module is used to generate a dynamic visual pixel response signal in response to the dynamic visual pixel request signal and the control signal, so that the N×N pixel array generates a dynamic visual pixel signal in response to the dynamic visual pixel response signal; the grayscale pulse readout module is used to send the grayscale pulse pixel data to the pulse image preprocessing module in response to the control signal; the dynamic visual readout module is used to generate dynamic visual pixel data in response to the dynamic visual pixel signal and the control signal and send it to the pulse image preprocessing module.
[0007] According to an embodiment of the present disclosure, the N×N pixel array includes N×N pixel units, each pixel unit includes: a grayscale pulse imaging circuit, a current mirror, a dynamic vision imaging circuit and a photosensitive diode; wherein the photosensitive diode is used to generate a photocurrent in response to the intensity of light; the current mirror is used to replicate the photocurrent to generate a first photocurrent and a second photocurrent; the grayscale pulse imaging circuit is used to respond to a grayscale pulse imaging control signal and generate the grayscale pulse pixel data based on the first photocurrent; the dynamic vision imaging circuit is used to respond to the second photocurrent to obtain the intensity of the light, obtain the intensity change of the light according to the intensity of the light, and generate the dynamic vision pixel request signal when the intensity change of the light exceeds a preset threshold.
[0008] According to an embodiment of the present disclosure, the pulse image preprocessing module includes: a dynamic visual image frame recovery module, a sub-sampling module, a region of interest cropping module, a first selector and a second selector; wherein the dynamic visual image frame recovery module is used to respond to the control signal and generate the dynamic visual pixel data frame based on the dynamic visual pixel data; the first selector is used to respond to the control signal and select to input the dynamic visual pixel data frame or grayscale pulse pixel data into the sub-sampling module and / or the region of interest cropping module; the sub-sampling module is used to respond to the control signal and generate N / K×N / K pulse images based on the dynamic visual pixel data frame or grayscale pulse pixel data, wherein N / K, N and K are all positive integers; the region of interest cropping module is used to respond to the control signal and generate a pulse image including H×V regions of interest based on the dynamic visual pixel data frame or grayscale pulse pixel data, wherein H and V are positive integers and H and V are both less than or equal to N; and the second selector is used to respond to the control signal and select to output the N / K×N / K pulse images and / or the H×V pulse images of the regions of interest.
[0009] According to an embodiment of the present disclosure, the above-mentioned dynamic visual image frame recovery module includes: an event framing recovery module and a time interval frame recovery module; wherein the above-mentioned event framing recovery module is used to restore a preset number of the above-mentioned dynamic visual pixel data into one frame of the above-mentioned dynamic visual pixel data frame; the above-mentioned time interval frame recovery module is used to restore the above-mentioned dynamic visual pixel data into one frame of the above-mentioned dynamic visual pixel data frame based on a preset time interval; and the above-mentioned dynamic visual image frame recovery module responds to the above-mentioned control signal and selects the dynamic visual pixel data frame obtained by the above-mentioned event framing recovery module or the time interval frame recovery module.
[0010] According to an embodiment of the present disclosure, the above-mentioned sub-sampling module includes: a fixed-point sub-sampling module and a threshold sub-sampling module; wherein each pixel value in the above-mentioned N / K×N / K pulse image is obtained based on the pixel value of the non-overlapping K×K area in the N×N pulse images; the above-mentioned fixed-point sub-sampling module is used to generate each pixel value of the above-mentioned N / K×N / K pulse image according to the value of the fixed-point pulse pixel in the K×K area; the above-mentioned threshold sub-sampling module is used to generate each pixel value of the above-mentioned N / K×N / K pulse image according to the comparison result of the cumulative sum of the pulse pixel values in the K×K area and the preset threshold T; and the above-mentioned sub-sampling module selects to generate each pixel value of the above-mentioned N / K×N / K pulse image through the above-mentioned fixed-point sub-sampling module or the threshold sub-sampling module in response to the above-mentioned control signal, wherein N / K, N, K and T are all positive integers and T is less than or equal to K×K.
[0011] According to an embodiment of the present disclosure, the pulse image processing module includes: a pulse neural network accelerator controller, a weight memory, an input-output pulse memory, a potential memory and an M×M pulse neural network acceleration array, wherein M is a positive integer; wherein the pulse neural network accelerator controller is used to generate a configuration instruction in response to the control signal; the weight memory is used to respond to the configuration instruction, obtain weight parameters according to the data of the off-chip memory and store the weight parameters; the input-output pulse memory is used to respond to the configuration instruction, obtain input pulse data according to the pulse image data and store the input pulse data; the M×M pulse neural network acceleration array is used to respond to the configuration instruction, generate weight accumulation data or weight partial sum data according to the weight parameters and input pulse data, and is also used to respond to the configuration instruction The configuration instruction generates output pulse data and output potential according to the weight accumulation data and the input potential, so that the input-output pulse memory stores the output pulse data in response to the configuration instruction; the input pulse data can also be the output pulse data generated by the M×M pulse neural network acceleration array last time, and the input potential is the output potential generated by the M×M pulse neural network acceleration array last time; the potential memory is used to store the output potential data and the weight part and data generated by the M×M pulse neural network acceleration array in response to the configuration instruction; and the pulse image processing module is used to respond to the control signal to load the output potential and the output pulse data into the pulse neural network, so that the pulse neural network completes the pulse neural network processing task according to the pulse image data to obtain the recognition result.
[0012] According to an embodiment of the present disclosure, the M×M pulse neural network acceleration array includes M×M operation units, 1×M input registers, and M×1 weight registers, wherein M is a positive integer; each of the 1×M input registers is used to respond to the configuration instruction and input the input pulse data of the C channels obtained from the input-output pulse memory into the M operation units of the corresponding row; each of the M×1 weight registers is used to respond to the configuration instruction and input the weight parameters of the C channels obtained from the weight memory into the M operation units of the corresponding column; and each of the M×M operation units is used to respond to the configuration instruction and generate weight accumulation data or weight partial sum data according to the weight parameters and the input pulse data, and is also used to respond to the configuration instruction and generate output pulse data and output potential according to the weight accumulation data and the input potential stored in the potential memory.
[0013] According to an embodiment of the present disclosure, the above-mentioned system microcontroller module includes: a microcontroller memory, a reduced instruction set processor and an on-chip control register; the above-mentioned microcontroller memory is used to obtain a microcontroller program based on the data of the above-mentioned off-chip memory and store the microcontroller program; the above-mentioned reduced instruction set processor is used to generate the above-mentioned control signal according to the above-mentioned microcontroller program; the above-mentioned on-chip control register is used to output the above-mentioned control signal to the above-mentioned system microcontroller module.
[0014] According to an embodiment of the present disclosure, it also includes:
[0015] The on-chip bus is used to transmit data, signals and instructions between the above-mentioned sensing module, the above-mentioned pulse image preprocessing module, the above-mentioned pulse image processing module, the above-mentioned on-chip and off-chip data interaction module and the above-mentioned system microcontroller module, as well as within each module.
[0016] Based on the above technical solutions, it can be seen that the embodiments of the present disclosure have the following beneficial effects compared with the prior art:
[0017] The on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors provided by the present disclosure can perform grayscale pulse imaging and dynamic visual imaging through a sensing module, and convert the format of the pulse image data of dynamic visual imaging into the same format as the pulse image data of grayscale pulse imaging through a pulse image preprocessing module, and can also preprocess the pulse image data of the same format, so that the pulse image processing module performs pulse intelligent processing based on a pulse neural network on the preprocessed pulse image data to obtain a recognition result. Since all modules of the on-chip pulse image processing system are integrated on the same chip, the sensor and processor bandwidth limitations caused by the data transmission between discrete pulse image processing systems are eliminated, and the power consumption of the on-chip pulse image processing system is reduced; the pulse image data of dynamic visual imaging is converted into a format through a pulse image preprocessing module, so that the on-chip pulse image processing system can integrate grayscale pulse sensors and dynamic visual sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The device diagram of an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors according to an embodiment of the present disclosure is schematically shown;
[0019] Figure 2 The device diagram of an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors according to another embodiment of the present disclosure is schematically shown;
[0020] Figure 3 The schematic diagram shows the structure of each pixel unit in the N×N pixel array according to an embodiment of the present disclosure;
[0021] Figure 4 The structure diagram of the pulse image preprocessing module according to the embodiment of the present disclosure is schematically shown;
[0022] Figure 5 The schematic diagram shows the circuit structure of each processing unit in the M×M computing units according to an embodiment of the present disclosure;
[0023] Figure 6 The schematic diagram of the operation of the recognition algorithm of the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensor according to the embodiment of the present disclosure is schematically shown;
[0024] Figure 7 The schematic diagram of the operation of the tracking algorithm of the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors according to an embodiment of the present disclosure is schematically shown.
[0025] 1- Dynamic visual pixel request signal;
[0026] 2- Dynamic visual pixel response signal;
[0027] 4-N×N pixel array;
[0028] 5- Dynamic visual imaging control module;
[0029] 6- Dynamic visual pixel signal;
[0030] 7- Grayscale pulse pixel data;
[0031] 8- Dynamic visual readout module;
[0032] 9- pulse image preprocessing module;
[0033] 10- potential memory;
[0034] 11- Input and output pulse memory;
[0035] 12- Input register;
[0036] 13-M×M spiking neural network acceleration array;
[0037] 14- operation unit;
[0038] 15-weight register;
[0039] 16-weight memory;
[0040] 17- Pulse neural network accelerator controller;
[0041] 18-accelerator configuration instruction memory;
[0042] 19-On-chip bus;
[0043] 20- chip internal and external data interaction module;
[0044] 21-system micro control module;
[0045] 22-On-chip control registers;
[0046] 23- Reduced Instruction Set Processor and;
[0047] 24-microcontroller memory;
[0048] 25- grayscale pulse imaging control module;
[0049] 26- grayscale pulse readout module;
[0050] 27- grayscale pulse imaging control signal;
[0051] 28-pixel unit;
[0052] 29-photosensitive diode;
[0053] 30-Grayscale pulse imaging circuit;
[0054] 31-Current mirror;
[0055] 32-dynamic visual imaging circuit;
[0056] 33-dynamic visual image frame restoration module;
[0057] 34-region of interest cropping module;
[0058] 35-Threshold subsampling module;
[0059] 36-Fixed-point subsampling module;
[0060] 37-subsampling module;
[0061] 38- event framing recovery module;
[0062] 39-time interval frame recovery module;
[0063] 40-weight accumulation module;
[0064] 43-potential update module;
[0065] 44-output potential generating module;
[0066] 45-output pulse generating module;
[0067] 46-threshold comparator;
[0068] 47-Register;
[0069] 48-Selector;
[0070] 49 - middle selector;
[0071] 50-sensing module;
[0072] 51-Pulse image processing module. DETAILED DESCRIPTION
[0073] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0074] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0075] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0076] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0077] The existing pulse image processing system includes pulse sensors and pulse image processors on different chips, wherein the pulse sensors may include grayscale pulse sensors and dynamic vision sensors. The grayscale pulse sensor performs pulse density encoding on light intensity information and can capture the details of the imaging scene at high speed; the dynamic vision sensor detects the change information of light intensity and can capture the change information of the imaging scene at high dynamics.
[0078] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art:
[0079] The pulse image processing system is composed of discrete sensors and processors. The bandwidth of data transmission between the two is limited, the system integration is low, and the power consumption is high.
[0080] In addition, grayscale pulse imaging and dynamic visual imaging are difficult to integrate in a pulse image processing system due to their different representation methods, which leads to incompatible readout methods.
[0081] In order to at least partially solve the technical problems existing in the related art, the present disclosure provides an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors.
[0082] Figure 1 The invention schematically shows a device diagram of an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors according to an embodiment of the present disclosure.
[0083] like Figure 1 As shown, the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensor includes:
[0084] The on-chip and off-chip data interaction module 20 is used to obtain data from the off-chip memory.
[0085] The system micro-control module 21 is used to generate a control signal in response to data from an off-chip memory.
[0086] The sensing module 50 is used to generate dynamic visual pixel data and grayscale pulse pixel data in response to the control signal and the light intensity. The dynamic visual pixel data is represented in an address event representation manner, and the grayscale pulse pixel data is represented in a frame manner.
[0087] The pulse image preprocessing module 9 is used to respond to the control signal to restore the dynamic visual pixel data into a dynamic visual pixel data frame represented in a frame manner, and is also used to respond to the control signal to preprocess the grayscale pulse pixel data and / or dynamic visual pixel data frame to generate pulse image data.
[0088] The pulse image processing module 51 is used to respond to the control signal and the pulse image data to generate a recognition result so that the on-chip and off-chip data interaction module can output the recognition result.
[0089] According to an embodiment of the present disclosure, the sensing module 50 can perform dynamic visual imaging and grayscale pulse imaging in response to a control signal and the intensity of the detected light to obtain dynamic visual pixel data and grayscale pulse pixel data. The dynamic visual pixel data is represented in an address event representation (AER) format, and the grayscale pulse pixel data is represented in a frame format.
[0090] More specifically, the dynamic visual pixel data only includes the data of pixels activated in response to the control signal and the detected light intensity. The dynamic visual pixel data is represented by address events as (x, y, t, p), where x is the horizontal coordinate position of the activated pixel, y is the vertical coordinate position of the activated pixel, t is the timestamp of the pixel activation, and p is the polarity of the pixel, which can represent whether the activated pixel becomes brighter or darker.
[0091] According to an embodiment of the present disclosure, the pulse image preprocessing module 9 can restore the dynamic visual pixel data into a dynamic visual pixel data frame, and the dynamic visual pixel data frame is represented in the same way as the grayscale pulse pixel data.
[0092] Reference below Figure 2 to Figure 5 , the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensor is further explained in combination with specific embodiments.
[0093] Figure 2 The figure schematically shows a device diagram of an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors according to another embodiment of the present disclosure.
[0094] like Figure 2 As shown, the system microcontroller module 21 of the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors includes: a microcontroller memory 24, a reduced instruction set processor 23 and an on-chip control register 22.
[0095] The microcontroller memory 21 is used to obtain a microcontroller program according to data in the off-chip memory and store the microcontroller program.
[0096] The RISC processor 23 is used to generate control signals according to the microcontroller program.
[0097] The on-chip control register 22 is used to output the control signal to the system microcontroller module.
[0098] According to an embodiment of the present disclosure, the microcontroller memory 21 includes: a program memory and a data memory. The data memory is used to store data in the off-chip memory. The program memory is used to generate a microcontroller program according to the data in the off-chip memory stored in the data memory.
[0099] According to an embodiment of the present disclosure, the reduced instruction set processor 23 can complete memory access and control of other modules in the processing system by reading and writing on-chip control registers 22. For example, it can read and write control instructions to registers integrated in other modules in the processing system to facilitate control of other modules in the processing system.
[0100] According to an embodiment of the present disclosure, the on-chip and off-chip data interaction module 20 can obtain data from an off-chip memory, the data from the off-chip memory can include programming instructions and weight parameters, and can also output the recognition result of the processing system.
[0101] According to an embodiment of the present disclosure, the sensing module 50 is used to detect the intensity of light in the external environment in response to a control signal, and generate dynamic visual pixel data and grayscale pulse pixel data 7 .
[0102] like Figure 2 As shown, the sensing module 50 includes: an N×N pixel array 4, a dynamic visual imaging control module 5, a grayscale pulse imaging control module 25, a dynamic visual readout module 8 and a grayscale pulse readout module 26, wherein N is a positive integer.
[0103] The grayscale pulse imaging control module 25 is used to generate a grayscale pulse imaging control signal 27 in response to a control signal.
[0104] The N×N pixel array 4 is used to generate grayscale pulse pixel data 7 in response to the grayscale pulse imaging control signal 27 and the intensity of light, and is also used to generate a dynamic visual pixel request signal 1 in response to the intensity of light.
[0105] The dynamic vision imaging control module 5 is used to generate a dynamic vision pixel response signal 2 in response to the dynamic vision pixel request signal 1 and the control signal, so that the N×N pixel array 4 generates a dynamic vision pixel signal 6 in response to the dynamic vision pixel response signal 2 .
[0106] The grayscale pulse readout module 26 is used to send the grayscale pulse pixel data 7 to the pulse image preprocessing module 9 in response to the control signal.
[0107] The dynamic vision readout module 8 is used to generate dynamic vision pixel data in response to the dynamic vision pixel signal 6 and the control signal and send the data to the pulse image preprocessing module 9 .
[0108] According to an embodiment of the present disclosure, the N×N pixel array 4, the grayscale pulse imaging control module 25 and the grayscale pulse readout module 26 can form a grayscale pulse sensor. The grayscale pulse imaging control module 25 and the grayscale pulse readout module 26 can be composed of a synchronous clock digital circuit structure or an asynchronous clock digital circuit structure. The grayscale pulse imaging control module 25 reads out a frame of grayscale pulse imaging data 7 from the N×N pixel array 4 in a preset order. The preset order can be Figure 2The setting positions shown are in the order from left to right and from top to bottom. The grayscale pulse readout module 26 sends the grayscale pulse imaging data 7 to the pulse image preprocessing module 9. The system microcontroller module 21 can transmit a control signal to the grayscale pulse imaging control module 25 and the grayscale pulse readout module 26 through the on-chip bus 19 to configure the readout rate of the grayscale pulse imaging data 7, thereby controlling the frame rate of the grayscale pulse imaging data 7. The control signal also controls the grayscale pulse readout module 26 to send the grayscale pulse pixel data 7 to the pulse image processing module 9.
[0109] According to an embodiment of the present disclosure, the N×N pixel array 4, the dynamic visual imaging control module 5 and the dynamic visual readout module 8 can constitute a dynamic visual sensor. The dynamic visual imaging control module 5 and the dynamic visual readout module 8 can be composed of a synchronous clock digital circuit structure or an asynchronous clock digital circuit structure. The N×N pixel array 4 generates a dynamic visual pixel request signal 1 in response to the intensity of light and sends it to the dynamic visual imaging control module 5. The dynamic visual imaging control module 5 generates a dynamic visual pixel response signal 2 in response to the dynamic visual pixel request signal 1 and the control signal, and the N×N pixel array 4 generates a dynamic visual pixel signal 6 in response to the dynamic visual pixel response signal 2. The dynamic visual readout module 8 responds to the dynamic visual pixel signal 6, obtains the horizontal coordinate position, the vertical coordinate position and the polarity change of the activated pixel in the N×N pixel array 4 according to the above preset order, receives the configuration of the control signal, generates the timestamp of the corresponding pixel, and sends the dynamic visual pixel data represented by the address event representation to the pulse image preprocessing module 9.
[0110] According to an embodiment of the present disclosure, based on the resolution requirement of the pulse neural network calculation, N can be selected as 128.
[0111] Figure 3 The schematic diagram shows the structure of each pixel unit in the N×N pixel array 4 according to an embodiment of the present disclosure.
[0112] like Figure 3 As shown, the N×N pixel array 4 includes N×N pixel units 28 , and each pixel unit 28 includes: a grayscale pulse imaging circuit 30 , a current mirror 31 , a dynamic visual imaging circuit 32 and a photosensitive diode 29 .
[0113] The photodiode 29 is used to generate photocurrent in response to the intensity of light.
[0114] The current mirror 31 is used to replicate the photocurrent to generate a first photocurrent and a second photocurrent.
[0115] The grayscale pulse imaging circuit 30 is used to respond to the grayscale pulse imaging control signal 27 and generate grayscale pulse pixel data 7 based on the first photocurrent.
[0116] According to the embodiments of the present disclosure, the photosensitive diode 29 generates a corresponding photocurrent in response to the intensity of light, and the magnitude of the photocurrent is proportional to the intensity of light; the grayscale pulse imaging circuit 30 integrates the corresponding photocurrent according to the intensity of light, and generates a grayscale pulse when the integration reaches a certain threshold; the dynamic vision imaging circuit 32 obtains the change in light intensity according to the intensity of light, and the corresponding photocurrent change causes the corresponding photovoltage to change. The dynamic vision imaging circuit 32 obtains the difference between the current photovoltage change and the photovoltage change detected at the previous moment according to the photovoltage change, and when the difference exceeds the preset dynamic vision imaging threshold, the dynamic vision pixel request signal 1 is sent.
[0117] According to an embodiment of the present disclosure, the grayscale pulse imaging circuit 30 integrates the first photocurrent, and the grayscale pulse readout module 26 reads data from the grayscale pulse imaging circuit 30 based on the control signal at the readout rate set by the system microcontroller module 21. When the integral of the grayscale pulse imaging circuit 30 reaches the preset grayscale pulse imaging threshold at the reading moment, it is considered that the pixel unit 28 is in an activated state at the current readout rate, and the activated pixel unit 28 is represented as 1 when read out by the grayscale pulse readout module 26, and the integrator of the grayscale pulse imaging circuit 30 is reset when 1 is read out; when the integral of the grayscale pulse imaging circuit 30 does not reach the preset grayscale pulse imaging threshold at the reading moment, it is considered that the pixel unit 28 is in an inactivated state at the current readout rate, and the inactivated pixel unit 28 is represented as 0 when read out by the grayscale pulse readout module 26, and the integrator of the grayscale pulse imaging circuit 30 is not reset when 0 is read out, and integration continues. The grayscale pulse readout module 26 reads the readout values of the N×N pixel units 28 and obtains a frame of grayscale pulse pixel data 7 of a size of N×N according to the above preset sequence.
[0118] According to the embodiments of the present disclosure, the preset grayscale pulse imaging threshold can be set and adjusted according to actual needs or experimental results.
[0119] The dynamic vision imaging circuit 32 is used for obtaining the light intensity in response to the second photocurrent, and generating a dynamic vision pixel request signal 1 when the light intensity exceeds a preset threshold.
[0120] According to an embodiment of the present disclosure, the dynamic visual imaging circuit 32 receives the second photocurrent, and detects the light intensity information of the pixel unit 28 based on the second photocurrent. The light intensity information obtained based on the second photocurrent is compared with the light intensity information before the second photocurrent is received to obtain the light intensity change information. If the increase or decrease value of the light intensity information exceeds the preset dynamic visual imaging threshold, the dynamic visual imaging circuit 32 sends a dynamic visual pixel request signal 1 to the dynamic visual imaging control module 5. After obtaining the dynamic visual pixel response signal 2 of the dynamic visual imaging control module 5, the dynamic visual imaging circuit 32 outputs the increase or decrease value of the light intensity information, and resets the state of the light intensity before the second photocurrent is received for the next detection. If the increase or decrease value of the light intensity information does not exceed the preset dynamic visual imaging threshold, the dynamic visual imaging circuit 32 does not send the dynamic visual pixel request signal 1.
[0121] According to the embodiments of the present disclosure, the preset dynamic visual imaging threshold can be set and adjusted according to actual needs or experimental results. When the value of the intensity information of the output light increases, the polarity of the grayscale pulse pixel data 7 generated by the pixel unit 28 is characterized as brightening, and when the value of the intensity information of the output light decreases, the polarity of the grayscale pulse pixel data 7 generated by the pixel unit 28 is characterized as darkening.
[0122] Figure 4 The structural diagram of the pulse image preprocessing module according to the embodiment of the present disclosure is schematically shown.
[0123] like Figure 4 As shown, the pulse image preprocessing module 9 includes: a dynamic visual image frame restoration module 33, a sub-sampling module 37, a region of interest cropping module 34, a first selector and a second selector.
[0124] The dynamic visual image frame recovery module 33 is used to respond to the control signal and generate a dynamic visual pixel data frame based on the dynamic visual pixel data 7.
[0125] The first selector is used to respond to the control signal and select the dynamic visual pixel data frame or the grayscale pulse pixel data 7 to be input into the sub-sampling module and / or the region of interest cropping module.
[0126] The sub-sampling module is used to respond to the control signal and generate N / K×N / K pulse images based on the dynamic visual pixel data frame or the grayscale pulse pixel data 7, wherein N / K, N and K are all positive integers.
[0127] The region of interest cropping module is used to respond to the control signal and generate a pulse image including H×V regions of interest based on the dynamic visual pixel data frame or the grayscale pulse pixel data 7, wherein H and V are positive integers and both H and V are less than or equal to N.
[0128] And the second selector is used for responding to the control signal to select and output N / K×N / K pulse images and / or H×V pulse images of the regions of interest.
[0129] According to an embodiment of the present disclosure, when an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors performs recognition tasks, it is necessary to use a pulse neural network to process the global features of the pulse image, and the overall size of the pulse image needs to meet the computing requirements of the pulse neural network. For example, in the existing pulse neural network recognition algorithm, the image size of the MNIST (Mixed National Institute of Standards and Technology database) data set and the CIFAR-10 (Canadian Institute For Advanced Research-10) data set is 32×32. When N is selected as 128 in the embodiment of the present disclosure, the obtained dynamic vision pixel data frame and grayscale pulse pixel data frame size is 128×128. The subsampling module 37 can be controlled by a control signal to use a sampling mode of 1 / 2 subsampling or 1 / 4 subsampling so that N / K is 32, that is, a pulse image with a frame size of 32×32 is obtained.
[0130] According to the embodiment of the present disclosure, when the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors performs tracking tasks, it is necessary to crop a specific area. The cropped image is smaller and can significantly reduce the amount of calculation of the pulse neural network. The specific area is called the "region of interest". The region of interest cropping module 34 can be controlled by a control signal to crop a region of interest of 64×64 size at any position in the dynamic vision pixel data frame and grayscale pulse pixel data with a frame size of 128×128.
[0131] According to an embodiment of the present disclosure, the dynamic visual image frame recovery module 33 includes: an event group frame recovery module 38 and a time interval frame recovery module 39 .
[0132] The event framing recovery module 38 is used to recover a preset number of dynamic visual pixel data into one frame of dynamic visual pixel data. The time interval frame recovery module 39 is used to recover the dynamic visual pixel data into one frame of dynamic visual pixel data based on a preset time interval. And the dynamic visual image frame recovery module 33 responds to the control signal and selects to obtain the dynamic visual pixel data frame through the event framing recovery module 38 or the time interval frame recovery module 39.
[0133] According to the embodiments of the present disclosure, both the event framing recovery module 38 and the time interval frame recovery module 39 can realize the recovery of a certain number of dynamic visual pixel data into one frame. The event framing recovery module 38 is more concerned with detecting the whole composed of a certain number of dynamic visual pixel data. For example, when detecting the details of dynamic objects and image processing, the event framing recovery module 38 can be used to generate dynamic visual pixel data frames. The time interval frame recovery module 39 is more concerned with the frequency of activating the N×N pixel array 4 for dynamic visual imaging. For example, when detecting the frequency of changes in the external environment, the time interval frame recovery module 39 can be used to generate dynamic visual pixel data frames. The event framing recovery module 38 or the time interval frame recovery module 39 can be controlled by control instructions to generate dynamic visual pixel data frames according to actual needs.
[0134] According to the embodiments of the present disclosure, the pulse image preprocessing module 9 can unify the representation of dynamic visual imaging and grayscale pulse imaging data, so as to integrate the dynamic visual sensor and the grayscale pulse sensor in the same on-chip pulse image processing system.
[0135] According to an embodiment of the present disclosure, the sub-sampling module 37 includes: a fixed-point sub-sampling module 36 and a threshold sub-sampling module 35 .
[0136] Each pixel value in the N / K×N / K pulse image is obtained based on the pixel values of the non-overlapping K×K regions in the N×N pulse images.
[0137] The fixed-point sub-sampling module 36 is used to generate each pixel value of the N / K×N / K pulse image according to the value of the fixed-point pulse pixel in the K×K area.
[0138] The threshold sub-sampling module 35 is used to generate each pixel value of the N / K×N / K pulse image according to the comparison result between the accumulated sum of the pulse pixel values of the K×K area and the preset threshold T.
[0139] And the sub-sampling module responds to the control signal and selects to generate each pixel value of the N / K×N / K pulse image through the fixed-point sub-sampling module or the threshold sub-sampling module, where N / K, N, K and T are all positive integers and T is less than or equal to K×K.
[0140] According to the embodiments of the present disclosure, the fixed-point sub-sampling module 36 or the threshold sub-sampling module 35 may be controlled by control instructions to generate an N / K×N / K pulse image according to actual needs.
[0141] For example, if the sub-sampling module 37 processes the grayscale pulse pixel data, the fixed-point sub-sampling module 36 or the threshold sub-sampling module 35 can be selected for sub-sampling according to actual needs. If the sub-sampling module 37 processes the dynamic visual image frame, since the dynamic visual image frame represents the motion information in the scene, and a certain number of dynamic visual pixel data are restored to one frame when the dynamic visual image frame is generated, these dynamic visual pixel data represent the edge of the moving object in the external environment, selecting the threshold sub-sampling module 35 for sub-sampling is conducive to expanding the difference between the edge data and the background data, so that the sub-sampling effect is better.
[0142] According to an embodiment of the present disclosure, the pulse image processing module 51 includes: a pulse neural network accelerator controller 17, a weight memory 16, an input and output pulse memory 11, a potential memory 10 and an M×M pulse neural network acceleration array 13, where M is a positive integer.
[0143] Among them, the pulse neural network accelerator controller 17 is used to generate configuration instructions in response to the control signal.
[0144] According to an embodiment of the present disclosure, the pulse neural network accelerator controller 17 includes an accelerator configuration instruction memory 18, and the pulse neural network accelerator controller 17 can read the accelerator configuration instruction in the accelerator configuration instruction memory 18 and decode the configuration instruction. The pulse neural network accelerator controller 17 inputs the decoded configuration instruction into the weight memory 16, the input and output pulse memory 11, the potential memory 10 and the M×M pulse neural network acceleration array 13.
[0145] The weight memory 16 is used to respond to the configuration instruction, obtain the weight parameters according to the data in the off-chip memory and store the weight parameters.
[0146] The input-output pulse memory 11 is used to respond to the configuration instruction, obtain the input pulse data according to the pulse image data and store the input pulse data.
[0147] The M×M pulse neural network acceleration array 13 is used to respond to configuration instructions, generate weight accumulation data or weight partial sum data according to weight parameters and input pulse data, and is also used to respond to configuration instructions, generate output pulse data and output potential according to weight accumulation data and input potential, so that the input and output pulse memory 11 responds to configuration instructions to store output pulse data.
[0148] The input pulse data may also be the output pulse data generated by the M×M pulse neural network acceleration array 13 last time, and the input potential may be the output potential generated by the M×M pulse neural network acceleration array 13 last time.
[0149] The potential memory 10 is used to store the output potential data and weight part and data generated by the M×M pulse neural network acceleration array 13 in response to the configuration instruction.
[0150] And the pulse image processing module 51 is used to respond to the control signal and load the output potential and output pulse data into the pulse neural network so that the pulse neural network completes the pulse neural network processing task according to the pulse image data to obtain the recognition result.
[0151] According to an embodiment of the present disclosure, an M×M pulse neural network acceleration array includes M×M operation units, 1×M input registers, and M×1 weight registers, where M is a positive integer.
[0152] Each of the 1×M input registers is used to respond to the configuration instruction and input the input pulse data of the C channels obtained from the input-output pulse memory to the M operation units of the corresponding row.
[0153] Each of the M×1 weight registers is used to respond to the configuration instruction and input the weight parameters of the C channels obtained from the weight memory into the M operation units of the corresponding column.
[0154] And each of the M×M operating units is used to respond to configuration instructions, generate weight accumulation data or weight partial sum data according to weight parameters and input pulse data, and is also used to respond to configuration instructions, generate output pulse data and output potential according to the weight accumulation data and the input potential stored in the potential memory.
[0155] According to an embodiment of the present disclosure, a control signal can be set according to the number of specific neural network layers of the pulse neural network actually used. The pulse neural network accelerator controller 17 is controlled by the set control signal to generate a configuration instruction so as to control the pulse image processing module 51 to generate an output potential and the number of output pulse data.
[0156] According to an embodiment of the present disclosure, a control signal can be set according to the specific number of channels in each layer of the neural network layer of the pulse neural network actually used, and the pulse neural network accelerator controller 17 is controlled by the set control signal to generate configuration instructions so as to control the pulse image processing module 51 to generate weight accumulation data or weight partial sum data.
[0157] According to an embodiment of the present disclosure, when the number of channels of the current pulse neural network layer is not higher than C, the configuration instruction controls the M×M pulse neural network acceleration array 13 to generate weight accumulation data according to weight parameters and input pulse data, and then generates output pulse data and output potential according to the weight accumulation data and input potential.
[0158] Or when the number of channels of the current pulse neural network layer is higher than C, the configuration instruction controls the M×M pulse neural network acceleration array 13 to generate weight parts and data according to the weight parameters and input pulse data, and controls the configuration instruction to store the weight parts and data in the potential memory 10, and repeats the above process of generating weight parts and data and storing parts and data until the number of channels of the input pulse data involved in generating the weight parts and data is higher than the number of channels of the pulse neural network, and ends the above process of generating weight parts and data and storing parts and data. The configuration instruction controls the M×M pulse neural network acceleration array 13 to obtain all weight parts and data generated at the end as new weight accumulation and data, and generates output pulse data and output potential according to the new weight accumulation and data and input potential.
[0159] According to an embodiment of the present disclosure, after the output pulse data and the output potential are obtained, the weight parameters, the output pulse data and the output potential are loaded into the pulse neural network so that the pulse neural network generates a recognition result based on the pulse image data.
[0160] According to an embodiment of the present disclosure, the M×M pulse neural network acceleration array 13 is controlled by configuration instructions to store the generated output potential in the potential memory 10, and to store the generated output pulse data in the input-output pulse memory 11. When calculating the next pulse neural network layer, the output potential stored in the potential memory 10 is used as the input potential, and the output pulse data stored in the input-output pulse memory 11 is used as the input pulse data.
[0161] Figure 5 The schematic diagram shows the circuit structure of each processing unit 14 in the M×M computing units according to an embodiment of the present disclosure.
[0162] like Figure 5 As shown, each processing unit 14 includes: a weight accumulation module 40 and a potential updating module 43 .
[0163] According to an embodiment of the present disclosure, the weight accumulation module 40 includes: C input selectors, K adder layers, K-2 intermediate register layers, an intermediate selector 49 , a selector 48 and a register 47 .
[0164] Among them, C meets the preset conditions: C is equal to 2^K, and C and K are both positive integers. The layer where the C input selectors are located is set as the bottom layer, the bottom layer is connected to the first adder layer, the first adder layer is connected to the second adder layer, and so on to the Kth adder layer. Among the K adder layers, there are 2^(Ki) adders in the i-th adder layer, i=1, 2, ..., K.
[0165] Each input selector in the bottom layer is grouped only once, so that the C input selectors in the bottom layer are divided into C / 2 input selector groups, and the C / 2 input selector groups are sequentially connected to the C / 2 adders in the first adder layer, and each adder in the first adder layer is only connected to one input selector group; each adder in the first adder layer is grouped only once, so that the C / 2 adders are divided into C / 4 first adder groups, and the C / 4 first adder groups are sequentially connected to the C / 4 adders in the second adder layer, and each adder in the second adder layer is only connected to one first-layer adder group, and so on to the Kth adder layer. Starting from the second adder layer, there is an intermediate register layer between every two layers between the second adder layer and the Kth adder layer, and among the K-2 intermediate register layers, there are 2^(K-1-j) registers in the jth intermediate register layer, j=1, 2, ..., K-2. It can be seen from the above description that the Kth adder layer includes an adder, the Kth adder layer and the middle selector 49 are connected to an adder, the adder is connected to the selector 48 as one input end of the selector 48, and the Kth adder layer is connected to the selector 48 as another input end of the selector 48. The selector 48 is connected to the register 47.
[0166] According to an embodiment of the present disclosure, the input pulse data of C channels and the weight parameters of C channels are input into C input selectors, each of which includes the input pulse data of 1 channel and the weight parameters of 1 channel. In each input selector, the weight data is selected according to the input pulse data, and the accumulation of the weight parameters of the C channels is completed through an addition tree consisting of K adder layers and K-2 intermediate register layers. If the convolution kernel size of the convolution layer of the currently calculated pulse neural network layer is R×R, the accumulation calculation of the input pulse data of the C channels and the weight parameters of the C channels needs to be performed R×R times.
[0167] According to an embodiment of the present disclosure, each register in the jth intermediate register layer stores the weight accumulation value generated by each adder in the i+1th adder layer according to the K-1-j register control signals generated by the pulse neural network accelerator controller 17, and the intermediate register layer can reduce the critical path.
[0168] According to an embodiment of the present disclosure, the Kth adder layer generates weight accumulation and data or weight partial and data. If the weight accumulation and data are generated, the weight accumulation module 40 inputs the weight accumulation and data into the potential update module 43 according to the selector control signal 1, the selector control signal 2 and the register control signal generated by the pulse neural network accelerator controller 17. If the weight partial and data are generated, it is first determined whether the currently generated weight partial and data meet the channel number requirement of the current pulse neural network layer. If the currently generated weight partial and data do not meet the channel number requirement of the current pulse neural network layer, the weight accumulation module 40 stores the weight partial and data into the potential memory 10 according to the selector control signal 1, the selector control signal 2 and the register control signal of the pulse neural network accelerator controller 17. If the currently generated weight partial and data meet the channel number requirement of the current pulse neural network layer, the weight accumulation module 40 accumulates the currently generated weight partial and data with the weight partial and data stored in the potential memory 10 according to the selector control signal 1, the selector control signal 2 and the register control signal of the pulse neural network accelerator controller 17 to obtain the weight accumulation and data and inputs it into the potential update module 43.
[0169] According to an embodiment of the present disclosure, the potential updating module 43 includes an adder, a comparator, an output pulse generating module 45 and an output potential generating module 44 .
[0170] The potential update module 43 adds the input potential and the weight accumulation data through an adder to obtain the addition data, and compares the addition data with the neuron comparison threshold generated by the pulse neural network accelerator controller 17 through a comparator. According to the comparison result, the output pulse generation module 45 generates corresponding output pulse data, and the output potential generation module 44 generates corresponding output potential. The potential update module 43 stores the output pulse data and the output potential in the input and output pulse memory 11 and the potential memory 10 respectively, so as to be used in the calculation of the next layer of pulse neural network.
[0171] According to an embodiment of the present disclosure, the role of the output potential in the pulse neural network is equivalent to the role of the membrane potential in the neuron model. The output potential can be used as a response in the information processing and transmission of the pulse neural network, so that the pulse neural network generates recognition results based on the pulse image data.
[0172] According to an embodiment of the present disclosure, an on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors further includes:
[0173] The on-chip bus 19 is used for the transmission of data, signals and instructions between the sensing module, the pulse image preprocessing module, the pulse image processing module, the on-chip and off-chip data interaction module, the system microcontroller module, and within each module.
[0174] According to the embodiments of the present disclosure, all modules of the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors are integrated on the same chip and transmit data, signals and instructions through the on-chip bus 19, which can reduce the loss during data transmission, expand the bandwidth of data transmission, and reduce the power consumption of the processing system.
[0175] Figure 6 The schematic diagram of the operation of the recognition algorithm of the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors according to an embodiment of the present disclosure is schematically shown.
[0176] like Figure 6 As shown, the pulse convolutional neural network recognition task performed by the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors includes steps S601 to S607.
[0177] In step S601, a microcontroller program, accelerator configuration instructions, and spiking neural network weights are loaded into a processing system.
[0178] According to an embodiment of the present disclosure, the processing system loads the microcontroller program, accelerator configuration instructions and weight parameters of the recognition pulse neural network from outside the chip through the on-chip and off-chip data interaction module 20, and stores them in the microcontroller memory 24, the accelerator configuration instruction memory 18 and the weight memory 16 respectively.
[0179] In step S602, the sensor imaging type and frame rate are set.
[0180] According to an embodiment of the present disclosure, the system microcontroller module 21 generates a control signal to control the N×N pixel array 4 for detection, configures the imaging data type of the N×N pixel array 4 to grayscale pulse imaging, and configures the frame rate of the N×N pixel array 4 to 100,000 frames per second to generate grayscale pulse pixel data.
[0181] In step S603, a pulse image preprocessing module is set to preprocess the pulse data generated by the sensor.
[0182] According to the embodiment of the present disclosure, the system microcontroller module 21 generates a control signal to control the pulse image preprocessing module 9, sub-samples the grayscale pulse pixel data to obtain pulse image data of size 32×32, and stores it in the input and output pulse memory 11;
[0183] In step S604, the M×M pulse neural network acceleration array 11 reads the input pulse and performs pulse neural network calculation.
[0184] According to an embodiment of the present disclosure, the M×M pulse neural network acceleration array 11 completes the recognition of the pulse neural network-LeNet network structure layer by layer.
[0185] Each layer of identification includes steps A to E:
[0186] Step A, loading input pulses; Step B, loading weight data; Step C, completing weight accumulation and potential update; Step D, storing output pulses and output potentials; Step E, calculating the pulse image data by the recognition pulse neural network-LeNet network structure, and determining whether it is the last layer of the neural network, if not, returning to step A, if yes, obtaining the recognition result, and entering step S605.
[0187] In step S605, the recognition result is output.
[0188] In step S606, it is determined whether to perform the next recognition task.
[0189] According to the embodiment of the present disclosure, the system micro-control module 21 determines whether to perform the next recognition task. If the next recognition task is to be performed, the process returns to step S603 . If the next recognition task is not to be performed, the process proceeds to step S607 .
[0190] In step S607, the recognition task ends.
[0191] According to the embodiments of the present disclosure, the recognition task can be completed based on the MNIST data set using a pulse convolutional neural network. The frame rate of pulse imaging can reach 100,000 frames per second, and the frame rate of the forward calculation of the pulse convolutional neural network can also reach 100,000 frames per second, with high-speed recognition capabilities.
[0192] Figure 7 The schematic diagram of the operation of the tracking algorithm of the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors according to an embodiment of the present disclosure is schematically shown.
[0193] like Figure 7 As shown, the search box-based pulse convolutional neural network tracking task performed by the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors includes steps S701 to S708.
[0194] In step S701, a microcontroller program, accelerator configuration instructions, and spiking neural network weights are loaded into a processing system.
[0195] According to an embodiment of the present disclosure, the processing system loads the microcontroller program, accelerator configuration instructions and weight parameters of the recognition pulse neural network from outside the chip through the on-chip and off-chip data interaction module 20, and stores them in the microcontroller memory 24, the accelerator configuration instruction memory 18 and the weight memory 16 respectively.
[0196] In step S702, the sensor imaging type and frame rate are set.
[0197] The system microcontroller module 21 generates a control signal to control the N×N pixel array 4 for detection, configures the imaging data type of the N×N pixel array 4 to dynamic visual imaging, and configures the frame rate of the N×N pixel array 4. The frame rate can be configured according to actual usage requirements to generate dynamic visual pixel data.
[0198] In step S703, a pulse image preprocessing module is set to preprocess the pulse data generated by the sensor.
[0199] According to the embodiment of the present disclosure, the system microcontroller module 21 generates a control signal to control the pulse image preprocessing module 9, restores the dynamic visual pixel data to a 128×128 dynamic visual pixel data frame, and cuts a 64×64 region of interest at a certain position from the 128×128 dynamic visual pixel data frame, and stores it in the input and output pulse memory 11;
[0200] In step S704, the M×M pulse neural network acceleration array 11 reads the input pulse and performs pulse neural network calculation.
[0201] According to an embodiment of the present disclosure, the M×M pulse neural network acceleration array 11 sets a 32×32 search box in the 64×64 region of interest, and performs a recognition task according to the position of the 32×32 search box.
[0202] According to an embodiment of the present disclosure, the M×M pulse neural network acceleration array 11 completes the recognition of the pulse neural network-LeNet network structure layer by layer.
[0203] Each layer of identification includes steps A to E:
[0204] Step A, loading input pulses; Step B, loading weight data; Step C, completing weight accumulation and potential update; Step D, storing output pulses and output potentials; Step E, calculating the pulse image data by the recognition pulse neural network-LeNet network structure, and determining whether it is the last layer of the neural network, if not, returning to step A, if yes, obtaining the recognition result, and entering step S705.
[0205] In step S705, it is determined whether the search box is completely traversed.
[0206] According to an embodiment of the present disclosure, it is determined whether the search box in the 64×64 region of interest is completely traversed. If not, the process returns to step S704 . If it is completely traversed, the process proceeds to step S706 .
[0207] In step S706 , the system micro-control module 21 compares the search box recognition results to determine the tracking target position.
[0208] The number of search boxes can be set to 16, and the system micro-control module 21 compares the recognition results of the 16 search boxes in the 64×64 region of interest to determine the position of the tracking target.
[0209] In step S707, it is determined whether to continue the tracking task. If it is continued, the position of the next cropped 64×64 region of interest is determined according to the position of the current tracking target, and the process returns to step S703 for setting. If it is not continued, the process proceeds to step S708.
[0210] In step S708, the tracking task ends.
[0211] According to an embodiment of the present disclosure, the tracking task can be implemented based on the search box. The region of interest in the dynamic visual pixel data frame is cropped out by the region of interest cropping module 34, and then a preset number of search boxes in the region of interest are identified by the pulse convolution network. The search box with the highest recognition probability is used as the tracking target, and the cropping area of the next frame is determined based on the current target to continue tracking.
[0212] According to an embodiment of the present disclosure, the dynamic visual pixel data frame size can be 128×128, the cropped region of interest size is 64×64, the search box size within the region of interest is 32×32, 16 search boxes are identified in each region of interest, and each search box performs 16 forward calculations of the pulse network, which can achieve high-speed target tracking of 4000 frames per second.
[0213] The tracking task disclosed in the present invention is implemented based on the search box. First, the region of interest is cut out from the pulse image data, and then the pulse convolution network is used to identify several search boxes in the region of interest. The search box with the highest recognition probability is used as the target of tracking, and the cropped area of the next frame is determined based on the current target. In this embodiment, the size of the pulse image data can be set to 128×128, the size of the cropped region of interest is 64×64, the size of the search box in the region of interest is 32×32, 16 search boxes are identified for each region of interest, and 16 forward calculations of the pulse network are performed for each search box, which can achieve 4000 frames of high-speed target tracking per second.
[0214] According to an embodiment of the present disclosure, the system microcontroller module 21 can further analyze and process the recognition result after the on-chip pulse image processing system based on the dynamic vision and grayscale pulse sensor generates the recognition result, and output conclusion data based on the recognition result. For example, the recognition results of the above-mentioned recognition task and tracking task are analyzed and processed to generate the number or label of the recognition results.
[0215] According to an embodiment of the present disclosure, the system microcontroller module 21 can also control whether different types of sensors in the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors start working. For example, when it is necessary to identify the details of a moving object in the external environment, the system microcontroller module 21 can control only the dynamic vision sensor to start working, and when the moving object is captured, switch to only the grayscale pulse sensor to start working to obtain detailed information about the moving object. Since the on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors has a high recognition speed, it is possible to switch sensors in real time after capturing a moving object and obtain detailed information about the moving object, which is beneficial to reducing the energy consumption of the processing system.
[0216] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present disclosure. It should be understood that the above description is only a specific embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. An on-chip pulse image processing system based on dynamic vision and grayscale pulse sensors, comprising: An on-chip and off-chip data interaction module, used to obtain data from an off-chip memory; A system microcontroller module, configured to generate a control signal in response to the data from the off-chip memory; A sensing module, used for generating dynamic visual pixel data and grayscale pulse pixel data in response to the control signal and the intensity of light in the external environment, wherein the dynamic visual pixel data is represented in an address event representation manner, and the grayscale pulse pixel data is represented in a frame manner; a pulse image preprocessing module, for responding to the control signal to restore the dynamic visual pixel data into a dynamic visual pixel data frame represented in a frame manner, and for responding to the control signal to preprocess the grayscale pulse pixel data and / or the dynamic visual pixel data frame to generate pulse image data; The pulse image processing module is used to respond to the control signal and the pulse image data, complete the pulse neural network processing task, and obtain the recognition result so that the on-chip and off-chip data interaction module can output the recognition result.
2. The processing system of claim 1, wherein: The sensing module includes: an N×N pixel array, a dynamic visual imaging control module, a grayscale pulse imaging control module, a dynamic visual readout module and a grayscale pulse readout module, wherein N is a positive integer; wherein, The grayscale pulse imaging control module is used to generate a grayscale pulse imaging control signal in response to the control signal; The N×N pixel array is used to generate the grayscale pulse pixel data in response to the grayscale pulse imaging control signal and the light intensity, and is also used to obtain the light intensity change in response to the light intensity, so as to generate a dynamic visual pixel request signal according to the light intensity change; The dynamic visual imaging control module is used to generate a dynamic visual pixel response signal in response to the dynamic visual pixel request signal and the control signal, so that the N×N pixel array generates a dynamic visual pixel signal in response to the dynamic visual pixel response signal; The grayscale pulse readout module is used to send the grayscale pulse pixel data to the pulse image preprocessing module in response to the control signal; The dynamic vision readout module is used to generate dynamic vision pixel data in response to the dynamic vision pixel signal and the control signal and send the data to the pulse image preprocessing module.
3. The processing system of claim 2, wherein: The N×N pixel array includes N×N pixel units, each pixel unit includes: a grayscale pulse imaging circuit, a current mirror, a dynamic visual imaging circuit and a photosensitive diode; wherein, The photodiode is used to generate a photocurrent in response to the intensity of light; The current mirror is used to replicate the photocurrent to generate a first photocurrent and a second photocurrent; The grayscale pulse imaging circuit is used to respond to the grayscale pulse imaging control signal and generate the grayscale pulse pixel data based on the first photocurrent; The dynamic visual imaging circuit is used to obtain the intensity of the light in response to the second photocurrent, obtain the intensity change of the light according to the intensity of the light, and generate the dynamic visual pixel request signal when the intensity change of the light exceeds a preset threshold.
4. The processing system according to claim 1 or 3, wherein: The pulse image preprocessing module includes: a dynamic visual image frame restoration module, a sub-sampling module, a region of interest cropping module, a first selector and a second selector; wherein, The dynamic visual image frame recovery module is used to generate the dynamic visual pixel data frame based on the dynamic visual pixel data in response to the control signal; The first selector is used for selecting the dynamic visual pixel data frame or grayscale pulse pixel data to be input into the sub-sampling module and / or the region of interest cropping module in response to the control signal; The sub-sampling module is used to generate N / K×N / K pulse images based on the dynamic visual pixel data frame or grayscale pulse pixel data in response to the control signal, wherein N / K, N and K are all positive integers; The region of interest cropping module is used to generate a pulse image including H×V regions of interest based on the dynamic visual pixel data frame or grayscale pulse pixel data in response to the control signal, wherein H and V are positive integers and both H and V are less than or equal to N; and The second selector is used for responding to the control signal to select and output the N / K×N / K pulse images and / or the H×V pulse images of the regions of interest.
5. The processing system of claim 4, wherein: The dynamic visual image frame recovery module includes: an event group frame recovery module and a time interval frame recovery module; wherein, The event framing recovery module is used to restore a preset number of dynamic visual pixel data into one frame of dynamic visual pixel data; The time interval frame recovery module is used to restore the dynamic visual pixel data into a frame of the dynamic visual pixel data based on a preset time interval; and The dynamic visual image frame recovery module responds to the control signal and selects the dynamic visual pixel data frame obtained by the event group frame recovery module or the time interval frame recovery module.
6. The processing system of claim 4, wherein: The sub-sampling module includes: a fixed-point sub-sampling module and a threshold sub-sampling module; Wherein, each pixel value in the N / K×N / K pulse images is obtained based on the pixel values of non-overlapping K×K regions in the N×N pulse images; The fixed-point sub-sampling module is used to generate each pixel value of the N / K×N / K pulse image according to the value of the fixed-point pulse pixel in the K×K area; The threshold sub-sampling module is used to generate each pixel value of the N / K×N / K pulse image according to the comparison result of the accumulated sum of the pulse pixel values of the K×K area and the preset threshold T; and In response to the control signal, the sub-sampling module selects to generate each pixel value of the N / K×N / K pulse image through the fixed-point sub-sampling module or the threshold sub-sampling module, where N / K, N, K and T are all positive integers and T is less than or equal to K×K.
7. The processing system according to claim 5 or 6, wherein: The pulse image processing module includes: a pulse neural network accelerator controller, a weight memory, an input and output pulse memory, a potential memory and an M×M pulse neural network acceleration array, wherein M is a positive integer; wherein, The pulse neural network accelerator controller is used to generate a configuration instruction in response to the control signal; The weight memory is used to respond to the configuration instruction, obtain the weight parameters according to the data of the off-chip memory and store the weight parameters; The input-output pulse memory is used to respond to the configuration instruction, obtain input pulse data according to the pulse image data and store the input pulse data; The M×M pulse neural network acceleration array is used to respond to the configuration instruction and generate weight accumulation data or weight partial sum data according to the weight parameters and input pulse data, and is also used to respond to the configuration instruction and generate output pulse data and output potential according to the weight accumulation data and input potential, so that the input-output pulse memory stores the output pulse data in response to the configuration instruction; The input pulse data may also be the output pulse data generated by the M×M pulse neural network acceleration array the previous time, and the input potential may be the output potential generated by the M×M pulse neural network acceleration array the previous time; The potential memory is used to store the output potential data and weight part and data generated by the M×M pulse neural network acceleration array in response to the configuration instruction; and The pulse image processing module is used to respond to the control signal and load the output potential and the output pulse data into the pulse neural network so that the pulse neural network completes the pulse neural network processing task according to the pulse image data to obtain a recognition result.
8. The processing system of claim 7, wherein: The M×M pulse neural network acceleration array includes M×M operation units, 1×M input registers and M×1 weight registers, where M is a positive integer; Each of the 1×M input registers is used to respond to the configuration instruction and input the input pulse data of the C channels obtained from the input-output pulse memory to the M operation units of the corresponding row; Each of the M×1 weight registers is used to respond to the configuration instruction and input the weight parameters of the C channels obtained from the weight memory into the M operation units of the corresponding column; and Each of the M×M operating units is used to respond to the configuration instruction, generate weight accumulation data or weight partial sum data according to the weight parameters and input pulse data, and is also used to respond to the configuration instruction, generate output pulse data and output potential according to the weight accumulation data and the input potential stored in the potential memory.
9. The processing system of claim 8, wherein: The system microcontroller module includes: a microcontroller memory, a reduced instruction set processor and an on-chip control register; The microcontroller memory is used to obtain a microcontroller program according to the data of the off-chip memory and store the microcontroller program; The reduced instruction set processor is used to generate the control signal according to the microcontroller program; The on-chip control register is used to output the control signal to the system micro-control module.
10. The processing system of claim 9, further comprising: The on-chip bus is used to transmit data, signals and instructions between the sensing module, the pulse image preprocessing module, the pulse image processing module, the on-chip and off-chip data interaction module and the system microcontroller module, as well as within each module.
Citation Information
Patent Citations
Information processing method and terminal device
CN109997154A
System and method for pulsed light pattern capturing using dynamic vision sensor
CN110868518A
Dynamic visual sensor pixel circuit for realizing synchronous output of event and gray value
CN114222034A
Dynamically reconfigurable signal processing circuit, pattern recognition apparatus, and image processing apparatus
US20060228027A1
System and method for pulsed light pattern capturing using a dynamic vision sensor
US20200058205A1
