Image recognition method and device based on spiking neural network, equipment and medium
By introducing time-dimensional convolution kernels and postsynaptic neurons into the spiking neural network, the convolution and integration processing of the spike sequence is performed, which solves the problem of the traditional spiking neural network being unable to accurately identify images and achieves richer feature expression. and more accurate recognition results.
Patent Information
- Application Number
- CN202410576252.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-09-03
Smart Images

Figure CN118587552A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to an image recognition method, device, equipment and medium based on a pulse neural network. Background Art
[0002] Artificial Neural Networks (ANN) is a computational model that abstracts and simulates the structure and function of biological nervous systems, and plays an important role in fields such as information processing and pattern recognition. Among them, modern neuroscience experiments have shown that many biological nervous systems such as vision and hearing use the time when neurons emit pulses to encode information, and the movement of pulse signals in the nervous system is the basis for the brain to think; therefore, based on the latest research results of modern neuroscience, the third-generation artificial neural network with more biological interpretability, Spiking Neural Networks (SNN), came into being, and it has gradually been applied to the field of image recognition.
[0003] However, whether it is ANN or traditional SNN, the synapses thereon are only used to perform simple linear weighting on the output of neurons, making it impossible to achieve accurate recognition of images. Summary of the invention
[0004] The present application provides an image recognition method, device, equipment and medium based on a pulse neural network, which can solve the technical problem that traditional pulse neural networks in the prior art cannot accurately perform image recognition.
[0005] In a first aspect, an embodiment of the present application provides an image recognition method based on a spiking neural network, the image recognition method based on a spiking neural network comprising:
[0006] Perform pulse conversion on the image to be recognized to obtain a target pulse sequence;
[0007] Inputting the target pulse sequence into a preset target pulse neural network for recognition to obtain a recognition result corresponding to the image to be recognized;
[0008] Among them, the target pulse neural network includes a presynaptic input neuron, a convolution kernel with a time dimension and a postsynaptic neuron connected in sequence, the presynaptic input neuron is used to receive a target pulse sequence; the convolution kernel is used to perform convolution processing on the target pulse sequence to obtain a new pulse sequence; the postsynaptic neuron is used to perform integration and release processing on the new pulse sequence to obtain a recognition result.
[0009] In combination with the first aspect, in one implementation, performing integration and distribution processing on the new pulse sequence to obtain the recognition result includes:
[0010] Each postsynaptic neuron is made to perform integration and emission processing on the new pulse sequence respectively, so as to obtain multiple pulse emission frequencies;
[0011] The maximum pulse emission frequency is selected from multiple pulse emission frequencies as the recognition result.
[0012] In combination with the first aspect, in one embodiment, when the postsynaptic neuron performs integration and release processing on a new pulse sequence, the membrane potential voltage of the postsynaptic neuron is accumulated as follows:
[0013]
[0014] Where V(t) represents the accumulated membrane potential voltage of the postsynaptic neuron at time t, τ m represents the membrane time constant, V(t-1) represents the accumulated membrane potential voltage of the postsynaptic neuron at the t-1th moment, y(t) represents the pulse amplitude entering the postsynaptic neuron at the tth moment, V thresh Represents the membrane potential voltage accumulation threshold.
[0015] In combination with the first aspect, in one implementation, each position on the convolution kernel has a corresponding synaptic weight.
[0016] In a second aspect, an embodiment of the present application provides an image recognition device based on a pulse neural network, and the image recognition device based on a pulse neural network includes:
[0017] A conversion module, which is used to perform pulse conversion on the image to be recognized to obtain a target pulse sequence;
[0018] A recognition module, which is used to input the target pulse sequence into a preset target pulse neural network for recognition, so as to obtain a recognition result corresponding to the image to be recognized;
[0019] Among them, the target pulse neural network includes a presynaptic input neuron, a convolution kernel with a time dimension and a postsynaptic neuron connected in sequence, the presynaptic input neuron is used to receive a target pulse sequence; the convolution kernel is used to perform convolution processing on the target pulse sequence to obtain a new pulse sequence; the postsynaptic neuron is used to perform integration and release processing on the new pulse sequence to obtain a recognition result.
[0020] In conjunction with the second aspect, in one implementation, the identification module is specifically used to:
[0021] Each postsynaptic neuron is made to perform integration and emission processing on the new pulse sequence respectively, so as to obtain multiple pulse emission frequencies;
[0022] The maximum pulse emission frequency is selected from multiple pulse emission frequencies as the recognition result.
[0023] In combination with the second aspect, in one embodiment, when the postsynaptic neuron performs integration and release processing on a new pulse sequence, the membrane potential voltage of the postsynaptic neuron is accumulated as follows:
[0024]
[0025] Where V(t) represents the accumulated membrane potential voltage of the postsynaptic neuron at time t, τ m represents the membrane time constant, V(t-1) represents the accumulated membrane potential voltage of the postsynaptic neuron at the t-1th moment, y(t) represents the pulse amplitude entering the postsynaptic neuron at the tth moment, V thresh Represents the membrane potential voltage accumulation threshold.
[0026] In combination with the second aspect, in one implementation, each position on the convolution kernel has a corresponding synaptic weight.
[0027] In a third aspect, an embodiment of the present application provides an image recognition device based on a pulse neural network, wherein the image recognition device based on a pulse neural network comprises a processor, a memory, and an image recognition program based on a pulse neural network stored in the memory and executable by the processor, wherein when the image recognition program based on a pulse neural network is executed by the processor, the steps of the image recognition method based on a pulse neural network as described above are implemented.
[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which is stored an image recognition program based on a pulse neural network. When the image recognition program based on a pulse neural network is executed by a processor, the steps of the image recognition method based on a pulse neural network as described above are implemented.
[0029] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:
[0030] The convolution kernel in the pulse neural network is used to convolve the target pulse sequence corresponding to the image to be identified, so as to affect the accumulation of membrane potential voltage of the postsynaptic neuron, so that the pulse emission of the postsynaptic neuron changes, thereby increasing the expressive ability of the neural network, so that the pulse neural network can express richer features, thereby being able to more accurately identify the image to be identified, solving the technical problem that traditional pulse neural networks in related technologies cannot accurately perform image recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1This is a flow chart of an embodiment of an image recognition method based on a spiking neural network of the present application;
[0032] Figure 2 A schematic diagram of the connection between the presynaptic neuron and the postsynaptic neuron involved in the embodiment of the present application;
[0033] Figure 3 A schematic diagram of a presynaptic neuron involved in an embodiment of the present application being connected to different postsynaptic neurons via different convolution kernels;
[0034] Figure 4 A schematic diagram of a character image involved in the embodiment of the present application;
[0035] Figure 5 Schematic diagram of the hardware structure of the pulse neural network-based image recognition device involved in the embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0038] In a first aspect, an embodiment of the present application provides an image recognition method based on a pulse neural network.
[0039] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of the image recognition method based on a pulse neural network in this application. Figure 1 As shown, the image recognition method based on the pulse neural network includes:
[0040] Step S10: Perform pulse conversion on the image to be recognized to obtain a target pulse sequence.
[0041] Exemplarily, it should be understood that the processing object of the SNN network is a pulse sequence. Therefore, in this embodiment, for the image to be recognized, it will be pulsed to form a target pulse sequence. It should be noted that the pulse processing can be achieved by encoding methods such as Poisson coding, and since the method and principle of pulse processing are common knowledge in the field, for the sake of brevity of description, it will not be repeated here.
[0042] Step S20: Input the target pulse sequence into a preset target pulse neural network for recognition to obtain a recognition result corresponding to the image to be recognized; wherein the target pulse neural network includes presynaptic input neurons, convolution kernels with a time dimension and postsynaptic neurons connected in sequence, the presynaptic input neurons are used to receive the target pulse sequence; the convolution kernel is used to perform convolution processing on the target pulse sequence to obtain a new pulse sequence; the postsynaptic neuron is used to perform integration and release processing on the new pulse sequence to obtain a recognition result.
[0043] Exemplarily, in this embodiment, the time dimension of SNN is used to set a convolution kernel with a time dimension between the presynaptic input neuron and the postsynaptic neuron of SNN to form a target spiking neural network. The target spiking neural network can perform convolution processing on the output of the presynaptic input neuron through the one-dimensional convolution kernel with a time dimension to affect the accumulation of the membrane potential voltage of the postsynaptic neuron, thereby affecting the pulse emission of the postsynaptic neuron, thereby increasing the expression ability of the spiking neural network and enabling the spiking neural network to express richer features. Among them, the size and position of the weights in the convolution kernel can be determined by training.
[0044] It should be noted that the postsynaptic neuron may be a pulse neuron such as a LIF (Leaky Integrate and Fire) neuron, a Hodgkin-Huxley neuron, or a FitzHugh-Nagumo neuron. The specific type of neuron used as the postsynaptic neuron can be determined according to actual needs and is not limited here.
[0045] In this embodiment, the postsynaptic neuron can be preferably a LIF neuron. It should be understood that the LIF neuron model is currently generally recognized as a pulse neuron model that achieves the best balance between biological interpretability and implementation complexity; wherein, in the LIF neuron model, during the "integration" process, the neuron will accumulate input pulses over time, and the threshold judgment will determine whether to emit a pulse. If the threshold is not reached and no new pulses are accumulated, the neuron will gradually "leak" the existing accumulation to the resting state. After reaching the threshold, the neuron will enter a short refractory period after emitting a pulse. During the refractory period, the neuron cannot emit pulses, and "integration" will be performed again after returning to the resting state. The LIF model very intuitively describes the relationship between the membrane potential V of the neuron and its input current I. Specifically, the change process of the membrane potential V can be described by the following first-order differential equation:
[0046]
[0047] In the formula, τ m =C m R m, which is the membrane time constant, C m Represents the membrane capacitance, R m Represents membrane resistance, V reset Represents the neuron reset voltage, which is usually 0 by default, and I is the sum of the synaptic currents generated by the discharge behavior of each presynaptic neuron. In practice, the following differential equation is usually used to implement it:
[0048]
[0049] Where V(t) is the accumulated voltage of the LIF neuron membrane potential, and X(t) is the sum of the pulses received by the LIF neuron at time t. When the accumulated voltage of the LIF neuron membrane potential exceeds the threshold, the LIF neuron will emit a pulse, and then the neuron membrane potential will return to the zero potential resting state (i.e., V reset ).
[0050] In this embodiment, after obtaining the target pulse sequence, see Figure 2 As shown, the target pulse sequence can be received by the presynaptic input neuron and transmitted to the convolution kernel; the convolution kernel performs convolution processing on the target pulse sequence to obtain a new pulse sequence; because the convolution processing will affect the accumulation of the membrane potential voltage of the postsynaptic neuron, the pulse emission of the postsynaptic neuron will also be affected when the new pulse sequence is integrated and emitted, thereby increasing the expression ability of the pulse neural network, so that the pulse neural network can express richer features, and finally output a more accurate pulse sequence, thereby obtaining an accurate recognition result.
[0051] It can be seen that this embodiment uses the convolution kernel in the pulse neural network to perform convolution processing on the target pulse sequence corresponding to the image to be identified, so as to realize a SNN synapse, and then affect the accumulation of membrane potential voltage of the postsynaptic neuron, so that the pulse emission of the postsynaptic neuron changes, thereby increasing the expression ability of the neural network, so that the pulse neural network can express richer features, thereby being able to more accurately identify the image to be identified, solving the technical problem that traditional pulse neural networks in related technologies cannot accurately perform image recognition.
[0052] Further, in one embodiment, the performing integration and distribution processing on the new pulse sequence to obtain the recognition result includes:
[0053] Each postsynaptic neuron is made to perform integration and emission processing on the new pulse sequence respectively, so as to obtain multiple pulse emission frequencies;
[0054] The maximum pulse emission frequency is selected from multiple pulse emission frequencies as the recognition result.
[0055] For example, in this embodiment, see Figure 3 As shown, the target pulse neural network usually contains multiple postsynaptic neurons, and each postsynaptic neuron has a corresponding convolution kernel W. Therefore, for each postsynaptic neuron, the convolution kernel corresponding to each postsynaptic neuron will perform convolution connection processing on the target pulse sequence output by the presynaptic neuron, and then transmit the obtained new pulse sequence to the corresponding postsynaptic neuron for integral release processing to obtain the corresponding pulse release sequence and its pulse release frequency; after all postsynaptic neurons have completed the integral release processing, the pulse release frequency with the largest frequency value will be found as the final recognition result.
[0056] Furthermore, in one embodiment, each position on the convolution kernel has a corresponding synaptic weight.
[0057] Exemplarily, in this embodiment, the convolution kernel is a sequence with a time dimension, each convolution kernel in the target pulse neural network has its corresponding synaptic weight, and each position on the convolution kernel has its corresponding synaptic weight.
[0058] Furthermore, in one embodiment, when the postsynaptic neuron performs integration and distribution processing on a new pulse sequence, the membrane potential voltage of the postsynaptic neuron is accumulated as follows:
[0059]
[0060] Where V(t) represents the accumulated membrane potential voltage of the postsynaptic neuron at time t, τ m represents the membrane time constant, V(t-1) represents the accumulated membrane potential voltage of the postsynaptic neuron at the t-1th moment, y(t) represents the pulse amplitude entering the postsynaptic neuron at the tth moment, V thresh Represents the membrane potential voltage accumulation threshold.
[0061] Exemplarily, in this embodiment, the target pulse sequence is convolved by a convolution kernel to affect the accumulation of membrane potential voltage of the postsynaptic neuron, so that the pulse emission of the postsynaptic neuron changes, thereby increasing the expressive power of the neural network, so that the pulse neural network can express richer features.
[0062] Specifically, taking the application scenario of target spike neural network in character recognition as an example, assuming that the total number of pixels of the character is N, the character is converted into a discrete spike sequence x[N], which is then convolved with a convolution kernel w[T+1] of length T+1 to output a sequence y[N+T] of length N+T, that is, The “*” indicates convolution processing; the sequence y[N+T] is then input to the postsynaptic LIF neuron, at which point the postsynaptic LIF neuron accumulates its membrane potential voltage at time t:
[0063]
[0064] Where V(t) represents the accumulated membrane potential voltage of the postsynaptic neuron at time t, τ m represents the membrane time constant, V(t-1) represents the accumulated membrane potential voltage of the postsynaptic neuron at the t-1th moment, y(t) represents the pulse amplitude entering the postsynaptic neuron at the tth moment, V thresh represents the membrane potential voltage accumulation threshold. It should be noted that V thresh The specific value setting of can be determined according to actual needs and is not limited here.
[0065] The following is an explanation of the principles and methods of image recognition by combining the application scenario of target spike neural network in character recognition. Assume that the data set consists of character images composed of 15 pixels, such as Figure 4 As shown in , the character images in the data set include "A", "B", "C", and "D". When performing character recognition, the above four character images are first converted into corresponding pulse sequences respectively; Figure 2 As shown, the presynaptic neuron in the target spike neural network is connected to the postsynaptic LIF neuron 1, the postsynaptic LIF neuron 2, the postsynaptic LIF neuron 3 and the postsynaptic LIF neuron 4 through the convolution kernel synapses. After training, the convolution kernel of the synaptic connection between the presynaptic neuron and the postsynaptic LIF neuron 1 is W1 (the convolution kernel length is N1), the convolution kernel of the synaptic connection between the presynaptic neuron and the postsynaptic LIF neuron 2 is W2 (the convolution kernel length is N2), the convolution kernel of the synaptic connection between the presynaptic neuron and the postsynaptic LIF neuron 3 is W3 (the convolution kernel length is N3), and the convolution kernel of the synaptic connection between the presynaptic neuron and the postsynaptic LIF neuron 4 is W4 (the convolution kernel length is N4); when the pulse sequence corresponding to the character "A" is input from the presynaptic neuron:
[0066] The length of the input pulse train of postsynaptic LIF neuron 1 is N1+14, and the number of output pulses of postsynaptic LIF neuron 1 is M. A1 , then the pulse firing frequency of postsynaptic LIF neuron 1 is
[0067] The length of the input pulse train of postsynaptic LIF neuron 2 is N2+14, and the number of output pulses of postsynaptic LIF neuron 2 is M. A2 , then the pulse firing frequency of postsynaptic LIF neuron 2 is
[0068] The length of the input pulse train of postsynaptic LIF neuron 3 is N3+14, and the number of output pulses of postsynaptic LIF neuron 3 is M. A3 , then the pulse firing frequency of postsynaptic LIF neuron 3 is
[0069] The length of the input pulse train of postsynaptic LIF neuron 4 is N4+14, and the number of output pulses of postsynaptic LIF neuron 4 is M. AA , then the pulse firing frequency of postsynaptic LIF neuron 4 is
[0070] Assume that the pulse emission frequency f A1 to f A4 Medium A1 Maximum, then f A1 As the recognition result of "A".
[0071] Similarly, when the pulse sequence corresponding to the character "B" is input from the presynaptic neuron:
[0072] The length of the input pulse train of postsynaptic LIF neuron 1 is N1+14, and the number of output pulses of postsynaptic LIF neuron 1 is M. B1 , then the pulse firing frequency of postsynaptic LIF neuron 1 is
[0073] The length of the input pulse train of postsynaptic LIF neuron 2 is N2+14, and the number of output pulses of postsynaptic LIF neuron 2 is M. B2 , then the pulse firing frequency of postsynaptic LIF neuron 2 is
[0074] The length of the input pulse train of postsynaptic LIF neuron 3 is N3+14, and the number of output pulses of postsynaptic LIF neuron 3 is M. B3 , then the pulse firing frequency of postsynaptic LIF neuron 3 is
[0075] The length of the input pulse train of postsynaptic LIF neuron 4 is N4+14, and the number of output pulses of postsynaptic LIF neuron 4 is M. B4 , then the pulse firing frequency of postsynaptic LIF neuron 4 is
[0076] Assume that the pulse emission frequency f B1 to f B4 Medium B2 Maximum, then f B2 As the recognition result of "B".
[0077] Similarly, when the pulse sequence corresponding to the character "C" is input from the presynaptic neuron:
[0078] The length of the input pulse train of postsynaptic LIF neuron 1 is N1+14, and the number of output pulses of postsynaptic LIF neuron 1 is M.C1 , then the pulse firing frequency of postsynaptic LIF neuron 1 is
[0079] The length of the input pulse train of postsynaptic LIF neuron 2 is N2+14, and the number of output pulses of postsynaptic LIF neuron 2 is M. C2 , then the pulse firing frequency of postsynaptic LIF neuron 2 is
[0080] The length of the input pulse train of postsynaptic LIF neuron 3 is N3+14, and the number of output pulses of postsynaptic LIF neuron 3 is M. C3 , then the pulse firing frequency of postsynaptic LIF neuron 3 is
[0081] The length of the input pulse train of postsynaptic LIF neuron 4 is N4+14, and the number of output pulses of postsynaptic LIF neuron 4 is M. C4 , then the pulse firing frequency of postsynaptic LIF neuron 4 is
[0082] Assume that the pulse emission frequency f C1 to f C4 Medium C3 Maximum, then f C3 As the recognition result of "C".
[0083] Similarly, when the pulse sequence corresponding to the character "D" is input from the presynaptic neuron:
[0084] The length of the input pulse train of postsynaptic LIF neuron 1 is N1+14, and the number of output pulses of postsynaptic LIF neuron 1 is M. D1 , then the pulse firing frequency of postsynaptic LIF neuron 1 is
[0085] The length of the input pulse train of postsynaptic LIF neuron 2 is N2+14, and the number of output pulses of postsynaptic LIF neuron 2 is M. D2 , then the pulse firing frequency of postsynaptic LIF neuron 2 is
[0086] The length of the input pulse train of postsynaptic LIF neuron 3 is N3+14, and the number of output pulses of postsynaptic LIF neuron 3 is M. D3 , then the pulse firing frequency of postsynaptic LIF neuron 3 is
[0087] The length of the input pulse train of postsynaptic LIF neuron 4 is N4+14, and the number of output pulses of postsynaptic LIF neuron 4 is M. D4, then the pulse firing frequency of postsynaptic LIF neuron 4 is
[0088] Assume that the pulse emission frequency f D1 to f D4 Medium D4 Maximum, then f D4 As the recognition result of "D".
[0089] In a second aspect, an embodiment of the present application also provides an image recognition device based on a pulse neural network.
[0090] In one embodiment, an image recognition device based on a spiking neural network includes:
[0091] A conversion module, which is used to perform pulse conversion on the image to be recognized to obtain a target pulse sequence;
[0092] A recognition module, which is used to input the target pulse sequence into a preset target pulse neural network for recognition, so as to obtain a recognition result corresponding to the image to be recognized;
[0093] Among them, the target pulse neural network includes a presynaptic input neuron, a convolution kernel with a time dimension and a postsynaptic neuron connected in sequence, the presynaptic input neuron is used to receive a target pulse sequence; the convolution kernel is used to perform convolution processing on the target pulse sequence to obtain a new pulse sequence; the postsynaptic neuron is used to perform integration and release processing on the new pulse sequence to obtain a recognition result.
[0094] Furthermore, in one embodiment, the identification module is specifically used for:
[0095] Each postsynaptic neuron is made to perform integration and emission processing on the new pulse sequence respectively, so as to obtain multiple pulse emission frequencies;
[0096] The maximum pulse emission frequency is selected from multiple pulse emission frequencies as the recognition result.
[0097] Furthermore, in one embodiment, when the postsynaptic neuron performs integration and distribution processing on a new pulse sequence, the membrane potential voltage of the postsynaptic neuron is accumulated as follows:
[0098]
[0099] Where V(t) represents the accumulated membrane potential voltage of the postsynaptic neuron at time t, τ m represents the membrane time constant, V(t-1) represents the accumulated membrane potential voltage of the postsynaptic neuron at the t-1th moment, y(t) represents the pulse amplitude entering the postsynaptic neuron at the tth moment, V thresh Represents the membrane potential voltage accumulation threshold.
[0100] Furthermore, in one embodiment, each position on the convolution kernel has a corresponding synaptic weight.
[0101] Among them, the functional implementation of each module in the above-mentioned image recognition device based on pulse neural network corresponds to the various steps in the above-mentioned image recognition method embodiment based on pulse neural network, and its functions and implementation processes will not be repeated here one by one.
[0102] In a third aspect, an embodiment of the present application provides an image recognition device based on a pulse neural network. The image recognition device based on a pulse neural network can be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.
[0103] Reference Figure 5 , Figure 5 Schematic diagram of the hardware structure of the pulse neural network-based image recognition device involved in the embodiment of the present application. In the embodiment of the present application, the pulse neural network-based image recognition device may include a processor, a memory, a communication interface, and a communication bus.
[0104] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0105] The communication interface includes an input / output (I / O) interface, a physical interface, and a logical interface, etc., which are used to realize the interconnection of devices inside the pulse neural network-based image recognition device, and an interface for realizing the interconnection of the pulse neural network-based image recognition device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.
[0106] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0107] The processor may be a general-purpose processor, which may call the pulse neural network-based image recognition program stored in the memory and execute the pulse neural network-based image recognition method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the pulse neural network-based image recognition program is called may refer to the various embodiments of the pulse neural network-based image recognition method of the present application, which will not be repeated here.
[0108] Those skilled in the art will understand that Figure 5 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0109] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0110] The readable storage medium of the present application stores an image recognition program based on a pulse neural network, wherein when the image recognition program based on a pulse neural network is executed by a processor, the steps of the image recognition method based on a pulse neural network as described above are implemented.
[0111] Among them, the method implemented when the pulse neural network-based image recognition program is executed can refer to the various embodiments of the pulse neural network-based image recognition method of the present application, and will not be repeated here.
[0112] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0113] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0114] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0115] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0116] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0118] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An image recognition method based on a pulse neural network, characterized in that: The image recognition method based on pulse neural network includes: Perform pulse conversion on the image to be recognized to obtain a target pulse sequence; Inputting the target pulse sequence into a preset target pulse neural network for recognition to obtain a recognition result corresponding to the image to be recognized; Among them, the target pulse neural network includes a presynaptic input neuron, a convolution kernel with a time dimension and a postsynaptic neuron connected in sequence, the presynaptic input neuron is used to receive a target pulse sequence; the convolution kernel is used to perform convolution processing on the target pulse sequence to obtain a new pulse sequence; the postsynaptic neuron is used to perform integration and release processing on the new pulse sequence to obtain a recognition result.
2. The image recognition method based on pulse neural network according to claim 1, characterized in that: The step of performing integration and distribution processing on the new pulse sequence to obtain a recognition result includes: Each postsynaptic neuron is made to perform integration and emission processing on the new pulse sequence respectively, so as to obtain multiple pulse emission frequencies; The maximum pulse emission frequency is selected from multiple pulse emission frequencies as the recognition result.
3. The image recognition method based on pulse neural network according to claim 1, characterized in that: When the postsynaptic neuron performs integration and release processing on a new pulse sequence, the membrane potential voltage of the postsynaptic neuron is accumulated as follows: Where V(t) represents the accumulated membrane potential voltage of the postsynaptic neuron at time t, τ m represents the membrane time constant, V(t-1) represents the accumulated membrane potential voltage of the postsynaptic neuron at the t-1th moment, y(t) represents the pulse amplitude entering the postsynaptic neuron at the tth moment, V thresh Represents the membrane potential voltage accumulation threshold.
4. The image recognition method based on pulse neural network according to claim 1, characterized in that: Each position on the convolution kernel has a corresponding synaptic weight.
5. An image recognition device based on a pulse neural network, characterized in that: The image recognition device based on pulse neural network includes: A conversion module, which is used to perform pulse conversion on the image to be recognized to obtain a target pulse sequence; A recognition module, which is used to input the target pulse sequence into a preset target pulse neural network for recognition, so as to obtain a recognition result corresponding to the image to be recognized; Among them, the target pulse neural network includes a presynaptic input neuron, a convolution kernel with a time dimension and a postsynaptic neuron connected in sequence, the presynaptic input neuron is used to receive a target pulse sequence; the convolution kernel is used to perform convolution processing on the target pulse sequence to obtain a new pulse sequence; the postsynaptic neuron is used to perform integration and release processing on the new pulse sequence to obtain a recognition result.
6. The image recognition device based on pulse neural network according to claim 5, characterized in that: The identification module is specifically used for: Each postsynaptic neuron is made to perform integration and emission processing on the new pulse sequence respectively, so as to obtain multiple pulse emission frequencies; The maximum pulse emission frequency is selected from multiple pulse emission frequencies as the recognition result.
7. The image recognition device based on pulse neural network according to claim 5, characterized in that: When the postsynaptic neuron performs integration and release processing on a new pulse sequence, the membrane potential voltage of the postsynaptic neuron is accumulated as follows: Where V(t) represents the accumulated membrane potential voltage of the postsynaptic neuron at time t, τ m represents the membrane time constant, V(t-1) represents the accumulated membrane potential voltage of the postsynaptic neuron at the t-1th moment, y(t) represents the pulse amplitude entering the postsynaptic neuron at the tth moment, V thresh Represents the membrane potential voltage accumulation threshold.
8. The image recognition device based on pulse neural network as claimed in claim 5, characterized in that: Each position on the convolution kernel has a corresponding synaptic weight.
9. An image recognition device based on a pulse neural network, characterized in that: The pulse neural network-based image recognition device includes a processor, a memory, and a pulse neural network-based image recognition program stored in the memory and executable by the processor, wherein when the pulse neural network-based image recognition program is executed by the processor, the steps of the pulse neural network-based image recognition method as described in any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an image recognition program based on a pulse neural network, wherein when the image recognition program based on a pulse neural network is executed by a processor, the steps of the image recognition method based on a pulse neural network as described in any one of claims 1 to 4 are implemented.
Citation Information
Cited By
Cereal classification method and device based on spiking neural network, and electronic equipment
CN119295817A
