The present disclosure claims the priority of Chinese patent application under CN202110476072.3 filed on Apr. 29, 2021. The contents of the aforementioned application are incorporated herein by reference in its entirety.
The present application relates to the technical field of integrated circuits, in particular to a circuit for extracting features, a neural network and a signal processing system.
With the rapid development of society, the number of various electronic application devices is exploding, and these electronic devices are becoming more and more intelligent which also poses strict requirements on the power consumption and cost of chips. These intelligent electronic devices often adopt small-capacity batteries to balance factors such as cost, size, and weight. In order to avoid unacceptable material costs and labor costs caused by frequent replacement of batteries, chips need to have extremely low power consumption.
A data processing method used in the traditional chip is synchronous, and the traditional chip has circuit designed using a traditional synchronous digital circuit design method. In contrast, asynchronous data processing methods have proven to have an advantage of power consumption. The intelligent chip needs to perform feature extraction first when performing intelligent processing on input analog signal. A traditional feature extraction method includes firstly converting a time domain signal into a frequency domain signal (for example, through a fast Fourier transform circuit, etc.), and then performing feature extraction in the frequency domain. The process is completed through a synchronous data processing method and converting from the time domain to the frequency domain will result in additional power consumption overhead.
In recent years, an ADC (Analog-to-Digital Converter) based on a new Level Crossing (LC) sampling mode, namely LC-ADC, has been widely developed. The ADC based on the new sampling mode only performs sampling when the signal changes. The more drastic the signal change, the higher the sampling frequency, and the ADC has a very low sampling frequency to maintain ultra-low power consumption when the signal is smooth. Therefore, the ADC based on an event-driven adaptive sampling mode has ultra-low power advantages in applications such as Internet of Things. The output of this ADC is in the form of asynchronous pulses, that is, asynchronous pulse coding, i.e., time-domain quantization coding, is performed on the analog signal, and two signals are output by time-domain quantization code. The output pulse request signal Req represents that the ADC has performed a sampling once, and an output pulse direction signal Dir represents that the change direction of the analog signal is increasing, and Dir is zero when the direction is decreasing. Therefore, when this sampling mode is used for information collection in electronic device chips, how to directly extract feature information contained in the two asynchronous pulse signals in the time domain is a technical problem that needs to be considered.
The present application provides a circuit for extracting features, a neural network and a signal processing system which can solve the technical problem of directly performing feature extraction on two asynchronous pulse signals in a time domain.
The present application provides a circuit for extracting features, including: one or more feature extracting units, configured to extract and classify an instant range of change (IROC) feature from an inputs of an asynchronous pulse coding in the time domain, wherein the inputs of the asynchronous pulse coding comprise a pulse request signal and a pulse direction signal obtained by performing time-domain quantization and coding on an analog signal.
The present application further provides a pulse neural network, including the above circuit for extracting features.
The present application further provides a signal processing system, including the above circuit for extracting features.
By the circuit for extracting features according to the embodiment of the present application, the instant range of change of an analog input of the asynchronous pulse coding can be directly extracted and classified in the time domain, and the instant range of change is used as the feature thereof. By adopting this method, converting from the time domain to the frequency domain required by the traditional feature extraction process is avoided, the power consumption overhead is reduced and the signal range of change, also known as the time differential of the signal, contains all the information of the signal in the time domain, and thus the method for extracting the feature of the signal provides lower power consumption without losing information.
In order to more clearly illustrate the technical solutions disclosed in the embodiments of the present application or the prior art, drawings needed in the descriptions of the embodiments or the prior art will be briefly described below. The drawings in the following description are only some of the embodiments of the present application, and other drawings can be obtained according to these drawings without any creative effort for those skilled in the art.
In order to illustrate the objectives, technical solutions and advantages of the present application clearly, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. The described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present utility model without any creative effort fall within the protection scope of the present utility model.
In order to explain the technical solution of the present application clearly, the embodiments of the present application are described in detail in conjunction with the accompanying drawings
Physical signals collected by various sensor nodes have information in two dimensions of amplitude and time, and the differential of amplitude of signal to time contains information of two dimensions, and the integration of differential to time can also reconstruct the signal. Therefore, the differential can represent a feature of the signal in the time domain.
The input of the asynchronous pulse coding is a pulse request signal and a pulse direction signal obtained by performing time-domain quantization and coding on an analog signal.
It should be noted that: the above-mentioned circuit for extracting features may also include a traditional circuit for extracting features.
When LC-ADC performs asynchronous quantization and encoding on analog signals, coding is performed generally based on equal amplitude, that is, a pulse request signal Req pulse is output when the analog signal change by the same amplitude LSB and the pulse direction signal Dir is configured to record whether the magnitude of the pulse increases or decreases.
In order to make the classification more accurate, a plurality of feature extracting units are generally disposed in the circuit to correspond to a plurality of time thresholds.
When the number of feature extracting units is multiple, these feature extracting units are connected in parallel, that is, all feature extracting units have the same input. The plurality of feature extracting units are disposed to mainly classify input features of asynchronous pulse coding, and the classified features are used to facilitate subsequent data processing. Therefore, each feature extracting unit is configured to extract an instant range of change feature satisfying an elapsed time since an analog signal collected by the sensor node is changed by a fixed amplitude is within the preset time intervals and different feature extracting units correspond to different preset time intervals. That is, each feature extracting unit is configured to extract an instant range of change feature of the pulse request signal satisfying the time interval of adjacent pulses in the pulse request signal is within the preset time interval, the time interval of adjacent pulses in the pulse request signal represents an elapsed duration Δtreq since the analog signal is changed by a fixed amplitude LSB. Description is made below by configuring 7 thresholds as an example.
The IROC circuit for extracting features includes 8 parallel IROC units and 16 output channels. Req and Dir are the two inputs of the circuit, and the bias voltage Bias is used as a control signal and used to adjust the time threshold. Seven binary configurable time thresholds (20Th., 21Th . . . 26Th) are stored in the circuit, and these seven thresholds divide a time axis into 8 intervals, namely “<20 Th.”, “20Th to 21Th”, . . . , “>26Th”. By comparing each Δtreq with the above seven thresholds in parallel, the IROC feature will be mapped to an interval of the above eight intervals, a positive or negative sign of the instant range of change of the signal is detected by Dir and the IROC feature is finally mapped to a category of sixteen categories.
In a specific application, the instant range of change feature extracted by the circuit can be obtained by calculating the differential of the change amplitude of the signal to time. In order to adapt the output result of the asynchronous pulse coding of the analog signal in the front-end circuit and simplify the circuit for extracting features, LSB/Δtreq is used as the instant range of change feature and then extracted and classified in the embodiment of the present application.
In present embodiment, each feature extracting unit has three input signals and two output signals. The three input signals include: a time-domain quantized and coded pulse request signal Req, a time-domain quantized and coded pulse direction signal Dir, and a bias voltage signal Bias for adjusting the time threshold. The two output signals are used to represent a classification result of the instant range of change feature of the signal whose feature extraction has been completed.
In the present embodiment, in order to facilitate the simple implementation of the circuit, the pulse request signal can be converted into two ways complementary wide pulse signals by detecting a rising edge of each pulse in the pulse request signal, the falling edge can also be detected in practical applications, so that the width of each wide pulse in each way wide pulse signal represents the time interval Δtreq between adjacent pulses after the analog signal is coded, that is, an elapsed time Δtreq since the analog signal is changed by a fixed amplitude LSB. The wide pulses can be screened and classified by detecting that the time interval Δtreq is located in which time section mentioned above. The wide pulses belonging to this time interval can be filtered out since different IROC units correspond to different time intervals and thus the corresponding instant range of change features +LSB/Δtreq and −LSB/Δtreq can be extracted subsequently. The same instant range of change features +LSB/Δtreq and −LSB/Δtreq are further classified and counted by sign detecting and pulse counting.
In the embodiment shown in
As shown in the timing diagram shown in
Specifically, the pulse-shaping circuit converts one way Req short pulse signal into two ways complementary wide pulses signals, that is, a first wide pulses signal and a second wide pulses signal. Each wide pulse of wide pulses signals represents that the amplitude of the signal is changed by one LSB, and the width of the wide pulse represents the Δtreq to be detected. Each of two duration detection modules is configured to compare every input pulse of wide pulses signal with the configured time threshold and then output a pulse when the input pulse width satisfies the time threshold condition. Two ways output signals of the duration detection module are combined into one way pulse signal through the adder used for the subsequent sign detection step. Dir pulse indicates that a direction of the signal of the LC-ADC at the time of sampling is positive. If there is no Dir pulse at the time of sampling, it means that the direction of the signal is negative. Therefore, the sign detection circuit assigns the output pulse of the adder to two counters according to the value of Dir; the two counters are configured to count numbers of +LSB/Δtreq and −LSB/Δtreq, respectively.
Based on the above embodiment, a plurality of feature extracting units connected in parallel process time-domain pulse signals at the same time, divide values of the instant range of change of the analog signal into N types, and divide the direction of the analog signal into two types. The instant range of change features are divided into 2N types and output, in which N is the number of feature extracting units connected in parallel and is a positive integer greater than or equal to 2.
When the number of N feature extracting units connected in parallel increases, the number of classifications increases accordingly. The more the number of classifications, the finer the information amount extracted and the larger the amount of classified information processed simultaneously.
In the above embodiment, the configured time threshold can be controlled by a biased fixed voltage signal, or can be controlled by a digital signal method.
In practical applications, the feature extracting unit determines a preset time interval for extracting the instant range of change feature according to the time threshold. Each feature extracting unit can pre-store a corresponding time interval, or dynamically configure a time threshold according to requirements for classification accuracy, so as to dynamically adjust the preset time interval for extracting the instant range of change feature.
By the circuit for extracting time domain features according to the embodiment of the present application, the instant range of change of an analog input of the asynchronous pulse coding can be directly extracted and classified in the time domain, and the instant range of change is used as the feature thereof. By adopting this method, converting from the time domain to the frequency domain required by the traditional feature extraction process is avoided, the power consumption overhead is reduced and the signal range of change, also known as the time differential of the signal, contains all the information of the signal in the time domain, and thus the method for extracting the feature of the signal provides lower power consumption without losing information. It has great prospects in the fields of a spiking neural network or a continuous time domain system.
An embodiment of the present application further provides a spiking neural network, including the circuit for extracting features mentioned in above embodiment. The circuit for extracting features may be used as an internal module in an asynchronous spiking neural network.
An embodiment of the present application further provides a digital signal processing system, including the above circuit for extracting features. The circuit for extracting features may be used as an internal module in a continuous time digital signal processing system.
Digital signals include a digitized voice, human biological signals, environmental monitoring signals, security signals and/or human-computer interaction signals.
The environmental monitoring signal includes light, temperature, humidity and/or pH information, the human-computer interaction signals include gesture recognition and/or facial expression recognition information, and the security signals include smoke alarm, fingerprint recognition and/or image recognition information.
Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that they can still modify the technical solutions described in the foregoing embodiments and make equivalent replacements to a part of the technical features and these modifications and substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.
Number | Date | Country | Kind |
---|---|---|---|
202110476072.3 | Apr 2021 | CN | national |