WO2018133569A1 - Neuron information processing method and system having deep time windowing - Google Patents
Neuron information processing method and system having deep time windowing Download PDFInfo
- Publication number
- WO2018133569A1 WO2018133569A1 PCT/CN2017/114663 CN2017114663W WO2018133569A1 WO 2018133569 A1 WO2018133569 A1 WO 2018133569A1 CN 2017114663 W CN2017114663 W CN 2017114663W WO 2018133569 A1 WO2018133569 A1 WO 2018133569A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- neuron
- pulse
- current
- current time
- Prior art date
Links
- 210000002569 neuron Anatomy 0.000 title claims abstract description 399
- 230000010365 information processing Effects 0.000 title claims abstract description 39
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 claims abstract description 29
- 230000036279 refractory period Effects 0.000 claims description 67
- 239000012528 membrane Substances 0.000 claims description 55
- 238000004364 calculation method Methods 0.000 claims description 29
- 230000001960 triggered effect Effects 0.000 claims description 9
- 210000005036 nerve Anatomy 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 16
- 238000013528 artificial neural network Methods 0.000 description 33
- 230000003044 adaptive effect Effects 0.000 description 22
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 230000002596 correlated effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 238000001208 nuclear magnetic resonance pulse sequence Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000003592 biomimetic effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 210000005056 cell body Anatomy 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/049—Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/061—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using biological neurons, e.g. biological neurons connected to an integrated circuit
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present invention relates to the field of artificial neural network technology, and in particular to a neuron information processing method and system with deep time windowing.
- the output information of the current pulsed neuron can only affect the pulse neurons connected to the back end in the next time step, ignoring the time domain depth effect between the biological neurons.
- the front end pulse neuron output information including pulse tip information output by the front end pulse neuron
- Reading first current pulse neuron information the first current pulse neuron information including a pulse tip information history sequence in a current time window;
- the pulse sequence information history sequence in the current time window includes: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step, stored in time step order,
- the pulse tip information of the first time step in the history sequence of the pulse tip information in the current time window is the front end pulse neuron output information received at the first time step before the current time step, the current time window
- the pulse tip information of the Nth time step in the history sequence of the internal pulse tip information is the front end pulse neuron output information received at the Nth time step before the current time step, where N is a natural number;
- the pulse tip information update sequence in the current time window including:
- the pulsed tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
- the front-end pulse neuron outputs information, and further includes: a connection weight index of the front-end neuron and the current neuron;
- the current pulsed neuron information further includes: a current time window width, historical membrane potential information, and membrane potential leakage information;
- the calculating, according to the front-end pulse neuron information and the second current pulse neuron information, the current pulse neuron output information including:
- the current pulse nerve is output at the Before the step of outputting information, the method further includes:
- the issuing triggering flag information includes: issuing a trigger or issuing a non-trigger; and when the issuing triggering flag information is issued When triggered,
- the refractory period timer is reset, and the historical membrane potential information is updated to a preset reset membrane potential information.
- the method further includes:
- the issue trigger flag information When the issue trigger flag information is not triggered by the issue, the current time step of the refractory period width and the refractory period timer is read;
- the refractory period timer is cumulatively counted for one time step, and the historical membrane potential information is updated to be the current pulsed neuron output information.
- the obtaining a threshold potential includes:
- the threshold potential is determined based on the threshold random amount and the threshold offset.
- the outputting the current pulse neuron output information comprises:
- Reading an issue enable identifier where the issue enable identifier includes allowing data to be issued or not allowing data to be issued; when the issue enable identifier is allowed to issue data,
- the neuron information processing method with deep time windowing obtains the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current tip window pulse tip information history sequence, and is used for current
- the output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
- the front-end pulse neuron output information received in the first N time steps is stored according to the time step sequence, and the information sequence in the historical sequence is sequenced after receiving the front-end pulse neuron output information of the current time step. Move one bit backward, fill the pulse information received by the current time step into the first place, and obtain the updated pulse tip information sequence for the calculation of the current pulse neuron output information. Slide according to time, history pulse tip information and current time step The combination of the pulse tip information enables the output information of the received front-end pulse neurons to be flexibly set according to the required time depth, and the sliding method according to the chronological order is more in line with the biological neuron time depth effect.
- the threshold potential is determined by reading a random threshold mask potential and a threshold bias and receiving a configuration value given by a configuration register such that the neuron issues pulse tip information with a probability of randomness.
- the current pulse neuron output information is determined by setting the release enable identifier and the issue trigger flag, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured with neurons that are not configured. It is allowed to issue data, but only as an intermediate auxiliary computing neuron, which is necessary for some functions that require multiple neurons to work together.
- the invention also provides a neuron information processing system with deep time windowing, comprising:
- a front-end pulse neuron output information receiving module configured to receive front-end pulse neuron output information, where the front-end pulse neuron output information includes pulse tip information output by the front-end pulse neuron;
- a first current pulse neuron information reading module configured to read first current pulse neuron information, where the first current pulse neuron information includes a pulse tip information history sequence in a current time window;
- a current time window in-time pulse tip information update sequence acquisition module configured to acquire a pulse tip information update sequence in a current time window according to pulse tip information output by the front end pulse neuron and a pulse tip information history sequence in the current time window ;
- a second current pulse neuron information determining module configured to determine second current pulse neuron information according to the current time window intrapulse information update sequence
- the current pulse neuron output information calculation module is configured to calculate current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information;
- the current pulse neuron output information output module is configured to output the current pulse neuron output information.
- the pulse sequence information history sequence in the current time window includes: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step, stored in time step order,
- the pulse tip information of the first time step in the history sequence of the pulse tip information in the current time window is the front end pulse neuron output information received at the first time step before the current time step, the current time window
- the pulse tip information of the Nth time step in the history sequence of the internal pulse tip information is the front end pulse neuron output information received at the Nth time step before the current time step, where N is a natural number;
- the pulse tip information update sequence acquisition module in the current time window is used to:
- the pulsed tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
- the front-end pulse neuron outputs information, and further includes: a connection weight index of the front-end neuron and the current neuron;
- the current pulsed neuron information further includes: a current time window width, historical membrane potential information, and membrane potential leakage information;
- the current pulse neuron output information calculation module includes:
- a pulsed neuron connection weight reading unit configured to read a connection weight of the front end neuron and the current neuron according to a connection weight index of the front end neuron and the current neuron;
- a front-end pulse neuron input information calculation unit configured to calculate front-end pulse neuron input information by using an attenuation function according to the current time window width, the pulse tip information update sequence in the current time window;
- a current pulse neuron output information calculation unit configured to input, according to the front end pulse neuron input information, a connection weight of the front end pulse neuron and a current pulse neuron, the historical membrane potential information, and the membrane potential leakage information,
- the current pulsed neuron output information is calculated by a pulsed neuron calculation model.
- the method further includes:
- a threshold potential acquisition module configured to acquire a threshold potential
- the issuance triggering flag information determining module is configured to compare the current pulsed neuron output information with the threshold potential, and determine the issuance triggering flag information according to the comparison result, where the issuing triggering flag information includes: issuing a trigger or issuing a trigger; When the issuing trigger flag information is an issue trigger,
- the refractory timer reset module is configured to reset the refractory period timer and update the historical membrane potential information to a preset reset membrane potential information.
- the method further includes:
- the refractory timer reading module is used to read the current time step of the refractory width and the refractory period timer;
- the refractory period determining module is configured to determine whether the current time is within the refractory period according to the refractory period width and the current time step of the refractory period timer, and if the current time is within the refractory period, The refractory period timer accumulates a time step, does not update the historical membrane potential information; if the current time is not within the due period, accumulates the refractory period timer for one time step, and updates the historical film
- the potential information is the current pulse neuron output information.
- the threshold potential acquisition module includes:
- a threshold information reading unit configured to read a random threshold mask potential, a threshold offset, and a random threshold
- a random superposition amount acquiring unit configured to perform bitwise AND operation on the random threshold and the random threshold mask potential, Obtain a threshold random stack amount
- a threshold potential determining unit configured to determine the threshold potential according to the threshold random amount and the threshold offset.
- the current pulse neuron information output module includes:
- the identification identifier reading unit is configured to read an issue enable identifier, where the release enable identifier includes allowing data to be released or not allowing data to be issued; and when the issue enable identifier is allowed to issue data,
- a trigger flag information reading unit configured to read the issue trigger flag information, when the issue trigger flag information is an issue trigger
- the current pulse neuron information output unit is configured to output the current pulse neuron output information.
- the neuron information processing system with deep time windowing acquires the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current time window pulse tip information history sequence, and is used for current
- the output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
- the front-end pulse neuron output information received in the first N time steps is stored according to the time step sequence, and the information sequence in the historical sequence is sequenced after receiving the front-end pulse neuron output information of the current time step. Move one bit backward, fill the pulse information received by the current time step into the first place, and obtain the updated pulse tip information sequence for the calculation of the current pulse neuron output information. Sliding according to time, combining the historical pulse tip information with the pulse tip information of the current time step, so that the output information of the received front-end pulse neurons can be flexibly set according to requirements, and the sliding is performed according to the time sequence. The method is more in line with the biological neuron time depth effect.
- the threshold potential is determined by reading a random threshold mask potential and a threshold bias and receiving a configuration value given by a configuration register such that the neuron issues pulse tip information with a probability of randomness.
- the current pulse neuron output information is determined by setting the release enable identifier and the issue trigger flag, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured with neurons that are not configured. It is allowed to issue data, but only as an intermediate auxiliary computing neuron, which is necessary for some functions that require multiple neurons to work together.
- FIG. 1 is a schematic flow chart of an adaptive leakage value neural network information processing method according to an embodiment
- FIG. 2 is a schematic flow chart of an adaptive leak value neural network information processing method according to another embodiment
- FIG. 3 is a schematic flow chart of an adaptive leakage value neural network information processing method according to still another embodiment
- FIG. 4 is a schematic flow chart of an adaptive leakage value neural network information processing method according to still another embodiment
- FIG. 5 is a schematic structural diagram of a pulse tip information history sequence in a current time window in an adaptive leakage value neural network information processing method according to an embodiment
- FIG. 6 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to another embodiment
- FIG. 7 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to still another embodiment.
- FIG. 8 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to still another embodiment.
- FIG. 1 is a schematic flowchart of an adaptive leakage value neural network information processing method according to an embodiment, and the adaptive leakage value neural network information processing method shown in FIG. 1 includes:
- Step S100 Receive front end pulse neuron output information, where the front end pulse neuron output information includes pulse tip information output by the front end pulse neuron.
- the pulse tip information output by the front end pulse neuron is pulse tip information output by the pulse neuron of the front end of the connection with the current pulse neuron.
- Step S200 reading first current pulse neuron information, the first current pulse neuron information including a pulse tip information history sequence in a current time window.
- the pulse tip information history sequence in the current time window refers to a sequence of information in which the pulse tip information received in a time range within a certain range in the current time window width is sequentially cached in time series. .
- Step S300 acquiring a pulse tip information update sequence in the current time window according to the pulse tip information output by the front end pulse neuron and the pulse tip information history sequence in the current time window.
- the pulse tip information received at the current time step and the pulse tip information received at the time step in the past range are integrated into a new current time window pulse tip information update sequence to be received in the past.
- the pulse tip information is still involved in the calculation of the pulse neuron output information for the current time step.
- Step S400 determining second current pulse neuron information according to the pulse tip information update sequence in the current time window.
- the current pulse neuron information further includes other information
- the pulse tip information update sequence in the pre-time window acquired after the update is replaced, and the second current pulse neuron is acquired after replacing the pulse tip information history sequence in the current time window. information.
- Step S500 calculating current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information.
- the front-end pulse neuron information further includes other information, such as a connection weight index of the front-end pulse neuron and the current pulse neuron, and the front-end pulse neuron information and the second current pulse neuron information are calculated.
- the current pulse neuron output information is obtained.
- Step S600 outputting the current pulse neuron output information.
- the neuron information processing method with deep time windowing obtains the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current tip window pulse tip information history sequence, and is used for current
- the output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
- FIG. 2 is a schematic flowchart of an adaptive leakage value neural network information processing method according to another embodiment.
- the adaptive leakage value neural network information processing method shown in FIG. 2 is a detailed step of step S300 in FIG. 1, and includes:
- Step S310 deleting the pulse tip information of the Nth time step in the history sequence of the pulse tip information in the current time window, and changing the pulse tip information of the first time step to the N-1 time step to the sequence Pulse tip information from the second time step to the Nth time step.
- the pulse tip information history sequence in the current time window includes: a sequence consisting of outputting information of each front-end pulse neuron received by N time steps before the current time step, stored in a time step order, wherein
- the pulse tip information of the first time step in the history sequence of the pulse tip information in the current time window is the front end pulse neuron output information received at the first time step before the current time step, and the pulse tip information in the current time window
- the pulse tip information of the Nth time step in the history sequence is the front end pulse neuron output information received at the Nth time step before the current time step.
- the pulse tip information history sequence in the current time window stores, from the right hand to the left, the output information of each front-end pulse neuron received by the 15 time steps before the current time step in time step order, since each Each front-end pulse neuron information received by the time step includes a plurality of front-end pulse neuron information according to actual conditions, and is represented by a vertical column in FIG. 5, wherein each circle represents a single front-end pulse neuron output. Pulse tip information.
- the pulse tip information of the 15th column on the leftmost side in FIG. 5 is deleted, and the pulse tip information of the 1st to 14th columns is sequentially changed to the pulse tip information of the 2nd to 15th columns.
- Step S320 setting the front end pulse neuron output information received by the current time step as the pulse tip information of the first time step in the pulse tip information history sequence in the current time window.
- the front end pulse tip information received at the current time step is placed in the first column of FIG.
- Step S330 the pulse tip information of the updated first time step to the Nth time step is formed into a pulse tip information update sequence in the current time window.
- the new pulse tip information of the first to the 15th time steps is the pulse tip in the updated current time window.
- Information update sequence is the pulse tip in the updated current time window.
- the shift register array can be used to store the pulse tip sequence, or it can be implemented by a common memory. Since the memory can only be read and written according to the address, it cannot be automatically shifted according to the clock signal like the shift register.
- the bit operation can only be completed through the series of “read ⁇ data splicing ⁇ writing”.
- the principle of data splicing is: based on the history information and the latest release information currently read, and then intercept the lower 15 bits of the historical release information. The latest release information is spliced and sent to the subsequent calculation module (the input produces the adder) and rewritten back into the spike cache RAM.
- the row address and write enable signals of the memory are given by the system's read/write control module.
- the front-end pulse neuron output information received in the first N time steps is stored according to the time step sequence, and after the front-end pulse neuron output information of the current time step is received, the information in the historical sequence is sequentially sequenced. After moving one bit, the pulse information received at the current time step is filled in the first place, and the updated pulse tip information sequence is obtained for the calculation of the current pulse neuron output information. Sliding according to time, combining the historical pulse tip information with the pulse tip information of the current time step, so that the output information of the received front-end pulse neurons can be flexibly set according to requirements, and the sliding is performed according to the time sequence. The method is more in line with the biological neuron time depth effect.
- FIG. 3 is a schematic flowchart diagram of an adaptive leakage value neural network information processing method according to still another embodiment, and the adaptive leakage value neural network information processing method shown in FIG. 3 includes:
- Step S100b Receive pulse tip information output by the front end pulse neuron, and a connection weight index of the front end pulse neuron and the current pulse neuron.
- connection weight index of the front-end pulse neuron and the current pulse neuron is a weight index sent by the front-end neuron together with the output information of the front-end pulse neuron, and is used to indicate the extraction of the current neuron weight.
- the pulse tip information output by the front end pulse neuron is a pulse tip signal sent by the front end pulse neuron.
- Step S200b reading the current time window width, the pulse tip information update sequence in the current time window, the historical membrane potential information, and the membrane potential leakage information.
- the current time window width, the historical film potential information, and the membrane potential leakage information are information in the first current pulse neuron information.
- Step S300b The connection weight of the front-end neuron and the current neuron is read according to the connection weight index of the front-end neuron and the current neuron.
- connection weight index of the front-end pulse neuron and the current pulse neuron is an address information
- the current neuron is indexed according to the received connection weight of the front-end pulse neuron and the current pulse neuron.
- the connection weight of the front-end pulse neuron and the current pulse neuron is read, and according to the connection weight information, the output information of the front-end neuron can be used in the calculation process of participating in the current neuron output information. More accurately reflects the weight of the output information of the front-end neurons, carrying more abundant information.
- Step S400b calculating front-end pulse neuron input information by using an attenuation function according to the current time window width and the current time window intra-pulse tip information update sequence.
- the pulse tip information update sequence in the current time window includes historical pulse tip information of N time steps before the current time step, and uses an attenuation factor K i in the calculation of the current pulse neuron output information.
- K i the attenuation factor
- Step S500b calculating, according to the front-end pulse neuron input information, the connection weight of the front-end pulse neuron and the current pulse neuron, the historical membrane potential information, and the membrane potential leakage information, by calculating a pulse neuron calculation model Current pulsed neuron output information.
- the calculation of the input information of the front-end pulse neuron is represented by the following formula:
- W ij is the connection weight of the front-end pulse neuron j and the current pulse neuron i
- T w is the time window width
- ⁇ j is the front-end neuron j after the spike is issued in the current time window, at the current
- t is the current time
- K( ⁇ t) is an attenuation function that decreases rapidly as ⁇ t increases.
- V SNN f(V+V input +V leak )
- V is the historical membrane potential information stored in the memory
- V input is the input of the current beat accumulation
- V leak is the membrane potential leakage value information
- the front end pulse neuron input is calculated by the attenuation function according to the current time window pulse tip information update sequence, the current time window width, the connection weight of the front end pulse neuron and the current pulse neuron, and the attenuation function.
- the information can support the spatio-temporal pulse neural network model with time depth. Compared with the neural network technology scheme with only one time depth, the spatio-temporal information coding ability of the pulse neural network can be greatly improved, and the application space of the pulse neural network is enriched.
- FIG. 4 is a schematic flowchart of an adaptive leakage value neural network information processing method according to still another embodiment, and the adaptive leakage value neural network information processing method shown in FIG. 4 includes:
- step S100c the current pulse neuron output information and the threshold potential are calculated.
- step S200c it is determined whether the current pulse neuron output information is greater than or equal to the threshold potential, and the issuing trigger flag information is determined according to the comparison result, where the issuing trigger flag information includes issuing a trigger or issuing a non-trigger, if When the triggering flag information is issued, the process proceeds to step S300c. When it is determined that the issuance trigger flag information is not triggered, the process proceeds to step S400c.
- the threshold pulse potential is compared with the current pulse neuron output information, and the issue trigger flag information is determined according to the comparison result.
- the current pulse neuron output information is transmitted only when the current pulse neuron output information is greater than the threshold potential.
- Step S300c resetting the refractory period timer, and updating the historical membrane potential information to a preset reset membrane potential information.
- the issue trigger flag information is an issue trigger
- the current pulse neuron output information is sent, and after the refractory period timer is reset, the refractory period is recalculated, and the historical membrane potential information is updated.
- the preset membrane potential information, and the historical membrane potential information is updated, selectively resetting the membrane potential to the current membrane potential, the current membrane potential and the threshold potential difference, or a fixed reset voltage according to the configured reset type.
- Step S400c reading the current time step of the refractory period width and the refractory period timer.
- the current pulse neuron output information is not sent, and further determining whether the current period is within the refractory period.
- the refractory period width is a range of durations of the refractory period, and the refractory period timer is timed by means of a time step.
- Step S500c determining whether the current time is within the refractory period according to the refractory period width and the current time step of the refractory period timer. If the current time is within the refractory period, proceeding to step S600c, otherwise jumping Go to step S700c.
- the cumulative calculation of the current time step of the refractory period timer it can be determined whether the current time step is still in the refractory period.
- Step S600c accumulating the refractory period timer for one time step, and not updating the historical film potential information.
- the pulsed neurons of the time step need to read the information, that is, during the refractory period, the pulsed neuron output information calculated this time does not participate in the calculation of the next time step.
- Step S700c accumulating the refractory period timer for one time step, and updating the historical membrane potential information as the current pulse neuron output information.
- the historical membrane potential information is the current pulse neuron output information, and participates in the calculation of the next time step.
- the obtaining a threshold potential comprises: reading a random threshold mask potential, a threshold offset, and a random threshold; performing a bitwise AND operation on the random threshold and the random threshold mask potential to obtain a threshold random superposition amount; determining the threshold potential according to the threshold random superimposition amount and the threshold offset.
- the pseudo random number generator generates a random threshold V rand , and uses the random threshold and the preset random threshold mask potential V mask to perform a bitwise sum operation to generate a threshold random superposition amount, and then randomly superimpose the threshold value. The amount is added to the preset threshold offset Vth0 to produce a true threshold potential Vth .
- the initial seed of the pseudo random number generator is given by the configuration register V seed .
- the threshold potential is determined by reading the random threshold mask potential and the threshold offset and receiving the configuration value given by the configuration register, so that the neuron issues the pulse tip information with a certain probability of randomness.
- the outputting the current pulse neuron output information comprises: reading an issue enable identifier, wherein the issue enable identifier includes allowing data to be issued or not allowing data to be issued; When the data is allowed to be issued, the issuing trigger flag information is read, and when the issuing trigger flag information is an issue trigger, the current pulse neuron output information is output.
- the release enable identifier and the issue trigger flag by setting the release enable identifier and the issue trigger flag, the current pulse neuron output information is determined, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured with neurons that are not allowed. Issuing data, but only as an intermediate auxiliary computing neuron, is necessary for some functions that require multiple neurons to work together.
- FIG. 6 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to another embodiment.
- the adaptive leakage value neural network information processing system shown in FIG. 6 includes:
- the front-end pulse neuron output information receiving module 100 is configured to receive front-end pulse neuron output information, where the front-end pulse neuron output information includes pulse tip information output by the front-end pulse neuron; and the front-end pulse neuron output information includes : The weight of the connection between the front-end neuron and the current neuron.
- the first current pulse neuron information reading module 200 is configured to read first current pulse neuron information, where the first current pulse neuron information includes a pulse tip information history sequence in a current time window; and the current time window a sequence of pulse tip information history, comprising: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step stored in a time step sequence, wherein the pulse tip information history sequence in the current time window
- the pulse tip information of the first time step in the first time step is the front end pulse neuron output information received at the first time step before the current time step, and the Nth time step in the history sequence of the pulse tip information in the current time window
- the pulse tip information is the front-end pulse neuron output information received at the Nth time step before the current time step; the current pulse neuron information further includes: a current time window width, a historical membrane potential information, and a membrane potential leakage information. .
- the current time window pulse tip information update sequence acquisition module 300 is configured to acquire a pulse tip in the current time window according to the pulse tip information output by the front end pulse neuron and the pulse tip information history sequence in the current time window.
- An information update sequence for deleting pulse tip information of the Nth time step in the history sequence of pulse tip information in the current time window, and cutting the pulse tip information from the first time step to the N-1th time step, The sequence is changed to the pulse tip information of the second time step to the Nth time step; the front end pulse neuron output information received by the current time step is set as the first in the history sequence of the pulse tip information in the current time window
- the pulse tip information of the time step; the pulse tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
- the second current pulse neuron information determining module 400 is configured to determine second current pulse neuron information according to the current time window intrapulse information update sequence
- the current pulse neuron output information calculation module 500 is configured to calculate current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information;
- the current pulse neuron output information output module 600 is configured to output the current pulse neuron output information.
- the method includes: an enable identifier reading unit, configured to read an issue enable identifier, where the issue enable identifier includes allowing data to be issued or not allowed to be issued; and when the issue enable identifier is allowed to issue data, issuing a trigger flag.
- the information reading unit is configured to read the issue trigger flag information, and when the issue trigger flag information is an issue trigger, the current pulse neuron information output unit is configured to output the current pulse neuron output information.
- the neuron information processing system with deep time windowing acquires the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current time window pulse tip information history sequence, and is used for current
- the output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
- the information calculation module 500 includes:
- the pulse neuron connection weight reading unit 100b is configured to read the connection weight of the front end neuron and the current neuron according to the connection weight index of the front end neuron and the current neuron.
- the front end pulse neuron input information calculation unit 200b is configured to calculate front end pulse neuron input information by using an attenuation function according to the current time window width and the current time window intrapulse information update sequence.
- the current pulse neuron output information calculation unit 300b is configured to input information according to the front end pulse neuron, a connection weight of the front end pulse neuron and the current pulse neuron, the historical membrane potential information, and the membrane potential leakage information.
- the current pulsed neuron output information is calculated by a pulsed neuron calculation model.
- the pulse tip information update sequence, the current time window width, the connection weight of the front-end pulse neuron and the current pulse neuron, and the front-end pulse neuron input information are calculated by the attenuation function. It can support the spatio-temporal pulse neural network model with time depth. Compared with the neural network technology scheme with only one time depth, it can greatly improve the spatio-temporal information coding ability of the pulse neural network and enrich the application space of the pulse neural network.
- FIG. 8 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to still another embodiment.
- the adaptive leakage value neural network information processing system shown in FIG. 8 includes:
- the threshold potential acquisition module 700 is configured to acquire a threshold potential, and includes: a threshold information reading unit, configured to read a random threshold mask potential, a threshold offset, and a random threshold; and a random superposition amount acquiring unit configured to use the random threshold And performing a bitwise AND operation with the random threshold mask potential to obtain a threshold random superposition amount; and a threshold potential determining unit configured to determine the threshold potential according to the threshold random superposition amount and the threshold offset.
- the issue trigger flag information determining module 800 is configured to compare the current pulse neuron output information with the threshold potential, and determine the issue trigger flag information according to the comparison result, where the issue trigger flag information includes: issuing a trigger or issuing a trigger When the issue trigger flag information is an issue trigger.
- the refractory timer reset module 900 is configured to reset the refractory period timer and update the historical membrane potential information to a preset reset membrane potential information.
- the refractory timer reads module 1000 for reading the current time step of the refractory period width and the refractory period timer.
- the refractory period determining module 1100 is configured to determine, according to the refractory period width and the current time step of the refractory period timer, whether the current time is within the refractory period, and if the current time is within the refractory period, And accumulating the refractory period timer for one time step, not updating the historical membrane potential information; if the current time is not within the due period, accumulating the refractory period timer for one time step, and updating the history
- the membrane potential information is the current pulsed neuron output information.
- the threshold potential is determined by reading the random threshold mask potential and the threshold offset and receiving the configuration value given by the configuration register, so that the neuron issues the pulse tip information with a certain probability of randomness.
- the release enable flag and issuing the trigger flag the current pulse neuron output information is determined, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured to allow the neuron to not issue data, but only As an intermediate aided computational neuron, this is necessary for some functions that require multiple neurons to work together.
- an embodiment of the present invention further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer
- a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer
- Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM) or external cache memory.
- RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
- SRAM static RAM
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDRSDRAM double data rate SDRAM
- ESDRAM enhanced SDRAM
- Synchlink DRAM SLDRAM
- Memory Bus Radbus
- RDRAM Direct RAM
- DRAM Direct Memory Bus Dynamic RAM
- RDRAM Memory Bus Dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Theoretical Computer Science (AREA)
- Molecular Biology (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- Neurology (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Feedback Control In General (AREA)
- Magnetic Resonance Imaging Apparatus (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
A neuron information processing method and system having deep time windowing. The method comprises: receiving front-end pulse neuron output information, wherein the front-end pulse neuron output information comprises pulse tip information output by a front-end pulse neuron (S100); reading first current pulse neuron information, the first current pulse neuron information comprising a pulse tip information historical sequence in the current time window (S200); acquiring a pulse tip information updated sequence in the current time window according to the pulse tip information output by the front-end pulse neuron and the pulse tip information historical sequence in the current time window (S300); determining second current pulse neuron information according to the pulse tip information updated sequence in the current time window (S400); calculating the current pulse neuron output information according to the front-end pulse neuron information and the second current pulse neuron information (S500); and outputting the current pulse neuron output information (S600). The method breaks through the restriction of only adjacent time steps being interrelated, can flexibly set historical activity information to cache a larger time depth according to requirements, and is closer to a biological neuron in the aspect of the time domain depth effect.
Description
相关申请Related application
本申请要求2017年01月20日申请的,申请号为201710041894.2,名称为“具有深度时间划窗的神经元信息处理方法和系统”的中国专利申请的优先权,在此将其全文引入作为参考。The present application claims priority to Chinese Patent Application No. JP-A No. No. No. No. No. No. No. No. No. No .
本发明涉及人工神经网络技术领域,特别是涉及具有深度时间划窗的神经元信息处理方法和系统。The present invention relates to the field of artificial neural network technology, and in particular to a neuron information processing method and system with deep time windowing.
如今的人工神经网络研究绝大多数仍是在冯·诺依曼计算机软件并搭配高性能GPGPU(General Purpose Graphic Processing Units通用图形处理单元)平台中实现的,整个过程的硬件开销、能耗和信息处理速度都不容乐观。为此,近几年神经形态计算领域迅猛发展,即采用硬件电路直接构建神经网络从而模拟大脑的功能,试图实现大规模并行、低能耗、可支撑复杂模式学习的计算平台。Most of today's artificial neural network research is still implemented in von Neumann computer software and with the high-performance GPGPU (General Purpose Graphic Processing Units) platform, the hardware overhead, energy consumption and information of the whole process. Processing speed is not optimistic. To this end, in recent years, the field of neuromorphic computing has developed rapidly, that is, the use of hardware circuits to directly construct neural networks to simulate the function of the brain, trying to achieve a massively parallel, low-energy, computing platform that can support complex mode learning.
然而,传统的脉冲神经元信息处理方法中,当前脉冲神经元的输出信息只能在下一个时间步影响到其后端连接的脉冲神经元,忽略了生物神经元间的时间域深度效应。However, in the traditional pulse neuron information processing method, the output information of the current pulsed neuron can only affect the pulse neurons connected to the back end in the next time step, ignoring the time domain depth effect between the biological neurons.
发明内容Summary of the invention
基于此,有必要针对当前脉冲神经元的输出信息只能在下一个时间步影响到其后端连接的脉冲神经元,忽略了生物神经元间的时间域深度效应的问题,提供一种具有深度时间划窗的神经元信息处理方法和系统,其中,所述方法包括:Based on this, it is necessary to analyze the output information of the current pulsed neurons only in the next time step to the pulse neurons connected to the back end, ignoring the problem of the time domain depth effect between biological neurons, providing a depth time A windowed neuron information processing method and system, wherein the method comprises:
接收前端脉冲神经元输出信息,所述前端脉冲神经元输出信息包括前端脉冲神经元输出的脉冲尖端信息;Receiving front end pulse neuron output information, the front end pulse neuron output information including pulse tip information output by the front end pulse neuron;
读取第一当前脉冲神经元信息,所述第一当前脉冲神经元信息包括当前时间窗内脉冲尖端信息历史序列;Reading first current pulse neuron information, the first current pulse neuron information including a pulse tip information history sequence in a current time window;
根据所述前端脉冲神经元输出的脉冲尖端信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列根据所述当前时间窗内脉冲尖端信息更新序列,确定第二当前脉冲神经元信息;Obtaining, according to the pulse tip information outputted by the front-end pulse neuron, and the pulse-tip information history sequence in the current time window, acquiring a pulse tip information update sequence in the current time window according to the pulse tip information update sequence in the current time window, and determining Second current pulsed neuron information;
根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息;
Calculating current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information;
输出所述当前脉冲神经元输出信息。Outputting the current pulse neuron output information.
在其中一个实施例中,所述当前时间窗内脉冲尖端信息历史序列,包括:按时间步顺序存储的,当前时间步前的N个时间步接收的各前端脉冲神经元输出信息组成的序列,其中,所述当前时间窗内脉冲尖端信息历史序列中的第一个时间步的脉冲尖端信息,为当前时间步前的第一个时间步接收的前端脉冲神经元输出信息,所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息,为当前时间步前的第N个时间步接收的前端脉冲神经元输出信息,其中N为自然数;In one embodiment, the pulse sequence information history sequence in the current time window includes: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step, stored in time step order, The pulse tip information of the first time step in the history sequence of the pulse tip information in the current time window is the front end pulse neuron output information received at the first time step before the current time step, the current time window The pulse tip information of the Nth time step in the history sequence of the internal pulse tip information is the front end pulse neuron output information received at the Nth time step before the current time step, where N is a natural number;
则所述根据所述前端脉冲神经元输出信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列,包括:And acquiring, according to the front-end pulse neuron output information, and the pulse-tip information history sequence in the current time window, the pulse tip information update sequence in the current time window, including:
将所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息删除,将第一个时间步至第N-1个时间步的脉冲尖端信息,顺序变更为第二个时间步至第N个时间步的脉冲尖端信息;Deleting the pulse tip information of the Nth time step in the pulse tip information history sequence in the current time window, and changing the pulse tip information of the first time step to the N-1th time step to the second Pulse tip information from time step to Nth time step;
将当前时间步接收的所述前端脉冲神经元输出信息,设置为所述当前时间窗内脉冲尖端信息历史序列中第一个时间步的脉冲尖端信息;Setting the front-end pulse neuron output information received by the current time step as pulse tip information of the first time step in the pulse tip information history sequence in the current time window;
将更新后的第一个时间步至第N个时间步的脉冲尖端信息,组成当前时间窗内脉冲尖端信息更新序列。The pulsed tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
在其中一个实施例中,所述前端脉冲神经元输出信息,还包括:前端神经元与当前神经元的连接权重索引;In one embodiment, the front-end pulse neuron outputs information, and further includes: a connection weight index of the front-end neuron and the current neuron;
所述当前脉冲神经元信息,还包括:当前时间窗宽度、历史膜电位信息和膜电位泄漏信息;The current pulsed neuron information further includes: a current time window width, historical membrane potential information, and membrane potential leakage information;
所述根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息,包括:The calculating, according to the front-end pulse neuron information and the second current pulse neuron information, the current pulse neuron output information, including:
根据所述前端神经元与当前神经元的连接权重索引,读取前端神经元与当前神经元的连接权重;Reading a connection weight of the front-end neuron and the current neuron according to the connection weight index of the front-end neuron and the current neuron;
根据所述当前时间窗宽度、所述当前时间窗内脉冲尖端信息更新序列,通过衰减函数计算前端脉冲神经元输入信息;And calculating, according to the current time window width, the pulse tip information update sequence in the current time window, the front end pulse neuron input information by using an attenuation function;
根据所述前端脉冲神经元输入信息、所述前端脉冲神经元与当前脉冲神经元的连接权重、所述历史膜电位信息、所述膜电位泄漏信息,通过脉冲神经元计算模型,计算当前脉冲神经元输出信息。Calculating the current pulsed nerve by using a pulse neuron calculation model according to the front end pulse neuron input information, the connection weight of the front end pulse neuron and the current pulse neuron, the historical membrane potential information, and the membrane potential leakage information Meta output information.
在其中一个实施例中,在所述根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息的步骤之后在,在所述输出所述当前脉冲神经元输出信息的步骤之前,所述方法还包括:
In one embodiment, after the step of calculating current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information, the current pulse nerve is output at the Before the step of outputting information, the method further includes:
获取阈值电位;Obtaining a threshold potential;
将所述当前脉冲神经元输出信息和所述阈值电位进行比较,根据比较结果确定发放触发标志信息,所述发放触发标志信息包括:发放触发或发放不触发;当所述发放触发标志信息为发放触发时,Comparing the current pulsed neuron output information with the threshold potential, and determining the issuance triggering flag information according to the comparison result, where the issuing triggering flag information includes: issuing a trigger or issuing a non-trigger; and when the issuing triggering flag information is issued When triggered,
复位不应期计时器,并更新所述历史膜电位信息为预设的复位膜电位信息。The refractory period timer is reset, and the historical membrane potential information is updated to a preset reset membrane potential information.
在其中一个实施例中,还包括:In one embodiment, the method further includes:
当所述发放触发标志信息为发放不触发时,读取不应期宽度和不应期计时器的当前时间步;When the issue trigger flag information is not triggered by the issue, the current time step of the refractory period width and the refractory period timer is read;
根据所述不应期宽度和所述不应期计时器的当前时间步,判断当前时间是否在不应期内,若当前时间在所述不应期内,将所述不应期计时器累加计时一个时间步,不更新所述历史膜电位信息;Determining whether the current time is within the refractory period according to the refractory period width and the current time step of the refractory period timer, and if the current time is within the refractory period, accumulating the refractory period timer Timing a time step without updating the historical membrane potential information;
若当前时间不在应期内,将所述不应期计时器累加计时一个时间步,并更新所述历史膜电位信息为所述当前脉冲神经元输出信息。If the current time is not within the due period, the refractory period timer is cumulatively counted for one time step, and the historical membrane potential information is updated to be the current pulsed neuron output information.
在其中一个实施例中,所述获取阈值电位,包括:In one embodiment, the obtaining a threshold potential includes:
读取随机阈值掩模电位、阈值偏置和随机阈值;Reading a random threshold mask potential, a threshold offset, and a random threshold;
将所述随机阈值和所述随机阈值掩模电位进行按位与操作,获取阈值随机叠加量;Performing a bitwise AND operation on the random threshold and the random threshold mask potential to obtain a threshold random superposition amount;
根据所述阈值随机叠加量和所述阈值偏置,确定所述阈值电位。The threshold potential is determined based on the threshold random amount and the threshold offset.
在其中一个实施例中,所述输出所述当前脉冲神经元输出信息,包括:In one embodiment, the outputting the current pulse neuron output information comprises:
读取发放使能标识,所述发放使能标识包括允许发放数据或不允许发放数据;当所述发放使能标识为允许发放数据时,Reading an issue enable identifier, where the issue enable identifier includes allowing data to be issued or not allowing data to be issued; when the issue enable identifier is allowed to issue data,
读取所述发放触发标志信息,当所述发放触发标志信息为发放触发时;Reading the issue trigger flag information, when the issue trigger flag information is an issue trigger;
输出所述当前脉冲神经元输出信息。Outputting the current pulse neuron output information.
本发明所提供的具有深度时间划窗的神经元信息处理方法,根据前端脉冲神经元输出信息,和当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列,用于当前脉冲神经元的输出信息的计算,使得当前脉冲神经元的输出信息与当前时间窗内脉冲尖端信息历史序列,以及当前时间步接收到的前端脉冲神经元输出信息均相关。突破了仅具有前后时间步相互关联的限制,可以根据需要灵活设置缓存更大时间深度的历史活动信息,在时间域深度效应方面更加接近生物神经元。The neuron information processing method with deep time windowing provided by the present invention obtains the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current tip window pulse tip information history sequence, and is used for current The output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
在其中一个实施例中,根据时间步顺序存储前N个时间步接收到的各前端脉冲神经元输出信息,在接收到当前时间步的前端脉冲神经元输出信息后,将历史序列中的信息顺序向后移动一位,将当前时间步接收到的脉冲信息填入第一位,获取更新后的脉冲尖端信息序列用于当前脉冲神经元输出信息的计算。根据时间进行滑动,将历史脉冲尖端信息和当前时间步
的脉冲尖端信息相结合,使得接收到的前端脉冲神经元的输出信息,可以根据需求灵活设置所需要的时间深度,且根据时间顺序进行滑动的方法,更加符合生物神经元时间深度效应。In one embodiment, the front-end pulse neuron output information received in the first N time steps is stored according to the time step sequence, and the information sequence in the historical sequence is sequenced after receiving the front-end pulse neuron output information of the current time step. Move one bit backward, fill the pulse information received by the current time step into the first place, and obtain the updated pulse tip information sequence for the calculation of the current pulse neuron output information. Slide according to time, history pulse tip information and current time step
The combination of the pulse tip information enables the output information of the received front-end pulse neurons to be flexibly set according to the required time depth, and the sliding method according to the chronological order is more in line with the biological neuron time depth effect.
在其中一个实施例中,通过读取随机阈值掩模电位和阈值偏置,并接收配置寄存器给出的配置值,确定所述阈值电位,使得神经元发放脉冲尖端信息具有一定概率的随机性。In one of these embodiments, the threshold potential is determined by reading a random threshold mask potential and a threshold bias and receiving a configuration value given by a configuration register such that the neuron issues pulse tip information with a probability of randomness.
在其中一个实施例中,通过设置发放使能标识和发放触发标志,确定当前脉冲神经元输出信息,使得脉冲神经元的输出的可控性更高,发放使能标志可以配置有的神经元不允许发放数据,而只用作中间辅助计算神经元,这对于一些需要多神经元协作完成的功能是非常必要的。In one embodiment, the current pulse neuron output information is determined by setting the release enable identifier and the issue trigger flag, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured with neurons that are not configured. It is allowed to issue data, but only as an intermediate auxiliary computing neuron, which is necessary for some functions that require multiple neurons to work together.
本发明还提供一种具有深度时间划窗的神经元信息处理系统,包括:The invention also provides a neuron information processing system with deep time windowing, comprising:
前端脉冲神经元输出信息接收模块,用于接收前端脉冲神经元输出信息,所述前端脉冲神经元输出信息包括前端脉冲神经元输出的脉冲尖端信息;a front-end pulse neuron output information receiving module, configured to receive front-end pulse neuron output information, where the front-end pulse neuron output information includes pulse tip information output by the front-end pulse neuron;
第一当前脉冲神经元信息读取模块,用于读取第一当前脉冲神经元信息,所述第一当前脉冲神经元信息包括当前时间窗内脉冲尖端信息历史序列;a first current pulse neuron information reading module, configured to read first current pulse neuron information, where the first current pulse neuron information includes a pulse tip information history sequence in a current time window;
当前时间窗内脉冲尖端信息更新序列获取模块,用于根据所述前端脉冲神经元输出的脉冲尖端信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列;a current time window in-time pulse tip information update sequence acquisition module, configured to acquire a pulse tip information update sequence in a current time window according to pulse tip information output by the front end pulse neuron and a pulse tip information history sequence in the current time window ;
第二当前脉冲神经元信息确定模块,用于根据所述当前时间窗内脉冲尖端信息更新序列,确定第二当前脉冲神经元信息;a second current pulse neuron information determining module, configured to determine second current pulse neuron information according to the current time window intrapulse information update sequence;
当前脉冲神经元输出信息计算模块,用于根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息;The current pulse neuron output information calculation module is configured to calculate current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information;
当前脉冲神经元输出信息输出模块,用于输出所述当前脉冲神经元输出信息。The current pulse neuron output information output module is configured to output the current pulse neuron output information.
在其中一个实施例中,所述当前时间窗内脉冲尖端信息历史序列,包括:按时间步顺序存储的,当前时间步前的N个时间步接收的各前端脉冲神经元输出信息组成的序列,其中,所述当前时间窗内脉冲尖端信息历史序列中的第一个时间步的脉冲尖端信息,为当前时间步前的第一个时间步接收的前端脉冲神经元输出信息,所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息,为当前时间步前的第N个时间步接收的前端脉冲神经元输出信息,其中N为自然数;In one embodiment, the pulse sequence information history sequence in the current time window includes: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step, stored in time step order, The pulse tip information of the first time step in the history sequence of the pulse tip information in the current time window is the front end pulse neuron output information received at the first time step before the current time step, the current time window The pulse tip information of the Nth time step in the history sequence of the internal pulse tip information is the front end pulse neuron output information received at the Nth time step before the current time step, where N is a natural number;
则所述当前时间窗内脉冲尖端信息更新序列获取模块,用于:Then, the pulse tip information update sequence acquisition module in the current time window is used to:
将所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息删除,将第一个时间步至第N-1个时间步的脉冲尖端信息,顺序变更为第二个时间步至第N个时间步的脉冲尖端信息;Deleting the pulse tip information of the Nth time step in the pulse tip information history sequence in the current time window, and changing the pulse tip information of the first time step to the N-1th time step to the second Pulse tip information from time step to Nth time step;
将当前时间步接收的所述前端脉冲神经元输出信息,设置为所述当前时间窗内脉冲尖端
信息历史序列中第一个时间步的脉冲尖端信息;Setting the front end pulse neuron output information received at the current time step as a pulse tip in the current time window
Pulse tip information of the first time step in the sequence of information history;
将更新后的第一个时间步至第N个时间步的脉冲尖端信息,组成当前时间窗内脉冲尖端信息更新序列。The pulsed tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
在其中一个实施例中,所述前端脉冲神经元输出信息,还包括:前端神经元与当前神经元的连接权重索引;In one embodiment, the front-end pulse neuron outputs information, and further includes: a connection weight index of the front-end neuron and the current neuron;
所述当前脉冲神经元信息,还包括:当前时间窗宽度、历史膜电位信息和膜电位泄漏信息;The current pulsed neuron information further includes: a current time window width, historical membrane potential information, and membrane potential leakage information;
所述当前脉冲神经元输出信息计算模块,包括:The current pulse neuron output information calculation module includes:
脉冲神经元连接权重读取单元,用于根据所述前端神经元与当前神经元的连接权重索引,读取前端神经元与当前神经元的连接权重;a pulsed neuron connection weight reading unit, configured to read a connection weight of the front end neuron and the current neuron according to a connection weight index of the front end neuron and the current neuron;
前端脉冲神经元输入信息计算单元,用于根据所述当前时间窗宽度、所述当前时间窗内脉冲尖端信息更新序列,通过衰减函数计算前端脉冲神经元输入信息;a front-end pulse neuron input information calculation unit, configured to calculate front-end pulse neuron input information by using an attenuation function according to the current time window width, the pulse tip information update sequence in the current time window;
当前脉冲神经元输出信息计算单元,用于根据所述前端脉冲神经元输入信息、所述前端脉冲神经元与当前脉冲神经元的连接权重、所述历史膜电位信息、所述膜电位泄漏信息,通过脉冲神经元计算模型,计算当前脉冲神经元输出信息。a current pulse neuron output information calculation unit, configured to input, according to the front end pulse neuron input information, a connection weight of the front end pulse neuron and a current pulse neuron, the historical membrane potential information, and the membrane potential leakage information, The current pulsed neuron output information is calculated by a pulsed neuron calculation model.
在其中一个实施例中,还包括:In one embodiment, the method further includes:
阈值电位获取模块,用于获取阈值电位;a threshold potential acquisition module, configured to acquire a threshold potential;
发放触发标志信息确定模块,用于将所述当前脉冲神经元输出信息和所述阈值电位进行比较,根据比较结果确定发放触发标志信息,所述发放触发标志信息包括:发放触发或发放不触发;当所述发放触发标志信息为发放触发时,The issuance triggering flag information determining module is configured to compare the current pulsed neuron output information with the threshold potential, and determine the issuance triggering flag information according to the comparison result, where the issuing triggering flag information includes: issuing a trigger or issuing a trigger; When the issuing trigger flag information is an issue trigger,
不应期计时器复位模块,用于复位不应期计时器,并更新所述历史膜电位信息为预设的复位膜电位信息。The refractory timer reset module is configured to reset the refractory period timer and update the historical membrane potential information to a preset reset membrane potential information.
在其中一个实施例中,还包括:In one embodiment, the method further includes:
当所述发放触发标志信息为发放不触发时,When the issue trigger flag information is not triggered by the issue,
不应期计时器读取模块,用于读取不应期宽度和不应期计时器的当前时间步;The refractory timer reading module is used to read the current time step of the refractory width and the refractory period timer;
不应期判断模块,用于根据所述不应期宽度和所述不应期计时器的当前时间步,判断当前时间是否在不应期内,若当前时间在所述不应期内,将所述不应期计时器累加计时一个时间步,不更新所述历史膜电位信息;若当前时间不在应期内,将所述不应期计时器累加计时一个时间步,并更新所述历史膜电位信息为所述当前脉冲神经元输出信息。The refractory period determining module is configured to determine whether the current time is within the refractory period according to the refractory period width and the current time step of the refractory period timer, and if the current time is within the refractory period, The refractory period timer accumulates a time step, does not update the historical membrane potential information; if the current time is not within the due period, accumulates the refractory period timer for one time step, and updates the historical film The potential information is the current pulse neuron output information.
在其中一个实施例中,所述阈值电位获取模块,包括:In one embodiment, the threshold potential acquisition module includes:
阈值信息读取单元,用于读取随机阈值掩模电位、阈值偏置和随机阈值;a threshold information reading unit, configured to read a random threshold mask potential, a threshold offset, and a random threshold;
随机叠加量获取单元,用于将所述随机阈值和所述随机阈值掩模电位进行按位与操作,
获取阈值随机叠加量;a random superposition amount acquiring unit, configured to perform bitwise AND operation on the random threshold and the random threshold mask potential,
Obtain a threshold random stack amount;
阈值电位确定单元,用于根据所述阈值随机叠加量和所述阈值偏置,确定所述阈值电位。And a threshold potential determining unit configured to determine the threshold potential according to the threshold random amount and the threshold offset.
在其中一个实施例中,所述当前脉冲神经元信息输出模块,包括:In one embodiment, the current pulse neuron information output module includes:
使能标识读取单元,用于读取发放使能标识,所述发放使能标识包括允许发放数据或不允许发放数据;当所述发放使能标识为允许发放数据时,The identification identifier reading unit is configured to read an issue enable identifier, where the release enable identifier includes allowing data to be released or not allowing data to be issued; and when the issue enable identifier is allowed to issue data,
发放触发标志信息读取单元,用于读取所述发放触发标志信息,当所述发放触发标志信息为发放触发时;And issuing a trigger flag information reading unit, configured to read the issue trigger flag information, when the issue trigger flag information is an issue trigger;
当前脉冲神经元信息输出单元,用于输出所述当前脉冲神经元输出信息。The current pulse neuron information output unit is configured to output the current pulse neuron output information.
本发明所提供的具有深度时间划窗的神经元信息处理系统,根据前端脉冲神经元输出信息,和当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列,用于当前脉冲神经元的输出信息的计算,使得当前脉冲神经元的输出信息与当前时间窗内脉冲尖端信息历史序列,以及当前时间步接收到的前端脉冲神经元输出信息均相关。突破了仅具有前后时间步相互关联的限制,可以根据需要灵活设置缓存更大时间深度的历史活动信息,在时间域深度效应方面更加接近生物神经元。The neuron information processing system with deep time windowing provided by the present invention acquires the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current time window pulse tip information history sequence, and is used for current The output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
在其中一个实施例中,根据时间步顺序存储前N个时间步接收到的各前端脉冲神经元输出信息,在接收到当前时间步的前端脉冲神经元输出信息后,将历史序列中的信息顺序向后移动一位,将当前时间步接收到的脉冲信息填入第一位,获取更新后的脉冲尖端信息序列用于当前脉冲神经元输出信息的计算。根据时间进行滑动,将历史脉冲尖端信息和当前时间步的脉冲尖端信息相结合,使得接收到的前端脉冲神经元的输出信息,可以根据需求灵活设置所需要的时间深度,且根据时间顺序进行滑动的方法,更加符合生物神经元时间深度效应。In one embodiment, the front-end pulse neuron output information received in the first N time steps is stored according to the time step sequence, and the information sequence in the historical sequence is sequenced after receiving the front-end pulse neuron output information of the current time step. Move one bit backward, fill the pulse information received by the current time step into the first place, and obtain the updated pulse tip information sequence for the calculation of the current pulse neuron output information. Sliding according to time, combining the historical pulse tip information with the pulse tip information of the current time step, so that the output information of the received front-end pulse neurons can be flexibly set according to requirements, and the sliding is performed according to the time sequence. The method is more in line with the biological neuron time depth effect.
在其中一个实施例中,通过读取随机阈值掩模电位和阈值偏置,并接收配置寄存器给出的配置值,确定所述阈值电位,使得神经元发放脉冲尖端信息具有一定概率的随机性。In one of these embodiments, the threshold potential is determined by reading a random threshold mask potential and a threshold bias and receiving a configuration value given by a configuration register such that the neuron issues pulse tip information with a probability of randomness.
在其中一个实施例中,通过设置发放使能标识和发放触发标志,确定当前脉冲神经元输出信息,使得脉冲神经元的输出的可控性更高,发放使能标志可以配置有的神经元不允许发放数据,而只用作中间辅助计算神经元,这对于一些需要多神经元协作完成的功能是非常必要的。In one embodiment, the current pulse neuron output information is determined by setting the release enable identifier and the issue trigger flag, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured with neurons that are not configured. It is allowed to issue data, but only as an intermediate auxiliary computing neuron, which is necessary for some functions that require multiple neurons to work together.
图1为一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图;1 is a schematic flow chart of an adaptive leakage value neural network information processing method according to an embodiment;
图2为另一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图;2 is a schematic flow chart of an adaptive leak value neural network information processing method according to another embodiment;
图3为又一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图;3 is a schematic flow chart of an adaptive leakage value neural network information processing method according to still another embodiment;
图4为再一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图;
4 is a schematic flow chart of an adaptive leakage value neural network information processing method according to still another embodiment;
图5为一个实施例的自适应泄漏值神经网络信息处理方法中当前时间窗内脉冲尖端信息历史序列的结构示意图;5 is a schematic structural diagram of a pulse tip information history sequence in a current time window in an adaptive leakage value neural network information processing method according to an embodiment;
图6为另一个实施例的自适应泄漏值神经网络信息处理系统的结构示意图;6 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to another embodiment;
图7为又一个实施例的自适应泄漏值神经网络信息处理系统的结构示意图;7 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to still another embodiment;
图8为又一个实施例的自适应泄漏值神经网络信息处理系统的结构示意图。FIG. 8 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to still another embodiment.
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
图1为一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图,如图1所示的自适应泄漏值神经网络信息处理方法,包括:FIG. 1 is a schematic flowchart of an adaptive leakage value neural network information processing method according to an embodiment, and the adaptive leakage value neural network information processing method shown in FIG. 1 includes:
步骤S100,接收前端脉冲神经元输出信息,所述前端脉冲神经元输出信息包括前端脉冲神经元输出的脉冲尖端信息。Step S100: Receive front end pulse neuron output information, where the front end pulse neuron output information includes pulse tip information output by the front end pulse neuron.
具体的,所述前端脉冲神经元输出的脉冲尖端信息,是与当前脉冲神经元的连接的前端的脉冲神经元输出的脉冲尖端信息。Specifically, the pulse tip information output by the front end pulse neuron is pulse tip information output by the pulse neuron of the front end of the connection with the current pulse neuron.
步骤S200,读取第一当前脉冲神经元信息,所述第一当前脉冲神经元信息包括当前时间窗内脉冲尖端信息历史序列。Step S200, reading first current pulse neuron information, the first current pulse neuron information including a pulse tip information history sequence in a current time window.
具体的,所述当前时间窗内脉冲尖端信息历史序列,是指在所述当前时间窗宽度内,将过去一定范围内的时间步接收到的脉冲尖端信息,按时间顺序依次缓存的一个信息序列。Specifically, the pulse tip information history sequence in the current time window refers to a sequence of information in which the pulse tip information received in a time range within a certain range in the current time window width is sequentially cached in time series. .
步骤S300,根据所述前端脉冲神经元输出的脉冲尖端信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列。Step S300, acquiring a pulse tip information update sequence in the current time window according to the pulse tip information output by the front end pulse neuron and the pulse tip information history sequence in the current time window.
具体的,将当前时间步接收到的脉冲尖端信息,和所述过去一定范围内的时间步接收到的脉冲尖端信息,整合为新的当前时间窗内脉冲尖端信息更新序列,以使过去接收到的脉冲尖端信息,依然参与当前时间步的脉冲神经元输出信息的计算。Specifically, the pulse tip information received at the current time step and the pulse tip information received at the time step in the past range are integrated into a new current time window pulse tip information update sequence to be received in the past. The pulse tip information is still involved in the calculation of the pulse neuron output information for the current time step.
步骤S400,根据所述当前时间窗内脉冲尖端信息更新序列,确定第二当前脉冲神经元信息。Step S400, determining second current pulse neuron information according to the pulse tip information update sequence in the current time window.
具体的,由于当前脉冲神经元信息还包括其它信息,将更新后获取到的前时间窗内脉冲尖端信息更新序列,代替当前时间窗内脉冲尖端信息历史序列后,获取到第二当前脉冲神经元信息。Specifically, since the current pulse neuron information further includes other information, the pulse tip information update sequence in the pre-time window acquired after the update is replaced, and the second current pulse neuron is acquired after replacing the pulse tip information history sequence in the current time window. information.
步骤S500,根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息。
Step S500, calculating current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information.
具体的,所述前端脉冲神经元信息还包括其它信息,如前端脉冲神经元与当前脉冲神经元的连接权重索引,将所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算后获取当前脉冲神经元输出信息。Specifically, the front-end pulse neuron information further includes other information, such as a connection weight index of the front-end pulse neuron and the current pulse neuron, and the front-end pulse neuron information and the second current pulse neuron information are calculated. The current pulse neuron output information is obtained.
步骤S600,输出所述当前脉冲神经元输出信息。Step S600, outputting the current pulse neuron output information.
本发明所提供的具有深度时间划窗的神经元信息处理方法,根据前端脉冲神经元输出信息,和当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列,用于当前脉冲神经元的输出信息的计算,使得当前脉冲神经元的输出信息与当前时间窗内脉冲尖端信息历史序列,以及当前时间步接收到的前端脉冲神经元输出信息均相关。突破了仅具有前后时间步相互关联的限制,可以根据需要灵活设置缓存更大时间深度的历史活动信息,在时间域深度效应方面更加接近生物神经元。The neuron information processing method with deep time windowing provided by the present invention obtains the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current tip window pulse tip information history sequence, and is used for current The output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
图2为另一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图,如图2所示的自适应泄漏值神经网络信息处理方法,为图1中步骤S300的详细步骤,包括:2 is a schematic flowchart of an adaptive leakage value neural network information processing method according to another embodiment. The adaptive leakage value neural network information processing method shown in FIG. 2 is a detailed step of step S300 in FIG. 1, and includes:
步骤S310,将所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息删除,将第一个时间步至第N-1个时间步的脉冲尖端信息,顺序变更为第二个时间步至第N个时间步的脉冲尖端信息。Step S310, deleting the pulse tip information of the Nth time step in the history sequence of the pulse tip information in the current time window, and changing the pulse tip information of the first time step to the N-1 time step to the sequence Pulse tip information from the second time step to the Nth time step.
具体的,所述当前时间窗内脉冲尖端信息历史序列,包括:按时间步顺序存储的,当前时间步前的N个时间步接收的各前端脉冲神经元输出信息组成的序列,其中,所述当前时间窗内脉冲尖端信息历史序列中的第一个时间步的脉冲尖端信息,为当前时间步前的第一个时间步接收的前端脉冲神经元输出信息,所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息,为当前时间步前的第N个时间步接收的前端脉冲神经元输出信息。Specifically, the pulse tip information history sequence in the current time window includes: a sequence consisting of outputting information of each front-end pulse neuron received by N time steps before the current time step, stored in a time step order, wherein The pulse tip information of the first time step in the history sequence of the pulse tip information in the current time window is the front end pulse neuron output information received at the first time step before the current time step, and the pulse tip information in the current time window The pulse tip information of the Nth time step in the history sequence is the front end pulse neuron output information received at the Nth time step before the current time step.
如图5所示,所述当前时间窗内脉冲尖端信息历史序列,从右手至左,按时间步顺序存储有当前时间步前的15个时间步接收的各前端脉冲神经元输出信息,由于每个时间步接收的各前端脉冲神经元信息,根据实际情况包含多个前端脉冲神经元信息,在图5中用竖列的形式来表示,其中的每个圆圈,代表单个前端脉冲神经元输出的脉冲尖端信息。As shown in FIG. 5, the pulse tip information history sequence in the current time window stores, from the right hand to the left, the output information of each front-end pulse neuron received by the 15 time steps before the current time step in time step order, since each Each front-end pulse neuron information received by the time step includes a plurality of front-end pulse neuron information according to actual conditions, and is represented by a vertical column in FIG. 5, wherein each circle represents a single front-end pulse neuron output. Pulse tip information.
在当前时间步,将图5中,最左侧的第15列的脉冲尖端信息删除,将第1至第14列的脉冲尖端信息,顺序变更为第2至第15列的脉冲尖端信息。In the current time step, the pulse tip information of the 15th column on the leftmost side in FIG. 5 is deleted, and the pulse tip information of the 1st to 14th columns is sequentially changed to the pulse tip information of the 2nd to 15th columns.
步骤S320,将当前时间步接收的所述前端脉冲神经元输出信息,设置为所述当前时间窗内脉冲尖端信息历史序列中第一个时间步的脉冲尖端信息。Step S320, setting the front end pulse neuron output information received by the current time step as the pulse tip information of the first time step in the pulse tip information history sequence in the current time window.
具体的,将当前时间步接收的前端脉冲尖端信息,放入图5中第1列中。Specifically, the front end pulse tip information received at the current time step is placed in the first column of FIG.
步骤S330,将更新后的第一个时间步至第N个时间步的脉冲尖端信息,组成当前时间窗内脉冲尖端信息更新序列。Step S330, the pulse tip information of the updated first time step to the Nth time step is formed into a pulse tip information update sequence in the current time window.
具体的,新的第1至第15个时间步的脉冲尖端信息,为更新后的当前时间窗内脉冲尖端
信息更新序列。Specifically, the new pulse tip information of the first to the 15th time steps is the pulse tip in the updated current time window.
Information update sequence.
在实际的使用中,可以用移位寄存器阵列实现上述脉冲尖端序列的存储,也可以由普通存储器实现,由于存储器只能按照地址进行读写访问,不能像移位寄存器那样根据时钟信号自动完成移位操作,只能通过“读取→数据拼接→写入”系列操作完成,其中数据拼接的原理是:基于目前读取的历史发放信息和最新发放信息,然后截取历史发放信息的低15位和最新发放信息组合拼接,送至后续计算模块(输入产生加法器),并重新写回spike缓存RAM中。存储器的行地址和写使能等信号,由系统的读写控制模块给出,通过这种拼接的方式,等效于移位寄存器通过移位的方式,都能实现时间域滑窗的操作。In actual use, the shift register array can be used to store the pulse tip sequence, or it can be implemented by a common memory. Since the memory can only be read and written according to the address, it cannot be automatically shifted according to the clock signal like the shift register. The bit operation can only be completed through the series of “read→data splicing→writing”. The principle of data splicing is: based on the history information and the latest release information currently read, and then intercept the lower 15 bits of the historical release information. The latest release information is spliced and sent to the subsequent calculation module (the input produces the adder) and rewritten back into the spike cache RAM. The row address and write enable signals of the memory are given by the system's read/write control module. Through this splicing method, the operation of the time domain sliding window can be realized by shifting the shift register.
在本实施例中,根据时间步顺序存储前N个时间步接收到的各前端脉冲神经元输出信息,在接收到当前时间步的前端脉冲神经元输出信息后,将历史序列中的信息顺序向后移动一位,将当前时间步接收到的脉冲信息填入第一位,获取更新后的脉冲尖端信息序列用于当前脉冲神经元输出信息的计算。根据时间进行滑动,将历史脉冲尖端信息和当前时间步的脉冲尖端信息相结合,使得接收到的前端脉冲神经元的输出信息,可以根据需求灵活设置所需要的时间深度,且根据时间顺序进行滑动的方法,更加符合生物神经元时间深度效应。In this embodiment, the front-end pulse neuron output information received in the first N time steps is stored according to the time step sequence, and after the front-end pulse neuron output information of the current time step is received, the information in the historical sequence is sequentially sequenced. After moving one bit, the pulse information received at the current time step is filled in the first place, and the updated pulse tip information sequence is obtained for the calculation of the current pulse neuron output information. Sliding according to time, combining the historical pulse tip information with the pulse tip information of the current time step, so that the output information of the received front-end pulse neurons can be flexibly set according to requirements, and the sliding is performed according to the time sequence. The method is more in line with the biological neuron time depth effect.
图3为又一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图,如图3所示的自适应泄漏值神经网络信息处理方法,包括:FIG. 3 is a schematic flowchart diagram of an adaptive leakage value neural network information processing method according to still another embodiment, and the adaptive leakage value neural network information processing method shown in FIG. 3 includes:
步骤S100b,接收前端脉冲神经元输出的脉冲尖端信息、前端脉冲神经元与当前脉冲神经元的连接权重索引。Step S100b: Receive pulse tip information output by the front end pulse neuron, and a connection weight index of the front end pulse neuron and the current pulse neuron.
具体的,所述前端脉冲神经元与当前脉冲神经元的连接权重索引,是前端神经元与所述前端脉冲神经元输出信息一同发送的权重索引,用于指示当前神经元权重的提取。所述前端脉冲神经元输出的脉冲尖端信息,为前端脉冲神经元发送的脉冲尖端信号(spike)。Specifically, the connection weight index of the front-end pulse neuron and the current pulse neuron is a weight index sent by the front-end neuron together with the output information of the front-end pulse neuron, and is used to indicate the extraction of the current neuron weight. The pulse tip information output by the front end pulse neuron is a pulse tip signal sent by the front end pulse neuron.
步骤S200b,读取当前时间窗宽度、当前时间窗内脉冲尖端信息更新序列、历史膜电位信息和膜电位泄漏信息。Step S200b, reading the current time window width, the pulse tip information update sequence in the current time window, the historical membrane potential information, and the membrane potential leakage information.
具体的,除所述当前时间窗内脉冲尖端信息更新序列,所述当前时间窗宽度、所述历史膜电位信息和膜电位泄漏信息,均为第一当前脉冲神经元信息中的信息。Specifically, in addition to the pulse tip information update sequence in the current time window, the current time window width, the historical film potential information, and the membrane potential leakage information are information in the first current pulse neuron information.
步骤S300b,根据所述前端神经元与当前神经元的连接权重索引,读取前端神经元与当前神经元的连接权重。Step S300b: The connection weight of the front-end neuron and the current neuron is read according to the connection weight index of the front-end neuron and the current neuron.
具体的,所述前端脉冲神经元与当前脉冲神经元的连接权重索引,是一个地址信息,当前神经元根据接收到的所述前端脉冲神经元与当前脉冲神经元的连接权重索引,在当前神经元内的存储器中,读取到前端脉冲神经元与当前脉冲神经元的连接权重,根据所述的连接权重信息,可以将前端神经元的输出信息,在参与当前神经元输出信息的计算过程中,更准确的反应出前端神经元的输出信息的权重,携带更丰富的信息。
Specifically, the connection weight index of the front-end pulse neuron and the current pulse neuron is an address information, and the current neuron is indexed according to the received connection weight of the front-end pulse neuron and the current pulse neuron. In the memory in the element, the connection weight of the front-end pulse neuron and the current pulse neuron is read, and according to the connection weight information, the output information of the front-end neuron can be used in the calculation process of participating in the current neuron output information. More accurately reflects the weight of the output information of the front-end neurons, carrying more abundant information.
步骤S400b,根据所述当前时间窗宽度、所述当前时间窗内脉冲尖端信息更新序列,通过衰减函数计算前端脉冲神经元输入信息。Step S400b, calculating front-end pulse neuron input information by using an attenuation function according to the current time window width and the current time window intra-pulse tip information update sequence.
具体的,所述当前时间窗内脉冲尖端信息更新序列中,包含当前时间步前的N个时间步的历史脉冲尖端信息,在参与当前脉冲神经元输出信息的计算中,利用衰减因子Ki,离当前时间步越近的列,其衰减因子越大,即其输入对后端神经元的影响越大;反之,则越小。Specifically, the pulse tip information update sequence in the current time window includes historical pulse tip information of N time steps before the current time step, and uses an attenuation factor K i in the calculation of the current pulse neuron output information. The closer the column is to the current time step, the greater the attenuation factor, ie the greater the effect of its input on the back-end neurons; conversely, the smaller.
为了保证每一行在整个时间窗内所有衰减因子相加后的和不溢出,即该行每一个点spike输入都为1,需要对原始时间衰减曲线上的所有Ki进行归一化操作:
In order to ensure that each row adds and subtracts all the attenuation factors in the entire time window, that is, the spike input at each point of the row is 1, it is necessary to normalize all K i on the original time decay curve:
步骤S500b,根据所述前端脉冲神经元输入信息、所述前端脉冲神经元与当前脉冲神经元的连接权重、所述历史膜电位信息、所述膜电位泄漏信息,通过脉冲神经元计算模型,计算当前脉冲神经元输出信息。Step S500b, calculating, according to the front-end pulse neuron input information, the connection weight of the front-end pulse neuron and the current pulse neuron, the historical membrane potential information, and the membrane potential leakage information, by calculating a pulse neuron calculation model Current pulsed neuron output information.
具体的,利用如下公式表示前端脉冲神经元输入信息的计算:Specifically, the calculation of the input information of the front-end pulse neuron is represented by the following formula:
其中Wij为所述前端脉冲神经元j和当前脉冲神经元i的连接权重,Tw为所述时间窗宽度,δj为前端神经元j在当前时间窗内发放spike后,在所述当前时间窗内脉冲尖端信息更新序列内的时间步。t为当前时刻,K(Δt)为一个衰减函数,随着Δt增大而迅速减小。在胞体处的基本模型可以简化为:Where W ij is the connection weight of the front-end pulse neuron j and the current pulse neuron i, T w is the time window width, and δ j is the front-end neuron j after the spike is issued in the current time window, at the current The time step within the time window of the pulse tip information update sequence. t is the current time, K(Δt) is an attenuation function that decreases rapidly as Δt increases. The basic model at the cell body can be simplified to:
VSNN=f(V+Vinput+Vleak)V SNN =f(V+V input +V leak )
发放模型和复位模型不变,其中V是存储器保存的历史膜电位信息,Vinput是当前拍累加的输入,等效于上述的Vleak为膜电位泄漏值信息。The release model and the reset model are unchanged, where V is the historical membrane potential information stored in the memory, and V input is the input of the current beat accumulation, equivalent to the above V leak is the membrane potential leakage value information.
在本实施例中,根据所述当前时间窗内脉冲尖端信息更新序列、所述当前时间窗宽度、所述前端脉冲神经元与当前脉冲神经元的连接权重,通过衰减函数计算前端脉冲神经元输入信息,可以支持具有时间深度的时空脉冲神经网络模型,相比于时间深度仅仅为一的神经网络技术方案,可以大大提高脉冲神经网络的时空信息编码能力,丰富脉冲神经网络的应用空间。In this embodiment, the front end pulse neuron input is calculated by the attenuation function according to the current time window pulse tip information update sequence, the current time window width, the connection weight of the front end pulse neuron and the current pulse neuron, and the attenuation function. The information can support the spatio-temporal pulse neural network model with time depth. Compared with the neural network technology scheme with only one time depth, the spatio-temporal information coding ability of the pulse neural network can be greatly improved, and the application space of the pulse neural network is enriched.
图4为再一个实施例的自适应泄漏值神经网络信息处理方法的流程示意图,如图4所示的自适应泄漏值神经网络信息处理方法,包括:4 is a schematic flowchart of an adaptive leakage value neural network information processing method according to still another embodiment, and the adaptive leakage value neural network information processing method shown in FIG. 4 includes:
步骤S100c,计算出当前脉冲神经元输出信息和阈值电位。In step S100c, the current pulse neuron output information and the threshold potential are calculated.
步骤S200c,判断所述当前脉冲神经元输出信息是否大于等于所述阈值电位,根据所述比较结果确定发放触发标志信息,所述发放触发标志信息包括发放触发或发放不触发,当确
定发放触发标志信息为发放触发时,接步骤S300c,当确定发放触发标志信息为发放不触发时,跳至步骤S400c。In step S200c, it is determined whether the current pulse neuron output information is greater than or equal to the threshold potential, and the issuing trigger flag information is determined according to the comparison result, where the issuing trigger flag information includes issuing a trigger or issuing a non-trigger, if
When the triggering flag information is issued, the process proceeds to step S300c. When it is determined that the issuance trigger flag information is not triggered, the process proceeds to step S400c.
具体的,根据所述阈值电位,与所述当前脉冲神经元输出信息进行比较,并根据比较结果确定发放触发标志信息。只有所述当前脉冲神经元输出信息大于所述阈值电位时,所述当前脉冲神经元输出信息才会被发送。Specifically, the threshold pulse potential is compared with the current pulse neuron output information, and the issue trigger flag information is determined according to the comparison result. The current pulse neuron output information is transmitted only when the current pulse neuron output information is greater than the threshold potential.
步骤S300c,复位不应期计时器,并更新所述历史膜电位信息为预设的复位膜电位信息。Step S300c, resetting the refractory period timer, and updating the historical membrane potential information to a preset reset membrane potential information.
具体的,当所述发放触发标志信息为发放触发时,所述当前脉冲神经元输出信息被发送,不应期计时器被复位后,重新计算不应期,并更新所述历史膜电位信息为预设的膜电位信息,且所述的历史膜电位信息更新,根据配置的复位类型,选择性将膜电位复位为当前膜电位、当前膜电位和阈值电位差值,或固定复位电压。Specifically, when the issue trigger flag information is an issue trigger, the current pulse neuron output information is sent, and after the refractory period timer is reset, the refractory period is recalculated, and the historical membrane potential information is updated. The preset membrane potential information, and the historical membrane potential information is updated, selectively resetting the membrane potential to the current membrane potential, the current membrane potential and the threshold potential difference, or a fixed reset voltage according to the configured reset type.
步骤S400c,读取不应期宽度和不应期计时器的当前时间步。Step S400c, reading the current time step of the refractory period width and the refractory period timer.
具体的,当所述发放触发标志信息为发放不触发时,所述当前脉冲神经元输出信息不被发送,进一步判断当前是否在不应期内。所述不应期宽度为不应期的时长范围,所述不应期计时器利用时间步的方式计时。Specifically, when the issuing trigger flag information is not triggered by the issuance, the current pulse neuron output information is not sent, and further determining whether the current period is within the refractory period. The refractory period width is a range of durations of the refractory period, and the refractory period timer is timed by means of a time step.
步骤S500c,根据所述不应期宽度和所述不应期计时器的当前时间步,判断当前时间是否在不应期内,若当前时间在所述不应期内,接步骤S600c,否则跳至步骤S700c。Step S500c, determining whether the current time is within the refractory period according to the refractory period width and the current time step of the refractory period timer. If the current time is within the refractory period, proceeding to step S600c, otherwise jumping Go to step S700c.
具体的,根据所述不应期计时器的当前时间步的累计计算,可以判断出当前时间步是否还在不应期内。Specifically, according to the cumulative calculation of the current time step of the refractory period timer, it can be determined whether the current time step is still in the refractory period.
步骤S600c,将所述不应期计时器累加计时一个时间步,不更新所述历史膜电位信息。Step S600c, accumulating the refractory period timer for one time step, and not updating the historical film potential information.
具体的,若当前时间在所述不应期内,根据脉冲神经网络的仿生特点,不对所述脉冲神经输出信息进行任何回应,不更新历史膜电位信息,所述历史膜电位信息,是下一个时间步的脉冲神经元需要读取的信息,即在不应期内,本次计算出的脉冲神经元输出信息不参与下一个时间步的计算。Specifically, if the current time is within the refractory period, according to the biomimetic characteristics of the pulsed neural network, no response is made to the pulsed nerve output information, and the historical membrane potential information is not updated, and the historical membrane potential information is the next The pulsed neurons of the time step need to read the information, that is, during the refractory period, the pulsed neuron output information calculated this time does not participate in the calculation of the next time step.
步骤S700c,将所述不应期计时器累加计时一个时间步,并更新所述历史膜电位信息为所述当前脉冲神经元输出信息。Step S700c, accumulating the refractory period timer for one time step, and updating the historical membrane potential information as the current pulse neuron output information.
具体的,如在不应期外,则将所述历史膜电位信息为所述当前脉冲神经元输出信息,参与下一个时间步的计算。Specifically, if the refractory period is outside, the historical membrane potential information is the current pulse neuron output information, and participates in the calculation of the next time step.
在本实施例中,通过设置阈值电位,小于所述阈值电位的当前脉冲神经元输出信息不能输出,可对当前脉冲神经元输出信息的输出进行控制,同时,不应期的设置,也将脉冲神经元的输出更加贴近生物神经元的反应。通过对当前脉冲神经元输出信息的上述控制机制,加强了对脉冲神经网络的信息处理控制,使其更加贴近生物神经元的工作机制。In this embodiment, by setting a threshold potential, current pulse neuron output information smaller than the threshold potential cannot be output, and the output of the current pulse neuron output information can be controlled, and at the same time, the refractory period is set, and the pulse is also The output of neurons is closer to the response of biological neurons. Through the above control mechanism of the output information of the current pulsed neurons, the information processing control of the pulsed neural network is strengthened, so that it is closer to the working mechanism of the biological neurons.
在其中一个实施例中,所述获取阈值电位,包括:读取随机阈值掩模电位、阈值偏置和
随机阈值;将所述随机阈值和所述随机阈值掩模电位进行按位与操作,获取阈值随机叠加量;根据所述阈值随机叠加量和所述阈值偏置,确定所述阈值电位。In one embodiment, the obtaining a threshold potential comprises: reading a random threshold mask potential, a threshold offset, and
a random threshold; performing a bitwise AND operation on the random threshold and the random threshold mask potential to obtain a threshold random superposition amount; determining the threshold potential according to the threshold random superimposition amount and the threshold offset.
具体的,伪随机数发生器产生一个随机阈值Vrand,利用所述随机阈值与预设的随机阈值掩模电位Vmask按位取与操作,产生阈值随机叠加量,再将所述阈值随机叠加量与预设的阈值偏置Vth0相加,产生真正的阈值电位Vth。其中,伪随机数发生器的初始种子由配置寄存器Vseed给出。掩模电位Vmask用于限制阈值增量的范围:若Vmask=0,则阈值随机叠加量也为0,发放模式退化为固定阈值发放,固定阈值为Vth0;若Vmask≠0,则发放模式为部分概率阈值发放。当极端情况Vth0=0,则发放模式为完全概率阈值发放。Specifically, the pseudo random number generator generates a random threshold V rand , and uses the random threshold and the preset random threshold mask potential V mask to perform a bitwise sum operation to generate a threshold random superposition amount, and then randomly superimpose the threshold value. The amount is added to the preset threshold offset Vth0 to produce a true threshold potential Vth . Wherein, the initial seed of the pseudo random number generator is given by the configuration register V seed . The mask potential V mask is used to limit the range of threshold increments: if V mask =0, the threshold random superposition amount is also 0, the release mode degenerates to a fixed threshold release, and the fixed threshold is V th0 ; if V mask ≠ 0, then The issuance mode is a partial probability threshold issue. When the extreme case V th0 =0, the issuance mode is a full probability threshold issuance.
在本实施例中,通过读取随机阈值掩模电位和阈值偏置,并接收配置寄存器给出的配置值,确定所述阈值电位,使得神经元发放脉冲尖端信息具有一定概率的随机性。In the present embodiment, the threshold potential is determined by reading the random threshold mask potential and the threshold offset and receiving the configuration value given by the configuration register, so that the neuron issues the pulse tip information with a certain probability of randomness.
在其中一个实施例中,所述输出所述当前脉冲神经元输出信息,包括:读取发放使能标识,所述发放使能标识包括允许发放数据或不允许发放数据;当所述发放使能标识为允许发放数据时,读取所述发放触发标志信息,当所述发放触发标志信息为发放触发时;输出所述当前脉冲神经元输出信息。In one embodiment, the outputting the current pulse neuron output information comprises: reading an issue enable identifier, wherein the issue enable identifier includes allowing data to be issued or not allowing data to be issued; When the data is allowed to be issued, the issuing trigger flag information is read, and when the issuing trigger flag information is an issue trigger, the current pulse neuron output information is output.
在本实施例中,通过设置发放使能标识和发放触发标志,确定当前脉冲神经元输出信息,使得脉冲神经元的输出的可控性更高,发放使能标志可以配置有的神经元不允许发放数据,而只用作中间辅助计算神经元,这对于一些需要多神经元协作完成的功能是非常必要的。In this embodiment, by setting the release enable identifier and the issue trigger flag, the current pulse neuron output information is determined, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured with neurons that are not allowed. Issuing data, but only as an intermediate auxiliary computing neuron, is necessary for some functions that require multiple neurons to work together.
图6为另一个实施例的自适应泄漏值神经网络信息处理系统的结构示意图,如图6所示的自适应泄漏值神经网络信息处理系统包括:6 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to another embodiment. The adaptive leakage value neural network information processing system shown in FIG. 6 includes:
前端脉冲神经元输出信息接收模块100,用于接收前端脉冲神经元输出信息,所述前端脉冲神经元输出信息包括前端脉冲神经元输出的脉冲尖端信息;所述前端脉冲神经元输出信息,还包括:前端神经元与当前神经元的连接权重索引。The front-end pulse neuron output information receiving module 100 is configured to receive front-end pulse neuron output information, where the front-end pulse neuron output information includes pulse tip information output by the front-end pulse neuron; and the front-end pulse neuron output information includes : The weight of the connection between the front-end neuron and the current neuron.
第一当前脉冲神经元信息读取模块200,用于读取第一当前脉冲神经元信息,所述第一当前脉冲神经元信息包括当前时间窗内脉冲尖端信息历史序列;所述当前时间窗内脉冲尖端信息历史序列,包括:按时间步顺序存储的,当前时间步前的N个时间步接收的各前端脉冲神经元输出信息组成的序列,其中,所述当前时间窗内脉冲尖端信息历史序列中的第一个时间步的脉冲尖端信息,为当前时间步前的第一个时间步接收的前端脉冲神经元输出信息,所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息,为当前时间步前的第N个时间步接收的前端脉冲神经元输出信息;所述当前脉冲神经元信息,还包括:当前时间窗宽度、历史膜电位信息和膜电位泄漏信息。The first current pulse neuron information reading module 200 is configured to read first current pulse neuron information, where the first current pulse neuron information includes a pulse tip information history sequence in a current time window; and the current time window a sequence of pulse tip information history, comprising: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step stored in a time step sequence, wherein the pulse tip information history sequence in the current time window The pulse tip information of the first time step in the first time step is the front end pulse neuron output information received at the first time step before the current time step, and the Nth time step in the history sequence of the pulse tip information in the current time window The pulse tip information is the front-end pulse neuron output information received at the Nth time step before the current time step; the current pulse neuron information further includes: a current time window width, a historical membrane potential information, and a membrane potential leakage information. .
当前时间窗内脉冲尖端信息更新序列获取模块300,用于根据所述前端脉冲神经元输出的脉冲尖端信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端
信息更新序列;用于将所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息删除,将第一个时间步至第N-1个时间步的脉冲尖端信息,顺序变更为第二个时间步至第N个时间步的脉冲尖端信息;将当前时间步接收的所述前端脉冲神经元输出信息,设置为所述当前时间窗内脉冲尖端信息历史序列中第一个时间步的脉冲尖端信息;将更新后的第一个时间步至第N个时间步的脉冲尖端信息,组成当前时间窗内脉冲尖端信息更新序列。The current time window pulse tip information update sequence acquisition module 300 is configured to acquire a pulse tip in the current time window according to the pulse tip information output by the front end pulse neuron and the pulse tip information history sequence in the current time window.
An information update sequence; for deleting pulse tip information of the Nth time step in the history sequence of pulse tip information in the current time window, and cutting the pulse tip information from the first time step to the N-1th time step, The sequence is changed to the pulse tip information of the second time step to the Nth time step; the front end pulse neuron output information received by the current time step is set as the first in the history sequence of the pulse tip information in the current time window The pulse tip information of the time step; the pulse tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
第二当前脉冲神经元信息确定模块400,用于根据所述当前时间窗内脉冲尖端信息更新序列,确定第二当前脉冲神经元信息;The second current pulse neuron information determining module 400 is configured to determine second current pulse neuron information according to the current time window intrapulse information update sequence;
当前脉冲神经元输出信息计算模块500,用于根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息;The current pulse neuron output information calculation module 500 is configured to calculate current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information;
当前脉冲神经元输出信息输出模块600,用于输出所述当前脉冲神经元输出信息。包括:使能标识读取单元,用于读取发放使能标识,所述发放使能标识包括允许发放数据或不允许发放数据;当所述发放使能标识为允许发放数据时,发放触发标志信息读取单元,用于读取所述发放触发标志信息,当所述发放触发标志信息为发放触发时;当前脉冲神经元信息输出单元,用于输出所述当前脉冲神经元输出信息。The current pulse neuron output information output module 600 is configured to output the current pulse neuron output information. The method includes: an enable identifier reading unit, configured to read an issue enable identifier, where the issue enable identifier includes allowing data to be issued or not allowed to be issued; and when the issue enable identifier is allowed to issue data, issuing a trigger flag The information reading unit is configured to read the issue trigger flag information, and when the issue trigger flag information is an issue trigger, the current pulse neuron information output unit is configured to output the current pulse neuron output information.
本发明所提供的具有深度时间划窗的神经元信息处理系统,根据前端脉冲神经元输出信息,和当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列,用于当前脉冲神经元的输出信息的计算,使得当前脉冲神经元的输出信息与当前时间窗内脉冲尖端信息历史序列,以及当前时间步接收到的前端脉冲神经元输出信息均相关。突破了仅具有前后时间步相互关联的限制,可以根据需要灵活设置缓存更大时间深度的历史活动信息,在时间域深度效应方面更加接近生物神经元。The neuron information processing system with deep time windowing provided by the present invention acquires the pulse tip information update sequence in the current time window according to the front end pulse neuron output information and the current time window pulse tip information history sequence, and is used for current The output information of the pulsed neurons is calculated such that the output information of the current pulsed neuron is correlated with the pulse tip information history sequence in the current time window and the front-end pulse neuron output information received at the current time step. Breaking through the limitation that only the front and back time steps are related to each other, the historical activity information of the cached larger time depth can be flexibly set according to the need, and the biological neuron is closer to the depth effect in the time domain.
图7为又一个实施例的自适应泄漏值神经网络信息处理系统的结构示意图,如图7所示的自适应泄漏值神经网络信息处理系统的实施例,为图6中的当前脉冲神经元输出信息计算模块500,包括:7 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to still another embodiment, and an embodiment of the adaptive leakage value neural network information processing system shown in FIG. 7 is the current pulse neuron output in FIG. The information calculation module 500 includes:
脉冲神经元连接权重读取单元100b,用于根据所述前端神经元与当前神经元的连接权重索引,读取前端神经元与当前神经元的连接权重。The pulse neuron connection weight reading unit 100b is configured to read the connection weight of the front end neuron and the current neuron according to the connection weight index of the front end neuron and the current neuron.
前端脉冲神经元输入信息计算单元200b,用于根据所述当前时间窗宽度、所述当前时间窗内脉冲尖端信息更新序列,通过衰减函数计算前端脉冲神经元输入信息。The front end pulse neuron input information calculation unit 200b is configured to calculate front end pulse neuron input information by using an attenuation function according to the current time window width and the current time window intrapulse information update sequence.
当前脉冲神经元输出信息计算单元300b,用于根据所述前端脉冲神经元输入信息、所述前端脉冲神经元与当前脉冲神经元的连接权重、所述历史膜电位信息、所述膜电位泄漏信息,通过脉冲神经元计算模型,计算当前脉冲神经元输出信息。The current pulse neuron output information calculation unit 300b is configured to input information according to the front end pulse neuron, a connection weight of the front end pulse neuron and the current pulse neuron, the historical membrane potential information, and the membrane potential leakage information. The current pulsed neuron output information is calculated by a pulsed neuron calculation model.
在本实施例中,根据当前时间窗内脉冲尖端信息更新序列,所述当前时间窗宽度、所述前端脉冲神经元与当前脉冲神经元的连接权重,通过衰减函数计算前端脉冲神经元输入信息,
可以支持具有时间深度的时空脉冲神经网络模型,相比于时间深度仅仅为一的神经网络技术方案,可以大大提高脉冲神经网络的时空信息编码能力,丰富脉冲神经网络的应用空间。In this embodiment, according to the current time window, the pulse tip information update sequence, the current time window width, the connection weight of the front-end pulse neuron and the current pulse neuron, and the front-end pulse neuron input information are calculated by the attenuation function.
It can support the spatio-temporal pulse neural network model with time depth. Compared with the neural network technology scheme with only one time depth, it can greatly improve the spatio-temporal information coding ability of the pulse neural network and enrich the application space of the pulse neural network.
图8为又一个实施例的自适应泄漏值神经网络信息处理系统的结构示意图,如图8所示的自适应泄漏值神经网络信息处理系统包括:FIG. 8 is a schematic structural diagram of an adaptive leakage value neural network information processing system according to still another embodiment. The adaptive leakage value neural network information processing system shown in FIG. 8 includes:
阈值电位获取模块700,用于获取阈值电位;包括:阈值信息读取单元,用于读取随机阈值掩模电位、阈值偏置和随机阈值;随机叠加量获取单元,用于将所述随机阈值和所述随机阈值掩模电位进行按位与操作,获取阈值随机叠加量;阈值电位确定单元,用于根据所述阈值随机叠加量和所述阈值偏置,确定所述阈值电位。The threshold potential acquisition module 700 is configured to acquire a threshold potential, and includes: a threshold information reading unit, configured to read a random threshold mask potential, a threshold offset, and a random threshold; and a random superposition amount acquiring unit configured to use the random threshold And performing a bitwise AND operation with the random threshold mask potential to obtain a threshold random superposition amount; and a threshold potential determining unit configured to determine the threshold potential according to the threshold random superposition amount and the threshold offset.
发放触发标志信息确定模块800,用于将所述当前脉冲神经元输出信息和所述阈值电位进行比较,根据比较结果确定发放触发标志信息,所述发放触发标志信息包括:发放触发或发放不触发;当所述发放触发标志信息为发放触发时。The issue trigger flag information determining module 800 is configured to compare the current pulse neuron output information with the threshold potential, and determine the issue trigger flag information according to the comparison result, where the issue trigger flag information includes: issuing a trigger or issuing a trigger When the issue trigger flag information is an issue trigger.
不应期计时器复位模块900,用于复位不应期计时器,并更新所述历史膜电位信息为预设的复位膜电位信息。The refractory timer reset module 900 is configured to reset the refractory period timer and update the historical membrane potential information to a preset reset membrane potential information.
当所述发放触发标志信息为发放不触发时,When the issue trigger flag information is not triggered by the issue,
不应期计时器读取模块1000,用于读取不应期宽度和不应期计时器的当前时间步。The refractory timer reads module 1000 for reading the current time step of the refractory period width and the refractory period timer.
不应期判断模块1100,用于根据所述不应期宽度和所述不应期计时器的当前时间步,判断当前时间是否在不应期内,若当前时间在所述不应期内,将所述不应期计时器累加计时一个时间步,不更新所述历史膜电位信息;若当前时间不在应期内,将所述不应期计时器累加计时一个时间步,并更新所述历史膜电位信息为所述当前脉冲神经元输出信息。The refractory period determining module 1100 is configured to determine, according to the refractory period width and the current time step of the refractory period timer, whether the current time is within the refractory period, and if the current time is within the refractory period, And accumulating the refractory period timer for one time step, not updating the historical membrane potential information; if the current time is not within the due period, accumulating the refractory period timer for one time step, and updating the history The membrane potential information is the current pulsed neuron output information.
在本实施例中,通过读取随机阈值掩模电位和阈值偏置,并接收配置寄存器给出的配置值,确定所述阈值电位,使得神经元发放脉冲尖端信息具有一定概率的随机性。通过设置发放使能标识和发放触发标志,确定当前脉冲神经元输出信息,使得脉冲神经元的输出的可控性更高,发放使能标志可以配置有的神经元不允许发放数据,而只用作中间辅助计算神经元,这对于一些需要多神经元协作完成的功能是非常必要的。In the present embodiment, the threshold potential is determined by reading the random threshold mask potential and the threshold offset and receiving the configuration value given by the configuration register, so that the neuron issues the pulse tip information with a certain probability of randomness. By setting the release enable flag and issuing the trigger flag, the current pulse neuron output information is determined, so that the output of the pulse neuron is more controllable, and the release enable flag can be configured to allow the neuron to not issue data, but only As an intermediate aided computational neuron, this is necessary for some functions that require multiple neurons to work together.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
基于同样的发明思想,本发明一个实施例还提供一种计算机设备,包括存储器、处理器,及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现上述实施例所提及方法的步骤。Based on the same inventive concept, an embodiment of the present invention further provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer The steps of the method mentioned in the above embodiments are implemented at the time of the program.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序或指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程
序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program or instruction related hardware, and the program can be stored in a computer readable storage medium.
The sequence, when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。
The above-mentioned embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.
Claims (14)
- 一种具有深度时间划窗的神经元信息处理方法,其特征在于,所述方法包括:A neuron information processing method with deep time windowing, wherein the method comprises:接收前端脉冲神经元输出信息,所述前端脉冲神经元输出信息包括前端脉冲神经元输出的脉冲尖端信息;Receiving front end pulse neuron output information, the front end pulse neuron output information including pulse tip information output by the front end pulse neuron;读取第一当前脉冲神经元信息,所述第一当前脉冲神经元信息包括当前时间窗内脉冲尖端信息历史序列;Reading first current pulse neuron information, the first current pulse neuron information including a pulse tip information history sequence in a current time window;根据所述前端脉冲神经元输出的脉冲尖端信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列;Obtaining a pulse tip information update sequence in a current time window according to the pulse tip information output by the front end pulse neuron and the pulse tip information history sequence in the current time window;根据所述当前时间窗内脉冲尖端信息更新序列,确定第二当前脉冲神经元信息;Determining a second current pulse neuron information according to the pulse tip information update sequence in the current time window;根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息;Calculating current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information;输出所述当前脉冲神经元输出信息。Outputting the current pulse neuron output information.
- 根据权利要求1所述的具有深度时间划窗的神经元信息处理方法,其特征在于:The method for processing neuron information with depth time windowing according to claim 1, wherein:所述当前时间窗内脉冲尖端信息历史序列,包括:按时间步顺序存储的,当前时间步前的N个时间步接收的各前端脉冲神经元输出信息组成的序列,其中,所述当前时间窗内脉冲尖端信息历史序列中的第一个时间步的脉冲尖端信息,为当前时间步前的第一个时间步接收的前端脉冲神经元输出信息,所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息,为当前时间步前的第N个时间步接收的前端脉冲神经元输出信息,其中N为自然数;The sequence of pulse tip information history in the current time window includes: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step stored in a time step sequence, wherein the current time window The pulse tip information of the first time step in the history sequence of the internal pulse tip information is the front end pulse neuron output information received at the first time step before the current time step, and the pulse tip information history sequence in the current time window The pulse tip information of the Nth time step is the front end pulse neuron output information received at the Nth time step before the current time step, where N is a natural number;则所述根据所述前端脉冲神经元输出信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列,包括:And acquiring, according to the front-end pulse neuron output information, and the pulse-tip information history sequence in the current time window, the pulse tip information update sequence in the current time window, including:将所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息删除,将第一个时间步至第N-1个时间步的脉冲尖端信息,顺序变更为第二个时间步至第N个时间步的脉冲尖端信息;Deleting the pulse tip information of the Nth time step in the pulse tip information history sequence in the current time window, and changing the pulse tip information of the first time step to the N-1th time step to the second Pulse tip information from time step to Nth time step;将当前时间步接收的所述前端脉冲神经元输出信息,设置为所述当前时间窗内脉冲尖端信息历史序列中第一个时间步的脉冲尖端信息;Setting the front-end pulse neuron output information received by the current time step as pulse tip information of the first time step in the pulse tip information history sequence in the current time window;将更新后的第一个时间步至第N个时间步的脉冲尖端信息,组成当前时间窗内脉冲尖端信息更新序列。The pulsed tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
- 根据权利要求2所述的具有深度时间划窗的神经元信息处理方法,其特征在于:The method for processing neuron information with depth time windowing according to claim 2, wherein:所述前端脉冲神经元输出信息,还包括:前端神经元与当前神经元的连接权重索引;The front-end pulse neuron output information further includes: a connection weight index of the front-end neuron and the current neuron;所述当前脉冲神经元信息,还包括:当前时间窗宽度、历史膜电位信息和膜电位泄漏信息;The current pulsed neuron information further includes: a current time window width, historical membrane potential information, and membrane potential leakage information;所述根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息,包括: The calculating, according to the front-end pulse neuron information and the second current pulse neuron information, the current pulse neuron output information, including:根据所述前端神经元与当前神经元的连接权重索引,读取前端神经元与当前神经元的连接权重;Reading a connection weight of the front-end neuron and the current neuron according to the connection weight index of the front-end neuron and the current neuron;根据所述当前时间窗宽度、所述当前时间窗内脉冲尖端信息更新序列,通过衰减函数计算前端脉冲神经元输入信息;And calculating, according to the current time window width, the pulse tip information update sequence in the current time window, the front end pulse neuron input information by using an attenuation function;根据所述前端脉冲神经元输入信息、所述前端脉冲神经元与当前脉冲神经元的连接权重、所述历史膜电位信息、所述膜电位泄漏信息,通过脉冲神经元计算模型,计算当前脉冲神经元输出信息。Calculating the current pulsed nerve by using a pulse neuron calculation model according to the front end pulse neuron input information, the connection weight of the front end pulse neuron and the current pulse neuron, the historical membrane potential information, and the membrane potential leakage information Meta output information.
- 根据权利要求1所述的具有深度时间划窗的神经元信息处理方法,其特征在于,在所述根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息的步骤之后在,在所述输出所述当前脉冲神经元输出信息的步骤之前,所述方法还包括:The method for processing neuron information with deep time windowing according to claim 1, wherein the current pulsed neuron is calculated based on the front end pulse neuron information and the second current pulse neuron information After the step of outputting the information, before the step of outputting the current pulse neuron output information, the method further includes:获取阈值电位;Obtaining a threshold potential;将所述当前脉冲神经元输出信息和所述阈值电位进行比较,根据比较结果确定发放触发标志信息,所述发放触发标志信息包括:发放触发或发放不触发;Comparing the current pulsed neuron output information with the threshold potential, and determining, according to the comparison result, the issue trigger flag information, where the issue trigger flag information includes: issuing a trigger or issuing a trigger;当所述发放触发标志信息为发放触发时,复位不应期计时器,并更新所述历史膜电位信息为预设的复位膜电位信息。When the issue trigger flag information is an issue trigger, the refractory period timer is reset, and the historical film potential information is updated to preset reset film potential information.
- 根据权利要求4所述的具有深度时间划窗的神经元信息处理方法,其特征在于,还包括:The method of processing a neuron information with a deep time window according to claim 4, further comprising:当所述发放触发标志信息为发放不触发时,读取不应期宽度和不应期计时器的当前时间步;When the issue trigger flag information is not triggered by the issue, the current time step of the refractory period width and the refractory period timer is read;根据所述不应期宽度和所述不应期计时器的当前时间步,判断当前时间是否在不应期内,若当前时间在所述不应期内,将所述不应期计时器累加计时一个时间步,不更新所述历史膜电位信息;Determining whether the current time is within the refractory period according to the refractory period width and the current time step of the refractory period timer, and if the current time is within the refractory period, accumulating the refractory period timer Timing a time step without updating the historical membrane potential information;若当前时间不在应期内,将所述不应期计时器累加计时一个时间步,并更新所述历史膜电位信息为所述当前脉冲神经元输出信息。If the current time is not within the due period, the refractory period timer is cumulatively counted for one time step, and the historical membrane potential information is updated to be the current pulsed neuron output information.
- 根据权利要求4所述的具有深度时间划窗的神经元信息处理方法,其特征在于,所述获取阈值电位,包括:The method for processing a neuron information with a deep time window according to claim 4, wherein the obtaining the threshold potential comprises:读取随机阈值掩模电位、阈值偏置和随机阈值;Reading a random threshold mask potential, a threshold offset, and a random threshold;将所述随机阈值和所述随机阈值掩模电位进行按位与操作,获取阈值随机叠加量;Performing a bitwise AND operation on the random threshold and the random threshold mask potential to obtain a threshold random superposition amount;根据所述阈值随机叠加量和所述阈值偏置,确定所述阈值电位。The threshold potential is determined based on the threshold random amount and the threshold offset.
- 根据权利要求4所述的具有深度时间划窗的神经元信息处理方法,其特征在于,所述输出所述当前脉冲神经元输出信息,包括:The method for processing neuron information with deep time windowing according to claim 4, wherein the outputting the current pulse neuron output information comprises:读取发放使能标识,所述发放使能标识包括允许发放数据或不允许发放数据;当所述发放使能标识为允许发放数据时,Reading an issue enable identifier, where the issue enable identifier includes allowing data to be issued or not allowing data to be issued; when the issue enable identifier is allowed to issue data,读取所述发放触发标志信息,当所述发放触发标志信息为发放触发时; Reading the issue trigger flag information, when the issue trigger flag information is an issue trigger;输出所述当前脉冲神经元输出信息。Outputting the current pulse neuron output information.
- 一种具有深度时间划窗的神经元信息处理系统,其特征在于,包括:A neuron information processing system with deep time windowing, comprising:前端脉冲神经元输出信息接收模块,用于接收前端脉冲神经元输出信息,所述前端脉冲神经元输出信息包括前端脉冲神经元输出的脉冲尖端信息;a front-end pulse neuron output information receiving module, configured to receive front-end pulse neuron output information, where the front-end pulse neuron output information includes pulse tip information output by the front-end pulse neuron;第一当前脉冲神经元信息读取模块,用于读取第一当前脉冲神经元信息,所述第一当前脉冲神经元信息包括当前时间窗内脉冲尖端信息历史序列;a first current pulse neuron information reading module, configured to read first current pulse neuron information, where the first current pulse neuron information includes a pulse tip information history sequence in a current time window;当前时间窗内脉冲尖端信息更新序列获取模块,用于根据所述前端脉冲神经元输出的脉冲尖端信息,和所述当前时间窗内脉冲尖端信息历史序列,获取当前时间窗内脉冲尖端信息更新序列;a current time window in-time pulse tip information update sequence acquisition module, configured to acquire a pulse tip information update sequence in a current time window according to pulse tip information output by the front end pulse neuron and a pulse tip information history sequence in the current time window ;第二当前脉冲神经元信息确定模块,用于根据所述当前时间窗内脉冲尖端信息更新序列,确定第二当前脉冲神经元信息;a second current pulse neuron information determining module, configured to determine second current pulse neuron information according to the current time window intrapulse information update sequence;当前脉冲神经元输出信息计算模块,用于根据所述前端脉冲神经元信息和所述第二当前脉冲神经元信息,计算当前脉冲神经元输出信息;The current pulse neuron output information calculation module is configured to calculate current pulse neuron output information according to the front end pulse neuron information and the second current pulse neuron information;当前脉冲神经元输出信息输出模块,用于输出所述当前脉冲神经元输出信息。The current pulse neuron output information output module is configured to output the current pulse neuron output information.
- 根据权利要求8所述的具有深度时间划窗的神经元信息处理系统,其特征在于:The neuron information processing system with deep time windowing according to claim 8, wherein:所述当前时间窗内脉冲尖端信息历史序列,包括:按时间步顺序存储的,当前时间步前的N个时间步接收的各前端脉冲神经元输出信息组成的序列,其中,所述当前时间窗内脉冲尖端信息历史序列中的第一个时间步的脉冲尖端信息,为当前时间步前的第一个时间步接收的前端脉冲神经元输出信息,所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息,为当前时间步前的第N个时间步接收的前端脉冲神经元输出信息,其中N为自然数;The sequence of pulse tip information history in the current time window includes: a sequence consisting of output information of each front-end pulse neuron received by N time steps before the current time step stored in a time step sequence, wherein the current time window The pulse tip information of the first time step in the history sequence of the internal pulse tip information is the front end pulse neuron output information received at the first time step before the current time step, and the pulse tip information history sequence in the current time window The pulse tip information of the Nth time step is the front end pulse neuron output information received at the Nth time step before the current time step, where N is a natural number;则所述当前时间窗内脉冲尖端信息更新序列获取模块,用于:Then, the pulse tip information update sequence acquisition module in the current time window is used to:将所述当前时间窗内脉冲尖端信息历史序列中的第N个时间步的脉冲尖端信息删除,将第一个时间步至第N-1个时间步的脉冲尖端信息,顺序变更为第二个时间步至第N个时间步的脉冲尖端信息;Deleting the pulse tip information of the Nth time step in the pulse tip information history sequence in the current time window, and changing the pulse tip information of the first time step to the N-1th time step to the second Pulse tip information from time step to Nth time step;将当前时间步接收的所述前端脉冲神经元输出信息,设置为所述当前时间窗内脉冲尖端信息历史序列中第一个时间步的脉冲尖端信息;Setting the front-end pulse neuron output information received by the current time step as pulse tip information of the first time step in the pulse tip information history sequence in the current time window;将更新后的第一个时间步至第N个时间步的脉冲尖端信息,组成当前时间窗内脉冲尖端信息更新序列。The pulsed tip information of the updated first time step to the Nth time step constitutes a pulse tip information update sequence in the current time window.
- 根据权利要求9所述的具有深度时间划窗的神经元信息处理系统,其特征在于:A neuron information processing system with deep time windowing according to claim 9, wherein:所述前端脉冲神经元输出信息,还包括:前端神经元与当前神经元的连接权重索引;The front-end pulse neuron output information further includes: a connection weight index of the front-end neuron and the current neuron;所述当前脉冲神经元信息,还包括:当前时间窗宽度、历史膜电位信息和膜电位泄漏信息;The current pulsed neuron information further includes: a current time window width, historical membrane potential information, and membrane potential leakage information;所述当前脉冲神经元输出信息计算模块,包括: The current pulse neuron output information calculation module includes:脉冲神经元连接权重读取单元,用于根据所述前端神经元与当前神经元的连接权重索引,读取前端神经元与当前神经元的连接权重;a pulsed neuron connection weight reading unit, configured to read a connection weight of the front end neuron and the current neuron according to a connection weight index of the front end neuron and the current neuron;前端脉冲神经元输入信息计算单元,用于根据所述当前时间窗宽度、所述当前时间窗内脉冲尖端信息更新序列,通过衰减函数计算前端脉冲神经元输入信息;a front-end pulse neuron input information calculation unit, configured to calculate front-end pulse neuron input information by using an attenuation function according to the current time window width, the pulse tip information update sequence in the current time window;当前脉冲神经元输出信息计算单元,用于根据所述前端脉冲神经元输入信息、所述前端脉冲神经元与当前脉冲神经元的连接权重、所述历史膜电位信息、所述膜电位泄漏信息,通过脉冲神经元计算模型,计算当前脉冲神经元输出信息。a current pulse neuron output information calculation unit, configured to input, according to the front end pulse neuron input information, a connection weight of the front end pulse neuron and a current pulse neuron, the historical membrane potential information, and the membrane potential leakage information, The current pulsed neuron output information is calculated by a pulsed neuron calculation model.
- 根据权利要求8所述的具有深度时间划窗的神经元信息处理系统,其特征在于,还包括:The neuron information processing system with deep time windowing according to claim 8, further comprising:阈值电位获取模块,用于获取阈值电位;a threshold potential acquisition module, configured to acquire a threshold potential;发放触发标志信息确定模块,用于将所述当前脉冲神经元输出信息和所述阈值电位进行比较,根据比较结果确定发放触发标志信息,所述发放触发标志信息包括:发放触发或发放不触发;当所述发放触发标志信息为发放触发时,The issuance triggering flag information determining module is configured to compare the current pulsed neuron output information with the threshold potential, and determine the issuance triggering flag information according to the comparison result, where the issuing triggering flag information includes: issuing a trigger or issuing a trigger; When the issuing trigger flag information is an issue trigger,不应期计时器复位模块,用于复位不应期计时器,并更新所述历史膜电位信息为预设的复位膜电位信息。The refractory timer reset module is configured to reset the refractory period timer and update the historical membrane potential information to a preset reset membrane potential information.
- 根据权利要求11所述的具有深度时间划窗的神经元信息处理系统,其特征在于,还包括:The system of claim 11, further comprising:当所述发放触发标志信息为发放不触发时,When the issue trigger flag information is not triggered by the issue,不应期计时器读取模块,用于读取不应期宽度和不应期计时器的当前时间步;The refractory timer reading module is used to read the current time step of the refractory width and the refractory period timer;不应期判断模块,用于根据所述不应期宽度和所述不应期计时器的当前时间步,判断当前时间是否在不应期内,若当前时间在所述不应期内,将所述不应期计时器累加计时一个时间步,不更新所述历史膜电位信息;若当前时间不在应期内,将所述不应期计时器累加计时一个时间步,并更新所述历史膜电位信息为所述当前脉冲神经元输出信息。The refractory period determining module is configured to determine whether the current time is within the refractory period according to the refractory period width and the current time step of the refractory period timer, and if the current time is within the refractory period, The refractory period timer accumulates a time step, does not update the historical membrane potential information; if the current time is not within the due period, accumulates the refractory period timer for one time step, and updates the historical film The potential information is the current pulse neuron output information.
- 根据权利要求11所述的具有深度时间划窗的神经元信息处理系统,其特征在于,所述阈值电位获取模块,包括:The apparatus for processing a threshold value according to claim 11, wherein the threshold potential acquisition module comprises:阈值信息读取单元,用于读取随机阈值掩模电位、阈值偏置和随机阈值;a threshold information reading unit, configured to read a random threshold mask potential, a threshold offset, and a random threshold;随机叠加量获取单元,用于将所述随机阈值和所述随机阈值掩模电位进行按位与操作,获取阈值随机叠加量;a random superposition amount acquiring unit, configured to perform a bitwise AND operation on the random threshold and the random threshold mask potential to obtain a threshold random superposition amount;阈值电位确定单元,用于根据所述阈值随机叠加量和所述阈值偏置,确定所述阈值电位。And a threshold potential determining unit configured to determine the threshold potential according to the threshold random amount and the threshold offset.
- 根据权利要求11所述的具有深度时间划窗的神经元信息处理系统,其特征在于,所述当前脉冲神经元信息输出模块,包括:The neuron information processing system with a deep time windowing according to claim 11, wherein the current pulse neuron information output module comprises:使能标识读取单元,用于读取发放使能标识,所述发放使能标识包括允许发放数据或不允许发放数据;当所述发放使能标识为允许发放数据时,The identification identifier reading unit is configured to read an issue enable identifier, where the release enable identifier includes allowing data to be released or not allowing data to be issued; and when the issue enable identifier is allowed to issue data,发放触发标志信息读取单元,用于读取所述发放触发标志信息,当所述发放触发标志信 息为发放触发时;And issuing a trigger flag information reading unit, configured to read the issue trigger flag information, when the issue trigger flag information When the interest is triggered by the release;当前脉冲神经元信息输出单元,用于输出所述当前脉冲神经元输出信息。 The current pulse neuron information output unit is configured to output the current pulse neuron output information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201780084032.6A CN110730971B (en) | 2017-01-20 | 2017-12-05 | Neuron information processing method and system with depth time window |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710041894.2 | 2017-01-20 | ||
CN201710041894.2A CN106897769A (en) | 2017-01-20 | 2017-01-20 | The neuronal messages processing method and system of window are drawn with depth time |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018133569A1 true WO2018133569A1 (en) | 2018-07-26 |
Family
ID=59197968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/114663 WO2018133569A1 (en) | 2017-01-20 | 2017-12-05 | Neuron information processing method and system having deep time windowing |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN106897769A (en) |
WO (1) | WO2018133569A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190102669A1 (en) * | 2017-09-29 | 2019-04-04 | Intel Corporation | Global and local time-step determination schemes for neural networks |
KR20200029661A (en) * | 2018-09-07 | 2020-03-19 | 삼성전자주식회사 | Neural processing system |
CN110059812B (en) * | 2019-01-26 | 2021-09-14 | 中国科学院计算技术研究所 | Pulse neural network operation chip and related operation method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1262912A2 (en) * | 2001-05-31 | 2002-12-04 | Canon Kabushiki Kaisha | Signal processing circuit involving local synchronous behaviour |
CN101052979A (en) * | 2004-03-17 | 2007-10-10 | 佳能株式会社 | Parallel pulse signal processing apparatus, pattern recognition apparatus, and image input apparatus |
CN103279958A (en) * | 2013-05-31 | 2013-09-04 | 电子科技大学 | Image segmentation method based on Spiking neural network |
CN103679265A (en) * | 2013-11-21 | 2014-03-26 | 大连海联自动控制有限公司 | A multi-characteristic bionic unified neuron model |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001013991A1 (en) * | 1999-08-26 | 2001-03-01 | Med-El Elektromedizinische Geräte GmbH | Electrical nerve stimulation based on channel specific sampling sequences |
US9147156B2 (en) * | 2011-09-21 | 2015-09-29 | Qualcomm Technologies Inc. | Apparatus and methods for synaptic update in a pulse-coded network |
-
2017
- 2017-01-20 CN CN201710041894.2A patent/CN106897769A/en active Pending
- 2017-12-05 CN CN201780084032.6A patent/CN110730971B/en active Active
- 2017-12-05 WO PCT/CN2017/114663 patent/WO2018133569A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1262912A2 (en) * | 2001-05-31 | 2002-12-04 | Canon Kabushiki Kaisha | Signal processing circuit involving local synchronous behaviour |
CN101052979A (en) * | 2004-03-17 | 2007-10-10 | 佳能株式会社 | Parallel pulse signal processing apparatus, pattern recognition apparatus, and image input apparatus |
CN103279958A (en) * | 2013-05-31 | 2013-09-04 | 电子科技大学 | Image segmentation method based on Spiking neural network |
CN103679265A (en) * | 2013-11-21 | 2014-03-26 | 大连海联自动控制有限公司 | A multi-characteristic bionic unified neuron model |
Also Published As
Publication number | Publication date |
---|---|
CN106897769A (en) | 2017-06-27 |
CN110730971B (en) | 2023-11-28 |
CN110730971A (en) | 2020-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018133568A1 (en) | Compound-mode neuron information processing method and system, and computer device | |
US11710571B2 (en) | Long short-term memory model-based disease prediction method and apparatus, and computer device | |
CN106875003B (en) | Adaptive leakage value neuron information processing method and system | |
WO2018133569A1 (en) | Neuron information processing method and system having deep time windowing | |
Alejo et al. | Tests for normality in linear panel-data models | |
Jin et al. | Implementing spike-timing-dependent plasticity on SpiNNaker neuromorphic hardware | |
US11551074B2 (en) | Self-adaptive threshold neuron information processing method, self-adaptive leakage value neuron information processing method, system computer device and readable storage medium | |
CN106875005B (en) | Adaptive threshold neuron information processing method and system | |
CN114676795B (en) | A training method, device, equipment and storage medium for a deep learning model | |
CN108229677A (en) | For the method and apparatus that circulation model is used to perform identification and training circulation model | |
CN108229714A (en) | Prediction model construction method, Number of Outpatients Forecasting Methodology and device | |
KR20160068823A (en) | Congestion avoidance in networks of spiking neurons | |
Bryer | TriMatch: An R package for propensity score matching of non-binary treatments | |
CN118280450A (en) | MicroRNA-drug sensitivity prediction method and device based on dual-channel heterogeneous network characteristic representation strategy | |
CN116864143A (en) | Infectious disease data analysis method and device based on artificial intelligence and related equipment | |
CN106933834A (en) | A kind of data matching method and device | |
CN106815638B (en) | Input weight expanded neuron information processing method and system | |
CN119452373A (en) | Calibrating Machine Learning Model Training Data | |
CN111738407B (en) | Clock error prediction method, device, medium and terminal based on deep learning | |
WO2018133567A1 (en) | Neuron weight information processing method and system, neuron information processing method and system, and computer device | |
Roman et al. | Modeling cross correlations within a many-assets market | |
Castle et al. | A Novel Approach to Forecasting UK Inflation over 2021-2024 | |
CN118734975B (en) | Large language model training method, device, equipment and medium | |
WO2018137411A1 (en) | Neural network information conversion method and system, and computer device | |
Nance et al. | Applying the causal roadmap to longitudinal national Danish registry data: a case study of second-line diabetes medication and dementia |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17893167 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17893167 Country of ref document: EP Kind code of ref document: A1 |