WO2023178737A1 - Spiking neural network-based data enhancement method and apparatus - Google Patents

Spiking neural network-based data enhancement method and apparatus Download PDF

Info

Publication number
WO2023178737A1
WO2023178737A1 PCT/CN2022/085668 CN2022085668W WO2023178737A1 WO 2023178737 A1 WO2023178737 A1 WO 2023178737A1 CN 2022085668 W CN2022085668 W CN 2022085668W WO 2023178737 A1 WO2023178737 A1 WO 2023178737A1
Authority
WO
WIPO (PCT)
Prior art keywords
neural network
data
neuron
spiking neural
network model
Prior art date
Application number
PCT/CN2022/085668
Other languages
French (fr)
Chinese (zh)
Inventor
郑胜杰
李文艺
李骁健
Original Assignee
中国科学院深圳先进技术研究院
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中国科学院深圳先进技术研究院 filed Critical 中国科学院深圳先进技术研究院
Publication of WO2023178737A1 publication Critical patent/WO2023178737A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • G06F18/2135Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods based on approximation criteria, e.g. principal component analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/049Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/063Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/09Supervised learning

Definitions

  • the present invention relates to the technical field of brain-computer interface, and specifically, to a data enhancement method, device, storage medium and equipment based on impulse neural network.
  • the implantable brain-computer interface is a system that allows the brain to directly interact with the outside world, thereby helping patients restore, adjust, and enhance functions.
  • the key technology of the implantable brain-computer interface is that it needs to be located in the cerebral cortex area of the brain's skull. Sensors are implanted to directly extract the information conveyed by neurons inside the brain; at the same time, the brain-computer interface system needs to be equipped with algorithms for interpreting neural information, so that it can interpret neural information, such as decoding the subject's movement intention, visual Information and so on.
  • neural electrodes sensors
  • the neural information collection ability of the neural electrodes will gradually decrease over time.
  • the main reasons are as follows: (1) The electrodes will cause some damage to the brain, causing glial scar tissue to grow around the electrodes, blocking The electrode contacts and neurons are separated; (2) The electrode contacts are gradually damaged in the electrolyte solution environment in the brain, reducing the electrical sensing performance of the electrode.
  • the ability to decode neural information will gradually decline over time; the main reasons are as follows: (1) The neural electrodes will shift due to brain shaking, resulting in changes in recorded information, and most decoding algorithms cannot Adapt to this change in neural information; (2) The brain's own neuroplasticity (the learning process of neurons) leads to the reconnection of neurons and changes in connection strength; therefore, the brain's neural information will change with the learning process.
  • Neural manifold refers to the neural activity pattern of a specific neuron group.
  • the internal functions of the brain are derived from the collaborative information communication of neuron groups.
  • a manifold is a space with local Euclidean space properties. It is used in mathematics. It is suitable for describing geometric shapes; and the activity of neuron clusters can be represented in a low-dimensional manifold space; therefore, under the constraints of the manifold space, it can assist the brain-computer interface to use a small amount of neural signals to complete the decoding of neural information.
  • the spiking neural network is often hailed as the third generation artificial neural network because it simulates the information transmission method of biological neurons; within organisms, communication between neurons is through the transmission of pulse signals, and information is contained in the transmitted pulses. in the sequence; while traditional neural networks use continuous values as the transmission information between artificial neurons, and the model architecture is of artificial design type and generally does not have biological functional characteristics; therefore, the biologically inspired spiking neural network uses spiking neurons and synapses. Therefore, the spiking neural network model based on biological properties is very suitable for studying brain information modeling and intelligent reasoning tasks.
  • Data augmentation is a technology that artificially expands the training data set by generating more equivalent data from limited data. Building a brain information decoding model through a brain-computer interface requires a large amount of brain information data, but the cost of obtaining a large amount of data is too high, and Data is an important factor in improving brain-computer interface decoding. Data enhancement is an effective means to overcome the lack of training data and is also widely used in various fields of artificial intelligence.
  • Embodiments of the present invention provide a data enhancement method and device based on impulse neural networks to solve the problem of data enhancement when training data is insufficient.
  • a data enhancement method based on spiking neural network including the following steps:
  • the raw data includes the neuron population, and convert the spike sequence of the neuron population into spike firing rate data;
  • the dimensionality of the spike sequence information generated by the spiking neural network model is reduced, and a neuron group activity pattern that is similar to the real neuron group activity pattern is obtained;
  • perturbation neurons are set up in the spiking neural network model. Based on the noise signals generated by the perturbing neurons, nerve impulse information data with noise and in line with the laws of real biological nerve activity is created and output.
  • the original data also includes the movement position information of the neuron group, and Gaussian smoothing is performed on the movement position information to remove part of the noise data.
  • a spiking neural network model is established, using the manifold spatial activity patterns of real neuron groups as the objective function, and performing supervised learning including:
  • the spiking neural network model uses the leakage integration firing model as the basis of the model.
  • the leakage integration firing model is as follows:
  • u i represents the membrane potential of the neuron cell, which is related to the cell pulse emission;
  • ⁇ m represents the time constant of the differential equation, which is used to control the change of the membrane potential with time;
  • u rest is a constant parameter , expressed as the resting potential of the cell membrane, that is, the size of the membrane potential of the cell in the resting state;
  • I i (t) is the input current, which will affect the membrane potential of the cell as an external input;
  • R is the cell membrane impedance;
  • ⁇ s is Synaptic time constant;
  • u threshold represents the pulse firing threshold.
  • Supervised learning includes:
  • Supervised learning is performed by replacing the gradient learning algorithm to update the neural network model weights; the replacing gradient learning algorithm is described as follows:
  • S i [n] is represented as a pulse sequence
  • ⁇ (x) is represented as a Heavisitter step function. Since the pulse signal has non-differentiable properties, during back propagation, the ⁇ (x) function is represented by ⁇ (x)
  • S i [n] ⁇ (u i [n]-u threshold )
  • the original data of the implanted brain-computer interface is obtained.
  • the original data includes the neuron group, and the spike sequence of the neuron group is converted into the spike firing rate data as follows:
  • the spike train of each neuron in the neuron population is processed by sliding window and converted into spike firing rate data.
  • the dimensionality of the spike sequence information generated by the spiking neural network model is reduced, and the neuron group activity rules that are similar to the real neuron group activity rules are obtained:
  • the mean square error is the mean of the square sum of the errors corresponding to the predicted data and the original data.
  • the mean square error formula is:
  • yi is the dimensionality reduction data output of the impulse neural network
  • n is the number of samples.
  • perturbation neurons are set up in the spiking neural network model, and based on the noise signals generated by the perturbing neurons, nerve impulse information data with noise and in line with the laws of real biological nerve activity is created and output. Specifically:
  • Some neurons in the spiking neural network model are based on Poisson neurons and set as perturbation neurons.
  • the model of Poisson neurons is:
  • I i is the input current, which is converted from a random pulse signal.
  • the random pulse signal conforms to the Poisson distribution law
  • r represents the spike firing rate of the neuron
  • P T [n] represents the probability that the nth spike of the neuron is fired within the duration T
  • the probability of pulse emission within the time interval ⁇ t can be r ⁇ t, where x rand is a random variable with a value between 0 and 1;
  • a data enhancement device based on spiking neural network including:
  • the pulse conversion module is used to obtain the original data of the implanted brain-computer interface.
  • the original data includes the neuron population and converts the pulse sequence of the neuron population into pulse firing rate data;
  • the first dimensionality reduction module is used to reduce the dimensionality of the pulse firing rate data and obtain the neuron group activity rules in the low-dimensional manifold space;
  • the supervised learning module is used to establish a spiking neural network model and perform supervised learning using the manifold spatial activity patterns of real neuron groups as the objective function;
  • the second dimensionality reduction module is used to reduce the dimensionality of the spike sequence information generated by the spike neural network model during the learning iteration process of the spike neural network model, and obtain neuron group activity patterns that are similar to the real neuron group activity patterns;
  • the data output module is used to set perturbation neurons in the impulse neural network model after the iteration of the impulse neural network model. Based on the noise signals generated by the perturbation neurons, create nerve impulse information data with noise and in line with the laws of real biological nerve activity. Output it.
  • a computer-readable medium stores one or more programs.
  • the one or more programs can be executed by one or more processors to implement data enhancement based on spiking neural networks as any of the above. steps in the method.
  • a terminal device includes: a processor, a memory and a communication bus; the memory stores a computer-readable program that can be executed by the processor;
  • the communication bus realizes the connection and communication between the processor and the memory
  • the embodiment of the present invention proposes a data enhancement method and device based on spiking neural network.
  • the method of this application is used for implanted brain-computer interface data, and can extract information distribution characteristics under the condition of limited neural information data; based on spiking neural network
  • the biological attributes of the network are suitable for learning the distribution characteristics of neural information, thereby generating neural signals that conform to the information distribution characteristics, and use this as brain information data enhancement; the present invention takes into account the cluster activity characteristics of biological neurons as the basis for data enhancement.
  • Impulsive neural networks have biological properties and are suitable for directly generating neural information, thereby enhancing brain-computer interface information, which is of great significance for the research and application of brain-computer interfaces.
  • Figure 1 is a flow chart of the data enhancement method based on spiking neural network according to the present invention
  • Figure 2 shows the neural signals collected by the implantable brain-computer interface of the present invention and the corresponding motion control
  • Figure 3 is a representation in low-dimensional manifold space of the neural signals collected by the implantable brain-computer interface of the present invention corresponding to the test;
  • Figure 4 is a schematic diagram of the impulse neural network architecture designed by the present invention.
  • Figure 5 is a schematic diagram of brain-computer interface data generated by the spiking neural network designed in the present invention.
  • Figure 6 is a schematic diagram of the data enhancement device based on the impulse neural network of the present invention.
  • Figure 7 shows the terminal equipment of the present invention.
  • a data enhancement method based on a spiking neural network including the following steps:
  • the S100 obtains the raw data from the implanted brain-computer interface.
  • the raw data includes the neuron population, and converts the pulse sequence of the neuron population into pulse firing rate data.
  • the original data includes information from the neuron group extracted from the motor cortex, movement position and movement speed information corresponding to the subject's movement control, and markers corresponding to the type of movement control test; each neuron group in the brain-computer interface-related movement
  • the neuron pulse sequence is processed by a sliding window and converted into neuron pulse firing rate data;
  • the movement position information is Gaussian smoothed to remove part of the noise data;
  • the moving average filter can convert the neuron population signal of the original signal into Downsampling improves the signal-to-noise ratio;
  • the Gaussian filter is a filter used to remove noise. It is also used for digital signal processing and removing the noise of the motion position of the original information; as shown in Figure 2, it is an implantable brain-computer interface Collected neural signals and corresponding motor control.
  • the moving average filter moves windows along the data with a length of window size (window Size) and calculates the average of the data contained in each window.
  • x is the signal input and ⁇ is the standard deviation.
  • S200 reduces the dimensionality of the pulse firing rate data and obtains the neuron group activity rules in low-dimensional manifold space.
  • the brain-computer interface collects neural impulse data and performs dimensionality reduction to obtain the neuron activity rules of low-dimensional manifold space. Specifically:
  • Step 1 Organize the original data into a matrix X with n rows and m columns;
  • Step 2 Zero-mean each row of X
  • Step 3 Find the covariance matrix
  • Step 4 Find the eigenvalues and corresponding eigenvectors of the covariance matrix
  • Step 5 Arrange the eigenvectors into a matrix from top to bottom in rows according to the size of the corresponding eigenvalues, and take the first K rows to form the matrix P;
  • S300 establishes a spiking neural network model and uses the manifold spatial activity patterns of real neuron groups as the objective function to perform supervised learning.
  • the present invention uses a spiking neural network as the model for generating this data.
  • the neuron model is based on the Leaky Integrate and Fire Model (LIF).
  • the learning algorithm is based on a supervised learning algorithm and uses a method called substitution.
  • Gradient Learning (Surrogate Gradient Learning) algorithm thereby updating the weights of the neural network model; as shown in Figure 4, it is a schematic diagram of the impulse neural network architecture designed by the present invention.
  • the leaked integration distribution model is as follows:
  • u i represents the membrane potential of the neuron cell, which is related to the cell pulse emission;
  • ⁇ m represents the time constant of the differential equation, which is used to control the change of the membrane potential with time;
  • u rest is a constant parameter , expressed as the resting potential of the cell membrane, that is, the size of the membrane potential of the cell in the resting state;
  • I i (t) is the input current, which will affect the membrane potential of the cell as an external input;
  • R is the cell membrane impedance;
  • ⁇ s is Synaptic time constant;
  • u threshold represents the pulse firing threshold.
  • S i [n] is represented as a pulse sequence
  • ⁇ (x) is represented as a Heavisitter step function. Since the pulse signal has non-differentiable properties, during back propagation, the ⁇ (x) function is represented by ⁇ (x)
  • S i [n] ⁇ (u i [n]-u threshold )
  • S400 During the learning iteration process of the spiking neural network model, reduce the dimensionality of the spike sequence information generated by the spiking neural network model, and obtain a neuron group activity pattern that is similar to the real neuron group activity pattern.
  • the pulse sequence generated by the output layer of the spiking neural network needs to be dimensionally reduced, and the dimensionality reduction data is used as the output.
  • the dimensionality reduction activity pattern of the real neuron group is used as the objective function, and the mean square error (MSE, Mean-Square Loss) as the loss function; the training results need to meet the requirements, and the neuron population activity rules of the output layer need to be similar to the real neuron population activity rules; the mean square error loss is also called quadratic loss, L2 loss, and is often used for regression prediction
  • the mean square error function measures the quality of the model by calculating the square of the distance (i.e., error) between the predicted value and the actual value. That is, the closer the predicted value and the actual value are, the smaller the mean square error between the two is.
  • the mean square error is the mean of the square sum of the errors corresponding to the predicted data and the original data.
  • the formula is as follows:
  • yi is the dimensionality reduction data output of the impulse neural network
  • n is the number of samples.
  • perturbation neurons are set in the spiking neural network model. Based on the noise signals generated by the perturbing neurons, nerve impulse information data with noise and in line with the laws of real biological nerve activity is created and output.
  • Nerve impulse information data As shown in Figure 5, it is a schematic diagram of the brain-computer interface data generated by the impulse neural network designed by the present invention.
  • the model of Poisson neuron is:
  • I i is the input current, which is converted from a random pulse signal.
  • the random pulse signal conforms to the Poisson distribution law
  • r represents the spike firing rate of the neuron
  • P T [n] represents the probability that the nth spike of the neuron is fired within the duration T
  • the probability of pulse emission within the time interval ⁇ t can be r ⁇ t, where x rand is a random variable with a value between 0 and 1;
  • the data generated according to the present invention can be further used in the fields of brain-computer interface information decoding and brain-like intelligence research; the method of this application is specially used for implanted brain-computer interface data, and can extract information under the condition of limited neural information data. distribution characteristics. Based on the biological properties of the spiking neural network, it is suitable for learning the distribution characteristics of neural information, thereby generating neural signals that conform to the information distribution characteristics, as brain information data enhancement.
  • the present invention takes into account the cluster activity characteristics of biological neurons as the basis for data enhancement.
  • spiking neural networks have biological properties and are suitable for directly generating neural information, thereby enhancing brain-computer interface information, which is of great significance for the research and application of brain-computer interfaces.
  • This invention takes into account the collaborative nature of brain-computer interfaces and brain-like intelligent algorithms.
  • the enhanced data is more in line with the internal laws of neural information, and the generated data is more biologically interpretable.
  • a data enhancement device based on a spiking neural network including:
  • the pulse conversion module 100 is used to obtain the original data of the implanted brain-computer interface.
  • the original data includes the neuron population, and converts the pulse sequence of the neuron population into pulse firing rate data;
  • the first dimensionality reduction module 200 is used to reduce the dimensionality of the pulse firing rate data and obtain the neuron group activity rules in the low-dimensional manifold space;
  • the supervised learning module 300 is used to establish a spiking neural network model and perform supervised learning using the manifold spatial activity patterns of real neuron groups as the objective function;
  • the second dimensionality reduction module 400 is used to reduce the dimensionality of the pulse sequence information generated by the spiking neural network model during the learning iteration process of the spiking neural network model, and obtain a neuron group activity pattern that is similar to the real neuron group activity pattern. .
  • the data output module 500 is used to set perturbation neurons in the impulse neural network model after the iteration of the impulse neural network model is completed, and based on the noise signals generated by the perturbation neurons, create nerve impulse information data that is noisy and conforms to the laws of real biological nerve activity. and output it.
  • the embodiment of the present invention proposes a data enhancement method and device based on a spiking neural network.
  • This application is used for implanted brain-computer interface data, which can extract information distribution characteristics under the condition of limited neural information data; based on the spiking neural network
  • the biological attributes of the brain are suitable for learning the distribution characteristics of neural information, thereby generating neural signals that conform to the information distribution characteristics, and use this as brain information data enhancement; the present invention takes into account the cluster activity characteristics of biological neurons as the basis for data enhancement.
  • Impulsive neural networks have biological properties and are suitable for directly generating neural information, thereby enhancing brain-computer interface information, which is of great significance for the research and application of brain-computer interfaces.
  • this embodiment provides a computer-readable storage medium.
  • the computer-readable storage medium stores one or more programs.
  • the one or more programs can be executed by one or more processors to implement The steps in the data enhancement method based on spiking neural network in the above embodiment.
  • a terminal device including: a processor, a memory and a communication bus; the memory stores a computer-readable program that can be executed by the processor; the communication bus realizes connection and communication between the processor and the memory; the processor executes the computer-readable program When implementing the above steps in the data enhancement method based on spiking neural network.
  • this application provides a terminal device, as shown in Figure 7, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22. It can also Including communications interface (Communications Interface) 23 and bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can complete communication with each other through the bus 24.
  • the display screen 21 is configured to display a user guidance interface preset in the initial setting mode. Communication interface 23 can transmit information.
  • the processor 20 can call logical instructions in the memory 22 to execute the methods in the above embodiments.
  • the above-mentioned logical instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
  • the memory 22 can be configured to store software programs, computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 20 executes software programs, instructions or modules stored in the memory 22 to execute functional applications and data processing, that is, to implement the methods in the above embodiments.
  • the memory 22 may include a stored program area and a stored data area, where the stored program area may store an operating system and an application program required for at least one function; the stored data area may store data created according to the use of the terminal device, etc.
  • the memory 22 may include high-speed random access memory, and may also include non-volatile memory.
  • program code such as U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, or they can also be temporary state storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Evolutionary Computation (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Neurology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

A spiking neural network-based data enhancement method and apparatus. The method is applied to implantable brain-computer interface data, and can extract information distribution characteristics under a condition of limited neural information data; on the basis of biological attributes of a spiking neural network, the method is suitable for learning the distribution characteristics of neural information, so that a neural signal conforming to the information distribution characteristics is generated, and the neural signal serves as brain information data enhancement; the method considers cluster activity characteristics of biological neurons, and uses the cluster activity characteristics as a data enhancement basis, and the spiking neural network has biological properties, and is suitable for directly generating neural information, so that brain-computer interface information is enhanced, and the method has a great significance for research and application of brain-computer interfaces.

Description

一种基于脉冲神经网络的数据增强方法及装置A data enhancement method and device based on impulse neural network 技术领域Technical field
本发明涉及脑机接口技术领域,具体而言,涉及一种基于脉冲神经网络的数据增强方法、装置、存储介质及设备。The present invention relates to the technical field of brain-computer interface, and specifically, to a data enhancement method, device, storage medium and equipment based on impulse neural network.
背景技术Background technique
植入式脑机接口是一个让大脑与外界直接进行信息交互,从而帮助患者恢复功能、调节功能以及强化功能的系统;植入式脑机接口的关键技术是需要在大脑颅骨内的大脑皮质区域植入传感器,从而可以直接提取大脑内部的神经元所传达的信息;同时脑机接口系统需要搭配用于解释神经信息的算法,从而可以解释神经信息,比如解码出受试者的运动意图,视觉信息等等。The implantable brain-computer interface is a system that allows the brain to directly interact with the outside world, thereby helping patients restore, adjust, and enhance functions. The key technology of the implantable brain-computer interface is that it needs to be located in the cerebral cortex area of the brain's skull. Sensors are implanted to directly extract the information conveyed by neurons inside the brain; at the same time, the brain-computer interface system needs to be equipped with algorithms for interpreting neural information, so that it can interpret neural information, such as decoding the subject's movement intention, visual Information and so on.
大脑植入神经电极(传感器)之后,神经电极随着时间推移,神经信息采集能力会逐渐下降;主要原因如下:(1)电极会对大脑造成一部分损伤,引发胶质斑痕组织围绕电极生长,阻隔了电极触点与神经元;(2)电极触点在脑内的电解质溶液环境下逐渐破损,降低了电极的电学传感性能。另外,对于解码算法,随着时间推移,神经信息解码能力会逐渐下降;主要原因如下:(1)神经电极会因大脑摇晃从而发生偏移,导致记录信息发生变化,而绝大多数解码算法无法适应这种神经信息变化;(2)大脑自身的神经可塑性(神经元的学习过程),导致神经元的重新连接以及改变连接强度;因此,大脑的神经信息会随学习过程而产生变化。After neural electrodes (sensors) are implanted in the brain, the neural information collection ability of the neural electrodes will gradually decrease over time. The main reasons are as follows: (1) The electrodes will cause some damage to the brain, causing glial scar tissue to grow around the electrodes, blocking The electrode contacts and neurons are separated; (2) The electrode contacts are gradually damaged in the electrolyte solution environment in the brain, reducing the electrical sensing performance of the electrode. In addition, for decoding algorithms, the ability to decode neural information will gradually decline over time; the main reasons are as follows: (1) The neural electrodes will shift due to brain shaking, resulting in changes in recorded information, and most decoding algorithms cannot Adapt to this change in neural information; (2) The brain's own neuroplasticity (the learning process of neurons) leads to the reconnection of neurons and changes in connection strength; therefore, the brain's neural information will change with the learning process.
神经流形指的是相关特定神经元群体的神经活动模式,大脑内部的功能是源自于神经元群体的协同信息通讯;流形是局部具有欧几里得空间性质的空间,在数学中用于描述几何形体;而神经元集群的活动可在低维度的流形空间进行表示;因此,在流形空间的约束下,可辅助脑机接口使用少量的神经信号,从而完成神经信息解码。Neural manifold refers to the neural activity pattern of a specific neuron group. The internal functions of the brain are derived from the collaborative information communication of neuron groups. A manifold is a space with local Euclidean space properties. It is used in mathematics. It is suitable for describing geometric shapes; and the activity of neuron clusters can be represented in a low-dimensional manifold space; therefore, under the constraints of the manifold space, it can assist the brain-computer interface to use a small amount of neural signals to complete the decoding of neural information.
脉冲神经网络经常被誉为第三代人工神经网络,因为它模拟生物神经元的信息传递方式;在生物内部,神经元与神经元之间的通信是通过传递脉冲信号,信息蕴含在传递的脉冲序列中;而传统神经网络使用连续值作为人工神经元之间的传递信息,并且模型架构属于人为设计类型,一般都没有生物功能特性; 因此,受生物启发的脉冲神经网络采用脉冲神经元以及突触模型,并且可采用具用生物性质的学习方式进行突触权重更新,因此,基于生物性质的脉冲神经网络模型非常适合研究脑信息建模以及智能推理任务。The spiking neural network is often hailed as the third generation artificial neural network because it simulates the information transmission method of biological neurons; within organisms, communication between neurons is through the transmission of pulse signals, and information is contained in the transmitted pulses. in the sequence; while traditional neural networks use continuous values as the transmission information between artificial neurons, and the model architecture is of artificial design type and generally does not have biological functional characteristics; therefore, the biologically inspired spiking neural network uses spiking neurons and synapses. Therefore, the spiking neural network model based on biological properties is very suitable for studying brain information modeling and intelligent reasoning tasks.
数据增强是一种通过让有限的数据产生更多的等价数据来人工扩展训练数据集的技术,脑机接口搭建脑信息解码模型需要大量的脑信息数据,但获取大量数据成本过高,而数据又是提高脑机接口解码的重要因素,数据增强是克服训练数据不足的有效手段,也在人工智能的各个领域中应用广泛。Data augmentation is a technology that artificially expands the training data set by generating more equivalent data from limited data. Building a brain information decoding model through a brain-computer interface requires a large amount of brain information data, but the cost of obtaining a large amount of data is too high, and Data is an important factor in improving brain-computer interface decoding. Data enhancement is an effective means to overcome the lack of training data and is also widely used in various fields of artificial intelligence.
因此,现有技术还存在缺陷,有必要对数据增强技术进一步发展。Therefore, existing technology still has shortcomings, and it is necessary to further develop data enhancement technology.
发明内容Contents of the invention
本发明实施例提供了一种基于脉冲神经网络的数据增强方法及装置,以解决在训练数据不足的情况下对数据进行增强的问题。Embodiments of the present invention provide a data enhancement method and device based on impulse neural networks to solve the problem of data enhancement when training data is insufficient.
根据本发明的一实施例,提供了一种基于脉冲神经网络的数据增强方法,包括以下步骤:According to an embodiment of the present invention, a data enhancement method based on spiking neural network is provided, including the following steps:
获取植入式脑机接口的原始数据,原始数据包括神经元群体,将神经元群体的脉冲序列转化为脉冲发放率数据;Obtain the raw data of the implanted brain-computer interface, the raw data includes the neuron population, and convert the spike sequence of the neuron population into spike firing rate data;
对于脉冲发放率数据进行降维,得出低维流形空间的神经元群体活动规律;Dimensionality reduction is performed on the pulse firing rate data to obtain the neuron population activity rules in the low-dimensional manifold space;
建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督式学习;Establish a spiking neural network model and use the manifold spatial activity patterns of real neuron groups as the objective function to perform supervised learning;
在脉冲神经网络模型的学习迭代过程中,对脉冲神经网络模型生成的脉冲序列信息进行降维,得出与真实神经元群体活动规律近似的神经元群体活动规律;In the learning iteration process of the spiking neural network model, the dimensionality of the spike sequence information generated by the spiking neural network model is reduced, and a neuron group activity pattern that is similar to the real neuron group activity pattern is obtained;
脉冲神经网络模型迭代完毕后,在脉冲神经网络模型中设置扰动神经元,基于扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律 的神经脉冲信息数据并将其输出。After the iteration of the spiking neural network model is completed, perturbation neurons are set up in the spiking neural network model. Based on the noise signals generated by the perturbing neurons, nerve impulse information data with noise and in line with the laws of real biological nerve activity is created and output.
进一步地,原始数据还包括神经元群体运动位置信息,对运动位置信息进行高斯平滑处理,去除部分噪声数据。Furthermore, the original data also includes the movement position information of the neuron group, and Gaussian smoothing is performed on the movement position information to remove part of the noise data.
进一步地,建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督式学习包括:Furthermore, a spiking neural network model is established, using the manifold spatial activity patterns of real neuron groups as the objective function, and performing supervised learning including:
脉冲神经网络模型以泄露整合发放模型作为模型基础,泄露整合发放模型如下:The spiking neural network model uses the leakage integration firing model as the basis of the model. The leakage integration firing model is as follows:
Figure PCTCN2022085668-appb-000001
Figure PCTCN2022085668-appb-000001
Figure PCTCN2022085668-appb-000002
Figure PCTCN2022085668-appb-000002
u i=u rest,u i>u threshold u i =u rest ,u i >u threshold
其中,u i表示神经元细胞的膜电势大小,膜电势大小与细胞脉冲发放有关;τ m表示为微分方程的时间常数,用于控制膜电势随时间变化量的大小;u rest是一个常数参数,表示为细胞膜的静息电位,即细胞在静息状态下膜电势的大小;I i(t)为输入电流,作为外部输入会对细胞的膜电势产生影响;R为细胞膜阻抗;τ s为突触时间常数;u threshold表示脉冲发放阈值,当神经元的膜电势u i超过u threshold时发放脉冲,且将膜电势u i重置为u restAmong them, u i represents the membrane potential of the neuron cell, which is related to the cell pulse emission; τ m represents the time constant of the differential equation, which is used to control the change of the membrane potential with time; u rest is a constant parameter , expressed as the resting potential of the cell membrane, that is, the size of the membrane potential of the cell in the resting state; I i (t) is the input current, which will affect the membrane potential of the cell as an external input; R is the cell membrane impedance; τ s is Synaptic time constant; u threshold represents the pulse firing threshold. When the neuron's membrane potential u i exceeds u threshold , a pulse is fired, and the membrane potential u i is reset to u rest .
进一步地,建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督学习包括:Furthermore, a spiking neural network model is established, and the manifold spatial activity pattern of the real neuron group is used as the objective function. Supervised learning includes:
通过代替梯度学习算法进行监督学习,以使神经网络模型权重进行更新;代替梯度学习算法描述如下:Supervised learning is performed by replacing the gradient learning algorithm to update the neural network model weights; the replacing gradient learning algorithm is described as follows:
S i[n]∝Θ(u i[n]-u threshold) S i [n]∝Θ(u i [n]-u threshold )
其中,S i[n]表示为脉冲序列,Θ(x)表示为海维西特阶梯函数,由于脉冲信号具有不可微的性质,在反向传播时,Θ(x)函数由σ(x)进行替换,则有S i[n]∝σ(u i[n]-u threshold),其中
Figure PCTCN2022085668-appb-000003
Among them, S i [n] is represented as a pulse sequence, and Θ(x) is represented as a Heavisitter step function. Since the pulse signal has non-differentiable properties, during back propagation, the Θ(x) function is represented by σ(x) By substitution, we have S i [n]∝σ(u i [n]-u threshold ), where
Figure PCTCN2022085668-appb-000003
进一步地,获取植入式脑机接口的原始数据,原始数据包括神经元群体,将神经元群体的脉冲序列转化为脉冲发放率数据具体为:Further, the original data of the implanted brain-computer interface is obtained. The original data includes the neuron group, and the spike sequence of the neuron group is converted into the spike firing rate data as follows:
对神经元群体中的每一神经元的脉冲序列进行滑动窗口处理,将其转化为脉冲发放率数据。The spike train of each neuron in the neuron population is processed by sliding window and converted into spike firing rate data.
进一步地,在脉冲神经网络模型的学习迭代过程中,对脉冲神经网络模型生成的脉冲序列信息进行降维,得出与真实神经元群体活动规律近似的神经元群体活动规律具体为:Furthermore, in the learning iteration process of the spiking neural network model, the dimensionality of the spike sequence information generated by the spiking neural network model is reduced, and the neuron group activity rules that are similar to the real neuron group activity rules are obtained:
使用均方差作为损失函数,均方差是预测数据和原始数据对应点误差的平方和的均值,均方差公式为:Use the mean square error as the loss function. The mean square error is the mean of the square sum of the errors corresponding to the predicted data and the original data. The mean square error formula is:
Figure PCTCN2022085668-appb-000004
Figure PCTCN2022085668-appb-000004
其中,y i为脉冲神经网络的降维数据输出,
Figure PCTCN2022085668-appb-000005
为目标函数,n为样本个数。
Among them, yi is the dimensionality reduction data output of the impulse neural network,
Figure PCTCN2022085668-appb-000005
is the objective function, n is the number of samples.
进一步地,脉冲神经网络模型迭代完毕后,在脉冲神经网络模型中设置扰动神经元,基于扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律的神经脉冲信息数据并将其输出具体为:Further, after the iteration of the spiking neural network model is completed, perturbation neurons are set up in the spiking neural network model, and based on the noise signals generated by the perturbing neurons, nerve impulse information data with noise and in line with the laws of real biological nerve activity is created and output. Specifically:
将脉冲神经网络模型中部分神经元以泊松神经元作为基础,设置为扰动神经元,泊松神经元的模型为:Some neurons in the spiking neural network model are based on Poisson neurons and set as perturbation neurons. The model of Poisson neurons is:
使用LIF神经元模型:Using the LIF neuron model:
Figure PCTCN2022085668-appb-000006
Figure PCTCN2022085668-appb-000006
I i为输入电流,由随机脉冲信号转换而成,随机脉冲信号符合泊松分布规律; I i is the input current, which is converted from a random pulse signal. The random pulse signal conforms to the Poisson distribution law;
Figure PCTCN2022085668-appb-000007
Figure PCTCN2022085668-appb-000007
r表示神经元的脉冲发放率,P T[n]表示神经元的第n个脉冲在时长T内发放的概率; r represents the spike firing rate of the neuron, and P T [n] represents the probability that the nth spike of the neuron is fired within the duration T;
在程序内实现,计算可简化,脉冲在时间间隔Δt内的发放概率可为rΔt,其中x rand为随机变量,值在0到1内; Implemented in the program, the calculation can be simplified. The probability of pulse emission within the time interval Δt can be rΔt, where x rand is a random variable with a value between 0 and 1;
Figure PCTCN2022085668-appb-000008
Figure PCTCN2022085668-appb-000008
一种基于脉冲神经网络的数据增强装置,包括:A data enhancement device based on spiking neural network, including:
脉冲转换模块,用于获取植入式脑机接口的原始数据,原始数据包括神经元群体,将神经元群体的脉冲序列转化为脉冲发放率数据;The pulse conversion module is used to obtain the original data of the implanted brain-computer interface. The original data includes the neuron population and converts the pulse sequence of the neuron population into pulse firing rate data;
第一降维模块,用于对于脉冲发放率数据进行降维,得出低维流形空间的神经元群体活动规律;The first dimensionality reduction module is used to reduce the dimensionality of the pulse firing rate data and obtain the neuron group activity rules in the low-dimensional manifold space;
监督学习模块,用于建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督学习;The supervised learning module is used to establish a spiking neural network model and perform supervised learning using the manifold spatial activity patterns of real neuron groups as the objective function;
第二降维模块,用于在脉冲神经网络模型的学习迭代过程中,对脉冲神经 网络模型生成的脉冲序列信息进行降维,得出与真实神经元群体活动规律近似的神经元群体活动规律;The second dimensionality reduction module is used to reduce the dimensionality of the spike sequence information generated by the spike neural network model during the learning iteration process of the spike neural network model, and obtain neuron group activity patterns that are similar to the real neuron group activity patterns;
数据输出模块,用于脉冲神经网络模型迭代完毕后,在脉冲神经网络模型中设置扰动神经元,基于扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律的神经脉冲信息数据并将其输出。The data output module is used to set perturbation neurons in the impulse neural network model after the iteration of the impulse neural network model. Based on the noise signals generated by the perturbation neurons, create nerve impulse information data with noise and in line with the laws of real biological nerve activity. Output it.
一种计算机可读介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如上述任意一项的基于脉冲神经网络的数据增强方法中的步骤。A computer-readable medium. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors to implement data enhancement based on spiking neural networks as any of the above. steps in the method.
一种终端设备,包括:处理器、存储器及通信总线;存储器上存储有可被处理器执行的计算机可读程序;A terminal device includes: a processor, a memory and a communication bus; the memory stores a computer-readable program that can be executed by the processor;
通信总线实现处理器和存储器之间的连接通信;The communication bus realizes the connection and communication between the processor and the memory;
处理器执行计算机可读程序时实现如上述任意一项的基于脉冲神经网络的数据增强方法中的步骤。When the processor executes a computer-readable program, the steps in any one of the above spiking neural network-based data enhancement methods are implemented.
本发明实施例提出了一种基于脉冲神经网络的数据增强方法及装置,本申请方法用于植入式脑机接口数据,可在有限神经信息数据的情况下,提取信息分布特征;基于脉冲神经网络的生物属性,适合学习神经信息的分布特征,从而产生符合信息分布特征的神经信号,以此作为脑信息数据增强;本发明考虑了生物神经元的集群活动特征,以此作为数据增强的基础,脉冲神经网络具有生物性质,适合直接产生神经信息,从而增强脑机接口信息,对于脑机接口的研究与应用具有重要意义。The embodiment of the present invention proposes a data enhancement method and device based on spiking neural network. The method of this application is used for implanted brain-computer interface data, and can extract information distribution characteristics under the condition of limited neural information data; based on spiking neural network The biological attributes of the network are suitable for learning the distribution characteristics of neural information, thereby generating neural signals that conform to the information distribution characteristics, and use this as brain information data enhancement; the present invention takes into account the cluster activity characteristics of biological neurons as the basis for data enhancement. , Impulsive neural networks have biological properties and are suitable for directly generating neural information, thereby enhancing brain-computer interface information, which is of great significance for the research and application of brain-computer interfaces.
附图说明Description of the drawings
图1为本发明基于脉冲神经网络的数据增强方法的流程图;Figure 1 is a flow chart of the data enhancement method based on spiking neural network according to the present invention;
图2为本发明植入式脑机接口采集的神经信号以及对应的运动控制;Figure 2 shows the neural signals collected by the implantable brain-computer interface of the present invention and the corresponding motion control;
图3为本发明植入式脑机接口采集的对应试验的神经信号在低维流形空间表示;Figure 3 is a representation in low-dimensional manifold space of the neural signals collected by the implantable brain-computer interface of the present invention corresponding to the test;
图4为本发明所设计的脉冲神经网络架构示意图;Figure 4 is a schematic diagram of the impulse neural network architecture designed by the present invention;
图5为本发明所设计的脉冲神经网络所生成的脑机接口数据示意图;Figure 5 is a schematic diagram of brain-computer interface data generated by the spiking neural network designed in the present invention;
图6为本发明基于脉冲神经网络的数据增强装置的原理图;Figure 6 is a schematic diagram of the data enhancement device based on the impulse neural network of the present invention;
图7为本发明的终端设备。Figure 7 shows the terminal equipment of the present invention.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein are capable of being practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
参见图1,根据本发明一实施例,提供了一种基于脉冲神经网络的数据增强方法,包括以下步骤:Referring to Figure 1, according to an embodiment of the present invention, a data enhancement method based on a spiking neural network is provided, including the following steps:
S100获取植入式脑机接口的原始数据,原始数据包括神经元群体,将神经元群体的脉冲序列转化为脉冲发放率数据。S100 obtains the raw data from the implanted brain-computer interface. The raw data includes the neuron population, and converts the pulse sequence of the neuron population into pulse firing rate data.
原始数据包括从运动皮层提取的神经元群体发放信息、被测者运动控制对 应的运动位置和运动速度信息,对应运动控制试验类型的标记;对脑机接口相关运动的神经元群体中的每一神经元的脉冲序列进行滑动窗口处理,将其转化为神经元脉冲发放率数据;对运动位置信息进行高斯平滑处理,去除部分噪声数据;移动平均值滤波器能够将原始信号的神经元群体信号进行降采样,提升信噪比;高斯滤波器是用于去除噪声的滤波器,同样是用于数字信号处理及去除原始信息的运动位置的噪声;如图2所示,为植入式脑机接口采集的神经信号以及对应的运动控制。The original data includes information from the neuron group extracted from the motor cortex, movement position and movement speed information corresponding to the subject's movement control, and markers corresponding to the type of movement control test; each neuron group in the brain-computer interface-related movement The neuron pulse sequence is processed by a sliding window and converted into neuron pulse firing rate data; the movement position information is Gaussian smoothed to remove part of the noise data; the moving average filter can convert the neuron population signal of the original signal into Downsampling improves the signal-to-noise ratio; the Gaussian filter is a filter used to remove noise. It is also used for digital signal processing and removing the noise of the motion position of the original information; as shown in Figure 2, it is an implantable brain-computer interface Collected neural signals and corresponding motor control.
以下为差分方程定义向量x的移动平均值滤波器:The following defines a moving average filter for the vector x for the difference equation:
Figure PCTCN2022085668-appb-000009
Figure PCTCN2022085668-appb-000009
移动平均值滤波器沿数据移动长度为窗口大小(window Size)的窗口,并计算每个窗口中包含的数据平均值。The moving average filter moves windows along the data with a length of window size (window Size) and calculates the average of the data contained in each window.
以下是一维高斯滤波器对原始信息中的运动位置进行平滑处理:The following is a one-dimensional Gaussian filter smoothing the motion positions in the original information:
Figure PCTCN2022085668-appb-000010
Figure PCTCN2022085668-appb-000010
x为信号输入,σ为标准差。x is the signal input and σ is the standard deviation.
S200对于脉冲发放率数据进行降维,得出低维流形空间的神经元群体活动规律。S200 reduces the dimensionality of the pulse firing rate data and obtains the neuron group activity rules in low-dimensional manifold space.
对于同一任务实验的脑机接口采集神经脉冲数据进行降维,得出低维流形空间的神经元活动规律。具体为:For the same task experiment, the brain-computer interface collects neural impulse data and performs dimensionality reduction to obtain the neuron activity rules of low-dimensional manifold space. Specifically:
对同一试验的数据,首先进行主成分分析(PCA,Principal Component Analysis),同时也使用累积比率(The cumulative explained variance ratio) 可确定主分量解释的方差量,从而得出具有统计显著性的主成分个数,作为表示神经元群体活动的维数,从而得出低维流形空间中神经元群体活动规律;如图3所示,为植入式脑机接口采集的对应试验的神经信号在低维流形空间表示。For the data of the same experiment, first perform Principal Component Analysis (PCA), and also use the cumulative ratio (The cumulative explained variance ratio) to determine the amount of variance explained by the principal components, thereby obtaining statistically significant principal components. number, as the dimension representing the activity of the neuron group, thus obtaining the activity rules of the neuron group in the low-dimensional manifold space; as shown in Figure 3, the neural signals of the corresponding experiments collected for the implanted brain-computer interface are in the low-dimensional manifold space. dimensional manifold space representation.
下面对PCA算法的具体步骤进行详细说明:The specific steps of the PCA algorithm are explained in detail below:
先设有m行n列数据;First, there are m rows and n columns of data;
步骤一:将原始数据按列组成n行m列矩阵X;Step 1: Organize the original data into a matrix X with n rows and m columns;
步骤二:将X的每一行进行零均值化;Step 2: Zero-mean each row of X;
步骤三:求出协方差矩阵
Figure PCTCN2022085668-appb-000011
Step 3: Find the covariance matrix
Figure PCTCN2022085668-appb-000011
步骤四:求出协方差矩阵的特征值及对应的特征向量;Step 4: Find the eigenvalues and corresponding eigenvectors of the covariance matrix;
步骤五:将特征向量按对应特征值大小从上到下按行排列成矩阵,取前K行组成矩阵P;Step 5: Arrange the eigenvectors into a matrix from top to bottom in rows according to the size of the corresponding eigenvalues, and take the first K rows to form the matrix P;
步骤六:Y=PX即为降维到K维后的数据。Step 6: Y=PX is the data after dimensionality reduction to K dimensions.
S300建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督式学习。S300 establishes a spiking neural network model and uses the manifold spatial activity patterns of real neuron groups as the objective function to perform supervised learning.
本发明使用的是脉冲神经网络作为该数据生成的模型,神经元模型以泄露整合发放模型(LIF,Leaky Integrate and Fire Model)作为模型基础,学习算法基于监督式学习算法,使用一种称为代替梯度学习(Surrogate Gradient Learning)的算法,从而使神经网络模型权重进行更新;如图4所示,为本发明所设计的脉冲神经网络架构示意图。The present invention uses a spiking neural network as the model for generating this data. The neuron model is based on the Leaky Integrate and Fire Model (LIF). The learning algorithm is based on a supervised learning algorithm and uses a method called substitution. Gradient Learning (Surrogate Gradient Learning) algorithm, thereby updating the weights of the neural network model; as shown in Figure 4, it is a schematic diagram of the impulse neural network architecture designed by the present invention.
泄露整合发放模型如下:The leaked integration distribution model is as follows:
Figure PCTCN2022085668-appb-000012
Figure PCTCN2022085668-appb-000012
Figure PCTCN2022085668-appb-000013
Figure PCTCN2022085668-appb-000013
u i=u rest,u i>u threshold u i =u rest ,u i >u threshold
其中,u i表示神经元细胞的膜电势大小,膜电势大小与细胞脉冲发放有关;τ m表示为微分方程的时间常数,用于控制膜电势随时间变化量的大小;u rest是一个常数参数,表示为细胞膜的静息电位,即细胞在静息状态下膜电势的大小;I i(t)为输入电流,作为外部输入会对细胞的膜电势产生影响;R为细胞膜阻抗;τ s为突触时间常数;u threshold表示脉冲发放阈值,当神经元的膜电势u i超过u threshold时发放脉冲,且将膜电势u i重置为u restAmong them, u i represents the membrane potential of the neuron cell, which is related to the cell pulse emission; τ m represents the time constant of the differential equation, which is used to control the change of the membrane potential with time; u rest is a constant parameter , expressed as the resting potential of the cell membrane, that is, the size of the membrane potential of the cell in the resting state; I i (t) is the input current, which will affect the membrane potential of the cell as an external input; R is the cell membrane impedance; τ s is Synaptic time constant; u threshold represents the pulse firing threshold. When the neuron's membrane potential u i exceeds u threshold , a pulse is fired, and the membrane potential u i is reset to u rest .
代替梯度学习算法描述如下:Instead the gradient learning algorithm is described as follows:
S i[n]∝Θ(u i[n]-u threshold) S i [n]∝Θ(u i [n]-u threshold )
其中,S i[n]表示为脉冲序列,Θ(x)表示为海维西特阶梯函数,由于脉冲信号具有不可微的性质,在反向传播时,Θ(x)函数由σ(x)进行替换,则有S i[n]∝σ(u i[n]-u threshold),其中
Figure PCTCN2022085668-appb-000014
Among them, S i [n] is represented as a pulse sequence, and Θ(x) is represented as a Heavisitter step function. Since the pulse signal has non-differentiable properties, during back propagation, the Θ(x) function is represented by σ(x) By substitution, we have S i [n]∝σ(u i [n]-u threshold ), where
Figure PCTCN2022085668-appb-000014
S400:在脉冲神经网络模型的学习迭代过程中,对脉冲神经网络模型生成的脉冲序列信息进行降维,得出与真实神经元群体活动规律近似的神经元群体活动规律。S400: During the learning iteration process of the spiking neural network model, reduce the dimensionality of the spike sequence information generated by the spiking neural network model, and obtain a neuron group activity pattern that is similar to the real neuron group activity pattern.
在神经网络模型的学习迭代过程中,脉冲神经网络输出层生成的脉冲序列需要进行降维,降维数据作为输出,以真实神经元群体的降维活动规律作为目标函数,使用均方差(MSE,Mean-Square Loss)作为损失函数;训练结果需 满足,输出层的神经元群体活动规律需与真实神经元群体活动规律近似;均方误差损失又称为二次损失、L2损失,常用于回归预测任务中,均方误差函数通过计算预测值和实际值之间距离(即误差)的平方来衡量模型优劣,即预测值和真实值越接近,两者的均方差就越小。In the learning iteration process of the neural network model, the pulse sequence generated by the output layer of the spiking neural network needs to be dimensionally reduced, and the dimensionality reduction data is used as the output. The dimensionality reduction activity pattern of the real neuron group is used as the objective function, and the mean square error (MSE, Mean-Square Loss) as the loss function; the training results need to meet the requirements, and the neuron population activity rules of the output layer need to be similar to the real neuron population activity rules; the mean square error loss is also called quadratic loss, L2 loss, and is often used for regression prediction In the task, the mean square error function measures the quality of the model by calculating the square of the distance (i.e., error) between the predicted value and the actual value. That is, the closer the predicted value and the actual value are, the smaller the mean square error between the two is.
均方差是预测数据和原始数据对应点误差的平方和的均值,公式如下:The mean square error is the mean of the square sum of the errors corresponding to the predicted data and the original data. The formula is as follows:
Figure PCTCN2022085668-appb-000015
Figure PCTCN2022085668-appb-000015
其中,y i为脉冲神经网络的降维数据输出,
Figure PCTCN2022085668-appb-000016
为目标函数,n为样本个数。
Among them, yi is the dimensionality reduction data output of the impulse neural network,
Figure PCTCN2022085668-appb-000016
is the objective function, n is the number of samples.
S500:脉冲神经网络模型迭代完毕后,在脉冲神经网络模型中设置扰动神经元,基于扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律的神经脉冲信息数据并将其输出。S500: After the iteration of the spiking neural network model is completed, perturbation neurons are set in the spiking neural network model. Based on the noise signals generated by the perturbing neurons, nerve impulse information data with noise and in line with the laws of real biological nerve activity is created and output.
脉冲神经网络迭代完毕后,将启动脉冲神经网络中输出层的部分神经元以泊松神经元(Poisson Neuron)作为基础,设置为扰动神经元,生物神经元的神经脉冲信息是基于泊松分布的,本申请中LIF神经元产生泊松分布的信号;在扰动神经元中输入随机脉冲信号,从而使扰动神经元产生噪声信号;由此,输出层可生成具有噪声且符合真实生物神经活动规律的神经脉冲信息数据;如图5所示,为本发明所设计的脉冲神经网络所生成的脑机接口数据示意图。After the iteration of the spiking neural network is completed, some neurons in the output layer of the spiking neural network will be started and set as perturbation neurons based on Poisson Neuron. The nerve impulse information of biological neurons is based on Poisson distribution. , in this application, the LIF neuron generates a Poisson distributed signal; a random pulse signal is input into the perturbation neuron, so that the perturbation neuron generates a noise signal; thus, the output layer can generate noise and conform to the laws of real biological neural activity. Nerve impulse information data; as shown in Figure 5, it is a schematic diagram of the brain-computer interface data generated by the impulse neural network designed by the present invention.
泊松神经元的模型为:The model of Poisson neuron is:
使用LIF神经元模型:Using the LIF neuron model:
Figure PCTCN2022085668-appb-000017
Figure PCTCN2022085668-appb-000017
I i为输入电流,由随机脉冲信号转换而成,随机脉冲信号符合泊松分布规律; I i is the input current, which is converted from a random pulse signal. The random pulse signal conforms to the Poisson distribution law;
Figure PCTCN2022085668-appb-000018
Figure PCTCN2022085668-appb-000018
r表示神经元的脉冲发放率,P T[n]表示神经元的第n个脉冲在时长T内发放的概率; r represents the spike firing rate of the neuron, and P T [n] represents the probability that the nth spike of the neuron is fired within the duration T;
在程序内实现,计算可简化,脉冲在时间间隔Δt内的发放概率可为rΔt,其中x rand为随机变量,值在0到1内; Implemented in the program, the calculation can be simplified. The probability of pulse emission within the time interval Δt can be rΔt, where x rand is a random variable with a value between 0 and 1;
Figure PCTCN2022085668-appb-000019
Figure PCTCN2022085668-appb-000019
根据本发明所生成的数据,可进一步用于脑机接口信息解码以及类脑智能研究等领域;本申请方法专用于植入式脑机接口数据,可在有限神经信息数据的情况下,提取信息分布特征。基于脉冲神经网络的生物属性,适合学习神经信息的分布特征,从而产生符合信息分布特征的神经信号,以此作为脑信息数据增强。The data generated according to the present invention can be further used in the fields of brain-computer interface information decoding and brain-like intelligence research; the method of this application is specially used for implanted brain-computer interface data, and can extract information under the condition of limited neural information data. distribution characteristics. Based on the biological properties of the spiking neural network, it is suitable for learning the distribution characteristics of neural information, thereby generating neural signals that conform to the information distribution characteristics, as brain information data enhancement.
本发明考虑了生物神经元的集群活动特征,以此作为数据增强的基础。同时,脉冲神经网络具有生物性质,适合直接产生神经信息,从而增强脑机接口信息,对于脑机接口的研究与应用具有重要意义。The present invention takes into account the cluster activity characteristics of biological neurons as the basis for data enhancement. At the same time, spiking neural networks have biological properties and are suitable for directly generating neural information, thereby enhancing brain-computer interface information, which is of great significance for the research and application of brain-computer interfaces.
本发明考虑了脑机接口以及类脑智能算法的相互协同性质,强化的数据更符合神经信息的内部规律,产生的数据更具备生物可解释意义。This invention takes into account the collaborative nature of brain-computer interfaces and brain-like intelligent algorithms. The enhanced data is more in line with the internal laws of neural information, and the generated data is more biologically interpretable.
参见图6,根据本发明的另一实施例,提供了一种基于脉冲神经网络的数据增强装置,包括:Referring to Figure 6, according to another embodiment of the present invention, a data enhancement device based on a spiking neural network is provided, including:
脉冲转换模块100,用于获取植入式脑机接口的原始数据,原始数据包括神经元群体,将神经元群体的脉冲序列转化为脉冲发放率数据;The pulse conversion module 100 is used to obtain the original data of the implanted brain-computer interface. The original data includes the neuron population, and converts the pulse sequence of the neuron population into pulse firing rate data;
第一降维模块200,用于对于脉冲发放率数据进行降维,得出低维流形空间的神经元群体活动规律;The first dimensionality reduction module 200 is used to reduce the dimensionality of the pulse firing rate data and obtain the neuron group activity rules in the low-dimensional manifold space;
监督学习模块300,用于建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督学习;The supervised learning module 300 is used to establish a spiking neural network model and perform supervised learning using the manifold spatial activity patterns of real neuron groups as the objective function;
第二降维模块400,用于在脉冲神经网络模型的学习迭代过程中,对脉冲神经网络模型生成的脉冲序列信息进行降维,得出与真实神经元群体活动规律近似的神经元群体活动规律。The second dimensionality reduction module 400 is used to reduce the dimensionality of the pulse sequence information generated by the spiking neural network model during the learning iteration process of the spiking neural network model, and obtain a neuron group activity pattern that is similar to the real neuron group activity pattern. .
数据输出模块500,用于脉冲神经网络模型迭代完毕后,在脉冲神经网络模型中设置扰动神经元,基于扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律的神经脉冲信息数据并将其输出。The data output module 500 is used to set perturbation neurons in the impulse neural network model after the iteration of the impulse neural network model is completed, and based on the noise signals generated by the perturbation neurons, create nerve impulse information data that is noisy and conforms to the laws of real biological nerve activity. and output it.
本发明实施例提出了一种基于脉冲神经网络的数据增强方法及装置,本申请用于植入式脑机接口数据,可在有限神经信息数据的情况下,提取信息分布特征;基于脉冲神经网络的生物属性,适合学习神经信息的分布特征,从而产生符合信息分布特征的神经信号,以此作为脑信息数据增强;本发明考虑了生物神经元的集群活动特征,以此作为数据增强的基础,脉冲神经网络具有生物性质,适合直接产生神经信息,从而增强脑机接口信息,对于脑机接口的研究与应用具有重要意义。The embodiment of the present invention proposes a data enhancement method and device based on a spiking neural network. This application is used for implanted brain-computer interface data, which can extract information distribution characteristics under the condition of limited neural information data; based on the spiking neural network The biological attributes of the brain are suitable for learning the distribution characteristics of neural information, thereby generating neural signals that conform to the information distribution characteristics, and use this as brain information data enhancement; the present invention takes into account the cluster activity characteristics of biological neurons as the basis for data enhancement. Impulsive neural networks have biological properties and are suitable for directly generating neural information, thereby enhancing brain-computer interface information, which is of great significance for the research and application of brain-computer interfaces.
基于上述微泡检测方法,本实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多 个处理器执行,以实现如上述实施例的基于脉冲神经网络的数据增强方法中的步骤。Based on the above microbubble detection method, this embodiment provides a computer-readable storage medium. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors to implement The steps in the data enhancement method based on spiking neural network in the above embodiment.
一种终端设备,包括:处理器、存储器及通信总线;存储器上存储有可被处理器执行的计算机可读程序;通信总线实现处理器和存储器之间的连接通信;处理器执行计算机可读程序时实现上述的基于脉冲神经网络的数据增强方法中的步骤。A terminal device, including: a processor, a memory and a communication bus; the memory stores a computer-readable program that can be executed by the processor; the communication bus realizes connection and communication between the processor and the memory; the processor executes the computer-readable program When implementing the above steps in the data enhancement method based on spiking neural network.
基于上述基于脉冲神经网络的数据增强方法,本申请提供了一种终端设备,如图7所示,其包括至少一个处理器(processor)20;显示屏21;以及存储器(memory)22,还可以包括通信接口(Communications Interface)23和总线24。其中,处理器20、显示屏21、存储器22和通信接口23可以通过总线24完成相互间的通信。显示屏21设置为显示初始设置模式中预设的用户引导界面。通信接口23可以传输信息。处理器20可以调用存储器22中的逻辑指令,以执行上述实施例中的方法。Based on the above data enhancement method based on impulse neural network, this application provides a terminal device, as shown in Figure 7, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22. It can also Including communications interface (Communications Interface) 23 and bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can complete communication with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. Communication interface 23 can transmit information. The processor 20 can call logical instructions in the memory 22 to execute the methods in the above embodiments.
此外,上述的存储器22中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the above-mentioned logical instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
存储器22作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器20通过运行存储在存储器22中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。As a computer-readable storage medium, the memory 22 can be configured to store software programs, computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes software programs, instructions or modules stored in the memory 22 to execute functional applications and data processing, that is, to implement the methods in the above embodiments.
存储器22可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使 用所创建的数据等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The memory 22 may include a stored program area and a stored data area, where the stored program area may store an operating system and an application program required for at least one function; the stored data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include non-volatile memory. For example, there are many media that can store program code, such as U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, or they can also be temporary state storage media.
此外,上述存储介质以及终端设备中的多条指令处理器加载并执行的具体过程在上述方法中已经详细说明,在这里就不再一一陈述。In addition, the specific process of loading and executing the multiple instruction processors in the above storage medium and terminal device has been described in detail in the above method, and will not be described one by one here.
以上对发明的具体实施方式进行了详细说明,但其只作为范例,本发明并不限制于以上描述的具体实施方式。对于本领域的技术人员而言,任何对该发明进行的等同修改或替代也都在本发明的范畴之中,因此,在不脱离本发明的精神和原则范围下所作的均等变换和修改、改进等,都应涵盖在本发明的范围内。The specific embodiments of the invention have been described in detail above, but they are only used as examples, and the invention is not limited to the specific embodiments described above. For those skilled in the art, any equivalent modifications or substitutions to the invention are also within the scope of the invention. Therefore, equivalent transformations, modifications and improvements can be made without departing from the spirit and principles of the invention. etc., should all be included in the scope of the present invention.

Claims (10)

  1. 一种基于脉冲神经网络的数据增强方法,其特征在于,包括以下步骤:A data enhancement method based on spiking neural network, characterized by including the following steps:
    获取植入式脑机接口的原始数据,所述原始数据包括神经元群体,将所述神经元群体的脉冲序列转化为脉冲发放率数据;Obtaining raw data from the implanted brain-computer interface, the raw data including a population of neurons, and converting the pulse sequence of the population of neurons into pulse firing rate data;
    对于所述脉冲发放率数据进行降维,得出低维流形空间的神经元群体活动规律;Perform dimensionality reduction on the pulse firing rate data to obtain the neuron group activity rules in the low-dimensional manifold space;
    建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督式学习;Establish a spiking neural network model and use the manifold spatial activity patterns of real neuron groups as the objective function to perform supervised learning;
    在所述脉冲神经网络模型的学习迭代过程中,对所述脉冲神经网络模型生成的脉冲序列信息进行降维,得出与所述真实神经元群体活动规律近似的神经元群体活动规律;During the learning iteration process of the spiking neural network model, dimensionality reduction is performed on the pulse sequence information generated by the spiking neural network model, and a neuron group activity pattern that is similar to the real neuron group activity pattern is obtained;
    所述脉冲神经网络模型迭代完毕后,在所述脉冲神经网络模型中设置扰动神经元,基于所述扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律的神经脉冲信息数据并将其输出。After the iteration of the impulse neural network model is completed, perturbation neurons are set in the impulse neural network model, and based on the noise signals generated by the perturbation neurons, nerve impulse information data with noise and in line with the laws of real biological nerve activity is created and Output it.
  2. 根据权利要求1所述的基于脉冲神经网络的数据增强方法,其特征在于,所述原始数据还包括所述神经元群体运动位置信息,对所述运动位置信息进行高斯平滑处理,去除部分噪声数据。The data enhancement method based on impulse neural network according to claim 1, characterized in that the original data also includes the movement position information of the neuron group, and Gaussian smoothing is performed on the movement position information to remove part of the noise data. .
  3. 根据权利要求2所述的基于脉冲神经网络的数据增强方法,其特征在于,所述建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督式学习包括:The data enhancement method based on spiking neural network according to claim 2, characterized in that establishing the spiking neural network model, using the manifold space activity pattern of the real neuron group as the objective function, and performing supervised learning includes:
    所述脉冲神经网络模型以泄露整合发放模型作为模型基础,所述泄露整合发放模型如下:The spiking neural network model is based on the leakage integrated firing model. The leakage integrated firing model is as follows:
    Figure PCTCN2022085668-appb-100001
    Figure PCTCN2022085668-appb-100001
    Figure PCTCN2022085668-appb-100002
    Figure PCTCN2022085668-appb-100002
    u i=u rest,u i>u threshold u i =u rest ,u i >u threshold
    其中,u i表示神经元细胞的膜电势大小,膜电势大小与细胞脉冲发放有关;τ m表示为微分方程的时间常数,用于控制膜电势随时间变化量的大小;u rest是一个常数参数,表示为细胞膜的静息电位,即细胞在静息状态下膜电势的大小;I i(t)为输入电流,作为外部输入会对细胞的膜电势产生影响;R为细胞膜阻抗;τ s为突触时间常数;u threshold表示脉冲发放阈值,当神经元的膜电势u i超过u threshold时发放脉冲,且将膜电势u i重置为u restAmong them, u i represents the membrane potential of the neuron cell, which is related to the cell pulse emission; τ m represents the time constant of the differential equation, which is used to control the change of the membrane potential with time; u rest is a constant parameter , expressed as the resting potential of the cell membrane, that is, the size of the membrane potential of the cell in the resting state; I i (t) is the input current, which will affect the membrane potential of the cell as an external input; R is the cell membrane impedance; τ s is Synaptic time constant; u threshold represents the pulse firing threshold. When the neuron's membrane potential u i exceeds u threshold , a pulse is fired, and the membrane potential u i is reset to u rest .
  4. 根据权利要求2所述的基于脉冲神经网络的数据增强方法,其特征在于,所述建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督学习包括:The data enhancement method based on spiking neural network according to claim 2, characterized in that, establishing the spiking neural network model, using the manifold space activity pattern of the real neuron group as the objective function, and performing supervised learning includes:
    通过代替梯度学习算法进行监督学习,以使所述神经网络模型权重进行更新;所述代替梯度学习算法描述如下:Supervised learning is performed by replacing the gradient learning algorithm so that the weights of the neural network model are updated; the replacing gradient learning algorithm is described as follows:
    S i[n]∝Θ(u i[n]-u threshold) S i [n]∝Θ(u i [n]-u threshold )
    其中,S i[n]表示为脉冲序列,Θ(x)表示为海维西特阶梯函数,由于脉冲信号具有不可微的性质,在反向传播时,Θ(x)函数由σ(x)进行替换,则有S i[n]∝σ(u i[n]-u threshold),其中
    Figure PCTCN2022085668-appb-100003
    Among them, S i [n] is represented as a pulse sequence, and Θ(x) is represented as a Heavisitter step function. Since the pulse signal has non-differentiable properties, during back propagation, the Θ(x) function is represented by σ(x) By substitution, we have S i [n]∝σ(u i [n]-u threshold ), where
    Figure PCTCN2022085668-appb-100003
  5. 根据权利要求1所述的基于脉冲神经网络的数据增强方法,其特征在于, 所述获取植入式脑机接口的原始数据,所述原始数据包括神经元群体,将所述神经元群体的脉冲序列转化为脉冲发放率数据具体为:The data enhancement method based on spiking neural network according to claim 1, characterized in that: the original data of the implanted brain-computer interface is obtained, the original data includes a neuron group, and the pulse of the neuron group is The sequence converted into pulse firing rate data is specifically:
    对所述神经元群体中的每一神经元的脉冲序列进行滑动窗口处理,将其转化为脉冲发放率数据。The spike train of each neuron in the neuron population is subjected to sliding window processing and converted into spike firing rate data.
  6. 根据权利要求1所述的基于脉冲神经网络的数据增强方法,其特征在于,所述在所述脉冲神经网络模型的学习迭代过程中,对所述脉冲神经网络模型生成的脉冲序列信息进行降维,得出与所述真实神经元群体活动规律近似的神经元群体活动规律具体为:The data enhancement method based on spiking neural network according to claim 1, characterized in that, in the learning iteration process of the spiking neural network model, dimensionality reduction is performed on the pulse sequence information generated by the spiking neural network model. , it can be concluded that the neuron population activity law that is similar to the real neuron population activity law is specifically:
    使用均方差作为损失函数,所述均方差是预测数据和原始数据对应点误差的平方和的均值,所述均方差公式为:The mean square error is used as the loss function. The mean square error is the mean of the square sum of the errors corresponding to the predicted data and the original data. The mean square error formula is:
    Figure PCTCN2022085668-appb-100004
    Figure PCTCN2022085668-appb-100004
    其中,y i为脉冲神经网络的降维数据输出,
    Figure PCTCN2022085668-appb-100005
    为目标函数,n为样本个数。
    Among them, yi is the dimensionality reduction data output of the impulse neural network,
    Figure PCTCN2022085668-appb-100005
    is the objective function, n is the number of samples.
  7. 根据权利要求1所述的基于脉冲神经网络的数据增强方法,其特征在于,所述脉冲神经网络模型迭代完毕后,在所述脉冲神经网络模型中设置扰动神经元,基于所述扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律的神经脉冲信息数据并将其输出具体为:The data enhancement method based on spiking neural network according to claim 1, characterized in that, after the iteration of the spiking neural network model is completed, a perturbation neuron is set in the spiking neural network model, and based on the perturbation neuron, The noise signal is used to create nerve impulse information data with noise and in line with the laws of real biological nerve activity, and its output is specifically as follows:
    将所述脉冲神经网络模型中部分神经元以泊松神经元作为基础,设置为所述扰动神经元,所述泊松神经元的模型为:Some neurons in the spiking neural network model are based on Poisson neurons and set as the perturbation neurons. The model of the Poisson neurons is:
    使用LIF神经元模型:Using the LIF neuron model:
    Figure PCTCN2022085668-appb-100006
    Figure PCTCN2022085668-appb-100006
    I i为输入电流,由随机脉冲信号转换而成,随机脉冲信号符合泊松分布规律; I i is the input current, which is converted from a random pulse signal. The random pulse signal conforms to the Poisson distribution law;
    Figure PCTCN2022085668-appb-100007
    Figure PCTCN2022085668-appb-100007
    r表示神经元的脉冲发放率,P T[n]表示神经元的第n个脉冲在时长T内发放的概率; r represents the spike firing rate of the neuron, and P T [n] represents the probability that the nth spike of the neuron is fired within the duration T;
    在程序内实现,计算可简化,脉冲在时间间隔Δt内的发放概率可为rΔt,其中x rand为随机变量,值在0到1内; Implemented in the program, the calculation can be simplified. The probability of pulse emission within the time interval Δt can be rΔt, where x rand is a random variable with a value between 0 and 1;
    Figure PCTCN2022085668-appb-100008
    Figure PCTCN2022085668-appb-100008
  8. 一种基于脉冲神经网络的数据增强装置,其特征在于,包括:A data enhancement device based on impulse neural network, which is characterized by including:
    脉冲转换模块,用于获取植入式脑机接口的原始数据,所述原始数据包括神经元群体,将所述神经元群体的脉冲序列转化为脉冲发放率数据;A pulse conversion module, used to obtain raw data of the implanted brain-computer interface, where the raw data includes a neuron population, and convert the pulse sequence of the neuron population into pulse firing rate data;
    第一降维模块,用于对于所述脉冲发放率数据进行降维,得出低维流形空间的神经元群体活动规律;The first dimensionality reduction module is used to reduce the dimensionality of the pulse firing rate data and obtain the neuron group activity rules in the low-dimensional manifold space;
    监督学习模块,用于建立脉冲神经网络模型,以真实神经元群体的流形空间活动规律作为目标函数,进行监督学习;The supervised learning module is used to establish a spiking neural network model and perform supervised learning using the manifold spatial activity patterns of real neuron groups as the objective function;
    第二降维模块,用于在所述脉冲神经网络模型的学习迭代过程中,对所述脉冲神经网络模型生成的脉冲序列信息进行降维,得出与所述真实神经元群体活动规律近似的神经元群体活动规律;The second dimensionality reduction module is used to reduce the dimensionality of the pulse sequence information generated by the spiking neural network model during the learning iteration process of the spiking neural network model, and obtain a model that is similar to the activity pattern of the real neuron group. The activity patterns of neuron groups;
    数据输出模块,用于所述脉冲神经网络模型迭代完毕后,在所述脉冲神经网络模型中设置扰动神经元,基于所述扰动神经元产生的噪声信号,创造具有噪声且符合真实生物神经活动规律的神经脉冲信息数据并将其输出。A data output module is used to set perturbation neurons in the spiking neural network model after the iteration of the spiking neural network model is completed, and based on the noise signal generated by the perturbing neurons, create a noisy and consistent biological neural activity pattern. nerve impulse information data and output it.
  9. 一种计算机可读介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1-7任意一项所述的基于脉冲神经网络的数据增强方法中的步骤。A computer-readable medium, characterized in that the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement claims 1- Steps in the data enhancement method based on spiking neural network according to any one of 7.
  10. 一种终端设备,其特征在于,包括:处理器、存储器及通信总线;所述存储器上存储有可被所述处理器执行的计算机可读程序;A terminal device, characterized in that it includes: a processor, a memory and a communication bus; the memory stores a computer-readable program that can be executed by the processor;
    所述通信总线实现处理器和存储器之间的连接通信;The communication bus implements connection communication between the processor and the memory;
    所述处理器执行所述计算机可读程序时实现如权利要求1-7任意一项所述的基于脉冲神经网络的数据增强方法中的步骤。When the processor executes the computer readable program, the steps in the data enhancement method based on spiking neural network according to any one of claims 1-7 are implemented.
PCT/CN2022/085668 2022-03-24 2022-04-08 Spiking neural network-based data enhancement method and apparatus WO2023178737A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210294996.6A CN116861967A (en) 2022-03-24 2022-03-24 Data enhancement method and device based on impulse neural network
CN202210294996.6 2022-03-24

Publications (1)

Publication Number Publication Date
WO2023178737A1 true WO2023178737A1 (en) 2023-09-28

Family

ID=88099702

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085668 WO2023178737A1 (en) 2022-03-24 2022-04-08 Spiking neural network-based data enhancement method and apparatus

Country Status (2)

Country Link
CN (1) CN116861967A (en)
WO (1) WO2023178737A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117257312A (en) * 2023-11-20 2023-12-22 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Method for augmenting magnetoencephalography data in machine learning
CN117437382A (en) * 2023-12-19 2024-01-23 成都电科星拓科技有限公司 Updating method and system for data center component
CN117556877A (en) * 2024-01-11 2024-02-13 西南交通大学 Pulse neural network training method based on data pulse characteristic evaluation

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118013308B (en) * 2024-04-10 2024-06-04 中国科学院深圳先进技术研究院 Space-time enhanced nerve electric pulse signal clustering method and system based on self-adaptive tree
CN118094200B (en) * 2024-04-28 2024-07-09 中国科学院深圳先进技术研究院 Neural signal generation method, system and terminal based on self-supervised learning

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117884A (en) * 2018-08-16 2019-01-01 电子科技大学 A kind of image-recognizing method based on improvement supervised learning algorithm
CN110263924A (en) * 2019-06-19 2019-09-20 北京计算机技术及应用研究所 A kind of parameter and method for estimating state of Computer model
CN113435577A (en) * 2021-06-25 2021-09-24 安徽知陉智能科技有限公司 Gradient function learning framework replacement method based on training deep pulse neural network
WO2021213471A1 (en) * 2020-04-22 2021-10-28 北京灵汐科技有限公司 Spiking neural network-based data processing method, computing core circuit, and chip
CN114049964A (en) * 2021-05-21 2022-02-15 浙江大学 Modeling method of cross-brain-region artificial neural pathway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117884A (en) * 2018-08-16 2019-01-01 电子科技大学 A kind of image-recognizing method based on improvement supervised learning algorithm
CN110263924A (en) * 2019-06-19 2019-09-20 北京计算机技术及应用研究所 A kind of parameter and method for estimating state of Computer model
WO2021213471A1 (en) * 2020-04-22 2021-10-28 北京灵汐科技有限公司 Spiking neural network-based data processing method, computing core circuit, and chip
CN114049964A (en) * 2021-05-21 2022-02-15 浙江大学 Modeling method of cross-brain-region artificial neural pathway
CN113435577A (en) * 2021-06-25 2021-09-24 安徽知陉智能科技有限公司 Gradient function learning framework replacement method based on training deep pulse neural network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117257312A (en) * 2023-11-20 2023-12-22 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Method for augmenting magnetoencephalography data in machine learning
CN117257312B (en) * 2023-11-20 2024-01-26 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) Method for augmenting magnetoencephalography data in machine learning
CN117437382A (en) * 2023-12-19 2024-01-23 成都电科星拓科技有限公司 Updating method and system for data center component
CN117437382B (en) * 2023-12-19 2024-03-19 成都电科星拓科技有限公司 Updating method and system for data center component
CN117556877A (en) * 2024-01-11 2024-02-13 西南交通大学 Pulse neural network training method based on data pulse characteristic evaluation
CN117556877B (en) * 2024-01-11 2024-04-02 西南交通大学 Pulse neural network training method based on data pulse characteristic evaluation

Also Published As

Publication number Publication date
CN116861967A (en) 2023-10-10

Similar Documents

Publication Publication Date Title
WO2023178737A1 (en) Spiking neural network-based data enhancement method and apparatus
CN113693613B (en) Electroencephalogram signal classification method, electroencephalogram signal classification device, computer equipment and storage medium
CN113449864B (en) Feedback type impulse neural network model training method for image data classification
CN108319928B (en) Deep learning method and system based on multi-target particle swarm optimization algorithm
JP2020071883A (en) Model training method, data recognition method and data recognition device
CN108171318B (en) Convolution neural network integration method based on simulated annealing-Gaussian function
JP4970408B2 (en) An adaptive driver assistance system using robust estimation of object properties
CN110188794B (en) Deep learning model training method, device, equipment and storage medium
CN110909762B (en) Robot posture recognition method and device based on multi-sensor fusion
KR20210006486A (en) Method for Adaptive EEG signal processing using reinforcement learning and System Using the same
KR20200018868A (en) Method for Adaptive EEG signal processing using reinforcement learning and System Using the same
CN112528804A (en) Electromyographic signal noise reduction and classification method based on generation countermeasure network
CN114091554A (en) Training set processing method and device
CN110956617A (en) Brain nuclear magnetic resonance abnormal image visualization method based on circulation attention model
CN114209342A (en) Electroencephalogram signal motor imagery classification method based on space-time characteristics
CN117322890B (en) Neuron group model-based generation type multichannel electroencephalogram modeling method
CN113469013A (en) Motor fault prediction method and system based on transfer learning and time sequence
CN114724245B (en) Incremental learning human body action recognition method based on CSI
Washizawa Application of Hopfield network to saccades
CN118228129B (en) Motor imagery electroencephalogram signal classification method based on deep migration learning
CN116989800B (en) Mobile robot visual navigation decision-making method based on pulse reinforcement learning
Yun et al. What can you see? Modeling the ability of V1 neurons to perform low-level image processing
Liang et al. Diabetic Retinopathy Detection Based on Deep Learning
CN114611556B (en) Multi-category motor imagery task identification method based on graph neural network
Raudys On the universality of the single-layer perceptron model

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: 22932798

Country of ref document: EP

Kind code of ref document: A1