MCU Circuit Implementation Method for Synchronous Control of Large-Scale Discrete Neural Networks

By using chemical synapses and principal stability function analysis, the method addresses resource constraints in large-scale neural networks, enabling effective synchronization control and practical applications.

CN120065877BActive Publication Date: 2025-07-15NANJING NORMAL UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510528078.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-07-15
Estimated Expiration
2045-04-25

AI Technical Summary

Technical Problem

The existing technology is difficult to realize circuit synchronization state detection of large-scale cluster neural networks, and the FPGA resource occupancy rate is high, which cannot meet the needs of large-scale network deployment.

Method used

Chemical synapses are used as a medium, and large-scale discrete neural network model is constructed using nearest neighbor coupling connections, the full synchronization range is determined through main stability function analysis, and hardware circuits are designed based on the AT32 series microcontrollers, and neuronal states are observed using an oscilloscope.

Benefits of technology

It realizes full synchronous control of large-scale neural networks, reduces hardware resource usage, and provides efficient synchronous detection methods, which are suitable for engineering fields such as the Internet of Things, signal detection and confidential communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065877B_ABST
    Figure CN120065877B_ABST
Patent Text Reader

Abstract

MCU Circuit Implementation Method for Synchronous Control of Large-Scale Discrete Neural Networks, aiming at the problems of difficult synchronous detection of existing neural networks, high FPGA resource occupancy, and insufficient large-scale circuit deployment. First, a large-scale neural network is constructed through chemical synapse coupling, and the stability of the synchronous manifold is analyzed using the master stability function to synchronously regulate the neural network. Then, a hardware circuit is designed based on the AT32 microcontroller. By optimizing DMA data transmission and the 12-bit DAC module, the efficient deployment of high-dimensional networks is completed at low hardware cost. Finally, a 200-dimensional Aihara neural network circuit is successfully implemented and the hardware feasibility is verified, providing a hardware foundation for fields such as brain disease mechanism research, the Internet of Things, and secure communication, and having the potential for engineering applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of complex network regulation and hardware implementation, and particularly relates to an MCU circuit implementation method for synchronous control of large-scale discrete neural networks. After analysis using the master stability function analysis method, the coupling parameters are adjusted to achieve complete synchronous control of the neural network, and different spatio-temporal patterns of the neural network are obtained. Finally, a large-scale neural network circuit implementation method is given based on the microcontroller (MCU) platform. Background Art

[0002] Since the synchronization phenomenon in complex networks has broad application prospects in multiple disciplines, including information science, secure communication, and biochemistry, etc., this research has attracted the attention of many scholars. As a typical representative subclass of complex networks, the research on the synchronization mechanism and stability of neural networks is also worthy of in-depth exploration. It not only supports the information encoding and computing functions of neural networks, but also provides a key bionic foundation for the development of artificial intelligence systems and synchronous control applications.

[0003] The discrete neuron model has high computational efficiency, simple model structure, and strong numerical stability, providing feasibility for large-scale complex calculations. Discrete neurons are coupled through electrical and chemical synapses to establish connections, forming large-scale discrete neural networks. There are also many types of neural network synchronous states, including complete synchronization, where all neurons are in the same state; phase synchronization, where phase oscillations occur while maintaining the amplitude difference; cluster synchronization, where subsets of nodes are synchronized within the cluster. Another remarkable pattern is the chimera state, where synchronous and asynchronous populations coexist in the same network. Analyzing the behaviors of the above neural networks is the key to understanding the mechanisms of functional brain diseases such as epilepsy, Parkinson's disease, and Alzheimer's disease.

[0004] The hardware implementation of neural networks can apply neural networks to engineering practice. Currently, the hardware implementation of neural networks is mainly divided into two types of solutions: analog circuits and digital circuits. Due to the influence of environmental factors such as temperature drift and device nonlinearity, the parameters of electronic components in analog circuits are prone to shift, resulting in a significant decrease in signal processing accuracy and high implementation difficulty. In contrast, digital circuits use a discrete signal processing method, which has advantages such as strong anti-interference ability and flexible programmability. Among them, Field Programmable Gate Array (FPGA) is often used to accelerate neural network operations due to its parallel computing characteristics. However, when the scale of the neural network expands, FPGA requires a large amount of logic units and storage resources, and the occupancy rate of hardware resources climbs sharply, making it difficult to meet the requirements of large-scale network deployment. At the same time, due to the limited channels of the oscilloscope, it is impossible to parallelly output the membrane potentials of neurons in a large-scale network. Therefore, researchers have turned to the MCU solution with higher resource utilization and stronger software configurability. By optimizing the algorithm compression and hardware scheduling strategy, while ensuring the detection accuracy of neuron states, the operation efficiency and hardware cost are effectively balanced. By implementing the synchronous anomaly detection of neural networks on the MCU digital hardware platform, this not only helps to understand the spatio-temporal patterns of neural networks but also provides a direction for solving problems in the field of medical diseases.

[0005] The technical differences between this application and the prior art are as follows:

[0006] Technical comparison with the published patent CN108768904A "Signal Blind Detection Method Based on Amplitude-Phase Type Discrete Hopfield Neural Network with Perturbation";

[0007] In view of the problems such as slow convergence speed and easy to fall into local minimum in the signal blind detection in wireless communication, the published patent CN108768904A realizes efficient optimization by improving the structure of the Hopfield neural network and introducing a perturbation factor. According to the output of the Hopfield neural network structure, an acceptance data matrix is constructed. After applying fixed perturbation, self-perturbation, and annealing perturbation, the dynamic equation of the amplitude-phase type discrete Hopfield neural network is constructed. If the following holds it is considered that the network reaches the equilibrium network transmission signal. And this invention proposes a master stability function analysis method. By analyzing the stability of the synchronous manifold, the maximum Lyapunov exponent of the perturbation equation and the synchronization error of the network are deduced, and the interval of complete synchronization is accurately obtained. Although both involve the solution of network balance problems, the methods used are different and the focuses are also different. This invention mainly uses the master stability function analysis to obtain the state characteristics of each node in the neural network, and can obtain accurate coupling strength values to regulate large-scale neural networks, while the published patent CN108768904A emphasizes the dependence of different perturbations on the length of the input signal data.

[0008] Technical comparison with the patent of publication number CN116415638A, "A memristive coupled heterogeneous discrete neuron system with synaptic crosstalk";

[0009] The patent of publication number CN116415638A designed a circuit simulation model of a heterogeneous discrete neural network with synaptic crosstalk, using discrete memristors as synapses to couple two heterogeneous discrete neurons, and studied the phase synchronization and synchronization transition of the system. The simulink was selected for simulation experiment platform simulation, and various coexisting attractor phenomena and phase synchronization phenomena could be obtained by adjusting the corresponding circuit parameters. However, the present invention mainly focuses on large-scale discrete neural networks, and the object of study is the spatio-temporal pattern analysis of a 200-dimensional system, so the analysis objects are different. The present invention mainly uses a microcontroller platform for the implementation of the hardware circuit, and an oscilloscope platform is used for observation, so that the experimental results can be intuitively observed, and the implementation platforms are also different. The present invention is implemented using a microcontroller digital platform, demonstrating the feasibility of applying large-scale neural networks to reality.

[0010] Aiming at the situation that existing neural networks have too many nodes, the synchronization state of the network needs to be detected, and it is difficult to implement the circuit of large-scale cluster neural networks, the present invention aims to design a method for implementing the MCU circuit for synchronizing and controlling large-scale discrete neural networks. The invention uses chemical synapses as a medium and adopts the nearest-neighbor coupling method to connect discrete neurons to form a high-dimensional neural network to simulate the information transmission of the human brain. Through synchronization analysis, the interval in which neurons reach complete synchronization is obtained, and a neural network circuit with up to 200 dimensions is implemented using an MCU digital hardware platform. Summary of the Invention

[0011] Aiming at the situation that existing neural networks have too many nodes, the synchronization state of the network needs to be detected, and it is difficult to implement the circuit of large-scale cluster neural networks, the present invention aims to design a method for implementing the MCU circuit for synchronizing and controlling large-scale discrete neural networks. First, a large-scale discrete neural network model is constructed, and the master stability function method is used for analysis to find the complete synchronization range of the large-scale neural network, determine the synchronization interval of the cluster network, and obtain richer spatio-temporal patterns of the cluster network; Based on the MCU digital hardware platform with strong programmability, a large-scale neural network hardware circuit is implemented, so as to apply the neural network to engineering practice.

[0012] The present invention provides a method for implementing the MCU circuit for synchronizing and controlling large-scale discrete neural networks, including the following steps:

[0013] S1 Use chemical synapses to connect with the nearest-neighbor coupling to construct a discrete neural network model, realize a neural network with brain-like functions, and simulate the activities of brain neurons;

[0014] According to the master stability function method analysis, through numerical theoretical derivation, synaptic snapshot graphs of complete synchronization are obtained by selecting different chemical coupling strengths, and synaptic snapshot graphs of chimera states are obtained by taking values within the asynchronous range;

[0015] Based on the AT32 series microcontroller, a hardware circuit is designed, and a discrete neural network circuit is implemented according to the software design.

[0016] As a further improvement of the present invention, in the process of constructing the discrete neural network model in step S1, a discrete chaotic Aihara neuron model is selected, and its mathematical expression is:

[0017] Select discrete chaotic Aihara neurons to construct a large-scale discrete neural network model as follows:

[0018] ;

[0019] Where, is the number of neuron iterations, represents the membrane potential of the neuron, represents the cell membrane ion level, is the state decay factor, is the delayed feedback strength, is the nonlinear gain, is the external input, where and are positive values, is a logistic function, where the steepness parameter is the connectivity matrix, and the network is made into a nearest-neighbor coupled connection by constructing an adjacency matrix, is the chemical coupling strength, is the synaptic reversal potential, is the chemical synaptic coupling function, where is the neuron membrane potential, where , determines the slope of the chemical synaptic coupling function, is the synaptic firing threshold.

[0020] As a further improvement of the present invention, the master stability function analysis method in step S2 is as follows:

[0021] Step 1) First, assume that all neurons are in a synchronous state, that is , since represents the membrane potential of the neuron, represents the cell membrane ion level, Then it is the two states of the th neuron. When taking any respectively represent the synchronous state of neurons, that is, all neurons are in the same state, and obtain the equation under the synchronous state;

[0022] Step 2) Use the master stability function analysis. By perturbing the synchronous state of neurons, obtain the perturbation equation of the discrete neural network;

[0023] Step 3) Use the Laplacian matrix L eigenvalues Convert the variational equation into a decoupled mapping, and apply the diagonalization transformation , where the matrix Q is constructed by the eigenvectors of the matrix L , is the linear equation obtained after diagonalization after decoupling, is the variational equation of the network, thus obtaining a decoupled linear system;

[0024] Step 4) Solve the maximum Lyapunov exponent of the perturbation equation and the synchronization error of the chemical coupling network equation when the coupling strength changes, and conduct two-way verification of the results. Finally, obtain the interval where the discrete neural network reaches complete synchronization, and select different coupling strengths to obtain different spatio-temporal patterns.

[0025] As a further improvement of the present invention, the hardware circuit is implemented based on the AT32 series microcontroller in step S3, and the processing steps are as follows:

[0026] Step 1) In the generate_system function, generate system membrane potential data through the neural network and store the data; at the same time, encode all neuron signals and store them in an array;

[0027] Step 2) Configure the target address and source address of the register, enable the DMA circular mode, and configure the DMA channel interrupt priority by the nested vector interrupt controller NVIC to ensure automatic restart of the transmission after the cycle ends. The DMA circular mode ensures continuous waveform output without additional code intervention;

[0028] Step 3) Initialize the DAC and timer, let the TMR trigger the DMA request at a fixed time period, and expand the data of the dual-channel DAC. Among them, the high 12 bits store the system membrane potential data, and the low 12 bits store the corresponding numbers of neuron signals. The right alignment mode is adopted, and the remaining positions are filled with zeros. Each trigger transfers the data content of one word to the DAC, and the dual channels are updated and output synchronously;

[0029] Step 4) Configure the output pins of the development board through the gpio_config function. In the gpio_config design, there are two channels, namely Channel DAC1 and Channel DAC2. Configure PA4 of Channel DAC1 and PA5 of Channel DAC2 as analog mode and directly connect them to the DAC output pins;

[0030] Step 5) Observe the PA4 and PA5 pins through an oscilloscope. The dual-channel pins and the pins of the development board should share the same ground. Then use the oscilloscope to display the synaptic snapshot diagram and capture various states of the neurons in the neural network.

[0031] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0032] The present invention first connects Aihara neurons and chemical synapses in a nearest-neighbor coupling manner to construct a large-scale Aihara neural network. Compared with a single Aihara neuron, the large-scale neural network has stronger randomness. Further analysis using the master stability function method can achieve complete synchronous control of the neural network. At the same time, the MCU digital platform is used to overcome the problems that it is difficult to implement a large-scale neural network circuit and it is difficult to display with an oscilloscope. The implementation of the digital platform successfully proves that it has broad application prospects in engineering fields such as the Internet of Things, signal detection, and secure communication. The present invention not only provides a new idea for the synchronous detection and hardware implementation of large-scale discrete Aihara neural networks, but also can be applied to other neural networks, which is of great significance to disciplines such as nonlinear neurons and intelligent control. Description of the Drawings

[0033] Figure 1 It is a specific implementation block diagram;

[0034] Figure 2 It is the hardware part of the implementation of the large-scale neural network circuit;

[0035] Figure 3 It is the software part of the implementation of the large-scale neural network circuit;

[0036] Figure 4 It is a schematic diagram of the Aihara neural network under chemical connection;

[0037] Figure 5 It is a block diagram of the DMA controller;

[0038] Figure 6 It is a block diagram of the DAC module;

[0039] Figure 7 It is the implementation result of the synaptic snapshot based on the MCU;

[0040] Among them Figure 7(a) is the implementation result of the synaptic snapshot based on the MCU in the fully synchronous state, Figure 7 (b) is the implementation result of the synaptic snapshot based on the MCU in the chimera state. Specific implementation manner

[0041] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.

[0042] The present invention relates to an MCU circuit implementation method for synchronous control of a large-scale discrete neural network. By using the master stability function analysis method, the complete synchronization range of a large-scale Aihara neural network can be obtained through theoretical derivation, and the complete synchronization phenomenon of the corresponding neural network can be obtained under a certain coupling strength. The high-dimensional Aihara neural network circuit is implemented according to c++ language programming, and the synaptic snapshot diagram can be captured by an oscilloscope.

[0043] The circuit implementation of the large-scale neural network based on the MCU digital hardware platform is specifically divided into two parts: hardware and software, and the processing steps are as follows:

[0044] Step 1) Hardware part;

[0045] The hardware platform is shown in Figure 2 and mainly includes the following aspects: a 32-bit AT32F403AVGT7 microcontroller with a main frequency of 240 MHz, 1024 kB of flash memory, and 224 kB of RAM. The microcontroller is used to generate an iterative sequence, and the digital-to-analog conversion module (DAC) on the main board is used to convert the digital signal into an analog signal. The DAC module uses 12-bit digital input to generate a reference voltage between . The neuron membrane potential data value is generated by iterating through the input neuron equation. The direct memory access (DMA) module transfers the data value to the address mapped by the DAC. After D / A conversion, the PA4 and PA5 ports of the single-chip microcomputer AT32 have the functions of controlling the I / O direction and input / output, output the analog signal after DAC conversion, and display it using an oscilloscope.

[0046] Step 2) Software part;

[0047] Due to the limited channels of the oscilloscope, it is impossible to output the membrane potentials of neurons in a large-scale network in parallel. To solve the above problems, an interrupt program is first used to generate output signals. When entering the interrupt program from the main program, the final state values of 100 neurons are saved in an array. Since the function of DMA is to quickly move memory data and copy the content of a specified storage area to another storage area space. Therefore, a timer is used to control the DMA to carry data, so that the data can be transported to the DAC. On the other hand, when the data is output through a timing loop, the values will be cyclically displayed on the oscilloscope, and the exact positions of each neuron cannot be determined. To better display the spatio-temporal patterns of a large-scale neural network, numbers are defined for each neuron, which are 1, 2,..100 in sequence, and the numbers are saved in another array. Finally, the two channels of the oscilloscope are used for display. Figure 3 It is the flowchart for program implementation.

[0048] The specific steps of the algorithm of the present invention are as follows, and the specific implementation block diagram of the present invention is as Figure 1 shown:

[0049] 1. First, construct a large-scale discrete neural network model:

[0050] Step 1) Select the Aihara neuron model and use chemical synapses to connect with nearest-neighbor coupling to construct a large-scale discrete Aihara neural network model. The system equation is as follows. Among them Figure 4 is the schematic diagram of the connection of the Aihara neural network.

[0051] ;

[0052] 2. According to the analysis of the master stability function method, through numerical theoretical derivation, the complete synchronization of the neural network is regulated:

[0053] Step 1) First, assume that all neurons are in a synchronous state , and obtain the equation in the synchronous state;

[0054] ;

[0055] Step 2) Use the master stability function analysis method. By perturbing the synchronous state of the neurons, analyze the perturbation equation of the neurons and the perturbation equation of the coupling term respectively as follows:

[0056] ;

[0057] Finally, according to the above analysis results, the perturbation equation of the Aihara neural network is:

[0058] ;

[0059] Step 3) Use the Laplacian matrix L 's eigenvalues to transform the variational equation into a decoupled map, where L = D - G ( D is the degree matrix);

[0060] ;

[0061] Apply the diagonalization transformation , where the matrix Q is constructed from the eigenvectors of the matrix L to obtain a new linear system of variables .

[0062] ;

[0063] Substitute into the Aihara neuron to obtain the variational equation of the neural network, and obtain the synchronization range by solving the maximum Lyapunov exponent of the variational equation.

[0064] ;

[0065] Step 4) Define the number of neurons in the network as 100 and set the connection matrix as the nearest-neighbor coupling matrix. Calculate all the eigenvalues according to the Laplacian matrix. The network is connected, so the eigenvalues can be sorted as . The maximum Lyapunov exponent of the perturbation equation and the synchronization error of the chemical coupling network equation can be solved when the coupling strength changes, and two-way verification experiments are carried out. The specific values are as follows:

[0066] , the initial values of all neurons are randomly selected near , and finally it is obtained that the discrete neural network can reach complete synchronization at and .

[0067] Step 6) Select the chemical synaptic coupling strength within the synchronization interval, the network can exhibit a complete synchronization state, and take near the synchronization interval, the network can exhibit a chimera state.

[0068] 3. According to the numerical analysis results, design the hardware implementation of the Aihara neural network based on the MCU.

[0069] Step 1) In the generate_system function, the system membrane potential data is generated through the neural network, stored, and allocated to the global array system16bit, saved in the data format of generating 16-bit precision; at the same time, all neuron signals are encoded and stored in another one-dimensional array neuron_16bit. Similarly, it is saved in the data format of generating 16-bit precision.

[0070] Step 2) DMA can achieve three modes of transfer between peripheral registers and memory or between memory and memory. This is mainly due to the fact that the DMA controller samples the AHB master bus and can control the AHB bus matrix to initiate AHB transactions. DMA transfer is to copy the content of a specified storage area to another storage area space. Using DMA transfer can achieve higher transfer efficiency. Especially, DMA transfer does not occupy the CPU and can save a lot of CPU resources.

[0071] Figure 5 As shown in the block diagram of the DMA controller, configure the target address and source address of the register, and enable the DMA circular mode. The nested vector interrupt controller (NVIC) configures the interrupt priority of DMA1 channel 1 to ensure that the transfer restarts automatically after the cycle ends. The DMA circular mode ensures continuous waveform output. Set the transfer data volume to SYSTEM_POINTS (100 points) and enable the transfer complete interrupt.

[0072] Step 3) In the dma_config design, by looping, the high 16 bits store system16bit and the low 16 bits store neuron_16bit data, which are spliced into dualsystem32bit. The high 16 bits and low 16 bits of each 32-bit data in dualsystem32bit respectively correspond to the 12-bit right-aligned values of DAC2 and DAC1. The target address of DMA channel 1 is set to DAC_HDR12RD_ADDR (dual-channel 12-bit right-aligned data register), the source address is the dualsystem12bit array, and the data width is a word (32 bits).

[0073] Step 4) The role of the DAC is to convert the input digital code into the corresponding analog voltage output. The block diagram of the DAC module of AT32 is shown in Figure 6. The entire DAC module is centered around the "digital-to-analog converter" below the block diagram. On its left are the pins of the reference power supply:

[0074] 、 and Initialize the DAC and the timer, set the trigger source to the timing period of TMR2, and turn off the output buffer and waveform generation function. The TMR function configures TMR2 in the up-counter mode, sets the overflow frequency to 3.2 kHz, and uses it as the DAC trigger signal source. Also, extend the data of the dual-channel DAC. The high 12 bits store the system membrane potential data, and the low 12 bits store the corresponding numbers of neuron signals. Use the right-aligned mode, fill the remaining positions with zeros, and transfer the data content of one word to the DAC each time a trigger occurs. The dual channels are updated synchronously.

[0075] Step 5) Configure the output pins of the development board through the gpio_config function. In the gpio_config design, configure PA4 (DAC1) and PA5 (DAC2) as analog modes and directly connect them to the DAC output pins.

[0076] Step 6) Connect the PA4 and PA5 pins through an oscilloscope. The dual-channel pins and the pins of the development board should be grounded. Then, use the oscilloscope to display the synaptic snapshot diagram, which can capture various states of neurons in the neural network. Run the above operation results according to the MCU digital platform, and then capture the experimental results through a digital oscilloscope.

[0077] Step 7) Based on the MCU digital hardware platform, the synaptic snapshots captured by the digital oscilloscope are as Figure 7 shown. The implementation results of the synaptic snapshots based on the MCU are in a fully synchronous state as Figure 7 shown in (a). The implementation results of the synaptic snapshots based on the MCU are in a chimera state as Figure 7 shown in (b). The experimental results fully verify the numerical results, indicating the feasibility of implementing a high-dimensional neural network on the MCU hardware platform and providing a practical basis for practical applications.

[0078] In summary, the present invention overcomes the problem that the prior art cannot meet the circuit implementation of the high-dimensional Aihara neural network, obtains the synchronization range of the Aihara neural network according to numerical analysis, and uses the MCU digital platform to implement the circuit of the neural network. Through detailed theoretical derivation, the synchronization state of a large-scale neural network can be accurately obtained and successfully implemented on the hardware platform, which demonstrates the feasibility of applying the simulation of the characteristics of a large-scale neural network to reality.

[0079] The above are only the preferred embodiments of the present invention, and do not impose any other form of limitation on the present invention. Any modification or equivalent change made based on the technical essence of the present invention still falls within the scope of protection required by the present invention.

Claims

1. MCU circuit implementation method for large-scale discrete neural network synchronization control, characterized in that, It includes the following steps: S1 Use chemical synapses to connect with nearest-neighbor coupling to construct a discrete neural network model, realizing a neural network with brain-like functions and simulating the activities of brain neurons; In the process of constructing the discrete neural network model in step S1, a discrete chaotic Aihara neuron model is selected, and its mathematical expression is: Select discrete chaotic Aihara neurons to construct a large-scale discrete neural network model as follows: ; Among them, is the number of neuron iterations, represents the membrane potential of the neuron, represents the ion level of the cell membrane, is the state decay factor, is the delayed feedback intensity, is the non - linear gain, is the external input, where and are positive values, is a logistic function, where the steepness parameter is the connectivity matrix. By constructing the adjacency matrix, the network is a nearest - neighbor coupled connection, is the chemical coupling strength, is the synaptic reversal potential, is the chemical synaptic coupling function, where is the neuron membrane potential, where , determines the slope of the chemical synaptic coupling function, is the synaptic firing threshold; S2 According to the analysis of the master stability function method, through numerical theoretical derivation, different chemical coupling strengths are selected to obtain a synaptic snapshot graph of complete synchronization, and synaptic snapshot graphs of chimera states are obtained by taking values within different asynchronous ranges; S3 Design a hardware circuit based on the AT32 series microcontroller, and implement a discrete neural network circuit according to the software design.

2. The MCU circuit implementation method for large-scale discrete neural network synchronization control according to claim 1, characterized in that The method of analyzing the master stability function in step S2 is as follows: Step 1) First, assume that all neurons are in a synchronous state, that is , since represents the membrane potential of a neuron, represents the ion level of the cell membrane, is the two states of the -th neuron. When taking any respectively represent the synchronous state of the neurons, that is, all neurons are in the same state, and obtain the equation in the synchronous state; Step 2) Use the master stability function analysis to obtain the perturbation equation of the discrete neural network by perturbing the synchronous state of the neurons; Step 3) Using the Laplacian matrix L eigenvalues to transform the variational equation into a decoupled mapping, applying a diagonalization transformation , where the matrix Q is constructed from the eigenvectors of the matrix L , is the linear equation obtained after diagonalization after decoupling, is the variational equation of the network, thus obtaining a decoupled linear system; Step 4) Solve the maximum Lyapunov exponent of the perturbation equation and the synchronization error of the chemical coupling network equation when the coupling strength changes, verify the results in both directions, and finally obtain the interval where the discrete neural network reaches complete synchronization, and select different coupling strengths to obtain different spatio-temporal patterns.

3. The MCU circuit implementation method for large-scale discrete neural network synchronous control according to claim 1, characterized in that The implementation of designing the hardware circuit based on the AT32 series microcontroller in step S3 is as follows: Step 1) In the generate_system function, generate system membrane potential data through the neural network and store the data; at the same time, encode all neuron signals and store them in an array; Step 2) Configure the target address and source address of the register, enable the DMA circular mode, and configure the DMA channel interrupt priority by the nested vector interrupt controller NVIC to ensure automatic restart of the transmission after the cycle ends. The DMA circular mode ensures continuous waveform output without additional code intervention; Step 3) Initialize the DAC and timer, let the TMR trigger the DMA request at a fixed period, and expand the data of the dual-channel DAC. Among them, the high 12 bits store the system membrane potential data, and the low 12 bits store the corresponding numbers of neuron signals. The right-aligned mode is adopted, and the other positions are filled with zeros. Each trigger transfers the data content of one word to the DAC, and the dual-channel is updated synchronously for output; Step 4) Configure the output pins of the development board through the gpio_config function. In the gpio_config design, there are two channels, namely channel DAC1 and channel DAC2. Configure PA4 of channel DAC1 and PA5 of channel DAC2 as analog modes and directly connect them to the DAC output pins; Step 5) Observe the PA4 and PA5 pins through an oscilloscope. The dual-channel pins and the pins of the development board should share the same ground, and then use the oscilloscope to display the synaptic snapshot graph and capture various states of the neurons in the neural network.

Citation Information

Patent Citations

  • Signal blind detection method based on amplitude-phase discrete Hopfield neural network with disturbance

    CN108768904A

  • Memristive coupling heterogeneous discrete neuron system with synaptic crosstalk

    CN116415638A

  • Memristive back propagation neural network circuit and control method thereof

    CN114723025A