Signal processing method, task processing method and device based on spiking neural network

By removing the reset mechanism of membrane potential update in the pulsed neural network, parallel calculations in the time dimension are realized, which solves the problem of inefficiency of the pulsed neural network when processing timing data, and improves processing efficiency and resource utilization.

CN118886458APending Publication Date: 2024-11-01LYNXI TECH CO LTD

Patent Information

Application Number
CN202411044812.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

When processing time sequence data, the pulse neural network depends on the output pulse signal of the previous time step, resulting in poor parallelism in the time dimension and low processing efficiency, which limits its on large-scale networks and long-sequence data sets. Application.

Method used

By removing the reset mechanism in membrane potential update, the membrane potential of neurons at any time step is only related to the time step and the previous input pulse signal, and parallel calculation is realized to avoid relying on the output pulse signal of the previous time step.

Benefits of technology

It improves the efficiency of signal processing and hardware resource utilization, and is suitable for processing large-scale networks and long-sequence data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886458A_ABST
    Figure CN118886458A_ABST
Patent Text Reader

Abstract

The invention provides a pulse neural network-based signal processing method and device, and a task processing method and device, and belongs to the technical field of computers. The signal processing method comprises: for any time step of any neuron, based on an input pulse signal of the neuron in a preset time step, determining a membrane potential of the neuron in the time step, the preset time step comprising a time step and a plurality of time steps adjacent to the time step and before the time step, the neuron membrane potential updating process does not depend on a reset mechanism; and according to the membrane potential of each time step and a preset issuing threshold, determining output pulse signals of the neurons in each time step in parallel, and according to the output pulse signals of each time step, executing signal issuing of the neurons in each time step in parallel. According to the embodiment of the invention, parallel computing of the neuron signal issuing process in the time dimension can be realized, the signal processing efficiency can be effectively improved, and the resource utilization rate of hardware equipment is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a signal processing method based on a pulse neural network, a task processing method based on a pulse neural network, a signal processing device based on a pulse neural network, a task processing device based on a pulse neural network, an electronic device and a computer-readable storage medium. Background Art

[0002] Compared with artificial neural networks commonly used in the field of deep learning, spiking neural networks (SNNs) have the characteristics of state memory, support for analog computing, and information transmission through binary pulses. They can show complex dynamic behaviors and are very suitable for processing spatiotemporal data. When processing data based on spiking neural networks, it is usually necessary to calculate information such as the membrane potential or gradient of neurons step by step, which leads to poor parallelism in the time dimension and low processing efficiency. Summary of the invention

[0003] The present disclosure provides a signal processing method based on a pulse neural network, a task processing method based on a pulse neural network, a signal processing device based on a pulse neural network, a task processing device based on a pulse neural network, an electronic device and a computer-readable storage medium.

[0004] In a first aspect, the present disclosure provides a signal processing method based on a pulse neural network, wherein the pulse neural network includes multiple neurons, and the signal processing method includes: for any time step of any neuron, based on the input pulse signal of the neuron within a preset time step, determining the membrane potential of the neuron at the time step, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and located before the time step, and the membrane potential update process of the neuron does not depend on a reset mechanism; according to the membrane potential of each of the time steps and a preset emission threshold, determining the output pulse signal of the neuron at each of the time steps in parallel, and executing the signal emission of the neuron at each of the time steps in parallel according to the output pulse signal of each of the time steps.

[0005] In a second aspect, the present disclosure provides a task processing method based on a pulse neural network, wherein the pulse neural network includes multiple neurons, and the task processing method includes: pulse encoding the data to be processed corresponding to a preset task to obtain an input pulse signal corresponding to multiple time steps; inputting the input pulse signal into the pulse neural network for signal processing to obtain output pulse signals of multiple neurons in the pulse neural network; determining the processing result of the preset task based on the output pulse signals of the multiple neurons; wherein the neurons in the pulse neural network are used to execute the signal processing method based on the pulse neural network described in any one of the embodiments of the present disclosure.

[0006] In a third aspect, the present disclosure provides a signal processing device based on a pulse neural network, wherein the pulse neural network includes multiple neurons, and the signal processing device includes: a first determination module, for determining, for any time step of any neuron, the membrane potential of the neuron at the time step based on the input pulse signal of the neuron at the preset time step, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and located before the time step, and the membrane potential update process of the neuron does not depend on the reset mechanism; an output module, for determining the output pulse signal of the neuron at each of the time steps in parallel according to the membrane potential of the time step and a preset emission threshold, and executing the signal emission of the neuron at each of the time steps in parallel according to the output pulse signal of each of the time steps.

[0007] In a fourth aspect, the present disclosure provides a task processing device based on a pulse neural network, wherein the pulse neural network includes multiple neurons, and the task processing device includes: an encoding module, used to pulse encode the data to be processed corresponding to a preset task, and obtain an input pulse signal corresponding to multiple time steps; a processing module, used to input the input pulse signal into the pulse neural network for signal processing, and obtain output pulse signals of multiple neurons in the pulse neural network; a second determination module, used to determine the processing result of the preset task based on the output pulse signals of the multiple neurons; wherein the neurons in the pulse neural network are used to execute the signal processing method based on the pulse neural network described in any one of the embodiments of the present disclosure.

[0008] In a fifth aspect, the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, and one or more of the computer programs are executed by the at least one processor so that the at least one processor can execute the signal processing method based on the pulse neural network or the task processing method based on the pulse neural network as described in any one of the embodiments of the present disclosure.

[0009] In a sixth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor / processing core, implements the signal processing method based on a pulse neural network, or the task processing method based on a pulse neural network, as described in any one of the embodiments of the present disclosure.

[0010] In the embodiments provided by the present disclosure, for neurons in a spiking neural network, for any time step of any neuron, the membrane potential of the neuron at the time step is determined based on the input pulse signal of the neuron within a preset time step, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and before the time step, and the updating process of the membrane potential of the neuron does not depend on the reset mechanism; according to the membrane potential of each time step and the preset emission threshold, the output pulse signal of the neuron at each time step is determined in parallel, and the signal emission of the neuron at each time step is executed in parallel according to the output pulse signal of each time step. It can be seen that for neurons, the updating process of their membrane potential does not depend on the reset mechanism, so the membrane potential of the neuron at any time step is only related to the input pulse signal of the time step and the previous multiple time steps. Therefore, after determining the input pulse signal, the membrane potential of the time step can be obtained, which is no longer dependent on the output pulse signal of the neuron at the previous time step, and can realize parallel calculation in the time dimension, so there is no need to adopt a serial processing method, but a parallel processing method can be adopted. Compared with the related art in which the membrane potential of the current time step depends on the output pulse signal of the previous time step and needs to be processed serially, the processing of a single neuron at different time steps in the embodiment of the present disclosure can be parallelized, which effectively improves the efficiency of signal processing and thereby improves the resource utilization of hardware devices.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings, in which:

[0013] Figure 1 A flowchart of a signal processing method based on a pulse neural network provided in an embodiment of the present disclosure.

[0014] Figure 2 A schematic diagram of a neuron model provided for related art.

[0015] Figure 3 A schematic diagram of a neuron model provided in Example 1 of the present disclosure.

[0016] Figure 4 A schematic diagram of a neuron model provided in Embodiment 2 of the present disclosure.

[0017] Figure 5 A flowchart of a task processing method based on a pulse neural network provided in an embodiment of the present disclosure.

[0018] Figure 6 A block diagram of a signal processing device based on a pulse neural network provided in an embodiment of the present disclosure.

[0019] Figure 7 A block diagram of a task processing device based on a pulse neural network provided in an embodiment of the present disclosure.

[0020] Figure 8 A block diagram of an electronic device provided in accordance with a first embodiment of the present disclosure.

[0021] Fig. 9 A block diagram of an electronic device provided in Embodiment 2 of the present disclosure. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0023] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

[0024] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0025] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a" and "the" are also intended to include plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "including" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded. "Connected" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0026] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0027] In related technologies, pulse neural networks can be used to build models for processing various tasks. When training such models, an important factor affecting the computational efficiency is serial computation, that is, in forward and backward computations, for any neuron, the neuron's membrane potential or gradient information needs to be calculated time-step by time-step, resulting in poor parallelism in the time dimension.

[0028] For example, for a certain neuron, in the forward calculation, when calculating the membrane potential of the neuron at the i+1th time step, the pulse output signal Oi at the i-th time step is needed. This serial calculation along the time dimension depends on the reset mechanism of the neuron's membrane potential. In the membrane potential reset mechanism, when Oi=1, the membrane potential is reset to 0 after the pulse is issued, and when Oi=0, the membrane potential is not reset.

[0029] When the sequence length of the data to be processed is large, it is difficult to perform parallel calculations in the time dimension. Therefore, the computing utilization rate of the hardware equipment is low and the time consumption is long, making it difficult to expand to large-scale networks and the processing of large-scale long sequence data sets, which limits the application of pulse neural networks.

[0030] In view of this, the embodiments of the present disclosure provide a signal processing method based on a pulse neural network, a task processing method based on a pulse neural network, a signal processing device based on a pulse neural network, a task processing device based on a pulse neural network, an electronic device and a computer-readable storage medium.

[0031] In the disclosed embodiment, for neurons in a spiking neural network, for any time step of any neuron, the membrane potential of the neuron at the time step is determined based on the input pulse signal of the neuron in the preset time step, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and before the time step, and the updating process of the membrane potential of the neuron does not depend on the reset mechanism; according to the membrane potential of each time step and the preset emission threshold, the output pulse signal of the neuron at each time step is determined in parallel, and the signal emission of the neuron at each time step is executed in parallel according to the output pulse signal of each time step. It can be seen that for neurons, the updating process of their membrane potential does not depend on the reset mechanism, so the membrane potential of the neuron at any time step is only related to the input pulse signal of the time step and the previous multiple time steps. Therefore, after determining the input pulse signal, the membrane potential of the time step can be obtained, which no longer depends on the output pulse signal of the neuron at the time step, and can realize parallel calculation in the time dimension, so there is no need to adopt a serial processing method, but a parallel processing method can be adopted. Compared with the related art in which the membrane potential of the current time step depends on the output pulse signal of the previous time step and needs to be processed serially, the processing of a single neuron at different time steps in the embodiment of the present disclosure can be parallelized, effectively improving the efficiency of signal processing and thereby improving the resource utilization of hardware equipment.

[0032] A first aspect of an embodiment of the present disclosure provides a signal processing method based on a pulse neural network.

[0033] Figure 1 The present invention provides a flowchart of a signal processing method based on a pulse neural network, wherein the pulse neural network includes a plurality of neurons. Figure 1 , the signal processing method based on pulse neural network may include the following steps.

[0034] Step S11, for any time step of any neuron, based on the input pulse signal of the neuron in a preset time step, determine the membrane potential of the neuron in the time step, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and before the time step, and the membrane potential update process of the neuron does not depend on the reset mechanism. That is, the membrane potential update process of the neuron does not depend on the output pulse signal of the previous time step.

[0035] Step S12, according to the membrane potential of each time step and the preset emission threshold, the output pulse signal of the neuron at each time step is determined in parallel, and the signal emission of the neuron at each time step is executed in parallel according to the output pulse signal at each time step.

[0036] Among them, in the related art, if the membrane potential of a neuron exceeds the emission threshold, the neuron will execute pulse emission, and after the pulse emission, the membrane potential will be reset (for example, it will be restored to the resting potential according to a certain attenuation law). It can be seen from this that for each time step, the membrane potential of the neuron must be related to the output pulse signal of the previous time step, and therefore it is necessary to perform the signal processing of the neuron serially in the time dimension. In contrast, in the disclosed embodiment, the membrane potential update process of the neuron does not depend on the reset mechanism, which essentially means that the membrane potential of the neuron at a certain time step has nothing to do with whether the output pulse signal is emitted in the previous time step and what output pulse signal is emitted. In this way, when determining the membrane potential of a certain time step, there is no need to refer to or rely on the output pulse signal of the previous time step, which is equivalent to cutting off the dependency between time steps, and therefore, provides a basis for parallel processing of neuron signal emission in the time dimension.

[0037] It can be seen that in the embodiments of the present disclosure, for any neuron in the pulse neural network, if it is necessary to determine the membrane potential of the neuron at any time step, it is only necessary to use the output pulse signal within the preset time step. Since the preset time step includes the current time step and multiple adjacent previous time steps, and in the case of clear input data, the input pulse signal of each time step can be conveniently determined by pulse coding and the like. Therefore, parallel processing can be used in the time dimension to determine the membrane potential of the neuron at each time step, and then for each time step, the corresponding output pulse signal can be determined by comparing the membrane potential with the emission threshold.

[0038] It should be noted that in the related art, the membrane potential of a neuron at the current time step is related to the output pulse signal of the neuron at the previous time step. Therefore, the membrane potential of the current time step can only be determined after the output pulse signal of the neuron at the previous time step is determined, and then the output pulse signal is issued according to the membrane potential and the emission threshold. By analogy, the output pulse signal of each time step can be obtained. In other words, this processing method of the related art must adopt a serial processing method in the time dimension, and parallel computing cannot be achieved.

[0039] It can be seen that the embodiments of the present disclosure achieve parallel calculation of neuron membrane potential in the time dimension by improving the membrane potential update method of neurons, thereby effectively improving the signal processing efficiency. It is also beneficial to improve the resource utilization of hardware devices that carry pulse neural networks, and is particularly suitable for the processing of large-scale networks and large-scale long sequence data sets.

[0040] In summary, in the embodiments provided by the present disclosure, for any time step of a neuron, its membrane potential at that time step is only related to the input pulse signals of that time step and the previous multiple time steps. Therefore, after determining the input pulse signal, the membrane potential of that time step can be obtained, which no longer depends on the output pulse signal of the neuron at the previous time step, and can achieve parallel calculation in the time dimension. Therefore, there is no need to adopt a serial processing method, but a parallel processing method can be adopted. Compared with the related art in which the membrane potential of the current time step depends on the output pulse signal of the previous time step and a serial processing method is required, the processing of a single neuron at different time steps in the embodiments of the present disclosure can be parallel, so the efficiency of signal processing can be effectively improved, thereby improving the resource utilization of hardware devices.

[0041] The signal processing method of the embodiment of the present disclosure is described below.

[0042] In some optional implementations, the spiking neural network is a new generation of artificial neural network model inspired by biology, which is an important part of the deep learning field and has a strong biological basis. In addition, the spiking neural network can be used to simulate and study a variety of biological brain models, and the embodiments of the present disclosure do not limit the application of the spiking neural network.

[0043] In some optional implementations, the pulse neural network can be used to perform preset tasks, and the input pulse signal is determined based on the data to be processed corresponding to the preset task, and the data to be processed includes training set data corresponding to the preset task or task data corresponding to the preset task; wherein the preset tasks include text processing tasks, image processing tasks, and video processing tasks, etc., which are not limited in the embodiments of the present disclosure.

[0044] Exemplarily, a spiking neural network is used to construct an image processing model. During the training of the spiking network, training sample set data can be obtained, and pulse encoding can be performed for each sample data to obtain an input pulse signal corresponding to the sample data and including multiple time steps. The input pulse signal is input into the spiking neural network to perform the training process.

[0045] Exemplarily, a spiking neural network can be used to perform image processing tasks. After determining an image to be processed, the image to be processed is pulse-encoded to obtain an input pulse signal corresponding to the image to be processed and including multiple time steps. The input pulse signal is input into the spiking neural network to perform task processing.

[0046] That is to say, the signal processing method of the embodiment of the present disclosure is applicable to both the training scenario of the pulse neural network and the reasoning scenario of the pulse neural network, and the embodiment of the present disclosure is not limited to this.

[0047] It should be noted that the above pulse neural network is only an example, and the embodiments of the present disclosure do not limit this.

[0048] In some optional implementations, a spiking neural network includes multiple neurons, and neurons are usually not activated in every iterative propagation, but are activated only when their membrane potential reaches a certain threshold. When a neuron is activated, it generates a signal to other neurons to increase or decrease their membrane potential.

[0049] In the related art, the Leaky Integrate and Fire (LIF) model, the Adaptive Exponential Integrate-and-Fire (AdEx) model, and the Izhikevich model can be used to characterize the signal processing process of neurons.

[0050] For example, for the LIF model, by discretizing time and using the numerical solution of differential equations, the continuous form differential equation of the LIF model can be converted into a discrete time iterative format to obtain its pulse output. When solving with the Euler formula, the membrane potential update process of the LIF model can be characterized as follows:

[0051]

[0052] Among them, V i+1 represents the initial membrane potential of the neuron at the i+1th time step, V i represents the membrane potential of the neuron at the i-th time step, λ represents the attenuation factor (0<λ<1), w represents the synaptic weight of the neuron, S i+1 represents the input pulse signal of the target neural network at the i+1th time step, w×S i+1 Characterization of w and S i+1 The linear operations between them can include matrix-vector multiplication, convolution and other operations. irepresents the output pulse signal of the neuron at the i-th time step, H() represents the signal processing function of the neuron, T d is the delay time, and τ is the time constant. Since the membrane potential of the neuron at the i+1th time step is related to the output pulse signal at the ith time step, the membrane potential update process of the neuron depends on the reset mechanism and cannot achieve parallel processing in the time dimension.

[0053] Figure 2 A schematic diagram of a neuron model provided for related technology. Figure 2 , the neuron includes n synaptic connections (n>1), and the corresponding synaptic weights are w1, w2, ..., wn, corresponding to the input pulse signals x1(t), x2(t), ..., xn(t) respectively. Based on this, the total input pulse signal at time t (equivalent to the current time step) can be represented as St = w1×x1(t)+w2×x2(t)+...+wn×xn(t).

[0054] After determining the input pulse signal, the membrane potential is reset according to the output pulse signal of the previous time step, and then added to the current input pulse signal to obtain the membrane potential of the current time step. The membrane potential is compared with the emission threshold Vth. If the membrane potential is greater than the emission threshold, a pulse is emitted, the output pulse signal of the current time step is output, and the above process is repeated. Among them, attenuation and delay processing mechanisms are also set for neurons, which will not be described in detail here.

[0055] Through the membrane potential update process of the above LIF model, it can be seen that if the membrane potential of a neuron is to be determined in the next time step, the output pulse signal of the neuron in the current time step must be determined first. This membrane potential update method must adopt a serial processing method in the time dimension, and the serial processing method will lead to relatively low signal processing efficiency. At the same time, for the hardware device carrying the spiking neural network, its resource utilization rate may also be relatively low. Similarly, the AdEx model and the Izhikevich model also have the above problems.

[0056] Taking the above problems into consideration, a new method for updating neuron membrane potential is proposed in an embodiment of the present disclosure. In this new method for updating membrane potential, the reset mechanism in the membrane potential update in the related art is removed, so that the membrane potential of the neuron at the current time step can be determined without relying on the output pulse signal of the previous time step, thereby removing the restriction that parallel processing must be used in the time dimension, so that the processing of a single neuron at different time steps can be executed in parallel.

[0057] In some optional implementations, for a spiking neural network, the membrane potential of a neuron can be updated based on a preset membrane potential update method; wherein the membrane potential update method is an update method that does not rely on a reset mechanism, and the membrane potential update method includes: determining the membrane potential of the neuron at the current time step based on the membrane potential of the neuron at the previous time step and the input pulse signal at the current time step. That is to say, when the membrane potential is updated, the membrane potential at the current time step is only related to the membrane potential at the previous time step and the input pulse signal at the current time step, and has nothing to do with the output pulse signal at the previous time step, so that the membrane potential can be updated without relying on a reset mechanism, which provides a basis for parallel signal processing in the time dimension.

[0058] Furthermore, although the reset mechanism in the updating of neuron membrane potential is removed, the parallel computing of neurons in the time dimension is realized, but the function of the reset mechanism is also lost. Among them, the reset mechanism usually has the functions of maintaining the stability of membrane potential calculation and enhancing the nonlinearity of calculation. For the stability function, due to the existence of the attenuation factor of neurons and the certain learning ability of pulse neural networks, the updating of neuron membrane potential can still be relatively stable (i.e., it tends to 0 instead of diverging). For nonlinear functions, removing the reset mechanism may indeed weaken the nonlinear function of neurons to a certain extent, which may damage the fitting ability of neuron models, and then affect the learning ability of pulse neural networks.

[0059] Based on this, in some optional implementations, additional nonlinear operations can be introduced in the process of updating the neuron membrane potential to compensate for the impact of the removal reset mechanism on the fitting ability of the neuron model and ensure that the pulse neural network has a strong learning ability.

[0060] In some optional implementations, the membrane potential of a neuron at a time step is determined based on an input pulse signal of the neuron at a preset time step, including: determining the initial membrane potential of the neuron at the time step based on the input pulse signal of the neuron at the preset time step; using the initial membrane potential as the membrane potential of the neuron at the time step, or performing a nonlinear transformation on the initial membrane potential to obtain a virtual membrane potential at the time step, and using the virtual membrane potential as the membrane potential of the neuron at the time step.

[0061] For example, for the current time step, if the membrane potential of the neuron at the current time step is determined based on the input pulse signal of the neuron at the preset time step, it includes: determining the initial membrane potential of the neuron at the current time step based on the input pulse signal of the neuron at the preset time step; using the initial membrane potential as the membrane potential of the neuron at the current time step, or performing a nonlinear transformation on the initial membrane potential to obtain a virtual membrane potential at the current time step, and using the virtual membrane potential as the membrane potential of the neuron at the current time step.

[0062] In some optional implementations, the membrane potential of a neuron at a current time step is determined based on the membrane potential of the neuron at a previous time step and an input pulse signal at a current time step, including: determining the initial membrane potential of the current time step based on the membrane potential of the neuron at a previous time step and an input pulse signal at a current time step; using the initial membrane potential as the membrane potential of the neuron at the current time step, or performing a nonlinear transformation (NonlinearTransformation) on the initial membrane potential to obtain a virtual membrane potential, and using the virtual membrane potential as the membrane potential of the neuron at the current time step.

[0063] That is to say, for any time step of any neuron, the initial membrane potential of the time step can be determined based on the membrane potential of the neuron in the previous time step (such as the i-1th time step) and the input pulse signal of the time step (such as the i-th time step), and the initial membrane potential can be used as the membrane potential of the neuron at the time step, or the initial membrane potential can be nonlinearly transformed to obtain a virtual membrane potential, and the virtual membrane potential can be used as the membrane potential of the neuron at the time step.

[0064] In other words, the initial membrane potential of the current time step can be determined based on the membrane potential of the neuron in the previous time step and the input pulse signal of the current time step. On this basis, the initial membrane potential of the current time step can be directly used as the final membrane potential of the neuron in the current time step, or the initial membrane potential of the current time step can be subjected to certain nonlinear transformation to obtain a virtual membrane potential, and then the virtual membrane potential can be used as the final membrane potential of the neuron in the current time step.

[0065] Among them, nonlinear transformation is a method of mapping values ​​in an input space to an output space, and the mapping process does not follow a linear relationship. Applied to the embodiments of the present disclosure, nonlinear transformation refers to nonlinearly mapping the initial membrane potential to another space to obtain a virtual membrane potential.

[0066] Furthermore, since the virtual membrane potential has undergone nonlinear transformation, it is equivalent to offsetting the impact of the removal of the reset mechanism on the nonlinear function of the neuron, so that the neuron still has certain nonlinear functions, thereby ensuring the fitting ability of the neuron model and the learning ability of the pulse neural network.

[0067] In some optional implementations, the initial membrane potential of the current time step is determined based on the membrane potential of the neuron in the previous time step and the input pulse signal of the current time step, including: determining a first membrane potential component based on the membrane potential of the neuron in the previous time step and a preset attenuation factor; determining a second membrane potential component according to the synaptic weight of the neuron and the input pulse signal of the current time step; determining the initial membrane potential of the neuron in the current time step according to the first membrane potential component and the second membrane potential component.

[0068] For example, for the current time step i, based on the membrane potential V of the neuron at the previous time step i-1 i-1 and the preset attenuation factor λ, the first membrane potential component is determined to be V i-1 ×λ, according to the synaptic weight w of the neuron and the input pulse signal S at the current time step i , determine the second membrane potential component w×S i Based on this, the initial membrane potential V of the neuron at the current time step is determined i ′=V i-1 ×λ+w×S i .

[0069] In some optional implementations, when the initial membrane potential of the current time step is used as the membrane potential of the neuron at the current time step, the updating process of the membrane potential of the neuron can be represented by Formula 7:

[0070]

[0071] Among them, V i ′ represents the initial membrane potential of the neuron at the i-th time step, V i represents the membrane potential of the neuron at the i-th time step, V i-1 represents the membrane potential of the neuron at the i-1th time step, λ represents the attenuation factor, w represents the synaptic weight of the neuron, S i represents the input pulse signal of the target neural network at the i-th time step, O i represents the output pulse signal of the neuron at the i-th time step, H() represents the signal processing function of the neuron, T d is the delay time, τ is the time constant, i>1.

[0072] For example, according to Formula 7, when determining the membrane potential V of the neuron at the i-1th time step, i-1 Afterwards, if the input pulse signal S is received at the i-th time step i , the initial membrane potential V of the i-th time step can be determined i ′, and use it as the final membrane potential V at the i-th time step i On this basis, compare V iand V th , if V i Greater than or equal to V th , then it is determined that the neuron sends out a pulse signal, that is, the output pulse signal O i Includes one or more pulse signals, if V i Less than V th , then it is determined that the neuron does not emit a pulse signal to the outside, that is, the output pulse signal is O i =0.

[0073] Figure 3 This is a schematic diagram of a neuron model provided in the first embodiment of the present disclosure, mainly describing a neuron model without a reset mechanism. Figure 3 , and Figure 2 In comparison, the neuron model shown removes the reset mechanism, so that the membrane potential at the current time step is independent of the output pulse signal at the previous time step, thereby providing a basis for parallel signal processing.

[0074] In some optional implementations, when the virtual membrane potential of the current time step is used as the membrane potential of the neuron at the current time step, the updating process of the membrane potential of the neuron can be represented by Formula 8:

[0075]

[0076] Among them, V i ′ represents the initial membrane potential of the neuron at the i-th time step, V i represents the membrane potential of the neuron at the i-th time step, V i -1 represents the membrane potential of the neuron at the i-1th time step, λ represents the attenuation factor, w represents the synaptic weight of the neuron, S i represents the input pulse signal of the target neural network at the i-th time step, O i represents the output pulse signal of the neuron at the i-th time step, H() represents the signal processing function of the neuron, T d is the delay time, τ is the time constant, f() represents the nonlinear transformation function, f(V i ′) represents the virtual membrane potential of the neuron at the i-th time step.

[0077] For example, according to Formula 8, when determining the membrane potential V of the neuron at the i-1th time step, i-1 Afterwards, if the input pulse signal S is received at the i-th time step i , the initial membrane potential V of the i-th time step can be determined i ′, and V i ′ is transformed nonlinearly to obtain the virtual membrane potential f(V i ′), and f(Vi ′) as the final membrane potential V at the i-th time step i On this basis, compare V i and V th , if V i Greater than or equal to V th , then it is determined that the neuron sends out a pulse signal, that is, the output pulse signal O i Includes one or more pulse signals, if V i Less than V th , then it is determined that the neuron does not emit pulse signals to the outside, that is, the output pulse signal O i =0.

[0078] Figure 4 This is a schematic diagram of a neuron model provided in the second embodiment of the present disclosure, which mainly describes a neuron with a reset mechanism removed and a nonlinear transformation processing process added. Figure 4 , and Figure 3 Compared with the neuron model shown in the figure, the reset mechanism is also removed, so that the membrane potential of the current time step is independent of the output pulse signal of the previous time step, thus providing a basis for parallel signal processing. Figure 4 The neuron model has added a nonlinear transformation processing mechanism, that is, the initial membrane potential can be first subjected to a nonlinear transformation to obtain a virtual membrane potential, and the virtual membrane potential is used as the final membrane potential to perform pulse emission processing, thereby compensating for the influence of the reset mechanism on the model fitting ability.

[0079] Furthermore, since neurons update their membrane potential based on the above-mentioned membrane potential updating method, a general expression for the membrane potential and the input pulse signal can be inferred through the above-mentioned membrane potential updating method.

[0080] In some optional implementations, the initial membrane potential of the neuron can be represented by Formula 1:

[0081]

[0082] Among them, V i ′ represents the initial membrane potential of the neuron at the i-th time step, λ represents the attenuation factor, w represents the synaptic weight of the neuron, j represents the first identifier of the time step, and the value range of j is [1, i], S j represents the input pulse signal of the target neural network at the jth time step. On this basis, the membrane potential V of the neuron at the i-th time step can be determined i =V i ′, or, determine V i =f(V i ′), f() represents the nonlinear transformation function, f(V i′) represents the virtual membrane potential of the neuron at the i-th time step.

[0083] It can be seen that the membrane potential of the neuron at the current time step is only related to the input pulse signal from the first time step to the current time step, and has nothing to do with the output pulse signal of the neuron. In other words, the membrane potential of the neuron at the current time step can be determined based on the input pulse signal of the neuron within the preset time step, where the preset time step includes the first time step to the current time step.

[0084] In some optional implementations, considering that the input pulse signals at time steps farther away from the current time step have less influence on the membrane potential of the current time step, when determining the membrane potential of the neuron at the current time step, some output pulse signals far away from the current time step can be ignored, so as to reduce the amount of data processing while taking into account the accuracy of the membrane potential as much as possible.

[0085] In some optional implementations, the initial membrane potential of the neuron can be represented by Formula 2:

[0086]

[0087] Among them, V i ′ represents the initial membrane potential of the neuron at the i-th time step, λ represents the attenuation factor, w represents the synaptic weight of the neuron, z represents the second identifier of the time step, and the value range of z is [max(i+1-N, 0), i], N represents the preset maximum power, N>1, S z represents the input pulse signal of the target neural network at the zth time step. On this basis, the membrane potential V of the neuron at the i-th time step can be determined i =V i ′, or, determine V i =f(V i ′), f() represents the nonlinear transformation function, f(V i ′) represents the virtual membrane potential of the neuron at the i-th time step.

[0088] It can be seen that the membrane potential of the neuron at the current time step is only related to the input pulse signal from the kth time step to the current time step (k>1), and has nothing to do with the output pulse signal of the neuron. In other words, the membrane potential of the neuron at the current time step can be determined based on the input pulse signal of the neuron within the preset time step, where the preset time step includes the kth time step to the current time step.

[0089] Furthermore, by comparing Formula 1 and Formula 2, it can be seen that the essence of the two is the same. The difference lies in the time step range corresponding to the input pulse signal participating in the membrane potential calculation of the current time step. Formula 1 uses all input pulse signals from the 1st time step to the current time step, while Formula 2 realizes the truncation of the time step through the maximum power N. It only uses the input pulse signal from the "i+1-N" time step to the current time step, which is equivalent to using only the input pulse signal of the most recent (i+1-Ni)+1=N time steps to determine the membrane potential of the current time step.

[0090] It should be noted that the nonlinear transformation of the initial membrane potential can be realized based on a corresponding nonlinear transformation function, wherein the nonlinear transformation function is a function used to realize a nonlinear transformation function.

[0091] In some optional implementations, the nonlinear transformation of the initial membrane potential may be characterized by any one of Formula 3 to Formula 6:

[0092] V i =f1(V i ′)=max(V i ′,0) 3

[0093] V i =f2(V′i)=max(V i ′,0)×V i ′ 4

[0094] V i =f3(V i ′)=sigmoid(V i ′) 5

[0095] V i =f4(V i ′) = sigmoid(V′ i )×V i ′ 6

[0096] Among them, V i represents the membrane potential of the neuron at the i-th time step, V i ′ represents the initial membrane potential of the neuron at the i-th time step, max() is the function used to obtain the maximum value, sigmoid() represents the S-type function, f1() represents the first nonlinear transformation function, f1(V i ′) is the virtual membrane potential obtained by the first nonlinear transformation function, f2() represents the second nonlinear transformation function, f2(V i ′) is the virtual membrane potential obtained by the second nonlinear transformation function, f3() represents the third nonlinear transformation function, f3(V i′) is the virtual membrane potential obtained by the third nonlinear transformation function, f4() represents the fourth nonlinear transformation function, f4(V i ′) is the virtual membrane potential obtained by processing the fourth nonlinear transformation function.

[0097] It should be noted that the above nonlinear transformation function is only an example, and the embodiments of the present disclosure do not limit this.

[0098] In some optional implementations, for a convolutional pulse neural network based on a visual geometry group (Visual Geometry Group, VGG) structure composed of multiple neurons, when data processing is performed on the CIFAR10 dataset (an image classification dataset), if the LIF neuron model in the related art is used, the accuracy rate that can be obtained is 74.63, if the neuron model corresponding to Formula 1 is used, the accuracy rate is 70.4, if the fourth nonlinear transformation function f4() is used on the basis of the neuron model corresponding to Formula 1 for nonlinear processing, the corresponding accuracy rate is 74.52, similarly, if the first nonlinear transformation function f1() is used for nonlinear processing, the corresponding accuracy rate is 74.38. It can be seen from this that the embodiment of the present disclosure effectively improves the processing efficiency based on the parallel method, while the accuracy rate is only slightly lost in some scenarios, and is basically lossless in other scenarios.

[0099] In some optional implementations, the nonlinear transformation functions corresponding to multiple neurons of the pulse neural network may be the same or different, and the embodiments of the present disclosure are not limited to this.

[0100] It should also be noted that if multiple neurons of the spiking neural network use different nonlinear transformation functions, the heterogeneity or adaptability of the spiking neural network can be improved. When determining which nonlinear transformation to use for a neuron, it can be determined based on experience, statistical data, processing requirements, etc., and the embodiments of the present disclosure do not limit this.

[0101] It should be noted that although the embodiments of the present disclosure only change the updating method or determination method of the membrane potential of neurons, since the pulse neural network must be carried by corresponding hardware devices, this change in signal processing method will undoubtedly change the resource scheduling method and resource overhead of the hardware devices that carry the pulse neural network.

[0102] In other words, even if the pulse neural network is carried by the same hardware device, in the related art, since neurons execute pulse emission step by time, the hardware device also needs to execute the signal processing of neurons serially in the time dimension, and the resource scheduling is also a serial scheduling method, and the amount of resource overhead per unit time may be relatively small; while in the embodiment of the present disclosure, since the pulse emission restriction of neurons in the time dimension is lifted, the hardware device can execute the signal processing of neurons in parallel in the time dimension, and the resource scheduling method is a parallel scheduling method, and the amount of resource overhead per unit time may increase.

[0103] In some optional implementations, the spiking neural network can be deployed on different types of hardware devices to utilize the resources of these hardware devices (e.g., computing resources, bandwidth resources, storage resources, etc.) to perform spiking neural network signal processing. The hardware devices include multi-core systems and single processor systems, etc., which are not limited in the embodiments of the present disclosure.

[0104] In some optional implementations, the pulse neural network can be deployed in a preset many-core system, which includes multiple processing cores. In related technologies, each processing core usually corresponds to one or more neurons. When the processing core carrying each neuron performs the signal processing of the neuron, it needs to perform the signal issuance processing step by step, so a serial processing method is adopted in the time dimension. This serial processing method has a relatively low processing efficiency and cannot fully utilize the resources of the many-core system.

[0105] For example, if a processing core carries Q neurons (Q>1), the processing core can execute the signal emission of these Q neurons in parallel. Moreover, for any of these Q neurons, it is necessary to execute the emission of pulse signals time by time, that is, if it is necessary to process the signal of N time steps, it takes N×T time, where T is the time step length.

[0106] In contrast, in the disclosed embodiment, the processing core carrying the neurons does not need to serially execute the signal emission of the neurons at each time step, but can execute the signal emission at each time step in parallel, adopting a more efficient parallel processing method, thereby improving the signal processing efficiency and effectively improving the resource rate of the many-core system.

[0107] In some optional implementations, the pulse neural network is deployed in a preset many-core system, which includes multiple processing cores, and the signal emission processing of multiple time steps of a neuron is mapped to one or more processing cores; wherein, when the signal emission processing of multiple time steps of a neuron is mapped to multiple processing cores, the multiple processing cores can execute the signal emission of the neuron at each time step in parallel; if the signal emission processing of multiple time steps of a neuron is mapped to one processing core, the processing core can execute the signal emission of the neuron at each time step in parallel.

[0108] That is to say, in the embodiments of the present disclosure, in addition to realizing the parallel processing of multiple neurons, the processing of a single neuron at different time steps can also be executed in parallel, which is suitable for scenarios such as training where the information of multiple time steps is known. As mentioned above, the calculation of different time steps of a neuron can be mapped to different processing cores, thereby realizing the parallel processing of multiple time steps of the neuron. It should be noted that in the related art, even if the calculation of different time steps of a neuron is mapped to different processing cores, since the signal emission of neurons has a dependency in the time dimension, the mapped multiple processing cores still cannot be executed in parallel, and the signal emission still needs to be executed serially step by step.

[0109] Exemplarily, if a processing core carries Q neurons, the processing core can execute the signal release of these Q neurons in parallel. Moreover, for any one of these Q neurons, the membrane potential of each time step can be determined in parallel according to the input pulse signal of the preset time step, and the output pulse signal of each time step can be determined according to the membrane potential and the release threshold of each time step. Based on this, it can be seen that if it is necessary to process the signal processing of N time steps (N>1), it does not need to take N×T time, but only takes about T time, which can effectively reduce the processing time and improve the processing efficiency. Similarly, the signal release of N time steps of a neuron can also be mapped to N processing cores, and the signal release of each time step can be executed in parallel by these N processing cores. The required processing time is T (or close to T), which can also effectively reduce the processing time and improve the processing efficiency. Moreover, since the processing time is reduced, it is equivalent to improving the resource utilization of the hardware device.

[0110] Furthermore, the pulse neural network can also be deployed in a preset single-processor system, and similar to the many-core system, deploying the pulse neural network in a single-processor system can also reduce the signal processing time, improve the signal processing efficiency, and improve the resource utilization of the single-processor system.

[0111] It should be noted that the above signal processing method can be applied to model training scenarios.

[0112] For example, after a model for processing a preset task is constructed based on a pulse neural network, the gradient can be calculated by back propagation (BP), back propagation through time (BPTT), or synaptic plasticity, and gradient descent training can be performed. In the training process, the forward processing and reverse processing can be calculated in parallel in the time dimension, and the training efficiency is effectively improved.

[0113] A second aspect of the disclosed embodiments provides a task processing method based on a pulse neural network.

[0114] Figure 5 A flowchart of a task processing method based on a spiking neural network provided in an embodiment of the present disclosure, wherein the spiking neural network includes a plurality of neurons. Figure 5 , the task processing method based on pulse neural network may include the following steps.

[0115] Step S51, pulse encoding is performed on the data to be processed corresponding to the preset task to obtain input pulse signals corresponding to multiple time steps.

[0116] Step S52, inputting the input pulse signal into the spiking neural network for signal processing to obtain output pulse signals of multiple neurons in the spiking neural network.

[0117] Step S53, determining the processing result of the preset task based on the output pulse signals of the multiple neurons.

[0118] Among them, the neurons in the pulse neural network are used to execute the signal processing method based on the pulse neural network of any one of the embodiments of the present disclosure.

[0119] In the embodiments of the present disclosure, when a pulse neural network is used to perform tasks, the neurons in the pulse neural network can be calculated in parallel in the time dimension. Compared with the related art in which the membrane potential of the current time step depends on the output pulse signal of the previous time step and a serial processing method is required, the embodiments of the present disclosure can effectively improve the efficiency of signal processing, thereby improving the efficiency of task processing, and can also improve the resource utilization of hardware devices.

[0120] It can be understood that the above-mentioned embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. Those skilled in the art can understand that in the above-mentioned method of the specific implementation method, the specific execution order of each step and the setting of the functional module should be determined by its function and possible internal logic.

[0121] A third aspect of the disclosed embodiments provides a signal processing device based on a pulse neural network.

[0122] Figure 6 A block diagram of a signal processing device based on a pulse neural network provided by an embodiment of the present disclosure, wherein the pulse neural network includes a plurality of neurons. Figure 6 The signal processing device 600 based on pulse neural network may include the following modules.

[0123] A first determination module 601 is used to determine, for any time step of any neuron, a membrane potential of the neuron at the time step based on an input pulse signal of the neuron at the preset time step, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and located before the time step, and the membrane potential update process of the neuron does not rely on a reset mechanism;

[0124] The output module 602 is used to determine the output pulse signal of the neuron at each time step in parallel according to the membrane potential of the time step and the preset emission threshold, and to execute the signal emission of the neuron at each time step in parallel according to the output pulse signal at each time step.

[0125] In the embodiment provided by the present disclosure, for neurons in a spiking neural network, a first determination module is used to determine the membrane potential of a neuron at a time step based on the input pulse signal of the neuron at a preset time step for any time step of any neuron, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and before the time step, and the updating process of the neuron's membrane potential does not depend on the reset mechanism; through the output module, the output pulse signal of the neuron at each time step is determined in parallel according to the membrane potential of the time step and the preset emission threshold, and the signal emission of the neuron at each time step is executed in parallel according to the output pulse signal of each time step. It can be seen that for a neuron, its membrane potential updating process does not depend on the reset mechanism, so the membrane potential of the neuron at any time step is only related to the input pulse signal of the time step and the previous multiple time steps, therefore, after determining the input pulse signal, the membrane potential of the time step can be obtained, which is no longer dependent on the output pulse signal of the neuron at the previous time step, and can realize parallel calculation in the time dimension, so there is no need to adopt a serial processing method, but a parallel processing method can be adopted. Compared with the related art in which the membrane potential of the current time step depends on the output pulse signal of the previous time step and needs to be processed serially, in the embodiment of the present disclosure, the processing of a single neuron at different time steps can be parallelized, effectively improving the efficiency of signal processing and thereby improving the resource utilization of hardware devices.

[0126] A fourth aspect of the embodiments of the present disclosure provides a task processing device based on a pulse neural network.

[0127] Figure 7 A block diagram of a task processing device based on a pulse neural network provided by an embodiment of the present disclosure, wherein the pulse neural network includes a plurality of neurons. Figure 7 The task processing device 700 based on pulse neural network may include the following modules.

[0128] The encoding module 701 is used to perform pulse encoding on the to-be-processed data corresponding to the preset task to obtain input pulse signals corresponding to multiple time steps;

[0129] A processing module 702 is used to input the input pulse signal into the spiking neural network for signal processing to obtain output pulse signals of multiple neurons in the spiking neural network;

[0130] A second determination module 703, used to determine a processing result of a preset task based on the output pulse signals of the plurality of neurons;

[0131] Among them, the neurons in the pulse neural network are used to execute the signal processing method based on the pulse neural network of any one of the embodiments of the present disclosure.

[0132] In the embodiments of the present disclosure, when a pulse neural network is used to perform tasks, the neurons in the pulse neural network can be calculated in parallel in the time dimension. Compared with the related art in which the membrane potential of the current time step depends on the output pulse signal of the previous time step and a serial processing method is required, the embodiments of the present disclosure can effectively improve the efficiency of signal processing, thereby improving the efficiency of task processing, and can also improve the resource utilization of hardware devices.

[0133] In addition, the present disclosure also provides an electronic device and a computer-readable storage medium.

[0134] Figure 8 A block diagram of an electronic device provided in accordance with a first embodiment of the present disclosure.

[0135] Reference Figure 8 An embodiment of the present disclosure provides an electronic device, which includes: at least one processor 801; at least one memory 802, and one or more I / O interfaces 803, connected between the processor 801 and the memory 802; wherein the memory 802 stores one or more computer programs that can be executed by at least one processor 801, and the one or more computer programs are executed by at least one processor 1501, so that the at least one processor 801 can execute the signal processing method based on the pulse neural network or the task processing method based on the pulse neural network of the embodiment of the present disclosure.

[0136] Fig. 9 A block diagram of an electronic device provided in Embodiment 2 of the present disclosure.

[0137] Reference Fig. 9 An embodiment of the present disclosure provides an electronic device, which includes multiple processing cores 901 and an on-chip network 902, wherein the multiple processing cores 901 are connected to the on-chip network 902, and the on-chip network 902 is used to exchange data between the multiple processing cores and external data.

[0138] Among them, one or more instructions are stored in one or more processing cores 901, and one or more instructions are executed by one or more processing cores 901, so that one or more processing cores 901 can execute the signal processing method based on the pulse neural network or the task processing method based on the pulse neural network of the embodiment of the present disclosure.

[0139] In some embodiments, the electronic device may be a brain-like chip, which can use vectorized computing and needs to load the weight information and other parameters of the neural network model through an external memory such as a double data rate (DDR) synchronous dynamic random access memory. Therefore, the batch processing used in the embodiments of the present disclosure has a higher computing efficiency.

[0140] The present disclosure also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor / processing core, implements the signal processing method based on a pulse neural network or the task processing method based on a pulse neural network of the present disclosure. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0141] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the signal processing method based on a pulse neural network, or the task processing method based on a pulse neural network of the embodiments of the present disclosure.

[0142] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).

[0143] As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable program instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technology, portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable program instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.

[0144] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0145] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0146] The computer program product described herein may be implemented in hardware, software, or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK), etc.

[0147] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0148] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0149] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0150] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0151] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims

1. A signal processing method based on a pulse neural network, characterized in that: The spiking neural network includes a plurality of neurons, and the method includes: For any time step of any neuron, based on the input pulse signal of the neuron in a preset time step, determine the membrane potential of the neuron at the time step, wherein the preset time step includes the time step and multiple time steps adjacent to the time step and before the time step, and the membrane potential update process of the neuron does not rely on the reset mechanism; According to the membrane potential of each time step and the preset emission threshold, the output pulse signal of the neuron at each time step is determined in parallel, and the signal emission of the neuron at each time step is executed in parallel according to the output pulse signal at each time step.

2. The method according to claim 1, characterized in that: The determining, based on the input pulse signal of the neuron in the preset time step, the membrane potential of the neuron at the time step comprises: Determining the initial membrane potential of the neuron at the time step based on the input pulse signal of the neuron at the preset time step; The initial membrane potential is used as the membrane potential of the neuron at the time step, or the initial membrane potential is nonlinearly transformed to obtain a virtual membrane potential at the time step, and the virtual membrane potential is used as the membrane potential of the neuron at the time step.

3. The method according to claim 1 or 2, characterized in that: The preset time step includes the first time step to the current time step, or the preset time step includes the kth time step to the current time step, k>1; The initial membrane potential of the neuron is represented by Formula 1 or Formula 2: Among them, V i ′ represents the initial membrane potential of the neuron at the i-th time step, λ represents the attenuation factor, and λ<1, w represents the synaptic weight of the neuron, j represents the first identifier of the time step, and the value range of j is [1, i], S j represents the input pulse signal of the target neural network at the jth time step, z represents the second identifier of the time step, and the value range of z is [max(i+1-N,0),i], N represents the preset maximum power, 1<N<i+1, S z Represents the input pulse signal of the target neural network at the zth time step.

4. The method according to claim 2, characterized in that: The nonlinear transformation of the initial membrane potential is characterized by any one of Formula 3 to Formula 6: V i =f1(V i ′ )=max(V i ′ ,0)3 In i =f2(V i ′ )=max(V i ′ ,0)×V i ′ 4 V i =f3(V i ′ )=sigmoid(V i ′ )5 V i =f4(V i ′ )=sigmoid(V i ′ )×V i ′ 6 Among them, V i represents the membrane potential of the neuron at the i-th time step, V i ′ represents the initial membrane potential of the neuron at the i-th time step, f1() represents the first nonlinear transformation function, f2() represents the second nonlinear transformation function, f3() represents the third nonlinear transformation function, and f4() represents the fourth nonlinear transformation function.

5. The method according to claim 4, characterized in that The nonlinear transformation functions corresponding to the multiple neurons of the pulse neural network are the same or different.

6. The method according to claim 1 or 2, characterized in that: The method further comprises: Updating the membrane potential of the neuron based on a preset membrane potential updating method; Among them, the membrane potential updating method is an updating method that does not rely on a reset mechanism, and the membrane potential updating method includes: determining the membrane potential of the neuron in the current time step based on the membrane potential of the neuron in the previous time step and the input pulse signal in the current time step.

7. The method according to claim 6, characterized in that The determining the membrane potential of the neuron at the current time step based on the membrane potential of the neuron at the previous time step and the input pulse signal at the current time step comprises: Determining an initial membrane potential of the current time step based on the membrane potential of the neuron in the previous time step and the input pulse signal in the current time step; The initial membrane potential is used as the membrane potential of the neuron at the current time step, or the initial membrane potential is nonlinearly transformed to obtain a virtual membrane potential, and the virtual membrane potential is used as the membrane potential of the neuron at the current time step.

8. The method according to claim 7, characterized in that The determining of the initial membrane potential of the current time step based on the membrane potential of the neuron in the previous time step and the input pulse signal in the current time step comprises: Determining a first membrane potential component based on the membrane potential of the neuron at a previous time step and a preset attenuation factor; Determining a second membrane potential component according to the synaptic weight of the neuron and the input pulse signal of the current time step; The initial membrane potential of the neuron at the current time step is determined according to the first membrane potential component and the second membrane potential component.

9. The method according to claim 7 or 8, characterized in that: The updating process of the neuron's membrane potential is represented by Formula 7 or Formula 8: Among them, V i ′ represents the initial membrane potential of the neuron at the i-th time step, V i represents the membrane potential of the neuron at the i-th time step, V i-1 represents the membrane potential of the neuron at the i-1th time step, λ represents the attenuation factor, and λ<1, w represents the synaptic weight of the neuron, S i represents the input pulse signal of the target neural network at the i-th time step, O i represents the output pulse signal of the neuron at the i-th time step, H() represents the signal processing function of the neuron, T d is the delay time, τ is the time constant, f() represents the nonlinear transformation function, f(V i ′ ) represents the virtual membrane potential of the neuron at the i-th time step.

10. The method according to claim 1 or 2, characterized in that: The spiking neural network is deployed in a preset many-core system, the many-core system includes a plurality of processing cores, and the signal emission processing of a plurality of time steps of a neuron is mapped to one or more processing cores; In the case where the signal emission processing of multiple time steps of a neuron is mapped to multiple processing cores, the multiple processing cores execute the signal emission of the neuron at each time step in parallel.

11. A task processing method based on a pulse neural network, characterized in that: The spiking neural network includes a plurality of neurons, and the method includes: Pulse encoding is performed on the data to be processed corresponding to the preset task to obtain input pulse signals corresponding to multiple time steps; Inputting the input pulse signal into the spiking neural network for signal processing to obtain output pulse signals of multiple neurons in the spiking neural network; Determining a processing result of the preset task based on the output pulse signals of the plurality of neurons; Wherein, the neurons in the pulse neural network are used to execute the signal processing method based on the pulse neural network as described in any one of claims 1-10.

12. A signal processing device based on a pulse neural network, characterized in that: The spiking neural network includes a plurality of neurons, and the device includes: A first determination module is used to determine, for any time step of any neuron, a membrane potential of the neuron at the time step based on an input pulse signal of the neuron at the preset time step, wherein the preset time step includes the time step and a plurality of time steps adjacent to the time step and located before the time step, and the membrane potential update process of the neuron does not rely on a reset mechanism; The output module is used to determine the output pulse signal of the neuron at each time step in parallel according to the membrane potential of the time step and a preset emission threshold, and to execute the signal emission of the neuron at each time step in parallel according to the output pulse signal of each time step.

13. A task processing device based on a pulse neural network, characterized in that: The spiking neural network includes a plurality of neurons, and the device includes: An encoding module, used for pulse encoding the to-be-processed data corresponding to the preset task, to obtain input pulse signals corresponding to a plurality of time steps; A processing module, used for inputting the input pulse signal into the spiking neural network for signal processing to obtain output pulse signals of multiple neurons in the spiking neural network; A second determination module, used to determine the processing result of the preset task based on the output pulse signals of the plurality of neurons; Wherein, the neurons in the pulse neural network are used to execute the signal processing method based on the pulse neural network as described in any one of claims 1-10.

14. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores one or more computer programs that can be executed by the at least one processor, and one or more of the computer programs are executed by the at least one processor so that the at least one processor can execute the signal processing method based on the pulse neural network as described in any one of claims 1 to 10, or the task processing method based on the pulse neural network as described in claim 11.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When executed by a processor, the computer program implements the signal processing method based on a pulse neural network as described in any one of claims 1 to 10, or the task processing method based on a pulse neural network as described in claim 11.

Citation Information

Patent Citations

  • Impulse neural network training method, data processing method, electronic equipment and medium

    CN112734012A

  • SNN-based image recognition software and hardware system

    CN114663693A

  • Spike neural network apparatus based on multi-encoding and method of operation thereof

    US20230004777A1

Cited By

  • Deep sea heavy hydraulic robot remote measuring method and system

    CN120319013A

  • Neuron distribution rate time sequence prediction method based on spatio-temporal feature fusion

    CN121094017A

  • A neuron firing rate time series prediction method based on spatiotemporal feature fusion

    CN121094017B