Neuron circuit based on memristor, spiking neural network device and computing equipment
Through the neuron circuit based on the volatile bidirectional threshold switching memristor and the charge and discharge loop structure of resistance and capacitance, the inaccuracy problem of the traditional pulse coding method under the interference of noise accumulation is solved, and higher pulse triggering is achieved. accuracy and circuit simplification.
Patent Information
- Application Number
- CN202410665052.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-27
AI Technical Summary
The traditional pulse coding method is susceptible to noise accumulation interference when processing analog signals, resulting in inaccuracy in pulse triggering.
A neuron circuit based on a volatile bidirectional threshold transition memristor is designed. Through the charge and discharge loop structure of resistors and capacitors, the output pulse is triggered only when the signal change is large enough, ignoring slowly changing noise, ensuring the accuracy of pulse conversion. accuracy.
It effectively avoids the interference of noise accumulation on pulse conversion, improves the accuracy of pulse triggering, simplifies the circuit structure, and reduces dependence on complex digital circuits.
Smart Images

Figure CN118627561A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field related to brain-like bionics, and more specifically, relates to a neuron circuit, a pulse neural network device, and a computing device based on a memristor. Background Art
[0002] Traditional neural networks consume huge amounts of energy during training, and their learning flexibility is far inferior to that of the human brain. Therefore, inspired by the brain's information processing mechanism, researchers have proposed a new generation of artificial neural networks, namely pulse neural networks. Pulse neural networks use pulse signals with event-driven characteristics as information carriers, which are closer to biological nervous systems. Therefore, in the application of pulse neural networks, it is necessary to consider designing a suitable pulse encoding method to convert the perceived environmental information analog signal into a pulse signal in the form of an event, and the process should highlight the part where the event occurs as much as possible and ignore the interference of noise.
[0003] Usually, the occurrence of an event will cause a drastic change in the environmental signal, while noise will not. Therefore, in the process of pulse conversion, it is necessary to ignore the slow change of the signal and focus on the sudden change in it to filter out the noise. The traditional pulse encoding method that relies on complex CMOS circuits such as LC-ADC is frequency encoding, which converts the absolute change of the analog signal amplitude into the frequency of the pulse, thereby realizing the change of the analog signal to the pulse signal. The traditional pulse encoding method will continuously detect the input analog signal, and when its absolute change exceeds the preset range, a pulse representing the event information is generated. During long-term monitoring, the slow change of the analog signal will continue to accumulate, and the traditional asynchronous pulse encoding technology that relies on complex CMOS circuits such as LC-ADC does not have the function of ignoring slow-changing information. When the slow change (noise) accumulates to exceed the preset range, it will cause erroneous pulse emission. Summary of the invention
[0004] In response to the above defects or improvement needs of the prior art, the present application provides a neuron circuit, a pulse neural network device, and a computing device based on a memristor, the purpose of which is to avoid the interference of noise accumulation on pulse conversion and improve the accuracy of pulse triggering.
[0005] To achieve the above object, according to one aspect of the present application, a neuron circuit based on a memristor is provided, which includes: a volatile bidirectional threshold transition memristor TS, a resistor R1, a resistor R2, and a capacitor C1, a capacitor C2;
[0006] The first end of the resistor R1 is used as a signal input end for receiving a step wave signal, wherein the step wave signal is obtained by sampling and holding an analog voltage signal of the environment, and the second end of the resistor R1 is connected to the first end of the volatile bidirectional threshold transition memristor TS;
[0007] The first end of the capacitor C1 is connected to the first end of the volatile bidirectional threshold transition memristor TS, and the second end of the capacitor C1 is grounded;
[0008] The first end of the capacitor C2 is connected to the second end of the volatile bidirectional threshold transition memristor TS, and the second end of the capacitor C2 is connected to the first end of the resistor R2;
[0009] The first end of the resistor R2 is a signal output end of the neuron circuit, and the second end of the resistor R2 is grounded.
[0010] In some embodiments, the resistive material of the volatile bidirectional threshold transition memristor TS is any one of VO2, NbO2, and OTS materials.
[0011] In some embodiments, the volatile bidirectional threshold transition memristor TS is a Mott insulator memristor.
[0012] In some embodiments, the capacitances of the capacitors C1 and C2 are the same.
[0013] In some embodiments, the resistance of the resistor R1 is of the same order of magnitude as the resistance of the memristor in the high-resistance state, and the resistance of the resistor R2 is two orders of magnitude smaller than the resistance of the resistor R1.
[0014] In some embodiments, the resistance value of the resistor R1 ranges from 2000Ω to 4000Ω, and the resistance value of the resistor R2 ranges from 10Ω to 20Ω.
[0015] In some embodiments, the neuron circuit also includes a sensor, which contains a sampling and holding subcircuit. The sensor is used to collect environmental information and first convert the collected environmental signal into a model voltage signal, and then convert the analog voltage signal into the step wave signal through the sampling and holding circuit and input it into the first end of the resistor R1.
[0016] According to another aspect of the present application, a pulse neural network device is provided, comprising at least one neuron circuit, wherein the neuron circuit comprises any memristor-based neuron circuit as described above.
[0017] According to another aspect of the present application, a computing device is provided, on which the neural network device as described above is deployed, and the computing device also includes an interface, the interface is used to transmit received data to be calculated to the neural network device; and obtain calculation results from the output end of the neural network.
[0018] In general, compared with the prior art, the above technical solutions conceived by the present application mainly have the following beneficial effects:
[0019] 1. The memristor-based neuron circuit provided in the present application comprises a memristor TS, a resistor R1, a resistor R2, a capacitor C1, and a capacitor C2, wherein the resistor R1 and the capacitor C1 form a first charge and discharge loop, the resistor R1, the memristor TS, the capacitor C2, and the resistor R2 constitute a second charge and discharge loop, and the charge and discharge speed of the first charge and discharge loop is greater than the charge and discharge speed of the second charge and discharge loop. When the signal input terminal receives a signal with a positive mutation, the first charge and discharge loop quickly charges the capacitor C1, so that the potential of the first end of the memristor TS increases rapidly, while the second charging loop charges slowly because the memristor TS is in a high resistance state, and the potential of the second end of the memristor TS is still low. In this way, if the potential difference across the memristor TS exceeds its threshold, the memristor TS changes from a high resistance state to a low resistance state, the capacitor C2 charges quickly, the signal output terminal outputs a positive pulse, and the potential difference across the memristor TS decreases, and the memristor TS returns to a high resistance state; if the potential difference across the capacitor C2 and the memristor TS does not exceed its threshold, the state of the memristor TS remains unchanged, and a pulse cannot be triggered at the signal output terminal. Similarly, when the signal input terminal receives a signal with a negative sudden change, the first charge and discharge loop quickly discharges the capacitor C1, causing the potential of the first end of the memristor TS to decrease rapidly, while the second charging loop discharges slowly because the memristor TS is in a high resistance state, and the potential of the second end of the memristor TS is still high. In this way, if the potential difference across the memristor TS exceeds its threshold, the memristor TS changes from a high resistance state to a low resistance state, the capacitor C2 discharges quickly, the signal output terminal outputs a negative pulse, and the potential difference across the memristor TS decreases, and the memristor TS returns to a high resistance state; if the potential difference across the capacitor C2 and the memristor TS does not exceed its threshold, the state of the memristor TS remains unchanged, and a pulse cannot be triggered at the signal output terminal. Therefore, through the above neuron circuit, only when the signal change at the signal input end is large enough, can the resistance state of the memristor TS be triggered to change, thereby triggering the output pulse. In this way, for environmental noise, since it only causes a slow change in the signal, it cannot trigger the resistance state of the memristor TS to change, that is, it cannot trigger the output pulse, thereby avoiding the interference of noise accumulation on pulse conversion and improving the accuracy of pulse triggering.
[0020] 2. In one embodiment, the capacitances of capacitors C1 and C2 are the same. Sampling the same capacitance can reduce circuit parameters and simplify the capacitance value analysis for input signals with different frequencies and sampling intervals.
[0021] 3. In one embodiment, the value of resistor R1 is equivalent to that of the memristor, so that the memristor voltage divider exceeds the threshold voltage and ensures a lower capacitance time constant to ensure the operating frequency of the neuron circuit. Resistor R2 is used to convert current information into voltage information, and its resistance is much smaller than that of the memristor to reduce its voltage divider. In a specific example, the value range of resistor R1 is preferably 2000Ω to 4000Ω, and the resistance range of resistor R2 is preferably 10Ω to 20Ω. Within this range, event information can be converted into a reasonable memristor voltage divider, so that the event information threshold has a large selection space. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a circuit diagram of a neuron circuit based on a memristor in an embodiment of the present application;
[0023] Figure 2 is an IV characteristic curve diagram of a volatile bidirectional threshold transition memristor TS in an embodiment of the present application;
[0024] Figure 3 1 is a schematic diagram of the output of a memristor-based neuron circuit under square wave excitation of different intensities in an embodiment of the present application;
[0025] Figure 4 Schematic diagram of the output of a memristor-based neuron circuit under sinusoidal wave excitation in one embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.
[0027] like Figure 1 1 is a circuit diagram of a memristor-based neuron circuit in an embodiment of the present application. The neuron circuit includes a volatile bidirectional threshold transition memristor TS, a resistor R1, a resistor R2, and a capacitor C1, a capacitor C2.
[0028] The first end of the resistor R1 is used as a signal input end for receiving a step wave signal, where the step wave signal is obtained by sampling and holding an analog voltage signal of the environment, and the second end of the resistor R1 is connected to the first end of the volatile bidirectional threshold transition memristor TS;
[0029] A first end of the capacitor C1 is connected to a first end of the volatile bidirectional threshold transition memristor TS, and a second end of the capacitor C1 is grounded;
[0030] A first end of the capacitor C2 is connected to a second end of the volatile bidirectional threshold transition memristor TS, and a second end of the capacitor C2 is connected to a first end of the resistor R2;
[0031] The first end of the resistor R2 is a signal output end of the neuron circuit, and the second end of the resistor R2 is grounded.
[0032] like Figure 2 The IV characteristic curve of the volatile bidirectional threshold transition memristor TS in one embodiment of the present application is shown. The volatile bidirectional threshold transition memristor TS has a threshold voltage and a holding voltage that are positive and negative symmetrical. When the voltage of the memristor TS increases to exceed the threshold voltage of the device, the device will switch to a low resistance state; at this time, when the voltage of the memristor TS decreases to below the holding voltage, the memristor TS will automatically return to a high resistance state. The memristor has the same characteristics in the positive and negative voltage regions.
[0033] In the above neuron circuit, resistor R1 and capacitor C1 form the first charge-discharge loop, resistor R1, memristor TS, capacitor C2 and resistor R2 form the second charge-discharge loop, and the charge-discharge speed of the first charge-discharge loop is greater than that of the second charge-discharge loop. When the input signal changes, it can be seen from Kirchhoff's law that during the period of restoring the steady state corresponding to the new input signal, the voltage division of each part of the circuit will change, and capacitors C1 and C2 will start to charge and discharge, and readjust the voltage distribution in the circuit. In this process, the maximum potential difference across the memristor with positive and negative symmetrical dual threshold characteristics is proportional to the change amplitude of the input signal. When the signal change amplitude exceeds the threshold, the potential difference across the memristor exceeds the threshold voltage, thereby changing to a low resistance state, causing the circuit to generate pulses. After that, the low-resistance memristor constructs a low-resistance path between capacitors C1 and C2, accelerating its charge-discharge process, causing the voltage across the memristor to drop rapidly, thereby returning to a high-resistance state.
[0034] It can be understood that the detection threshold of whether the step wave signal of the neuron circuit triggers a pulse depends on the resistance, capacitance and memristor resistance parameters in the neuron circuit. The circuit parameters can be adjusted to adapt to analog signals of different ranges.
[0035] Therefore, the above neuron circuit can process the event information contained in the analog information and convert it into a pulse signal output. The processed analog information can be a step wave signal after the sampling and holding circuit. Whether the neuron circuit pulse is issued is determined by the rate of change of the input signal. When the input signal remains unchanged or the rate of change is low, the input signal will not trigger the response of the neuron circuit. Only when the input signal change rate exceeds the threshold, the neuron circuit will issue a pulse signal corresponding to the event information. In this way, it has the following advantages: First, compared with traditional threshold detection methods such as LC-ADC, the neuron circuit in this application can ignore the slowly changing part of the input signal, thereby avoiding the interference caused by the slow change of the overall signal, so that the generated pulse signal response focuses on the event itself; second, the pulse generation of this application relies on the symmetrical dual threshold characteristics, volatility characteristics and differences in the charging and discharging speeds of the capacitor of the memristor, without the need for ADC / DAC and complex digital circuits, which greatly simplifies the circuit structure and saves overhead.
[0036] In one embodiment, the resistive material of the volatile bidirectional threshold transition memristor TS is any one of VO2, NbO2, and OTS materials.
[0037] In one embodiment, the volatile bidirectional threshold transition memristor TS is a Mott insulator memristor.
[0038] In one embodiment, the neuron circuit also includes a sensor, which contains a sampling and holding subcircuit. The sensor is used to collect environmental information and first convert the collected environmental signal into a model voltage signal, and then convert the analog voltage signal into a step wave signal through the sampling and holding circuit to the first end of the input resistor R1.
[0039] In one embodiment, the input signal is a sine wave with an amplitude of 7V and a frequency of 200 Hz. The sampling interval should be comparable to the duration of the event to avoid multiple acquisitions of a single event. Preferably, the sampling interval is 0.1 ms.
[0040] In one embodiment, the capacitance of capacitor C1 and capacitor C2 is the same, and the same capacitance is sampled, which can reduce the parameters of the circuit and simplify the capacitance value analysis of input signals with different frequencies and sampling intervals. In a specific example, the capacitance value range of capacitor C1 and capacitor C2 is preferably 8nf to 10nf. Within this range, a reasonable event information discrimination threshold and a faster relaxation time can be obtained to adapt to event information of different frequencies, while avoiding multiple pulses caused by excessive single event stimulation.
[0041] In one embodiment, the value of resistor R1 is equivalent to that of the memristor, so that the memristor voltage divider exceeds the threshold voltage and ensures a lower capacitance time constant to ensure the operating frequency of the neuron circuit. Resistor R2 is used to convert current information into voltage information, and its resistance is much smaller than that of the memristor to reduce its voltage divider. In a specific example, the value range of resistor R1 is preferably 2000Ω to 4000Ω, and the resistance range of resistor R2 is preferably 10Ω to 20Ω. Within this range, event information can be converted into a reasonable memristor voltage divider, so that the event information threshold has a large selection space.
[0042] In one embodiment, the threshold voltage range of the volatile bidirectional threshold transition memristor TS is preferably 0.5V to 1V, and the holding voltage range is preferably 0.2V to 0.3V. Within this range, it can be ensured that the neuron circuit can withstand events of greater intensity while only generating one pulse emission, thereby reducing dependence on large capacitors and enabling the neuron circuit to have a faster operating frequency.
[0043] Figure 3 Schematic diagram of the output of a memristor-based neuron circuit under square wave excitation of different intensities in one embodiment of the present application. Figure 3 The upper part shows the output pulse signal of the neuron circuit, and the lower part shows the input analog signal through the holding circuit. It can be seen that when the input signal is a pulse with a very low amplitude, the neuron circuit does not respond. Only when the input signal amplitude is greater than the threshold, the neuron circuit will output the corresponding event pulse signal. After that, a linear signal is converted into a step wave input circuit through sampling and holding, and a uniform event pulse output can be obtained. Generally speaking, the neuron circuit will only generate one pulse emission corresponding to an event information.
[0044] Figure 4 Schematic diagram of the output of a memristor-based neuron circuit under sinusoidal wave excitation in one embodiment of the present application. Figure 4 The upper part shows the output pulse signal of the neuron circuit, and the lower part shows the input analog signal through the holding circuit. It can be seen that the sampling and holding circuit collects external analog signals at a fixed frequency and inputs them into the neuron circuit in the form of a sine wave. As the phase of the sine wave changes, its signal change rate also changes. At a certain sampling rate, when the change rate of the sine wave signal exceeds the threshold of the neuron circuit, the neuron circuit begins to generate uniform pulse emission.
[0045] The present application also relates to a neural network device, which may include multiple neuron circuits, which may be arranged in layers, and each layer of neuron circuits may include at least one neuron circuit. The output end of a neuron circuit in a previous layer of neuron circuits may be connected to the input end of a neuron circuit in a subsequent layer of neuron circuits.
[0046] The present application also relates to a computing device, on which a neural network device may be deployed. The computing device may also include an interface, which may receive data to be calculated, input the data to be calculated into the neural network device, and obtain the calculation result output by the neural network device and send the calculation result.
[0047] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. It should be noted that "in one embodiment", "for example", "for example", etc. in this application are intended to illustrate this application, rather than to limit this application.
[0048] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A memristor-based neuron circuit, characterized in that: include: Volatile bidirectional threshold change memristor TS, resistor R1, resistor R2 and capacitor C1, capacitor C2; The first end of the resistor R1 is used as a signal input end for receiving a step wave signal, wherein the step wave signal is obtained by sampling and holding an analog voltage signal of the environment, and the second end of the resistor R1 is connected to the first end of the volatile bidirectional threshold transition memristor TS; The first end of the capacitor C1 is connected to the first end of the volatile bidirectional threshold transition memristor TS, and the second end of the capacitor C1 is grounded; The first end of the capacitor C2 is connected to the second end of the volatile bidirectional threshold transition memristor TS, and the second end of the capacitor C2 is connected to the first end of the resistor R2; The first end of the resistor R2 is a signal output end of the neuron circuit, and the second end of the resistor R2 is grounded.
2. The memristor-based neuron circuit according to claim 1, characterized in that: The resistive material of the volatile bidirectional threshold transition memristor TS is any one of VO2, NbO2 and OTS materials.
3. The memristor-based neuron circuit according to claim 2, characterized in that: The volatile bidirectional threshold transition memristor TS is a Mott insulator memristor.
4. The memristor-based neuron circuit according to claim 1, characterized in that: The capacitances of the capacitors C1 and C2 are the same.
5. The memristor-based neuron circuit according to claim 1, characterized in that: The resistance value of the resistor R1 is of the same order of magnitude as the resistance value of the memristor in the high resistance state, and the resistance value of the resistor R2 is two orders of magnitude smaller than the resistance value of the resistor R1.
6. The memristor-based neuron circuit according to claim 5, characterized in that: The resistance value of the resistor R1 ranges from 2000Ω to 4000Ω, and the resistance value of the resistor R2 ranges from 10Ω to 20Ω.
7. The memristor-based neuron circuit according to claim 1, characterized in that: The neuron circuit also includes a sensor, which contains a sampling and holding subcircuit. The sensor is used to collect environmental information and first convert the collected environmental signal into a model voltage signal, and then convert the analog voltage signal into the step wave signal through the sampling and holding circuit and input it into the first end of the resistor R1.
8. A spiking neural network device, comprising at least one neuron circuit, characterized in that: The neuron circuit comprises a memristor-based neuron circuit as described in any one of claims 1-7.
9. A computing device, characterized in that The computing device is provided with the neural network device as claimed in claim 8, and the computing device further comprises an interface, wherein the interface is used to transmit the received data to be calculated to the neural network device; And obtain the calculation result from the output end of the neural network.
Citation Information
Patent Citations
Memristor-based neuron circuit with homeostatic plasticity
CN107742153A
Neuron analog circuit and neural network device
CN112598124A
Self-adaptive neuron circuit based on memristor
CN112906880A
Self-adaptive bionic neuron circuit and bionic neuron self-adaptive simulation method
CN114648108A
Memristor-based VFL-RELU spiking neuron circuit
CN114742217A
Cited By
Event trigger type neuron circuit based on volatile memristor
CN119358612A
Reconfigurable brain-like neuron circuit based on fast and slow circuit
CN119623542A
