CN106779056A - For the spiking neuron hardware structure of AER feed forward classification systems - Google Patents
For the spiking neuron hardware structure of AER feed forward classification systems Download PDFInfo
- Publication number
- CN106779056A CN106779056A CN201611190874.3A CN201611190874A CN106779056A CN 106779056 A CN106779056 A CN 106779056A CN 201611190874 A CN201611190874 A CN 201611190874A CN 106779056 A CN106779056 A CN 106779056A
- Authority
- CN
- China
- Prior art keywords
- weights
- psp
- read
- aer
- clk
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/063—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
Abstract
The present invention relates to AER imageing sensor field of image recognition, to meet requirement of the event-driven feed forward classification system for real-time, parallel processing and miniaturization based on AER imageing sensors, the present invention is intended to provide a kind of SNN spiking neuron hardware based on FPGA platform realizes structure.The technical solution adopted by the present invention is, for the spiking neuron hardware structure of AER feed forward classification systems, by weights storage area, weights read-write gate, membrane potential parallel multiplication, the PSP function generators of more vairable, triggering determining device, control and sequential and modified weight module, 7 are partly constituted altogether.Present invention is mainly applied to imageing sensor image recognition occasion.
Description
Technical field
The present invention relates to AER imageing sensor field of image recognition, more particularly to one kind is for AER image recognitions classification arteries and veins
The neuron hardware rushed in neutral net is realized.
Background technology
AER (Address-Event Representation, AER, address-representations of events) imageing sensor real-time detection
The change of target scene, compared to the conventional image sensor based on " frame scan " imaging mode, can filter static background picture
Prime number evidence, is greatly reduced redundant data.AER only exports the asynchronous digital flow of event of relevant information, and this causes processing system below
System can be designed as complete event-driven.
Event-driven feed forward classification system based on AER imageing sensors, it is similar to other categorizing systems, two can be divided into
Point:Feature extraction and classification.Characteristic extraction part uses Gabor anisotropic filters and maximum operation, and classifies and then use arteries and veins
Rush neutral net (Spiking Neuron Networks, SNN).First with the difference hardware in AER pixels, threshold value is reached
When OPADD flow of event, and be advanced into the anisotropic filter based on Gabor functions, convolution knot of the output comprising characteristic information
Really, feature extraction is completed.Each output includes appropriate address coordinate, is specifying in the range of acceptance region, using maximum operation
Non-significant information is filtered, then by TFS (Time-to-first spike) unit, impulse response is converted to, there is provided to SNN
Classified.
For the requirement of AER output informations and categorizing system, from the LIF (Leakage in the numerous models of SNN
Integrate-and-fire) model.The input of LIF produces postsynaptic potential (postsynaptic by TFS
Potential, PSP), with rapid increase and the slow shape for declining.It is strong with weights cynapse to be represented between each neuron
Degree, the membrane potential of neuron is obtained by the weighted sum superposition of the PSP of all input pulses.It is compared by with threshold value, is determined
Whether neuron triggers, and meets the classification task that real world is based on stimulating.If SNN training stages neuron should be triggered,
And it is practically without triggering, then the weights at membrane potential peak value (tmax) place can be improved.If should not trigger, and actually touch
Hair, then can reduce the weights at membrane potential peak value.If errorless, without amendment.During test, by counting touching for corresponding neuron
Hair-like state realizes classification.
The SNN hardware configurations of the categorizing system are as shown in Figure 1.Hardware configuration includes feature input, pulse coder, control
Exported with sequential, spiking neuron and triggering state, altogether 5 parts.Input comprising characteristic information enters pulse code
Device, in the presence of control and sequential, into spiking neuron, carries out cumulative grade of corresponding weights and operates, and then carries out threshold value
Compare, judge the output of triggering state.The feed forward classification system of AER imageing sensors, at the information of AER chips output
Reason, completes feature extraction and reduces non-significant feature by Gabor convolution and maximum operation, and output information enters and uses LIF
The SNN networks of neuron, wherein comprising address information and temporal information, address information can know the location of pixels that event is produced
And respective filter species, temporal information can know event occur time.Pulse coder operation principle is:If net
The input quantity of network is N, and a pulse can be regularly activated when being input into effective, and pulse is not produced when without effectively input.
Current SNN algorithms rely primarily on software realization, and speed is slow, and degree of concurrence is low, it is impossible to carry out real-time processing.And it is soft
Part needs larger computer supported, in addition to relatively costly, cannot also realize the miniaturization of equipment.In order to meet based on AER
The event-driven feed forward classification system of imageing sensor to miniaturization and real-time requirement, for the SNN hardware realities for being used
Now become very necessary, and most important in SNN hardware is exactly high number, the spiking neuron with reproducibility.Scene
Programmable gate array (Field-Programmable Gate Array, FPGA) is in recent years obtaining the development of high speed, holds very much
Easily realize high speed, parallel computation.Realize that the spiking neuron of SNN has for the performance of the categorizing system using FPGA extremely to weigh
The meaning wanted.
The content of the invention
To overcome the deficiencies in the prior art, meet the event-driven feed forward classification system based on AER imageing sensors for
The requirement of real-time, parallel processing and miniaturization, the present invention is intended to provide a kind of SNN spiking neurons based on FPGA platform are hard
Part realizes structure.The technical solution adopted by the present invention is, for the spiking neuron hardware structure of AER feed forward classification systems, by
Weights storage area, weights read-write gate, membrane potential parallel multiplication, the PSP function generators of more vairable, triggering determining device, control and when
Sequence and modified weight module, 7 are partly constituted altogether, and each several part is specific as follows:
(1) control and sequential and modified weight module:For provide two internal clockings, CLK and SLOW_CLK, wherein
The CLK clock cycle is much smaller than SLOW_CLK, and proportion is 1:10000 to 1:500000, for pulse code sampling, membrane potential
Compare, determine the speed of network processes;SLOW_CLK is used to coordinate the work of inside neurons, less than a SLOW_CLK
Cycle in be obtained in that the membrane potential accumulation result of all of input;RST signal is additionally needed for reset zero setting, and RE
Read signal and WE write signals are read and write for weight;
(2) weights read-write gate:The mode of operation of weights is selected by control signal, in read phase, connection weight storage
Storage, there is provided appropriate weights, in write phase, connection to input realizes right value update by outside port;
(3) weights holder:It is used to store weights in inside neurons, each neuron weights holder space is input
Quantity is multiplied by data width;
(4) the PSP function generators of more vairable:PSP is that have the rapid shape for rising and slowly declining, and (1) is PSP function formulas:
Wherein, K is PSP functional values, and V0 controls rise maximum, when τ m and τ s are the control raising and lowering gradients here
Between constant, two constant relationships continue 30 SLOW_CLK cycles altogether for τ s=τ m/4, PSP waveforms, and 30 can be used according to formula
Individual discrete point storage correspondence PSP functional values, form 30 look-up tables of data width;
(5) membrane potential parallel multiplication:Including a multiplier and an adder, in each SLOW_CLK cycles, root
It is weighted according to formula (2), wherein n is the quantity of all inputs in accumulation period, Δ t is current time and last pulse
Time difference, by the direct evaluation of PSP look-up tables, ω is correspondence weights, is read by weights holder:
(6) determining device is triggered:In each clk cycle, the result of membrane potential parallel multiplication all can be with membrane potential threshold value
It is compared, if threshold value reaches, produces triggering state, does not trigger otherwise;Triggering determining device includes a comparator, produces
SNN triggering states are exported;
(7) modified weight module:When learning for SNN network trainings, the neuron weights to erroneous trigger carry out amendment.
SNN network trainings rule is as follows:Should trigger and not trigger or should not trigger and trigger, read the PSP function generators of more vairable
Response numerical value, is multiplied by after learning rate the former weights position that is added to, and is updated;Using internal PSP generators and multiplier reality
Existing modified weight operation.
7 part flows are:First by read-write control signal, carry out the renewal and reading of weight;In the stage of reading,
Namely test phase, weights are obtained according to the address being input into from weights storage area, obtain PSP from the PSP function generators of more vairable in addition
Functional value, it is common to enter in membrane potential parallel multiplication, it is weighted;Result of calculation each clock cycle can with touch
Hair threshold value is compared, and the triggering state of neuron is judged using comparator;In the study stage, weights are carried out if desired and is repaiied
Just, read-write control signal is now in write phase, using weights correcting module, reads the response numerical value of the PSP function generators of more vairable, right
The weights of weights storage element are modified.
7 parts are integrated in on-site programmable gate array FPGA, and weight storage device is comprehensive into storage RAM.
The features of the present invention and beneficial effect are:
The present invention realizes the hardware configuration of SNN spiking neurons based on FPGA platform, meets based on AER image sensings
The event-driven feed forward classification systems soft ware of device support under speed is slow, the inferior position such as degree of parallelism is low, high cost, volume are big, favorably
Miniaturization and real-time in equipment.
Brief description of the drawings:
Fig. 1 SNN network hardware architectures.
Fig. 2 neuron hardware configurations.
The input pulses of Fig. 3 tetra- are encoded.
Specific embodiment
Neuron hardware configuration for categorizing system SNN proposed by the present invention is as shown in Figure 2.Spiking neuron can have
Body is divided into weights storage area, weights read-write gate, membrane potential parallel multiplication, the PSP function generators of more vairable, triggering determining device, control
Make and sequential and modified weight module, altogether 7 parts, functions are as follows:
(1) control and sequential:In order to meet the coordination of inside neurons and the speed of network processes, it is necessary to using in two
Portion's clock, CLK and SLOW_CLK, wherein CLK clock cycle are much smaller than SLOW_CLK, are sampled with pulse code, membrane potential ratio
Compared with determining the speed of network processes.SLOW_CLK is used to coordinate the work of inside neurons, less than SLOW_CLK
The membrane potential accumulation result of all of input is obtained with cycle.RST signal is additionally needed for reset zero setting, and RE
Read and write for weight with WE.
(2) weights read-write gate:The mode of operation of weights is selected by control signal.In read phase, connection weight storage
Storage, there is provided appropriate weights, in write phase, connection to input realizes right value update by outside port.
(3) weights holder:It is used to store weights in inside neurons.Each neuron weights holder space is input
Quantity is multiplied by data width.Storage RAM is integrated into FPGA.
(4) the PSP function generators of more vairable:PSP is that have the rapid shape for rising and slowly declining, and (1) is PSP function formulas:
Wherein, K is PSP functional values, and V0 controls rise maximum, when τ m and τ s are the control raising and lowering gradients here
Between constant, two constant relationships continue 30 SLOW_CLK cycles altogether for τ s=τ m/4, PSP waveforms, and 30 can be used according to formula
Individual discrete point storage correspondence PSP functional values, form 30 look-up tables of data width.
(5) membrane potential parallel multiplication:Including a multiplier and an adder, in each SLOW_CLK cycles, root
It is weighted according to formula (2), wherein Δ t is the time difference of current time and last pulse, can be direct by PSP look-up tables
Evaluation, ω is correspondence weights, is read by weights holder.
(6) determining device is triggered:In each clk cycle, the result of membrane potential parallel multiplication all can be with membrane potential threshold value
It is compared, if threshold value reaches, produces triggering state, does not trigger otherwise.Triggering determining device includes a comparator, produces
SNN triggering states are exported.
(7) modified weight module:When learning for SNN network trainings, the neuron weights to erroneous trigger carry out amendment,
Learning rules are as follows:Should trigger and not trigger or should not trigger and trigger, read PSP function generators of more vairable response numerical value, be multiplied by
Be added to former weights position after habit speed, is updated.Realize that modified weight is grasped using internal PSP generators and multiplier
Make.
First by read-write control signal, carry out the renewal and reading of weight.In the stage of reading, that is, test rank
Section, the address according to input obtains weights from weights storage area, obtains PSP functional values from PSP functions generation unit in addition, jointly
Into in membrane potential parallel multiplication, it is weighted.Result of calculation can be carried out in each clock cycle with activation threshold value
Compare, the triggering state of neuron is judged using comparator.In the study stage, modified weight, Read-write Catrol are carried out if desired
Signal is now in write phase, using weights correcting module, reads the response numerical value of the PSP function generators of more vairable, stores single to weights
The weights of unit are modified.
According to the hardware configuration of the SNN spiking neurons based on FPGA proposed by the present invention, disclosure satisfy that based on AER images
The requirement of the event-driven feed forward classification system of sensor.The parameters such as input and output quantity, sample clock frequency and data width
It is adjustable.PSP functions durations are 30 SLOW_CLK, comprising 30 equidistant discrete points.The CLK clock cycle is much smaller than
SLOW_CLK, may be selected 1:10000 ratio.The pulse coder of SNN input for 4 when principle as shown in figure 3, its
In effectively input is represented with white block, black patch represents invalid input.Weights storage area size is relevant with input quantity and data width.
Because advantage of the AER imageing sensors on redundant data is reduced and feed forward classification system filter the operation of non-significant feature,
Actual SNN inputs quantity can be much smaller than the required input quantity of full connection.Data width is determined by required precision, is defaulted as
16 bit width.The present invention is based on FPGA hardware platform, thus with extremely strong flexibility and low-cost advantage, by parameter
Modification, the spiking neuron structure of special SNN neutral nets can be obtained, by parallel data process, solve software processing
Platform low speed problem.
Claims (4)
1. a kind of spiking neuron hardware structure for AER feed forward classification systems, it is characterized in that, by weights storage area, weights
Read-write gate, membrane potential parallel multiplication, the PSP function generators of more vairable, triggering determining device, control and sequential and modified weight mould
Block, 7 are partly constituted altogether, and each several part is specific as follows:
(1) control and sequential and modified weight module:For providing two internal clockings, wherein CLK and SLOW_CLK, CLK
Clock cycle is much smaller than SLOW_CLK, and proportion is 1:10000 to 1:500000, for pulse code sampling, membrane potential ratio
Compared with determining the speed of network processes;SLOW_CLK is used to coordinate the work of inside neurons, less than SLOW_CLK
The membrane potential accumulation result of all of input is obtained in that in cycle;RST signal is additionally needed to read for the zero setting that resets, and RE
Signal and WE write signals are read and write for weight;
(2) weights read-write gate:The mode of operation of weights is selected by control signal, in read phase, connection weight holder,
Appropriate weights are provided, in write phase, connection to input realizes right value update by outside port;
(3) weights holder:It is used to store weights in inside neurons, each neuron weights holder space is input quantity
It is multiplied by data width;
(4) the PSP function generators of more vairable:PSP is that have the rapid shape for rising and slowly declining, and (1) is PSP function formulas:
Wherein, K is PSP functional values, and V0 controls rise maximum, and τ m and τ s are to control the time of the raising and lowering gradient normal here
Number, two constant relationships continue 30 SLOW_CLK cycles altogether for τ s=τ m/4, PSP waveforms, according to formula can use 30 from
Scatterplot storage correspondence PSP functional values, form 30 look-up tables of data width;
(5) membrane potential parallel multiplication:Including a multiplier and an adder, in each SLOW_CLK cycle, according to public affairs
Formula (2) is weighted, and wherein n is the quantity of all inputs in accumulation period, Δ t be current time and last pulse when
Between it is poor, by the direct evaluation of PSP look-up tables, ω is correspondence weights, is read by weights holder:
(6) determining device is triggered:In each clk cycle, the result of membrane potential parallel multiplication can all be carried out with membrane potential threshold value
Compare, if threshold value reaches, produce triggering state, do not trigger otherwise;Triggering determining device includes a comparator, produces SNN
Triggering state is exported;
(7) modified weight module:When learning for SNN network trainings, the neuron weights to erroneous trigger carry out amendment.
2. the spiking neuron hardware structure of AER feed forward classification systems is used for as claimed in claim 1, it is characterized in that, SNN nets
Network training rules are as follows:Should trigger and not trigger or should not trigger and trigger, read PSP function generators of more vairable response numerical value, be multiplied by
Be added to former weights position after learning rate, is updated;Realize that modified weight is grasped using internal PSP generators and multiplier
Make.
3. the spiking neuron hardware structure of AER feed forward classification systems is used for as claimed in claim 1, it is characterized in that, 7 portions
Split flow is:First by read-write control signal, carry out the renewal and reading of weight;In the stage of reading, that is, test rank
Section, the address according to input obtains weights from weights storage area, obtains PSP functional values from the PSP function generators of more vairable in addition, enters jointly
Enter in membrane potential parallel multiplication, be weighted;Result of calculation can be compared in each clock cycle with activation threshold value
Compared with judging the triggering state of neuron using comparator;In the study stage, modified weight, Read-write Catrol letter are carried out if desired
Number write phase is now in, using weights correcting module, the response numerical value of the PSP function generators of more vairable is read, to weights storage element
Weights be modified.
4. the spiking neuron hardware structure of AER feed forward classification systems is used for as claimed in claim 1, it is characterized in that, 7 portions
Divide and be integrated in on-site programmable gate array FPGA, weight storage device is comprehensive into storage RAM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611190874.3A CN106779056B (en) | 2016-12-21 | 2016-12-21 | Spiking neuron hardware structure for AER feed forward classification system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611190874.3A CN106779056B (en) | 2016-12-21 | 2016-12-21 | Spiking neuron hardware structure for AER feed forward classification system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106779056A true CN106779056A (en) | 2017-05-31 |
CN106779056B CN106779056B (en) | 2019-05-10 |
Family
ID=58893571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611190874.3A Active CN106779056B (en) | 2016-12-21 | 2016-12-21 | Spiking neuron hardware structure for AER feed forward classification system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106779056B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046695A (en) * | 2019-04-09 | 2019-07-23 | 中国科学技术大学 | A kind of configurable high degree of parallelism spiking neuron array |
CN110378469A (en) * | 2019-07-11 | 2019-10-25 | 中国人民解放军国防科技大学 | SCNN inference device based on asynchronous circuit, PE unit, processor and computer equipment thereof |
CN110674928A (en) * | 2019-09-18 | 2020-01-10 | 电子科技大学 | Online learning method integrating artificial neural network and neural morphological calculation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105469039A (en) * | 2015-11-19 | 2016-04-06 | 天津大学 | Target identification system based on AER image sensor |
CN105611114A (en) * | 2015-11-02 | 2016-05-25 | 天津大学 | Full-digital multi-convolution core-convolution processing chip for AER (Address-Event Representation) image sensor |
CN105760930A (en) * | 2016-02-18 | 2016-07-13 | 天津大学 | Multilayer spiking neural network recognition system for AER |
CN106127800A (en) * | 2016-06-14 | 2016-11-16 | 天津大学 | Real-time many object tracking methods based on AER imageing sensor and device |
-
2016
- 2016-12-21 CN CN201611190874.3A patent/CN106779056B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611114A (en) * | 2015-11-02 | 2016-05-25 | 天津大学 | Full-digital multi-convolution core-convolution processing chip for AER (Address-Event Representation) image sensor |
CN105469039A (en) * | 2015-11-19 | 2016-04-06 | 天津大学 | Target identification system based on AER image sensor |
CN105760930A (en) * | 2016-02-18 | 2016-07-13 | 天津大学 | Multilayer spiking neural network recognition system for AER |
CN106127800A (en) * | 2016-06-14 | 2016-11-16 | 天津大学 | Real-time many object tracking methods based on AER imageing sensor and device |
Non-Patent Citations (1)
Title |
---|
XAVIER LAGORCE 等: "《Asynchronous Event-Based Multikernel Algorithm for High-Speed Visual Features Tracking》", 《IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110046695A (en) * | 2019-04-09 | 2019-07-23 | 中国科学技术大学 | A kind of configurable high degree of parallelism spiking neuron array |
CN110046695B (en) * | 2019-04-09 | 2021-04-23 | 中国科学技术大学 | Configurable high-parallelism pulse neuron array |
CN110378469A (en) * | 2019-07-11 | 2019-10-25 | 中国人民解放军国防科技大学 | SCNN inference device based on asynchronous circuit, PE unit, processor and computer equipment thereof |
CN110674928A (en) * | 2019-09-18 | 2020-01-10 | 电子科技大学 | Online learning method integrating artificial neural network and neural morphological calculation |
CN110674928B (en) * | 2019-09-18 | 2023-10-27 | 电子科技大学 | Online learning method integrating artificial neural network and nerve morphology calculation |
Also Published As
Publication number | Publication date |
---|---|
CN106779056B (en) | 2019-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101299233B (en) | Device and method for realizing moving object identification and track based on FPGA | |
Qu et al. | A fast face recognition system based on deep learning | |
CN107239727A (en) | Gesture identification method and system | |
US9600762B2 (en) | Defining dynamics of multiple neurons | |
CN105760930A (en) | Multilayer spiking neural network recognition system for AER | |
WO2014189970A2 (en) | Efficient hardware implementation of spiking networks | |
WO2015100177A2 (en) | Neural watchdog | |
EP3195193A1 (en) | Event-based down sampling | |
CN106779056A (en) | For the spiking neuron hardware structure of AER feed forward classification systems | |
WO2015127110A2 (en) | Event-based inference and learning for stochastic spiking bayesian networks | |
US20150278641A1 (en) | Invariant object representation of images using spiking neural networks | |
WO2015167765A2 (en) | Temporal spike encoding for temporal learning | |
CA2926824A1 (en) | Implementing synaptic learning using replay in spiking neural networks | |
CN110147163A (en) | The eye-tracking method and system of the multi-model fusion driving of facing mobile apparatus | |
WO2015156989A2 (en) | Modulating plasticity by global scalar values in a spiking neural network | |
EP3063707A2 (en) | Evaluation of a system including separable sub-systems over a multidimensional range | |
CN115393597B (en) | Semantic segmentation method and device based on pulse neural network and laser radar point cloud | |
WO2015153150A2 (en) | Probabilistic representation of large sequences using spiking neural network | |
US20140310216A1 (en) | Method for generating compact representations of spike timing-dependent plasticity curves | |
US20150278628A1 (en) | Invariant object representation of images using spiking neural networks | |
CN110197212A (en) | Image classification method, system and computer readable storage medium | |
CN104463916A (en) | Eye movement fixation point measurement method based on random walk | |
CN108875500A (en) | Pedestrian recognition methods, device, system and storage medium again | |
EP3123406A2 (en) | Plastic synapse management | |
CA2926034A1 (en) | Dynamically assigning and examining synaptic delay |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220713 Address after: 266000 No. 39, Shandong Road, Shinan District, Qingdao, Shandong Province Patentee after: Qingdao Zhencheng Technology Co.,Ltd. Address before: No.92 Weijin Road, Nankai District, Tianjin 300072 Patentee before: Tianjin University |
|
TR01 | Transfer of patent right |