Double-end memristor signal acquisition circuit, object identification system and method
By designing a double-terminal memristor signal acquisition circuit and an object recognition neural network hardware acceleration system constructed with FPGA, the problem of insufficient integration of memristor and actual circuits was solved, and high-speed, low-power signal acquisition and object recognition were achieved, improving Improve the computing efficiency and recognition accuracy.
Patent Information
- Application Number
- CN202411151478.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-29
AI Technical Summary
In the existing technology, the combination of memristors and actual circuits is insufficient, and there is a lack of peripheral circuit systems with high computing capabilities, making it impossible to effectively utilize the storage and calculation integration characteristics and hardware acceleration capabilities of memristors.
A double-terminal memristor signal acquisition circuit is designed, including a differential amplification circuit and an acquisition circuit. The control chip applies a pulse excitation signal to the memristor to collect the resistance change trend, and combines it with FPGA to build an object recognition neural network hardware acceleration system. Update a pre-trained object recognition neural network.
Achieved stable and accurate collection of double-ended memristor signals under non-laboratory conditions, built a universal peripheral circuit, and used a 24-bit ADC for data collection, ensuring the original accuracy of the data and achieving high speed and low power consumption. Calculation, and the low-power consumption characteristics of memristors are applied to neural networks, which improves computing efficiency and recognition accuracy.
Smart Images

Figure CN118866052A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of memristors, and in particular to a two-terminal memristor signal acquisition circuit, an object recognition system and a method. Background Art
[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.
[0003] Memristors have been successfully self-made. After more than a decade of development, they have become one of the devices with the greatest potential for successfully realizing integrated storage and computing, and have become the forefront of research. Scientists use memristors to realize brain-like synaptic bionic functions and promote the development of neural networks.
[0004] In practical applications, memristors can be divided into digital memristors and analog memristors according to the change of resistance state. Digital memristors can mutate between two resistance states. When voltage is applied, the resistance state of the memristor can switch between high resistance state (HRS) and low resistance state (LRS), which is an effective way to achieve high-density and low-power storage. Analog memristors can continuously change between multiple resistance states under voltage excitation. This gradual conductivity phenomenon can simulate the behavior of biological synapses in the human body, making it possible to build artificial electronic synapses and realize neuromorphic computing. As we all know, neuromorphic computing systems are new computing modes that can achieve parallel computing, high efficiency and low power consumption, and are an important means to build the next generation of computer architecture.
[0005] However, at present, memristors still have the following problems in application:
[0006] (1) Currently, most memristors are still at the theoretical simulation level and have not been combined with actual circuits. However, memristors need to be paired with peripheral circuits to achieve storage and computing integration. Currently, there is no commonly used peripheral circuit system combined with memristors. At the same time, the peripheral circuit combined with memristors also needs to have high enough computing power to match the high computing power of memristors.
[0007] (2) After driving the memristor, the peripheral circuit system did not combine the hardware acceleration capability brought by the storage and computing characteristics of the memristor with actual scenarios for application. Summary of the invention
[0008] In order to overcome the deficiencies of the prior art, the present invention provides a two-terminal memristor signal acquisition circuit, an object recognition method and a system, which can stably acquire two-terminal memristor signals and ensure the accuracy of the acquired signals.
[0009] In a first aspect, the present invention provides a two-terminal memristor signal acquisition circuit;
[0010] A two-terminal memristor signal acquisition circuit, comprising a differential amplifier circuit and an acquisition circuit electrically connected to the memristor;
[0011] The acquisition circuit is electrically connected to the differential amplifier circuit, applies a pulse excitation signal to the memristor via the differential amplifier circuit, and acquires a resistance change trend of the memristor caused by the pulse excitation signal.
[0012] In a second aspect, the present invention provides an object recognition system based on a memristor;
[0013] A memristor-based object recognition system, based on the above two-terminal memristor signal acquisition circuit, includes a control chip, a two-terminal memristor signal acquisition circuit and a memristor;
[0014] The control chip is electrically connected to the two-terminal memristor signal acquisition circuit, and the two-terminal memristor signal acquisition circuit is electrically connected to the memristor;
[0015] The control chip applies a pulse excitation signal to the memristor via the two-terminal memristor signal acquisition circuit, and acquires the resistance change trend of the memristor caused by the pulse excitation signal, so as to update the pre-trained object recognition neural network according to the resistance change trend.
[0016] In a third aspect, the present invention provides an object recognition method based on a memristor;
[0017] A memristor-based object recognition method, based on the above-mentioned memristor-based object recognition system, comprises the following steps:
[0018] Obtain an image of an object to be identified;
[0019] Taking the image of the object to be identified as input, processing it through an object recognition neural network to obtain an object recognition result;
[0020] The object recognition neural network is updated by utilizing the resistance change trend of the memristor due to a pulse excitation signal, wherein the pulse excitation signal is applied to the memristor by a control chip through a two-terminal memristor acquisition circuit.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] 1. The technical solution provided by the present invention builds a peripheral circuit that is universally used for two-terminal memristor signal acquisition, and does not rely on laboratory equipment conditions. In most cases, it is universal for all two-terminal memristors. The amplified signal uses a 24-bit ADC for data acquisition to maximize the original accuracy of the data and achieve high-speed and low-power computing.
[0023] 2. The technical solution provided by the present invention uses FPGA to build a hardware acceleration system for object recognition neural network, combines it with memristor, two-terminal memristor signal acquisition circuit, image acquisition module and display module to build an object recognition system, and applies the low power consumption characteristics of memristor to neural network. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0025] Figure 1 A circuit diagram of a differential amplifier circuit in a two-terminal memristor signal acquisition circuit provided by an embodiment of the present invention;
[0026] Figure 2 A circuit diagram of a collection circuit in a two-terminal memristor signal collection circuit provided in an embodiment of the present invention;
[0027] Figure 3 A schematic diagram of the architecture of an object recognition neural network provided by an embodiment of the present invention;
[0028] Figure 4 A weight distribution interval statistical diagram of an object recognition neural network provided by an embodiment of the present invention;
[0029] Figure 5 A data diagram of the recognition accuracy of each category by the object recognition neural network provided by an embodiment of the present invention;
[0030] Figure 6 A schematic diagram of the use process of a memristor-based object recognition system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0032] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0033] Embodiment 1
[0034] Since the initial resistance state of a two-terminal memristor is very high and the resistance variation range is large after voltage is applied, the electrical characteristics test of the memristor depends on laboratory equipment conditions. The prior art lacks a universal peripheral circuit combined with a memristor to achieve high-speed and low-power computing. Therefore, the present invention provides a two-terminal memristor signal acquisition circuit, which can read, collect and save the signal output by the memristor under non-laboratory conditions.
[0035] Next, combine Figure 1-Figure 2 , a two-terminal memristor signal acquisition circuit disclosed in this embodiment is described in detail.
[0036] The two-terminal memristor signal acquisition circuit comprises a differential amplifier circuit and an acquisition circuit electrically connected to the memristor, the differential amplifier circuit comprises a voltage divider resistor, a first operational amplifier, a second operational amplifier and a third operational amplifier, and the acquisition circuit comprises an analog-to-digital conversion module.
[0037] like Figure 1 As shown, the voltage-dividing resistor is connected in series with the memristor, and the negative electrode of the memristor is grounded. In actual application, the acquisition circuit receives the pulse excitation signal sent by the control chip and inputs it to the positive electrode of the memristor through the voltage-dividing resistor. The first operational amplifier and the second operational amplifier are used as voltage followers, the positive input terminal of the first operational amplifier is electrically connected to the first end of the voltage-dividing resistor (i.e., the input end of the pulse excitation signal), the positive input terminal of the second operational amplifier is electrically connected to the positive electrode of the memristor (i.e., the second end of the voltage-dividing resistor), the output terminal of the first operational amplifier is electrically connected to the reverse input terminal of the third operational amplifier, the output terminal of the second operational amplifier is electrically connected to the positive input terminal of the third operational amplifier, and the output terminal of the third operational amplifier is electrically connected to the ADC acquisition signal input terminal of the analog-to-digital conversion module.
[0038] At this time, the output terminals of the two voltage followers are used as the differential input of the third operational amplifier, and the output is 200 times the input difference.
[0039] As an implementation mode, the output end of the first operational amplifier is electrically connected to a first resistor and a second resistor connected in series, the first end of the second resistor is electrically connected to the negative input end of the third operational amplifier, and the second end of the second resistor is grounded; a third resistor is electrically connected between the output end of the second operational amplifier and the positive input end of the third operational amplifier, and a fourth resistor is electrically connected between the positive input end and the output end of the third operational amplifier.
[0040] The positive electrodes of the first operational amplifier, the second operational amplifier and the third operational amplifier are connected to a 5V power supply, and are connected in parallel with a first capacitor and a second capacitor. The first capacitor and the second capacitor are grounded to reduce the disturbance of the power supply output and improve the stability of the circuit. The negative electrodes of the first operational amplifier, the second operational amplifier and the third operational amplifier are grounded.
[0041] The first pin INO of the analog-to-digital conversion module is electrically connected to a fifth resistor and a third capacitor, the fifth resistor is electrically connected to the output end of the third operational amplifier, and the third capacitor is grounded; the thirteenth pin AVDD and the sixteenth pin DVDD of the analog-to-digital conversion module are electrically connected to a fourth capacitor and a fifth capacitor in parallel, respectively, and the fourth capacitor and the fifth capacitor are grounded.
[0042] In this embodiment, the capacitor is used for filtering, and the resistor is used for adjusting the circuit gain and stabilizing the circuit.
[0043] Furthermore, in order to ensure that the memristor is not broken down under the premise of applying a pulse excitation signal with gradually increasing amplitude, it is necessary to select a voltage divider resistor based on the resistance range of the memristor, and dynamically select it in combination with the signal acquisition range (0-5V) of the acquisition circuit and the amplification factor of the differential amplifier circuit to ensure that the output signal of the voltage divider resistor connected in series with the memristor can be sampled by the acquisition circuit after amplification.
[0044] Specifically, the resistance of the memristor and the signal collection range of the collection circuit are determined. The resistance value of the fixed material memristor under a mature preparation process will not change much. The resistance value selection of the voltage divider resistor is not fixed. Generally, the voltage value on the voltage divider resistor can be within the collection range of the collection circuit after being amplified by the amplifier circuit.
[0045] In this embodiment, the differential gain is selected as a default gain of 200 times, the operational amplifier is LM321, and the analog-to-digital conversion module is a 24-bit high-speed analog-to-digital conversion module ADS1256.
[0046] The two-terminal memristor signal acquisition circuit described in this embodiment is combined with a control chip, such as an FPGA chip, when used, and the specific working method is as follows:
[0047] The FPGA chip drives the analog-to-digital conversion module to apply a pulse excitation signal to the memristor, and collects the resistance change trend of the memristor caused by the pulse excitation signal through the amplification circuit to update the pre-trained object recognition neural network according to the resistance change trend.
[0048] Embodiment 2
[0049] Combination Figure 1-Figure 6 Based on the two-terminal memristor signal acquisition circuit described in Example 1, this embodiment provides an object recognition system based on a memristor, including a control chip, a two-terminal memristor signal acquisition circuit, a memristor, an image acquisition module and a display module. The two-terminal memristor acquisition circuit includes an amplifying circuit and an acquisition circuit. The control chip is electrically connected to the acquisition circuit, the acquisition circuit is electrically connected to the amplifying circuit, and the amplifying circuit is electrically connected to the memristor.
[0050] In this embodiment, the control chip is taken as an FPGA chip as an example for further explanation.
[0051] A pre-trained object recognition neural network is deployed on the FPGA chip. The FPGA chip is electrically connected to the analog-to-digital conversion module. The first pin INO of the analog-to-digital conversion module is electrically connected to the fifth resistor and the third capacitor. The fifth resistor is electrically connected to the output end of the third operational amplifier, and the third capacitor is grounded. The thirteenth pin AVDD and the sixteenth pin DVDD of the analog-to-digital conversion module are electrically connected to the sixth capacitor and the seventh capacitor in parallel, respectively, and the sixth capacitor and the seventh capacitor are grounded.
[0052] A voltage-divider resistor is connected in series with a memristor, and the negative electrode of the memristor is grounded; the first operational amplifier and the second operational amplifier are used as voltage followers, the positive input terminal of the first operational amplifier is electrically connected to the first end of the voltage-divider resistor (i.e., the input end of the pulse excitation signal), the positive input terminal of the second operational amplifier is electrically connected to the positive electrode of the memristor (i.e., the second end of the voltage-divider resistor), the output terminal of the first operational amplifier is electrically connected to the reverse input terminal of the third operational amplifier, the output terminal of the second operational amplifier is electrically connected to the positive input terminal of the third operational amplifier, and the output terminal of the third operational amplifier is electrically connected to the input pin of the analog-to-digital conversion module.
[0053] At this time, the output terminals of the two voltage followers are used as the differential input of the third operational amplifier, and the output is 200 times the input difference.
[0054] The output end of the first operational amplifier is electrically connected to a first resistor and a second resistor connected in series, the first end of the second resistor is electrically connected to the negative input end of the third operational amplifier, and the second end of the second resistor is grounded; the output end of the second operational amplifier is electrically connected to the positive input end of the third operational amplifier, and a fourth resistor is electrically connected between the positive input end and the output end of the third operational amplifier. The positive electrodes of the first operational amplifier, the second operational amplifier, and the third operational amplifier are connected to a 5V power supply, and are connected in parallel with a first capacitor and a second capacitor, the first capacitor and the second capacitor are grounded, and the negative electrodes of the first operational amplifier, the second operational amplifier, and the third operational amplifier are grounded.
[0055] The working method of this embodiment is as follows:
[0056] (1) The FPGA chip applies a pulse excitation signal to the memristor through the analog-to-digital conversion module. The remaining voltage after passing through the voltage divider resistor is applied to the memristor. The memristor is regulated by voltage and its resistance changes. The change in resistance of the memristor causes the voltage divider of the memristor to change. The voltage divider of the voltage divider resistor changes accordingly. The analog-to-digital conversion module samples the signal change of the voltage divider resistor through the differential amplifier circuit to obtain the resistance change trend of the memristor.
[0057] (2) The FPGA chip drives the acquisition circuit to collect signals and caches the collected signals in RAM and DDR3 respectively. The purpose of temporarily storing the signals in DDR3 is to display the collected data in real time on the display module, and the purpose of temporarily storing the signals in RAM is to subsequently apply the data of the memristor to the update of the object recognition neural network.
[0058] (4) The memristor data temporarily stored in the RAM will be used to train the object recognition neural network. The weight parameters of the neural network during the training process are all selected from the memristor data. When the memristor array is used to implement the matrix multiplication operation in the neural network, it is ensured that the memristor has the corresponding resistance state to realize the matrix multiplication in the neural network in the form of hardware circuit.
[0059] Furthermore, because the FPGA chip cannot implement the training of the object recognition neural network, the method adopted in this embodiment is to pre-train the neural network on the server side, and replace the weight parameters on the FPGA chip after the training is completed.
[0060] In this embodiment, an object recognition system is built by cooperating with an FPGA chip, a memristor, and a two-terminal memristor signal acquisition circuit. The advantages of the determined hardware circuit over running a neural network on the server side are hardware acceleration and low power consumption, which improves computing efficiency and reduces computing costs.
[0061] As an implementation method, the specific process of replacement is as follows:
[0062] First, the content in array A is defined as the weight parameters of the pre-trained object recognition neural network, and the content in array B is defined as the memristor data stored in RAM, that is, the voltage change trend of the memristor.
[0063] Then, use A[0] to compare with all the data in array B one by one. A[0] starts with comparing with B[0] and ends with B[n-1]. Select the data with the smallest absolute difference with the value of A[0] from B[n] and replace it with A[0]. After the data in A[0] is replaced and updated, use A[1] to repeat the above operation. A[1] starts with comparing with B[0] and ends with B[n-1]. Continue to select the data with the smallest absolute difference with the value of A[1] and replace it with A[1]. This operation ends when all the data in array A is updated.
[0064] In an object recognition system composed of memristors, the weights of the object recognition neural network are required to be the values of all analog weights of the memristors. Therefore, in this embodiment, the weight parameters of the neural network are replaced with memristor data.
[0065] The data in array A after the update is the weight parameters of the object recognition neural network running in the FPGA chip; the weight distribution range after the pre-training weight replacement is completed is as follows Figure 4 As shown in Figure 5 shown.
[0066] As an implementation method, Figure 3 As shown in the figure, the object recognition neural network includes the first convolutional layer, the first pooling layer, the second convolutional layer, the second pooling layer and the fully connected layer connected in sequence. The first convolutional layer and the second convolutional layer adopt a 3*3*3 convolution kernel design, the pooling layer uses the maximum pooling layer, the pooling window size is 2*2, the pooling step is 2, the dimension of the fully connected layer is 1*75, and the dimension of the output layer is 1*10.
[0067] Use the Fashion dataset for pre-training on the PC side, and then transplant it to the FPGA chip and combine it with the memristor data for subsequent applications.
[0068] In this embodiment, the image acquisition module is an OV5640 camera, and the display module is a 4.3-inch RGB display screen.
[0069] Embodiment 3
[0070] Based on the memristor-based object recognition system described in the second embodiment, this embodiment provides a memristor-based object recognition method, including the following steps:
[0071] S1. Acquire an image of an object to be identified, wherein the image of the object to be identified is acquired by an image acquisition module.
[0072] S2. Taking the image of the object to be identified as input, the object recognition neural network deployed on the FPGA chip is used for processing to obtain the object recognition result.
[0073] Among them, the object recognition neural network is updated using the resistance change trend of the memristor caused by the pulse excitation signal. The pulse excitation signal is applied to the memristor by the control chip through the two-terminal memristor acquisition circuit.
[0074] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A two-terminal memristor signal acquisition circuit, It is characterized in that It includes a differential amplifier circuit and a collection circuit for being electrically connected to the memristor; The acquisition circuit is electrically connected to the differential amplifier circuit, applies a pulse excitation signal to the memristor via the differential amplifier circuit, and acquires a resistance change trend of the memristor caused by the pulse excitation signal.
2. The two-terminal memristor signal acquisition circuit according to claim 1, It is characterized in that The differential amplifier circuit includes a voltage-dividing resistor, a first operational amplifier, a second operational amplifier and a third operational amplifier; The voltage divider resistor is connected in series with the memristor, the input end of the first operational amplifier is electrically connected to the acquisition circuit, the second operational amplifier is electrically connected to the input end of the memristor, and the output ends of the first operational amplifier and the second operational amplifier are electrically connected to the input end of the third operational amplifier.
3. A memristor-based object recognition system, based on the two-terminal memristor signal acquisition circuit according to any one of claims 1-2, It is characterized in that It includes a control chip, a two-terminal memristor signal acquisition circuit and a memristor; The control chip is electrically connected to the two-terminal memristor signal acquisition circuit, and the two-terminal memristor signal acquisition circuit is electrically connected to the memristor; The control chip applies a pulse excitation signal to the memristor via the two-terminal memristor signal acquisition circuit, and acquires the resistance change trend of the memristor caused by the pulse excitation signal, so as to update the pre-trained object recognition neural network according to the resistance change trend.
4. The memristor-based object recognition system according to claim 3, It is characterized in that The two-terminal memristor acquisition circuit includes a differential amplifier circuit and an acquisition circuit, the control chip is electrically connected to the acquisition circuit, the acquisition circuit is electrically connected to the differential amplifier circuit, and the differential amplifier circuit is electrically connected to the memristor.
5. The memristor-based object recognition system according to claim 4, It is characterized in that The differential amplifier circuit includes a voltage-dividing resistor, a first operational amplifier, a second operational amplifier and a third operational amplifier; The voltage divider resistor is connected in series with the memristor, the input end of the first operational amplifier is electrically connected to the acquisition circuit, the second operational amplifier is electrically connected to the input end of the memristor, and the output ends of the first operational amplifier and the second operational amplifier are electrically connected to the input end of the third operational amplifier.
6. The memristor-based object recognition system according to claim 4, It is characterized in that The acquisition circuit includes an analog-to-digital conversion module, the control chip is electrically connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is electrically connected to the amplification circuit.
7. The memristor-based object recognition system according to claim 3, It is characterized in that The updating of the pre-trained object recognition neural network according to the resistance change trend is specifically as follows: comparing the weight parameters of the pre-trained object recognition neural network with the voltage change trend of the memristor, and updating the weights using the voltage change trend with the smallest absolute difference with the weight parameters.
8. The memristor-based object recognition system according to claim 3, It is characterized in that The object recognition neural network includes a first convolutional layer, a first pooling layer, a second convolutional layer, a second pooling layer and a fully connected layer which are connected in sequence.
9. The memristor-based object recognition system according to claim 3, It is characterized in that It also includes an image acquisition module and a display module; The image acquisition module is used to acquire the image of the object to be identified, and the display module is used to display the image of the object to be identified.
10. A memristor-based object recognition method, based on the memristor-based object recognition system according to any one of claims 3 to 9, It is characterized in that The steps include: Obtain an image of an object to be identified; Taking the image of the object to be identified as input, processing it through an object recognition neural network to obtain an object recognition result; The object recognition neural network is updated by utilizing the resistance change trend of the memristor due to a pulse excitation signal, wherein the pulse excitation signal is applied to the memristor by a control chip through a two-terminal memristor acquisition circuit.
