Method and device for imaging and calculation, and readable medium
Through the readout and convolution calculation of multiple computing cores, combined with neural networks and perception networks, the problem of large delays in target scene recognition and analysis in intelligent solutions is solved, achieving fast and real-time identification and analysis, and improving intelligent applications. response speed.
Patent Information
- Application Number
- PCT/CN2023/087788
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-17
AI Technical Summary
Existing intelligent solutions have a large delay in target scene recognition and analysis and are difficult to complete within milliseconds, which limits the development of intelligent applications.
Using multiple readouts and convolution calculations of different computing cores, combined with neural networks and perception networks, a new computing core is formed through training and superposition of computing cores, which is used for shooting, identifying and analyzing real-time target scenes.
It greatly reduces data processing delay, improves the response speed of intelligent solutions, and achieves fast and even real-time target scene recognition and analysis.
Smart Images

Figure CN2023087788_17102024_PF_FP_ABST
Abstract
Description
Methods, devices, and readable media for imaging and computing Technical Field
[0001] The present invention relates to methods, apparatus and readable media for imaging and computing. Background Art
[0002] Existing intelligent solutions typically require a camera to capture a clear image of the target scene, quantize it into a grayscale matrix, and transmit it over a limited bandwidth channel. The target is then identified and analyzed on the server side, which then feeds the results back to the camera or subject. Under this approach, the time required for the target scene information to be captured and recognized is extremely long, making it difficult to complete target scene recognition and analysis within millisecond latency, significantly limiting the development of intelligent applications.
[0003] Summary of the Invention Technical issues
[0004] The purpose of the present invention is to provide an imaging and computing method, device and readable medium that can quickly or even in real time capture, identify and analyze a target scene.
[0005] Technical Solution
[0006] To overcome the technical problems presented in the aforementioned technical background and develop technologies that can rapidly and even in real time capture, identify, and analyze target scenes, one aspect of the present invention proposes a novel image acquisition and computation technology. This technology performs multiple readouts of the captured target scene using different computational kernels, and then utilizes computation to achieve real-time capture, identification, and analysis of the target scene.
[0007] According to one aspect of the present invention, a method for imaging and calculation is proposed, comprising: extracting a field of view image of a target field of view, and searching for a specific target in the field of view, characterized in that a calculation kernel corresponding to the target is determined based on the attributes of the specific target, wherein the calculation kernel is expressed by a weight value matrix, and convolution calculation is performed in the imaging area using the calculation kernel, and the field of view image is searched and matched to obtain a feature map corresponding to the specific target.
[0008] According to one embodiment, the calculation kernel is expressed by using at least one of the following operators: Laplacian operator, Gaussian difference operator, Haar feature operator, corner saliency operator.
[0009] According to one embodiment, at least one of the following methods is used to determine the computing kernel to be used according to the target of interest: introducing an existing computing kernel; using neural network training; using neural tangent kernel training.
[0010] According to one embodiment, it also includes using a perception network to improve the confidence of the feature map output result, and using a meta-network to further correct the computing kernel and / or perception network parameters, including: using a perception network to receive the feature map as the input value of the perception result, combining the task to be completed, and outputting the perception result corresponding to the task, and using a meta-network to receive information related to the task, the perception network, the feature map and the computing kernel set as input, and outputting new computing kernel and / or perception network parameters.
[0011] According to one embodiment, the computing kernel is obtained by training a neural network, wherein: the input of the neural network is set to various types of images, and the output of the neural network is set to the regions of interest of the various types of images, so that after training is completed, the neural network contains a mapping relationship from various types of images to their corresponding regions of interest, and the mapping relationship is extracted and used as the computing kernel.
[0012] According to one embodiment, the computational kernel is obtained using neural tangent kernel training, the input of the infinite-width neural network is set to various types of images, and the output of the infinite-width neural network is set to the regions of interest of the various types of images, so that after the training is completed, the infinite-width neural network contains a mapping relationship from various types of images to their corresponding regions of interest, and the mapping relationship is extracted and used as the computational kernel for neural tangent kernel training.
[0013] According to one embodiment, an existing computing core, a computing core obtained by using a neural network training, and a computing core obtained by using a neural tangent kernel training are superimposed to form a new computing core, including: sending the existing computing core into the neural network for retraining to obtain a computing core of the existing computing core after being trained by the neural network; and / or sending the existing computing core into an infinite-width neural network for retraining to obtain a computing core of the existing computing core after being trained by the neural tangent kernel; and / or sending the existing computing core into the neural network for retraining, and then sending it into the infinite-width neural network for retraining to obtain a computing core of the existing computing core after being trained by the neural network and the neural tangent kernel; and / or sending the computing core trained by the neural network into the infinite-width neural network for retraining to obtain a computing core of the existing neural network trained computing core after being trained by the neural tangent kernel.
[0014] According to one embodiment, the perceived object is a two-dimensional signal field composed of other one-dimensional signals such as acoustic signals, electrical signals, etc., such as a two-dimensional sound field signal, a two-dimensional electric field signal, etc., which is characterized in that the calculation kernel is expressed by a weight value matrix, and the calculation kernel is used to perform convolution calculation in the spatial dimension of the perception area, and the signal is searched and matched to obtain a characteristic signal corresponding to a specific target; the calculation kernel is expressed by a weight value matrix, and the calculation kernel is used to perform convolution calculation in the spatiotemporal dimension of the perception area, and the signal is searched and matched to obtain a characteristic signal corresponding to a specific target.
[0015] According to another aspect of the present invention, the present invention also proposes a device for imaging and calculation, which includes an image acquisition component and a computing component. The image acquisition component includes an image shooting and / or image transmission component, which is configured to shoot and image the target field of view or extract existing images, and use computing cores to calculate and quantify the imaging results to obtain a feature map of a specific target; the computing component is configured to process the feature map obtained by the image acquisition component, identify and / or classify the specific target of interest, and obtain an identification result corresponding to the specific target.
[0016] According to one embodiment, the image acquisition component includes: a readout selection end, when it is set to a high level, the photosensitive unit in the image acquisition component outputs its photosensitive signal, and when it is set to a low level, the photosensitive unit in the image acquisition component does not output a photosensitive signal; a readout modulation end, when it is set to a different analog quantity, the photosensitive unit outputs the product of its photosensitive signal and the analog quantity; a readout data end, which is set to the calculation result of the imaging result under the action of the readout selection end and the readout modulation end to obtain the characteristic map of the specific target.
[0017] According to one embodiment, the image acquisition component and the computing component are composite dielectric gate dual-transistor photodetector components, and the composite dielectric gate dual-transistor photodetector includes a MOS-C portion and a MOSFET portion formed on the same P-type semiconductor substrate; and the MOS-C portion includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence on the P-type semiconductor substrate; and the MOSFET portion includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence on the P-type semiconductor substrate; the bottom insulating dielectric layer, floating gate, top insulating dielectric layer and control gate of the MOS-C portion are respectively connected to the bottom insulating dielectric layer, floating gate, top insulating dielectric layer and control gate of the MOSFET portion; and the MOSFET portion is additionally provided with a source and a drain.
[0018] According to one embodiment, the control gate voltage signal is the output signal of the readout selection terminal; the drain voltage signal is the output signal of the readout modulation terminal; and the drain current signal is the output signal of the readout data terminal.
[0019] According to one embodiment, the composite dielectric gate dual-transistor photodetector array is formed in the form of a NOR architecture and is placed in a substrate (abbreviated as SUB) and a deep N-well (abbreviated as DNW). In addition, the control gate of each row of composite dielectric gate dual-transistor photodetectors constitutes a word line (WL); the source of each column of composite dielectric gate dual-transistor photodetectors constitutes a source line (SL); and the drain of each column of composite dielectric gate dual-transistor photodetectors constitutes a bit line (BL). In addition, the composite dielectric gate dual-transistor photodetector array has standby, reset, exposure, reading, programming and erasing functions. Except mode; when WL, BL, SL, and SUB are all applied with zero bias, and DNW is applied with positive bias, the composite dielectric gate dual-transistor photodetector array is set to standby mode, and there is no depletion region for collecting photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photodetector; when BL and SL are applied with zero bias, WL and SUB are applied with negative bias, and DNW is applied with positive bias, the composite dielectric gate dual-transistor photodetector array is set to reset mode, and the light in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photodetector is not depleted. The electrons are all exhausted; when BL and SL apply zero bias, WL applies zero bias or positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate dual transistor photodetector array works in the exposure state, and a depletion region is generated in the P-type semiconductor substrate of the selected composite dielectric gate dual transistor photodetector to collect photoelectrons; when SL applies zero bias, WL and BL apply positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate dual transistor photodetector array works in the readout state, and the selected composite dielectric gate dual transistor photodetector generates a depletion region. The drain output current in the photosensitive detector is the photosensitivity signal; when SL and SUB apply zero bias, WL and BL apply positive bias, and DNW applies positive bias, the composite dielectric gate dual-transistor photosensitive detector array operates in a programming state, and the floating gate charge in the selected composite dielectric gate dual-transistor photosensitive detector is written; when WL applies a positive bias, BL, SL, and SUB apply negative bias, and DNW applies a positive bias, the composite dielectric gate dual-transistor photosensitive detector array operates in an erase state, and the floating gate charge in the selected composite dielectric gate dual-transistor photosensitive detector is discharged.
[0020] According to one embodiment, for K R Row K C The calculation core of the column can be completed by time division multiplexing, including: each time the K of the i-th column R The row convolution kernel is converted into K RA pulse width modulation signal is then applied to the readout modulation end of the image acquisition component, or K R The analog voltage signal is then applied to the readout modulation end of the image acquisition component, and the readout data end of the image acquisition component is modulated by K C After the results of the times read are accumulated, the calculation result is obtained, where i, K R , K C All are positive integers.
[0021] According to one embodiment, for K R Row K C The calculation core of the column can be completed by frequency division multiplexing, including: R Row K C The convolution kernel of the column is converted to K R The pulse width modulation signals of different frequencies are then applied to the readout modulation end of the image acquisition component, or K R The analog voltage signals of different frequencies are applied to the readout modulation end of the image acquisition component, and are accumulated after demultiplexing at the readout data end of the image acquisition component to obtain a calculation result.
[0022] According to one embodiment, K R Row K C When the calculation core of the column is used to calculate the imaging results of N rows and M columns, N-K R +1 row M-K C +1 column feature map; alternatively, P can be added to the periphery R Row P C Filler cells with column value C assist in the calculation to get N+P R -K R +1 line M+P C -K C +1 column feature map, and each time for K R The imaging results of the row and column M are calculated. After the calculation is completed, the subsequent K R OK.
[0023] According to one embodiment, a computing component is configured to be composed of a plurality of sub-computing components and logic components, wherein the sub-computing component is configured to be a component for implementing MAC calculation, and the sub-computing component includes: an input weight terminal, when it is set to increase the weight, the weight value stored in the computing component increases, and when it is set to reduce the weight, the weight value stored in the computing component decreases, wherein the weight is used for classification and / or identification; an input data terminal, when it is set to a high level or a low level, correspondingly inputs high-level data or low-level data; and an output data terminal, configured to output the MAC calculation result of the input weight terminal and the input data terminal.
[0024] According to one embodiment, the logic component includes a timing control component and a computing core generation component, wherein the timing control component is configured to control the timing associated with the sub-computing component to control the normal calculation of the sub-computing component; the computing core generation component is configured to generate a computing core.
[0025] According to one embodiment, the sub-computing component is configured as a composite dielectric gate transistor, wherein the composite dielectric gate transistor includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence above a P-type semiconductor substrate, with a source and a drain provided on both sides respectively, and the amount of charge stored in the floating gate is set as the input signal of the input weight terminal, the control gate voltage signal is set as the input signal of the input data terminal, and the drain current signal is set as the output signal of the output data terminal.
[0026] According to one embodiment, the composite dielectric gate transistors are arrayed in a NOR architecture and placed in a substrate (SUB) and a deep N-well (DNW), wherein the control gates of each row of composite dielectric gate transistors constitute a word line (WL); the sources of each column of composite dielectric gate transistors constitute a source line (SL); and the drains of each column of composite dielectric gate transistors constitute a bit line (BL). The composite dielectric gate transistor array is configured to have standby, programming, erasing, and reading modes. Furthermore, when zero bias is applied to WL, BL, SL, and SUB, and a positive bias is applied to DNW, the composite dielectric gate transistor array operates in a standby state, and the selected composite dielectric gate transistor does not perform any operation. When zero bias is applied to SL and SUB, When WL and BL apply positive bias, and DNW applies positive bias, the composite dielectric gate transistor array operates in the programming state, and the floating gate charge in the selected composite dielectric gate transistor is written; when WL applies positive bias, BL, SL, and SUB apply negative bias, and DNW applies positive bias, the composite dielectric gate transistor array operates in the erase state, and the floating gate charge in the selected composite dielectric gate transistor is discharged; when SL applies zero bias, WL and BL apply positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate transistor photodetector array operates in the readout state, and the drain output current in the selected composite dielectric gate transistor is the MAC calculation result of the input weight terminal and the input data terminal.
[0027] According to one embodiment, the sub-computing component is configured as a resistive random access memory, wherein: the resistive random access memory includes titanium nitride and hafnium oxide stacked in sequence above a top metal dielectric layer; and the resistance value across the titanium oxide and hafnium oxide is set as the input signal of the input weight terminal, the voltage signal across the titanium oxide and hafnium oxide is set as the input signal of the input data terminal, and the current signal across the titanium oxide and hafnium oxide is set as the output signal of the output data terminal.
[0028] According to one embodiment, the RRAM is configured as an array in a NOR architecture, wherein: hafnium oxide in each row of the RRAM forms a word line (WL); and titanium nitride in each column of the RRAM forms a bit line (BL).
[0029] According to one embodiment, the RRAM array has standby, programming, erasing, and reading modes, and is configured to perform the following operations: when both WL and BL apply zero bias, the RRAM array operates in a standby state, and the selected RRAM does not perform any operation; when WL applies a positive bias and BL applies zero bias, the RRAM array operates in a programming state, and the resistance value of the selected RRAM changes; when WL applies zero bias and BL applies a positive bias, the composite dielectric gate transistor array operates in an erasing state, and the resistance value of the selected RRAM returns to its original state; when there is a voltage drop across WL and BL, the RRAM array operates in a read state, and the current of the selected RRAM is the MAC calculation result of the input weight terminal and the input data terminal.
[0030] According to yet another aspect of the present invention, a non-transitory chip or computer-readable medium having program code recorded thereon is also provided. When the program code is executed by the chip or the computer, the method described above is performed.
[0031] By using the technical solution of the present invention, the classification, identification and analysis of the target scene are completed at the imaging end, which greatly reduces the delay of data processing, improves the response speed of the intelligent solution, and lays the foundation for future intelligent scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] FIG1 is a flow chart of an imaging and calculation method according to an embodiment of the present invention;
[0033] FIG2 is a diagram of a Haar feature used in an imaging and calculation method according to an embodiment of the present invention;
[0034] FIG3 is a schematic diagram of the entire process of an imaging and calculation method according to an embodiment of the present invention;
[0035] FIG4 is an operator search scheme for an imaging and calculation method according to an embodiment of the present invention;
[0036] FIG5 is an operator search result for an imaging and calculation method according to an embodiment of the present invention;
[0037] FIG6 is a one-dimensional signal processing scheme for imaging and calculation methods according to an embodiment of the present invention;
[0038] 7 is a structural block diagram of an imaging and computing device according to an embodiment of the present invention;
[0039] FIG8 is a block diagram of an exemplary implementation of an imaging and computing device according to an embodiment of the present invention;
[0040] FIG9 is an exemplary implementation of an imaging and computing device according to an embodiment of the present invention;
[0041] FIG10 is a schematic diagram of a composite dielectric gate dual transistor photosensitive detector for an imaging and computing device according to an embodiment of the present invention;
[0042] FIG11 is a symbolic diagram of a composite dielectric gate dual transistor photosensitive detector for an imaging and computing device according to an embodiment of the present invention;
[0043] FIG12 is a schematic diagram of a composite dielectric gate dual transistor photodetector array for an imaging and computing device according to an embodiment of the present invention;
[0044] 13 is a block diagram of a pulse width modulation signal generating circuit for an imaging and computing device according to an embodiment of the present invention;
[0045] 14 is a block diagram of a frequency division multiplexing signal generating circuit for an imaging and computing device according to an embodiment of the present invention;
[0046] FIG15 is a timing diagram of a global exposure method for an imaging and computing device according to an embodiment of the present invention;
[0047] FIG16 is a timing diagram of a rolling shutter exposure method for an imaging and computing device according to an embodiment of the present invention;
[0048] FIG17 is a schematic diagram of a time-division multiplexing calculation result readout scheme for an imaging and calculation device according to an embodiment of the present invention;
[0049] FIG18 is a schematic diagram of a calculation result readout scheme for frequency division multiplexing of an imaging and calculation device according to an embodiment of the present invention;
[0050] FIG19 is a schematic diagram of a single-slope analog-to-digital converter for an imaging and computing device according to an embodiment of the present invention;
[0051] FIG20 is a schematic diagram of a successive approximation analog-to-digital converter for an imaging and computing device according to an embodiment of the present invention;
[0052] FIG21 is a schematic diagram of a computing solution for computing components of an imaging and computing device according to an embodiment of the present invention;
[0053] FIG22 is a schematic diagram of a composite dielectric gate transistor for use in imaging and computing devices according to an embodiment of the present invention;
[0054] FIG23 is a schematic diagram of a resistive random access memory for an imaging and computing device according to an embodiment of the present invention;
[0055] FIG24 is a schematic diagram of a static random access memory for an imaging and computing device according to an embodiment of the present invention;
[0056] FIG25 is a schematic diagram of a single wafer integration solution for imaging and computing devices according to an embodiment of the present invention;
[0057] FIG26 is a schematic diagram of a multi-wafer stacking integration solution for imaging and computing devices according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The method, device and readable medium of the present invention are exemplarily described below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure generally described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure for protection, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.
[0059] In order to solve the problems described in the background technology, the present disclosure provides a method for imaging and calculation, including extracting a field of view image of a target field of view and searching for a specific target in the field of view image. The method is characterized in that a calculation kernel corresponding to the specific target is determined according to the attributes of the specific target, wherein the calculation kernel is expressed by a weight value matrix; the calculation kernel is used to perform convolution calculation on the field of view image to search and match the field of view image to obtain a feature map corresponding to the specific target. As an example, the attributes of the specific target can be attributes of a specific target determined based on a task, and the specific target can be a face area, a mountain area, etc. The attribute can be some environmental features, image background features, size, clothing of the specific target, etc. The above method provided by the present disclosure will be described in detail below with reference to the accompanying drawings.
[0060] As shown in Figure 1, when the system is working, it first generates a computing kernel (which can be an existing computing kernel, a computing kernel obtained by training a neural network, or a computing kernel obtained by training a neural tangent kernel) based on the target of interest (i.e., a specific target). Then, the target field of view imaging data and the computing kernel are convolved to obtain a feature map. Then, it is determined whether the feature map can complete target recognition and classification. If target recognition and classification are not completed (i.e., "No" as shown in Figure 1), a new computing kernel is generated and the above process is repeated; if target recognition and classification are completed (i.e., "Yes" as shown in Figure 1), the target recognition and classification results are obtained. After target recognition and classification are completed, if the target of interest has not changed, the target can be continuously tracked. In addition, if the user needs to track the imaging results and recognition results in real time, the imaging results, feature map, and recognition results can also be output in real time.
[0061] The computation kernel is expressed using at least one of the following operators: Laplacian, Difference of Gaussian, Haar-signature, and Corner-saliency. Depending on the properties of the specific target, the Laplacian or Difference of Gaussian operator may be used. For example, if edge information needs to be extracted, the Haar-signature operator may be used. For facial information, the Haar-signature operator may be used. For corner information, the Corner-saliency operator may be used.
[0062] According to the method shown in FIG1 , the target scene is first imaged to obtain a 128×128 imaging result. Then, the calculation kernel (201) shown in FIG2 is used as the calculation kernel input (the calculation kernel size is 16×16), with the value of the white part being 0 and the value of the black part being 1. During the calculation, 15 rows and 15 columns of padding cells with a value of 0 are added to the 128×128 imaging result to form a 143×143 padded imaging result matrix. By convolving the 16×16 Haar features with the 143×143 padded imaging result matrix, a first feature map of 128×128 can be obtained. Assuming that the true area of the region of interest (the face area, i.e., the specific target, in this embodiment) cannot be obtained at this time, a second calculation kernel (202 as shown in FIG2 ) is generated according to the target of interest. After repeating the above calculation, a second feature map of 128×128 is obtained. This is deduced by analogy until a fourth feature map of 128×128 is obtained by using the calculation kernel 204 as shown in FIG2 . The neural network then classifies and recognizes different faces based on the obtained feature maps.
[0063] For confidence, the neural network usually outputs the probability of its recognition results under N categories as p and i , considering that when the confidence in a certain result is very high, its probability is close to 1, while other probabilities are close to 0, then ∑p i logp iThe value of is the smallest; when the confidence in any result is low, the probability is close to 1 / N, then ∑p i logp i The value of is the largest. Therefore, we can set the confidence threshold and combine it with ∑p i logp i The value is compared to determine whether the calculation is completed.
[0064] In the above calculation process, the part involving quantization can be quantized as follows: assuming that the face classification and recognition method adopts a convolutional neural network, each data in the feature map is quantized to 8 bits; assuming that the face classification and recognition method adopts a binary neural network, each data in the feature map is quantized to 1 bit. In addition, the quantization bit number of the feature map can be jointly trained with the neural network to obtain the optimal quantization bit number Q of the feature map F and the optimal quantization bit Q of the neural network N .
[0065] At least one of the following methods is used to determine the computational kernel to be used based on the target of interest: introducing an existing computational kernel; using neural network training; using neural tangent kernel training.
[0066] The perception network is used to calculate the confidence of the output result of the feature map, and the meta-network is used to modify the computing kernel and / or the perception network parameters, including: using the perception network to receive the feature map as the input value of the perception result, combining the task to be completed, and outputting the perception result corresponding to the task, and using the meta-network to receive information related to the task (such as a description of the task, such as the need to classify and recognize the face area in daytime outdoor images), the perception network, the feature map and the computing kernel set as input, and outputting new computing kernel and / or perception network parameters. As an example, the perception network can be a suitable neural network determined based on the actual task, such as a convolutional neural network, a deep neural network, a recursive neural network, a recurrent neural network, etc. As an example, the meta-network can be a neural network based on meta-learning (Meta-Learning in Neural Networks).
[0067] FIG3 shows a task-adaptive hardware and software architecture. Unlike a traditional fixed-architecture network, this embodiment performs collaborative optimization design of hardware and software and dynamically and adaptively adjusts the computing architecture in combination with the task.
[0068] The image sensor device converts the optical signal into an electrical signal, and the converted electrical signal forms an observation image. The observation image will first pass through the dynamic operator selected by the runtime architecture (such as the selected operator 1 or 2 shown in Figure 3) to calculate the observation image and extract the region of interest (the key target image shown in Figure 3). The extracted region of interest will be further input into the perception network. The computing unit of the perception network can also adaptively adjust some network parameters based on specific tasks. The algorithm selection and perception network adjustment are both implemented by the meta-network. The meta-network searches and adjusts the operator level and network parameter level according to the region of interest and the output of the perception network (such as the recognition result shown in Figure 3).
[0069] If the output of the perception network fails to adequately meet the feature representation requirements of the current task, the meta-network performs task-oriented corrections on the dynamic operators and perception network. The quality of the feature representation is determined by the output confidence of the target recognition and classification network. The higher the confidence of the target recognition and classification network, the more reasonable the current feature representation, and the smaller the adjustment of the operator and network parameters. The lower the confidence of the target recognition and classification network, the greater the improvement required in the feature representation. The meta-network processes and calculates the output of the current perception network, and updates the operators and perception network based on the task application.
[0070] The operators and perception network updated by the meta-network perform feature representation on the observed images obtained by the image sensor device. The target recognition and classification network receives the feature representation and outputs the recognized category in combination with the current task. After multiple iterations, the operators and network structure selected by the meta-network will be more suitable for the target recognition task, and the recognition will gradually approach accurate recognition from inaccurate recognition at the beginning.
[0071] A computing kernel obtained by neural network training is used, wherein: the input of the neural network is set to various images, and the output of the neural network is set to the regions of interest of the various images, so that after training, the neural network contains a mapping relationship from various images to their corresponding regions of interest, and the mapping relationship is extracted and used as the computing kernel.
[0072] Figure 4 illustrates an operator search scheme for an imaging and computing device according to an embodiment of the present invention. To identify specific sensitive targets, a deep convolutional neural network (DCNN) is used for feature extraction and target detection. During backpropagation, the convolutional neural network automatically calculates the weights for each convolution kernel. As training progresses, the values within each kernel gradually converge to the value that minimizes the loss function, resulting in the best-quality prediction. We consider convolution kernels as operators. Each operator of a certain size is applied to a local image region to obtain local information. The input image is traversed, and the output signals form a feature map. Different operators extract different features. The goal of the neural network model is to find an optimal set of operators through optimization. The convolution kernel parameters in the neural network are updated through network training. If the deep convolutional neural network is sufficiently complex, it can learn a wide range of different operator patterns. Furthermore, the operators in the first layer of the neural network directly extract features from the image information, using the same location and method as feature extraction on the chip. Therefore, the operators in the first layer of a trained neural network can accurately perceive target features such as color, texture, shape, and outline, and can be quantized for use on the chip. In Figure 4, "224×224×16" indicates that the size of the image feature is 224×224, and the number of feature channels of the image is 16. Similarly, "112×112×128" indicates that the size of the image feature is 112×112, and the number of feature channels of the image is 128, and so on.
[0073] The network classifies face images using the VOC2017 and FDDB datasets, with a training set to test set ratio of 4:1. The initial learning rate was 0.1, the batch size was 32, and 200 rounds of training were performed. The trained model was quantized using 8-bit integers (int8).
[0074] Figure 5 shows the imaging results of the first layer of 16 operators extracted from the neural network.
[0075] Using the computational kernel obtained from neural tangent kernel training, the input of the infinite-width neural network is set as various images, and the output of the infinite-width neural network is set as the regions of interest of the various images, so that after the training is completed, the infinite-width neural network contains a mapping relationship from various images to their corresponding regions of interest, and the mapping relationship is extracted as the computational kernel for neural tangent kernel training.
[0076] The existing computing core, the computing core obtained by using a neural network training, and the computing core obtained by using a neural tangent core training are superimposed to form a new computing core, including: sending the existing computing core into the neural network for retraining to obtain the computing core of the existing computing core after being trained by the neural network; and / or sending the existing computing core into an infinite-width neural network for retraining to obtain the computing core of the existing computing core after being trained by the neural tangent core; and / or sending the existing computing core into the neural network for retraining, and then sending it into the infinite-width neural network for retraining to obtain the computing core of the existing computing core after being trained by the neural network and the neural tangent core; and / or sending the computing core trained by the neural network into the infinite-width neural network for retraining to obtain the computing core of the existing neural network trained computing core after being trained by the neural tangent core.
[0077] The perceived object is a two-dimensional signal field composed of other one-dimensional signals such as acoustic signals, electrical signals, etc., such as two-dimensional sound field signals, two-dimensional electric field signals, etc., which is characterized in that the calculation kernel is expressed by a weight value matrix, and the calculation kernel is used to perform convolution calculation in the spatial dimension of the perception area, and the signal is searched and matched to obtain a characteristic signal corresponding to a specific target; the calculation kernel is expressed by a weight value matrix, and the calculation kernel is used to perform convolution calculation in the spatiotemporal dimension of the perception area, and the signal is searched and matched to obtain a characteristic signal corresponding to a specific target.
[0078] Figure 6 details the processing of one-dimensional signals by the method described in this patent. The device uses short-time Fourier weights as the calculation kernel:
[0079] The output result of the one-dimensional acoustic signal after calculation by the calculation core is the corresponding short-time Fourier transform result, which is sent to the digital signal processing unit (DSP) to obtain the final calculation result.
[0080] The present invention also proposes a device for imaging and calculation, which includes an image acquisition component and a calculation component. The image acquisition component is configured to capture and image the target field of view or extract existing images, and use calculations to calculate and quantify the imaging results to obtain a feature map of a specific target; the calculation component is configured to calculate the feature map obtained by the image acquisition component, identify and / or classify the specific target of interest, and obtain an identification result corresponding to the specific target.
[0081] FIG7 is a block diagram of a device for imaging and computing according to an embodiment of the present invention, which is composed of a development board for imaging and computing, including: a device for imaging and computing (703), an FPGA chip (701), a power chip (704), and other auxiliary chips (702). The device for imaging and computing (703) performs the method described in the present invention, the FPGA chip (701) provides control logic for all chips on the development board for imaging and computing, the power chip (704) provides power for all chips on the development board for imaging and computing, and the other auxiliary chips (702) provide auxiliary functions for the device for imaging and computing (703), the FPGA chip (701), and the power chip (704).
[0082] FIG8 is a block diagram of an exemplary implementation of an apparatus for imaging and computing according to an embodiment of the present invention, which is composed of an image acquisition component (801), a computing component (802), a driving component (805), a timing control component (804), and a transmission component (803). The driving component (805), the timing control component (804), and the transmission component (803) may not be provided. The image acquisition component (801) is used to image and calculate the target scene or extract an existing image; the calculation component (802) is mainly used to calculate the region of interest and the target classification and recognition based on the feature map calculated by the image acquisition component (801); the driving component (805) is mainly used to provide the driving voltage required for the image acquisition component (801) and the calculation component (802) to work; the transmission component (803) is mainly used to transmit the imaging results, feature maps, calculation kernels, regions of interest and target classification and recognition results of the image acquisition component (801) and the calculation component (802) to the outside of the device as needed; the timing control component (804) is mainly used to provide the correct working timing for the image acquisition component (801), the calculation component (802), the driving component (805) and the transmission component (803).
[0083] 9 is an example implementation of an apparatus for imaging and computing according to an embodiment of the present invention, which is composed of an imaging array module (905) and its corresponding word line (WL) module (901), bit line (BL) module (902), logic control module (903), readout module (904), a computing array module (910) and its corresponding WL module (906), BL module (907), logic control module (908), readout module (909), and input / output (I / O) module (911). The imaging array module (905) and the corresponding readout module (904) constitute an image acquisition component (such as the image acquisition component 801 shown in Figure 8), the computing array module (910) and the corresponding readout module (909) constitute a computing component (such as the computing component 802 shown in Figure 8), the WL module (901, 906) and the BL module (902, 907) constitute a driving component (such as the driving component 805 shown in Figure 8), the logic control module (903, 908) constitutes a timing control component (such as the timing control component 804 shown in Figure 8), and the I / O module (911) constitutes a transmission component (such as the transmission component 803 shown in Figure 8). The imaging array module (905) images the target scene under the drive of the corresponding WL module (901), BL module (902) and logic control module (903), and then calculates a feature map based on the calculation kernel, and sends it to the logic control module (908) corresponding to the calculation array module (910) through the readout module (904) corresponding to the imaging array module (905); the logic control module (908) corresponding to the calculation array module (910) uses the calculation array module (910) to complete the calculation of the region of interest and the target classification and recognition, and sends the calculation results to the I / O module (911) through the readout module (909) corresponding to the calculation array module (910). If the system cannot complete the calculation based on only one feature map, the logic control module (908) corresponding to the calculation array module (910) generates a new calculation kernel based on the target of interest and sends it to the control logic module (903) corresponding to the imaging array module (905), and then uses the imaging array module (905) to perform calculations.
[0084] The image acquisition component includes: a readout selection terminal, which, when set to a high level, causes the photosensitive unit in the image acquisition component to output its photosensitive signal; and a readout modulation terminal, which, when set to a different analog value, causes the photosensitive unit to output the product of its photosensitive signal and the analog value; and a readout data terminal, which is configured to calculate the imaging result under the influence of the readout selection terminal and the readout modulation terminal, thereby obtaining a characteristic map of the specific target. By way of example, the imaging result can be a real-time imaging result or a pre-stored imaging result.
[0085] The image acquisition component is configured as a composite dielectric gate dual-transistor photosensitive detector component (e.g., a dual-transistor photosensitive detector based on a composite dielectric gate MOSFET, as described in CN201210442007.X), and the composite dielectric gate dual-transistor photosensitive detector includes a MOS-C portion and a MOSFET portion formed on the same P-type semiconductor substrate; and the MOS-C portion includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence on the P-type semiconductor substrate; and the MOSFET portion includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence on the P-type semiconductor substrate; the bottom insulating dielectric layer, floating gate, top insulating dielectric layer and control gate of the MOS-C portion are respectively connected to the bottom insulating dielectric layer, floating gate, top insulating dielectric layer and control gate of the MOSFET portion; and the MOSFET portion is additionally provided with a source and a drain.
[0086] The control gate voltage signal is the output signal of the readout selection terminal; the drain voltage signal is the output signal of the readout modulation terminal; and the drain current signal is the output signal of the readout data terminal.
[0087] FIG10 shows a schematic diagram of using a composite dielectric gate dual-transistor photodetector as an image acquisition component. The composite dielectric gate dual-transistor photodetector is composed of a P-type semiconductor substrate (1001), a bottom insulating dielectric layer (1002), a floating gate (1003), a top insulating dielectric layer (1004), a control gate (1005), and shallow trench isolation (STI).
[0088] The composite dielectric gate dual-transistor photodetector is arranged in an array in the form of a NOR architecture and is placed in a substrate (SUB) and a deep N well (DNW). The control gates of each row of composite dielectric gate dual-transistor photodetectors form a word line (WL); the sources of each column of composite dielectric gate dual-transistor photodetectors form a source line (Source). Line, SL); the drain of each column of composite dielectric gate dual-transistor photosensitive detector constitutes a bit line (BL); and the composite dielectric gate dual-transistor photosensitive detector array has standby, reset, exposure, reading, programming and erasing modes; when WL, BL, SL, and SUB all apply zero bias and DNW applies positive bias, the composite dielectric gate dual-transistor photosensitive detector array is set to standby state, and there is no depletion region for collecting photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photosensitive detector; when BL and SL apply zero bias, WL and SUB apply negative bias, and DNW applies positive bias, the composite dielectric gate dual-transistor photosensitive detector array works in reset state, and the photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photosensitive detector are all emptied; when BL and SL apply zero bias, WL applies zero bias or positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate dual-transistor photosensitive detector array works in reset state, and the photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photosensitive detector are all emptied; when BL and SL apply zero bias, WL applies zero bias or positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate dual-transistor photosensitive detector array works in reset state, and the photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photosensitive detector are all emptied; The body tube photodetector array operates in an exposure state, and a depletion region is generated in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photodetector to collect photoelectrons; when SL applies zero bias, WL and BL apply positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate dual-transistor photodetector array operates in a readout state, and the drain output current of the selected composite dielectric gate dual-transistor photodetector is the photosensitivity signal; when SL and SUB apply zero bias, WL and BL apply positive bias, and DNW applies positive bias, the composite dielectric gate dual-transistor photodetector array operates in a programming state, and the floating gate charge in the selected composite dielectric gate dual-transistor photodetector is written; when WL applies a positive bias, BL, SL, and SUB apply negative bias, and DNW applies positive bias, the composite dielectric gate dual-transistor photodetector array operates in an erase state, and the floating gate charge in the selected composite dielectric gate dual-transistor photodetector is discharged.
[0089] The symbol of the composite dielectric gate dual-transistor photodetector is shown in FIG11 , and the array formed by the composite dielectric gate dual-transistor photodetector using the NOR architecture is shown in FIG12 .
[0090] The composite dielectric gate dual-transistor photodetector array has standby, reset, exposure, reading, programming and erasing modes. When WL, BL, SL and SUB are all applied 0V, and DNW is applied 1.8V, the composite dielectric gate dual-transistor photodetector array works in the standby state, and there is no depletion region for collecting photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photodetector; when BL and SL are applied 0V, WL and SUB are applied -3V, and DNW is applied 1.8V, the composite dielectric gate dual-transistor photodetector array works in the reset state, and the photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photodetector are all emptied; when BL, SL and WL are applied 0V, SUB is applied -3V, and DNW is applied 1.8V, the composite dielectric gate dual-transistor photodetector array works in the exposure state, and a depletion region is generated in the P-type semiconductor substrate of the selected composite dielectric gate dual-transistor photodetector, collecting photoelectrons. Photoelectrons; when SL applies 0V, WL applies a PWM signal, BL applies 0.2V, SUB applies -3V, and DNW applies 1.8V, the composite dielectric gate dual-transistor photosensitive detector array operates in the readout state, and the drain output current in the selected composite dielectric gate dual-transistor photosensitive detector is the photosensitivity signal; when SL and SUB apply 0V, WL applies 3V, BL applies 2V, and DNW applies 1.8V, the composite dielectric gate dual-transistor photosensitive detector array operates in the programming state, and the floating gate charge in the selected composite dielectric gate dual-transistor photosensitive detector is written; when WL applies 10V, BL, SL, and SUB apply -10V, and DNW applies 1.8V, the composite dielectric gate dual-transistor photosensitive detector array operates in the erase state, and the floating gate charge in the selected composite dielectric gate dual-transistor photosensitive detector is discharged.
[0091] For K R Row K C The calculation core of the column can be completed by time division multiplexing, including: each time the K of the i-th column R The row convolution kernel is converted into K R A pulse width modulation signal is then applied to the readout modulation end of the image acquisition component, or K R The analog voltage signal is then applied to the readout modulation end of the image acquisition component, and the readout data end of the image acquisition component is modulated by K C The results read out are accumulated to obtain the calculation result.
[0092] Taking the composite dielectric gate dual-transistor photodetector array shown in Figure 12 as an example, consider a computational kernel with a step size of 3×3 and a step size of 1:
[0093] For the pulse width modulation method, assuming that the quantization bit number of the computing core is 8 bits, taking into account the positive and negative weights, the weight of the computing core is quantized using 9 bits, totaling 512 clock cycles, mapped to [-256, 255]. Then, -1 corresponds to 256 high-level pulse width modulation signals, and 8 corresponds to 265 high-level pulse width modulation signals.
[0094] First, three groups of 256 high-level pulse width modulation signals are sent to the 1st to 3rd rows WL to complete the calculation of the first column of the calculation core K; then, 256, 265, and 256 high-level pulse width modulation signals are sent to the 1st to 3rd rows WL respectively to complete the calculation of the second column of the calculation core K; finally, three groups of 256 high-level pulse width modulation signals are sent to the 1st to 3rd rows WL to complete the calculation of the third column of the calculation core K. At this point, the calculation of rows 1 to 3 has been completed, and the calculation results of rows 1 to 3 can be obtained by simply reading the corresponding data at the BL end and accumulating them.
[0095] According to one embodiment, for K R Row K C The calculation core of the column can be completed by frequency division multiplexing, including: R Row K C The convolution kernel of the column is converted to K R The pulse width modulation signals of different frequencies are then applied to the readout modulation end of the image acquisition component, or K R The analog voltage signals of different frequencies are applied to the readout modulation end of the image acquisition component, and are accumulated after demultiplexing at the readout data end of the image acquisition component to obtain a calculation result.
[0096] As shown in Figure 12, for frequency division multiplexing, assuming that the quantization bit number of the computing core is 8 bits, considering the positive and negative weights, the weight of the computing core is quantized using 9 bits, totaling 512 analog voltage steps (full scale is 1.8V), mapped to [-256, 255]. Then, -1 corresponds to 0.9V, and 8 corresponds to 0.93164V.
[0097] In the first row, three sinusoidal wave signals with frequencies of 100kHz, 200kHz and 300kHz and amplitudes of 0.9V are fed in; in the second row, three sinusoidal wave signals with frequencies of 100kHz, 200kHz and 300kHz and amplitudes of 0.9V, 0.93164V and 0.9V are fed in; in the third row, three sinusoidal wave signals with frequencies of 100kHz, 200kHz and 300kHz and amplitudes of 0.9V are fed in. By simply reading the current of the corresponding frequency at the BL end, the calculation results of rows 1 to 3 can be obtained.
[0098] The pulse width modulation signal generation circuit here can be written in Verilog and generated using a digital logic synthesis tool. A typical pulse width modulation signal circuit block diagram is shown in Figure 13. A 9-bit counter is used to count under the drive of the clock CLK. When the value is not greater than the calculation kernel weight after clock cycle mapping (i.e., the "yes" branch shown in Figure 13), a high level is output; otherwise, a low level is output (i.e., the "no" branch shown in Figure 13). In this way, a pulse width modulation signal proportional to the convolution kernel weight can be generated.
[0099] Frequency-division multiplexed signals of different frequencies can be constructed in the analog domain by combining oscillators and multipliers, as shown in Figure 14. Taking a 3×3 computing core as an example, three sets of oscillators with different frequencies are used. The oscillation signals they generate are multiplied by the computing core weights after analog voltage mapping. After passing through an adder, the frequency-division multiplexed input signal is obtained.
[0100] Using K R Row K C When the calculation core of the column is used to calculate the imaging results of N rows and M columns, N-K R +1 row M-K C +1 column feature map; alternatively, you can add P on the periphery R Row P C Filler cells with column value C assist in the calculation to get N+P R -K R +1 line M+P C -K C +1 column feature map, and each time for K R The imaging results of the row and column M are calculated. After the calculation is completed, the subsequent K R rows, where K R , K C , N, M, P R 、P C , C are both positive integers.
[0101] Figure 15 shows the timing of calculations using a composite dielectric gate dual-transistor photodetector array. First, taking a 3×3 computation kernel with a step size of 1 as an example, under the global exposure scheme, all pixels are exposed synchronously. During readout, the imaging results and the results of the computation kernel are read out in the order of rows 1–3, rows 2–4, and rows 3–5. Under the rolling shutter exposure scheme, all pixels enter the exposure and readout states, completing the exposure and readout of all pixels' imaging results and the results of the computation kernel, as shown in Figure 16.
[0102] Figure 17 illustrates the process of reading out calculation results using a composite dielectric gate dual-transistor photodetector array. Taking a 3×3 computation core with a step size of 1 as an example, the switching circuit shown in Figure 17 (i.e., the switching circuit consisting of switches S0-S2) is used at the BL port. When performing calculations on the first column of computation cores, switch S0 is closed, and switches S1 and S2 are opened. When performing calculations on the second column of computation cores, switch S1 is closed, and switches S0 and S2 are opened. When performing calculations on the third column of computation cores, switch S2 is closed, and switches S0 and S1 are opened. Using this timing drive, the processing and readout of calculation results in a time-division multiplexing (TDM) scenario can be completed.
[0103] When operating in frequency division multiplexing mode, the demultiplexing circuit shown in Figure 18 is used. The three multipliers are equal to the carrier frequency of the core weight calculation, and after demultiplexing, they are sent to the corresponding accumulation unit to complete the processing and readout of the calculation results.
[0104] Quantization is typically accomplished using an analog-to-digital converter (ADC). Block diagrams of a single-slope ADC (Figure 19) and a successive approximation ADC (Figure 20) are provided here. The single-slope ADC shown in Figure 19 consists of a comparator and a counter, with the number of quantization bits determined by the number of cycles of the ramp voltage and the maximum bit width of the counter. The successive approximation ADC shown in Figure 20 consists of a successive approximation register (SAR) logic, a digital-to-analog converter (DAC), a sample / hold (S / H) circuit, and a comparator, with the number of quantization bits determined by the SAR logic.
[0105] In this embodiment, a calculation process using a composite dielectric gate transistor array is described. Taking neural network calculation as an example, FIG12 shows a composite dielectric gate transistor array. Considering a 128×128 feature map and K 3×3 convolution kernels for convolution operation, the first convolution kernel is used as an example, as shown in the following formula:
[0106] The convolution kernels are arranged as shown in Figure 21, which requires a 9×K composite dielectric gate transistor array. When performing calculations, if a pulse width modulation signal is used for calculation, it is applied to 9 rows of WL at the same time. Different convolution results can be obtained by applying the feature map data of different regions to the WL. This is repeated several times under timing drive, and the convolution operation results of the 128×128 feature map and K 3×3 convolution kernels can be obtained by accumulation at the BL end; if the binary code stream is used, the feature map data of different regions needs to be applied to the WL in the form of LSB, and the convolution operation results of the 128×128 feature map and K 3×3 convolution kernels are obtained at the BL end by shift accumulation.
[0107] The computing component is configured to be composed of a plurality of sub-computing components and logic components, wherein the sub-computing component is configured to be a component for implementing a multiply accumulate (MAC) operation, and the sub-computing component includes: an input weight terminal, when it is set to increase the weight, the weight value stored in the computing component increases, and when it is set to decrease the weight, the weight value stored in the computing component decreases, wherein the weight is used for classification and / or recognition; an input data terminal, when it is set to a high level or a low level, correspondingly inputs high-level data or low-level data; and an output data terminal, configured to output a MAC calculation result of the input weight terminal and the input data terminal.
[0108] The logic component includes a timing control component and a computing core generation component, wherein the timing control component is configured to control the timing associated with the sub-computing component to control the normal calculation of the sub-computing component; the computing core generation component is configured to generate a computing core.
[0109] The composite dielectric gate transistors are arranged in an array in the form of a NOR architecture and are placed in a substrate (SUB) and a deep N-well (DNW), wherein the control gates of each row of composite dielectric gate transistors constitute a word line (WL); the source of each column of composite dielectric gate transistors constitutes a source line (SL); and the drain of each column of composite dielectric gate transistors constitutes a bit line (BL). The composite dielectric gate transistor array is configured to have standby, programming, erasing, and reading modes. Furthermore, when zero bias is applied to WL, BL, SL, and SUB, and a positive bias is applied to DNW, the composite dielectric gate transistor array operates in a standby state, and the selected composite dielectric gate transistor does not perform any operation. When zero bias is applied to SL and SUB, WL When WL applies a positive bias, BL applies a negative bias, and DNW applies a positive bias, the composite dielectric gate transistor array operates in a programming state, and the floating gate charge in the selected composite dielectric gate transistor is written; when WL applies a positive bias, BL, SL, and SUB apply a negative bias, and DNW applies a positive bias, the composite dielectric gate transistor array operates in an erase state, and the floating gate charge in the selected composite dielectric gate transistor is discharged; when SL applies a zero bias, WL and BL apply a positive bias, SUB applies a negative bias, and DNW applies a positive bias, the composite dielectric gate transistor photodetector array operates in a readout state, and the drain output current in the selected composite dielectric gate transistor is the calculation result of the input weight terminal and the input data terminal.
[0110] The sub-computing component is configured as a resistive random access memory, wherein: the resistive random access memory includes titanium nitride and hafnium oxide stacked in sequence above a top metal dielectric layer; and the resistance value across the titanium oxide and hafnium oxide is set as the input signal of the input weight terminal, the voltage signal across the titanium oxide and hafnium oxide is set as the input signal of the input data terminal, and the current signal across the titanium oxide and hafnium oxide is set as the output signal of the output data terminal.
[0111] The RRAM is constructed in an array in a NOR structure, wherein the hafnium oxide of each row of the RRAM forms a word line (WL); and the titanium nitride of each column of the RRAM forms a bit line (BL).
[0112] The RRAM array has standby, programming, erasing, and reading modes, and is configured to perform the following operations: when both WL and BL apply zero bias, the RRAM array operates in a standby state, and the selected RRAM does not perform any operation; when WL applies a positive bias and BL applies zero bias, the RRAM array operates in a programming state, and the resistance value of the selected RRAM changes; when WL applies zero bias and BL applies a positive bias, the composite dielectric gate transistor array operates in an erasing state, and the resistance value of the selected RRAM returns to its original state; when there is a voltage drop across WL and BL, the RRAM array operates in a read state, and the current of the selected RRAM is the calculation result of the input weight terminal and the input data terminal.
[0113] Figure 22 shows a schematic diagram of using a composite dielectric gate crystal as a computing component. The computing component can also be implemented using a resistive random access memory (RRAM) (Figure 23) or a static random access memory (SRAM) (Figure 24). The RRAM shown in Figure 23 is composed of a hafnium dioxide (HfO2) layer, a titanium nitride (TiN) layer, and a metal dielectric layer; the SRAM shown in Figure 24 is composed of an inverter and a MOSFET. In Figure 22, the composite dielectric gate crystal is composed of a P-type semiconductor substrate (2201), a bottom insulating dielectric layer (2202), a floating gate (2203), a top insulating dielectric layer (2204), a control gate (2205), and shallow trench isolation (STI).
[0114] For the compound dielectric gate transistor, its symbol is consistent with that of the compound dielectric gate dual transistor photodetector (as shown in FIG11 ), and its array formed using the NOR architecture is also consistent with that of the compound dielectric gate dual transistor photodetector (as shown in FIG12 ).
[0115] The composite dielectric gate transistor array has standby, programming, erasing and reading modes. When 0V is applied to WL, BL, SL, and SUB, and 1.8V is applied to DNW, the composite dielectric gate transistor array operates in a standby state, and the selected composite dielectric gate transistor does not perform any operation; when 0V is applied to SL and SUB, 3V is applied to WL, 2V is applied to BL, and 1.8V is applied to DNW, the composite dielectric gate transistor array operates in a programming state, and the floating gate charge in the selected composite dielectric gate transistor is written; when 10V is applied to WL, -10V is applied to BL, SL, and SUB, and 1.8V is applied to DNW, the composite dielectric gate transistor array operates in an erase state, and the floating gate charge in the selected composite dielectric gate transistor is discharged; when 0V is applied to SL, a PWM signal or a binary code stream signal is applied to WL, 0.2V is applied to BL, 0V is applied to SUB, and 1.8V is applied to DNW, the composite dielectric gate transistor photodetector array operates in a readout state, and the drain output current in the selected composite dielectric gate transistor is the calculation result of the input weight terminal and the input data terminal.
[0116] According to yet another aspect of the present invention, a non-transitory chip or computer-readable medium having program code recorded thereon is also provided. When the program code is executed by the chip or the computer, the method described above is performed.
[0117] Figure 25 illustrates a process for integrating a composite dielectric gate dual-transistor photodetector as an image acquisition component and a composite dielectric gate transistor as a computing component on the same wafer. Considering that the composite dielectric gate dual-transistor photodetector requires light doping of the substrate for light sensing, while the composite dielectric gate transistor requires heavy doping for computing, an additional mask layer can be added to adjust the doping concentration. A schematic diagram of integrating the composite dielectric gate dual-transistor photodetector and composite dielectric gate transistor in the same process is shown in Figure 25 , where the additional mask layers are located above the control gate of the composite dielectric gate dual-transistor photodetector and above the control gate of the composite dielectric gate transistor, respectively. In Figure 25 , the left side implements the use of a composite dielectric gate transistor as a computing component. As described above in conjunction with Figure 22 , the composite dielectric gate crystal is composed of a P-type semiconductor substrate (2501), a bottom insulating dielectric layer (2502), a floating gate (2503), a top insulating dielectric layer (2504), a control gate (2505), and shallow trench isolation (STI). What is implemented on the right is: using a composite dielectric gate dual-transistor photosensitive detector as an image acquisition component. As described above in conjunction with Figure 10, the composite dielectric gate-based dual-transistor photosensitive detector is composed of a P-type semiconductor substrate (2501), a bottom insulating dielectric layer (2506), a floating gate (2507), a top insulating dielectric layer (2508), a control gate (2509) and shallow trench isolation (STI).
[0118] Figure 26 shows an embodiment of a device that uses a composite dielectric gate dual-transistor photodetector as an image acquisition component and a composite dielectric gate transistor as a computing component. The image capture and computing components are integrated on the same wafer, while the remaining components (such as some peripheral auxiliary components) are integrated on another wafer. Device integration is achieved through silicon vias (TSVs) using three-dimensional wafer stacking technology. In Figure 26, the upper wafer implements the image acquisition and computing components (refer to the description of Figure 25, which will not be repeated here); the lower wafer implements some peripheral auxiliary components.
Claims
1. A method for imaging and computing, comprising extracting a field of view image of a target field of view and searching for a specific target in the field of view image, characterized in that: Determining a calculation core corresponding to a specific target according to an attribute of the specific target, wherein the calculation core is expressed by a weight value matrix; The computing kernel is used to perform convolution calculation on the field of view image to search and match the field of view image to obtain a feature map corresponding to the specific target.
2. The method according to claim 1, characterized in that: The calculation kernel is expressed by a weight value matrix, including: expressing the calculation kernel by at least one of the following operators: a Laplace operator, a Gaussian difference operator, a Haar feature operator, and a corner significance operator.
3. The method according to claim 1, characterized in that The computational kernel is determined according to the properties of the specific target in at least one of the following ways: Introducing existing computing kernels; Using the computational kernel obtained by neural network training; The computational kernel is obtained by using the neural tangent kernel training.
4. The method according to claim 1, characterized in that The method further includes using a perception network to calculate the confidence of the output result of the feature map, and using a meta-network to correct the parameters of the computing core and / or the perception network, wherein the confidence of the output result of the feature map is calculated using the perception network, and the parameters of the computing core and / or the perception network are corrected using the meta-network, including: Using a perception network to receive the feature map as an input value of the perception result, combining the task to be completed, and outputting the perception result corresponding to the task, and A meta-network is used to receive information related to the task, the perception network, the feature map and the computing core set as input, and output new computing cores and / or perception network parameters.
5. The method according to claim 1, characterized in that: The computing kernel is obtained by training a neural network, wherein: the input of the neural network is set to various types of images, and the output of the neural network is set to the regions of interest of the various types of images, so that after the training is completed, the neural network contains a mapping relationship from various types of images to their corresponding regions of interest, and the mapping relationship is extracted as the computing kernel.
6. The method according to claim 1, characterized in that: The computational kernel is obtained by training with a neural tangent kernel, wherein the input of an infinite-width neural network is set to various types of images, and the output of the infinite-width neural network is set to the regions of interest of the various types of images, so that after the training is completed, the infinite-width neural network contains a mapping relationship from various types of images to their corresponding regions of interest, and the mapping relationship is extracted and used as the computational kernel for neural tangent kernel training.
7. The method according to claim 5 or 6, characterized in that: The existing computing core, the computing core obtained by training with a neural network, and the computing core obtained by training with a neural tangent core are superimposed to form a new computing core, wherein the existing computing core, the computing core obtained by training with a neural network, and the computing core obtained by training with a neural tangent core are superimposed to form a new computing core, including: Sending the existing computing core to the neural network for retraining to obtain the computing core after the existing computing core is trained by the neural network; and / or Sending the existing computing kernel to the infinite width neural network for retraining to obtain the computing kernel after the existing computing kernel is trained with the neural tangent kernel; and / or Sending the existing computing core to the neural network for retraining, and then sending it to the infinite width neural network for retraining, to obtain the computing core after the existing computing core has been trained by the neural network and the neural tangent kernel; and / or The computational kernel of the neural network training is sent to the infinite width neural network for retraining, and the computational kernel of the existing neural network training computational kernel is obtained after being trained by the neural tangent kernel.
8. An apparatus for imaging and computing, comprising an image acquisition component and a computing component, characterized in that: The image acquisition component is configured to capture an image of the target field of view or extract an existing image, and use a computing core to calculate and quantify the imaged or extracted image to obtain a feature map of a specific target; The computing component is configured to: The feature map obtained by the image acquisition component is calculated, and the specific target of interest is identified and / or classified to obtain a calculation result corresponding to the specific target.
9. The device according to claim 8, characterized in that The image acquisition component comprises: a readout selection terminal, when it is set to a high level, the photosensitive unit in the image acquisition component outputs its photosensitive signal, and when it is set to a low level, the photosensitive unit in the image acquisition component does not output a photosensitive signal; The readout modulation end, when it is set to a different analog quantity, the photosensitive unit outputs the product of its photosensitive signal and the analog quantity; The readout data end is set to the calculation result of the imaging result under the action of the readout selection end and the readout modulation end to obtain the characteristic map of the specific target.
10. The device according to claim 9, characterized in that: in, The image acquisition component is configured as a composite dielectric gate dual transistor photosensitive detector component, and, The composite dielectric gate dual transistor photosensitive detector comprises a MOS-C part and a MOSFET part formed on the same P-type semiconductor substrate; and, The MOS-C part includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence on a P-type semiconductor substrate; and, The MOSFET part includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence on a P-type semiconductor substrate; The bottom insulating dielectric layer, floating gate, top insulating dielectric layer and control gate of the MOS-C part are respectively connected to the bottom insulating dielectric layer, floating gate, top insulating dielectric layer and control gate of the MOSFET part; The MOSFET part is additionally provided with a source and a drain.
11. The device according to claim 10, characterized in that: The control gate voltage signal of the composite dielectric gate dual transistor photosensitive detector component is the output signal of the readout selection end of the image acquisition component; the drain voltage signal is the output signal of the readout modulation end of the image acquisition component; and the drain current signal is the readout data end of the image acquisition component.
12. The device according to claim 11, characterized in that: The composite dielectric gate dual transistor photosensitive detector component is arrayed in the form of a NOR architecture, and is placed in a substrate (SUB) and a deep N well (DNW), and, The control gates of each row of composite dielectric gate dual transistor photodetectors form a word line (WL); the source electrodes of each column of composite dielectric gate dual transistor photodetectors form a source line (SL); the drain electrodes of each column of composite dielectric gate dual transistor photodetectors form a bit line (BL); and the composite dielectric gate dual transistor photodetector array has standby, reset, exposure, reading, programming and erasing modes; When WL, BL, SL, and SUB are all applied with zero bias voltage, and DNW is applied with positive bias voltage, the composite dielectric gate dual transistor photosensitive detector array is set in standby mode, and there is no depletion region for collecting photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual transistor photosensitive detector; When BL and SL apply zero bias, WL and SUB apply negative bias, and DNW applies positive bias, the composite dielectric gate dual transistor photosensitive detector array works in a reset state, and the photoelectrons in the P-type semiconductor substrate of the selected composite dielectric gate dual transistor photosensitive detector are all drained; When BL and SL apply zero bias, WL applies zero bias or positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate dual transistor photosensitive detector array works in an exposure state, and a depletion region is generated in the P-type semiconductor substrate of the selected composite dielectric gate dual transistor photosensitive detector to collect photoelectrons; When SL applies zero bias, WL and BL apply positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate dual transistor photosensitive detector array works in the readout state, and the drain output current in the selected composite dielectric gate dual transistor photosensitive detector is the photosensitive signal; When SL and SUB apply zero bias, WL and BL apply positive bias, and DNW applies positive bias, the composite dielectric gate dual transistor photosensitive detector array works in a programming state, and the floating gate charge in the selected composite dielectric gate dual transistor photosensitive detector is written; When WL applies a positive bias, BL, SL, and SUB apply a negative bias, and DNW applies a positive bias, the composite dielectric gate dual transistor photodetector array operates in an erased state, and the floating gate charge in the selected composite dielectric gate dual transistor photodetector is discharged.
13. The device according to claim 12, characterized in that For K R Row K C The calculation core of the column can be completed by time division multiplexing, including: Each time, the K in the i-th column R The row convolution kernel is converted into K R A pulse width modulation signal is then applied to the readout modulation end of the image acquisition component, or K R The analog voltage signal is then applied to the readout modulation end of the image acquisition component, and the readout data end of the image acquisition component is modulated by K C After the results of the times are accumulated, the calculation result is obtained, where i, K R , K C All are positive integers.
14. The device according to claim 12, characterized in that For K R Row K C The calculation core of the column can be completed by frequency division multiplexing. include: K R Row K C The convolution kernel of the column is converted to K R A pulse width modulation signal of different frequencies is then applied to the readout modulation end of the image acquisition component, or K R After applying analog voltage signals of different frequencies to the readout modulation end of the image acquisition component, the analog voltage signals are demultiplexed and accumulated at the readout data end of the image acquisition component to obtain the calculation result, where K R , K C All are positive integers.
15. The device according to claim 13 or 14, characterized in that Using K R Row K C When the calculation core of the column is used to calculate the imaging results of N rows and M columns, N-K R +1 row M-K C +1 column of feature maps; or, Ability to add P on the periphery R Row P C The filler cell with column value C assists the calculation to get N+P R -K R +1 line M+P C -K C +1 column of feature maps, and, Each time, K R The imaging results of the rows and columns are calculated. After the calculation is completed, the subsequent K R rows, where N, M, P R , P C All are positive integers.
16. The device according to claim 8, characterized in that The computing component is configured to consist of several sub-computing components and logic components, where: The sub-computing component is configured as a component for implementing a multiply-accumulate operation (MAC), and the sub-computing component includes: An input weight terminal, when it is set to increase the weight, the weight value stored in the computing component increases, and when it is set to decrease the weight, the weight value stored in the computing component decreases, wherein the weight is used for classification and / or recognition; The input data terminal, when it is set to a high level or a low level, corresponds to inputting high level data or low level data; The output data terminal is configured to output the MAC calculation result of the input weight terminal and the input data terminal.
17. The device according to claim 16, characterized in that The logic component includes a timing control component and a computing core generation component, wherein: A timing control component is configured to control the timing associated with the sub-computing component to control the normal calculation of the sub-computing component; The computing core generation component is configured to generate computing cores.
18. The device according to claim 16, characterized in that The sub-computing component is configured as a composite dielectric gate transistor, wherein: The composite dielectric gate transistor includes a bottom insulating dielectric layer, a floating gate, a top insulating dielectric layer and a control gate stacked in sequence on a P-type semiconductor substrate, with a source and a drain respectively disposed on both sides, and The floating gate storage charge amount is set as the input signal of the input weight terminal, the control gate voltage signal is set as the input signal of the input data terminal, and the drain current signal is set as the output signal of the output data terminal.
19. The device according to claim 18, characterized in that The composite dielectric gate transistors are arrayed in the form of a NOR architecture and are placed in a substrate (SUB) and a deep N well (DNW), wherein: The control gates of the composite dielectric gate transistors in each row form a word line (WL); the sources of the composite dielectric gate transistors in each column form a source line (SL); and the drains of the composite dielectric gate transistors in each column form a bit line (BL). The composite dielectric gate transistor array is configured to have standby, programming, erasing and reading modes, and, When zero bias is applied to WL, BL, SL, and SUB, and positive bias is applied to DNW, the composite dielectric gate transistor array works in a standby state, and the selected composite dielectric gate transistor does not perform any operation; When SL and SUB apply zero bias, WL and BL apply positive bias, and DNW applies positive bias, the composite dielectric gate transistor array works in a programming state, and the floating gate charge in the selected composite dielectric gate transistor is written; When WL applies a positive bias, BL, SL, and SUB apply a negative bias, and DNW applies a positive bias, the composite dielectric gate transistor array operates in an erased state, and the floating gate charge in the selected composite dielectric gate transistor is discharged; When SL applies zero bias, WL and BL apply positive bias, SUB applies negative bias, and DNW applies positive bias, the composite dielectric gate transistor photosensitive detector array operates in the readout state, and the drain output current in the selected composite dielectric gate transistor is the MAC calculation result of the input weight terminal and the input data terminal.
20. The device according to claim 16, characterized in that The sub-computing component is configured as a resistive random access memory, wherein: The resistance random access memory includes titanium nitride and hafnium oxide stacked in sequence on a metal dielectric layer; and The resistance value at both ends of titanium oxide and hafnium oxide is set as the input signal of the input weight end. The voltage signal at both ends of titanium oxide and hafnium oxide is set as the input signal of the input data end. The current signal at both ends of titanium oxide and hafnium oxide is set as the output signal of the output data end.
21. The device according to claim 20, characterized in that The resistance random access memory is formed into an array in the form of a NOR architecture, wherein: The hafnium oxide of each row of RRAM constitutes WL; Each column of RRAM is made of titanium nitride BL.
22. The device according to claim 21, characterized in that The RRAM array has standby, programming, erasing and reading modes and is configured to perform the following operations: When zero bias is applied to both WL and BL, the RRAM array works in a standby state, and the selected RRAM does not perform any operation; When WL applies a positive bias and BL applies a zero bias, the RRAM array works in a programming state, and the resistance value of the selected RRAM changes; When WL applies zero bias and BL applies positive bias, the composite dielectric gate transistor array works in the erase state, and the resistance value of the selected resistance random access memory is restored to its original state; When there is a voltage drop across WL and BL, the RRAM array operates in a read state, and the current of the selected RRAM is the MAC calculation result of the input weight terminal and the input data terminal.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, wherein when the instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Image classification method and device
CN111797881A
Image classification method and device, computer equipment and storage medium
CN112686320A
Method for processing image and generating convolution kernel, road side equipment and cloud control platform
CN113239899A
Image processing method and device, equipment, storage medium and computer program product
CN113592041A
Efficient tile mapping for row-by-row convolutional neural network mapping for analog artificial intelligence network inference
US20210374514A1
