A speech recognition system and method based on bionic neural network
By adopting the structure of a two-layer convolutional neural network and a four-layer bionic neural network in speech recognition technology, and using the membrane potential and pulse delay of bionic neurons to encode and transmit information, it solves the problem of high model complexity and difficulty in the existing technology. This solves the problem of poor interpretability and achieves more efficient and low-energy speech recognition results.
Patent Information
- Application Number
- CN202210853706.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-07-11
AI Technical Summary
The deep learning algorithm model in the existing speech recognition technology has poor interpretability, unstable generalization performance, large computing resource requirements, and the data collection efficiency of the recurrent neural network in the time dimension is low, which cannot guarantee accuracy under energy-saving hardware conditions. performance, timeliness and robustness.
Using the structure of a two-layer convolutional neural network and a four-layer bionic neural network, feature vectors are extracted through the speech perception module. The bionic neurons in the bionic neural network use membrane potential and pulse delay to encode and transmit information, using sparse connections and asynchronous Signal transmission reduces model complexity and energy consumption, and enhances model interpretability and robustness.
It achieves a simpler neural network structure, improves anti-interference ability and interpretability, reduces energy consumption, simulates the functional principles of biological neural networks, and improves the accuracy and efficiency of speech recognition.
Smart Images

Figure CN115273853B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of artificial intelligence and pulse neural network, and in particular relates to a speech recognition system and method based on bionic neural network. Background Art
[0002] In the current field of speech recognition, the main methods used are based on popular algorithms such as recurrent neural networks and encoder-decoders with self-attention mechanisms for optimization. However, the interpretability of current deep learning algorithm models is generally poor, and the generalization performance is unstable. Secondly, due to the structure of the fully connected network, the model has a large number of parameters and some redundancy, which requires a lot of computing resources. At the same time, the recurrent neural network may collect too much data in the time dimension, and is not efficient in short-term dependent tasks. Under the constraints of the above problems, the second-generation neural network cannot guarantee accuracy, timeliness, robustness and interpretability under the premise of energy saving and general hardware computing power.
[0003] The third generation of artificial neural networks, the spiking neural network, mainly refers to the principles of bionics, mathematically models some research results in neuroscience, and combines machine learning technology to encode information into the membrane potential and pulse delay of neurons, using pulses to achieve high-efficiency and low-energy information transmission, while using sparse connections to be close to the structure of biological neural networks. Currently, spiking neural networks have been widely used in digital recognition, pattern recognition, autonomous driving and other issues. Summary of the invention
[0004] In order to overcome the deficiencies of the above-mentioned prior art, the object of the present invention is to provide a speech recognition system and method based on a bionic neural network, which can reduce the complexity of the model, reduce the demand for computing power, and enhance the interpretability and robustness of the model.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is:
[0006] A speech recognition system based on a bionic neural network adopts a structure of stacking two layers of convolutional neural networks and four layers of bionic neural networks, including:
[0007] The speech perception module receives speech input to form a code, generates a time-division spectrum through Fourier transform, and then uses a convolutional neural network to extract the digital features of the local waveform to obtain a feature vector sequence;
[0008] The code sequence translation module is a bionic neural network composed of four layers of bionic neurons, namely, a perception layer, a transfer layer, a control layer and a drive layer. The perception layer receives the feature vector sequence output by the speech perception module, the transfer layer performs feature escape, the control layer performs storage and decision-making of self-circulating timing information, the bionic neural network creates bionic neurons and establishes synapses between bionic neurons, the synapses change the state of bionic neurons through asynchronous signal transmission and bipolar signal transmission, the update of the state of the bionic neurons corresponds to the processing of information, and the drive layer outputs a digital code sequence representing letters according to its own state;
[0009] The text output module receives the digital code sequence, generates a letter sequence through a preset code inverse mapping, and obtains a target text result of speech recognition.
[0010] Preferably, the speech perception module includes an analog-to-digital conversion unit, a sequence segmentation unit, a Fourier transform unit and a convolutional neural network; the analog-to-digital conversion unit converts the speech input into a digital signal, and stores it as a time-domain quantization file of the speech through monophonic fixed sampling rate sampling; the sequence segmentation unit divides the time-domain quantization file into a number of subsequences, each of which has partial overlap; the Fourier transform unit performs Fourier transform on each subsequence to obtain a time-division spectrum sequence with time characteristics, each time-division spectrum sequence corresponds to the pronunciation characteristics of a letter; the convolutional neural network has two layers, each layer includes multiple two-dimensional convolution kernels, all of which are passed forward to the next layer using a nonlinear activation function, each time-division spectrum sequence is extracted through a two-layer convolutional neural network to obtain the digital features of the local waveform, and the digital features are spliced to obtain a feature vector sequence.
[0011] Preferably, the bionic neuron uses membrane potential to represent the state, and uses ordinary differential equations to update the state. The equation parameters are neuron internal parameters with nonlinear time-varying characteristics. The bionic neuron state is updated jointly by the current state and the influence of input synapses. The synapses between bionic neurons are designed in imitation of the synapses of the biological nervous system. The synapses and synaptic polarities from the source bionic neuron to the target bionic neuron are generated according to the probability distribution. The weight and polarity of the synapses will directly affect the state update of the corresponding connected bionic neurons. The positive polarity synapses will increase the membrane potential of the target bionic neuron, that is, the quantitative value of the state increases, and the negative polarity synapses will decrease the membrane potential of the target bionic neuron, that is, the quantitative value of the state decreases. The strength of the synapses reflects the influence of the synapses on the membrane potential of the bionic neurons. The real-time membrane potential of the bionic neurons themselves has a negative feedback change over time, and the neurons tend to recover to the resting potential.
[0012] Preferably, the state equation corresponding to the bionic neuron is as follows:
[0013]
[0014] Among them, V j and V i They correspond to the states of the source bionic neuron and the target bionic neuron, i.e., membrane potential; τ i is the time constant of the target bionic neuron, which is defined as follows:
[0015]
[0016] represents the membrane capacitance of the target bionic neuron, is the membrane conductance of the target bionic neuron, w ij The corresponding synaptic weight, τ i The difference in values on different bionic neurons ensures different update levels in the same computational iteration, thus achieving the asynchrony of the bionic neuron membrane potential update;
[0017] σ i (V j ) is the signal transmission coefficient on the synapse, which represents the synaptic connectivity. As a signal factor, it affects the signal transmission efficiency and is positively correlated with the signal strength. i (V j ) is defined as follows:
[0018]
[0019] γ ij is the polarity coefficient of the synapse, its positive and negative represent the polarity of the synapse, corresponding to the positive and negative of the synaptic weight, μ ij Corresponding to the transmission threshold, σ i (V j ) shows the effect of the membrane potential of the source bionic neuron on the signal strength, which indirectly affects the membrane potential update of the target bionic neuron by acting as a nonlinear factor of signal strength;
[0020] is the resting potential of the target neuron, and the time constant τ i The fraction of E reflects the trend of the target bionic neuron to recover to the resting potential. ij is the opposite number of the relative potential between the two ends of the synapse, w ij σ i (V j )E ij It represents the signal propagated on the corresponding synapse. After being transmitted to the target bionic neuron, it is both a part of the negative feedback update coefficient of its membrane potential and a part of the direct linear superposition of its membrane potential in the state change equation of the target bionic neuron.
[0021] This differential equation meets the above-mentioned conditions for updating the state of bionic neurons and simulates the pulse propagation process in the nervous system of simple organisms.
[0022] Preferably, the number of bionic neurons in the perception layer is equal to the length of the feature vector sequence; the transfer layer includes N i bionic neurons; the control layer includes N c bionic neurons; the driving layer contains N m bionic neurons, where N m -1 is the length of the basic alphabet of the language in the recognition problem, and another bionic neuron represents the end symbol. The N of the driving layer m The output values of the bionic neurons are arranged in sequence to form a vector. The size of each component of the vector corresponds to the probability that a feature vector in the feature vector sequence received by the code sequence translation module is recognized as the letter corresponding to each bionic neuron. The code corresponding to the bionic neuron corresponding to the largest component of the vector is the basic unit of the code sequence received by the text output module. Sparse synaptic connections are established between adjacent layers. The establishment and polarity of synapses are random. Signals are transmitted asynchronously to the next layer of bionic neurons through forward transmission. In addition to the synapses between adjacent layers, synaptic connections from the control layer to the control layer are also included, that is, a self-loop protruding structure, which is used to realize the accumulation of historical information and reflect its memory.
[0023] Preferably, the specific synaptic distribution of the bionic neural network is designed using probability theory and mathematical statistics methods, and the synaptic creation rules described below are established:
[0024] 1)N s 、N i 、N c 、N m The number of bionic neurons corresponding to the perception layer, transfer layer, command layer and drive layer is respectively inserted into n for all adjacent layers and all source bionic neurons. s-t The number of synapses is n s-t target bionic neurons, n s-t ≤N t , N t is the number of bionic neurons in the next layer, and the random selection of target bionic neurons follows n s-t Sub-binomial distribution, the polarity selection of synapses satisfies Bernoulli distribution;
[0025] 2) In any two adjacent layers, for all target bionic neurons that have no synaptic inputs connected in 1), calculate the average number of synapses L received by each bionic neuron in the layer where the target bionic neuron is located, and connect them from the upper layer through m s-t Subbinomial distribution, randomly select m s-t The source bionic neuron and the target bionic neuron establish synapses, m s-t≤L, synaptic polarity is initialized using Bernoulli distribution;
[0026] 3) For all bionic neurons in the control layer, insert l s-t synapses, l s-t ≤N c , the corresponding target bionic neuron is s-t A sub-binomial distribution is randomly selected from the control layer, and the polarity of each synapse is initialized using a Bernoulli distribution.
[0027] According to the above rules, a sparse bionic neural network is formed by imitating the nervous system of simple organisms. The bionic neurons and synapses maintain internal parameters at the same time, and the state of the bionic neurons in the driving layer is changed through asynchronous bipolar signal conduction to obtain output.
[0028] In the present invention, c can be taken as 32, a can be taken as 32, b can be taken as 16, and n can be taken as 26 using the English alphabet, or the parameter value can be set according to different application environments.
[0029] The present invention also provides a method based on the bionic neural network-based speech recognition system, comprising the following steps:
[0030] Step 1: The audio perception module receives speech input and obtains a corresponding feature vector sequence;
[0031] Step 2, the perception layer of the code sequence translation module receives the feature vector sequence, and the synapse updates the state of the bionic neuron through asynchronous signal transmission and bipolar signal transmission. Different update actions within the same calculation iteration interval ensure the asynchrony of signal transmission. The signal is output to the driving layer through forward transmission of the relay layer and loop transmission and forward transmission of the control layer. In each of the above signal transmission processes, all the bionic neurons in the layer receiving the synaptic signal are updated according to the influence of the synaptic signal and its own state. The membrane potential value of each bionic neuron in the driving layer after the state is updated generates its own output value through a nonlinear activation function, and the code corresponding to the bionic neuron with the largest output value is output to the text output module;
[0032] Step 3, the text output module receives the code and finds the letter corresponding to the code through decoding according to the preset coding rules. The voice input corresponds to multiple vectors that can be recognized as letters after feature extraction and segmentation, thereby obtaining a speech recognition result in the form of a letter sequence. The letter sequence is the text recognition result corresponding to the input voice file.
[0033] Furthermore, the step 1) comprises the following steps:
[0034] Step 1.1), input audio codec
[0035] The voice is recorded by a recording device to realize the conversion from analog signal to digital signal, and is sampled at a fixed sampling rate of a single channel and stored in a set format. This file is the time domain quantization result of the sound, and each sampling result in the time domain is the amplitude in the sampling interval;
[0036] Step 1.2), spectrum generation
[0037] The time domain quantization result is divided into several subsequences, and Fourier transform is performed on each subsequence. The subsequences partially overlap to obtain a spectrum sequence with time characteristics. Each spectrum sequence corresponds to the pronunciation characteristics of a letter.
[0038] Step 1.3), feature extraction
[0039] For each spectrum sequence in step 1.2), local features are extracted by a two-layer convolutional neural network, and data redundancy is reduced and key information is extracted by convolution of multiple two-dimensional convolution kernels, so that the concatenated feature vectors constitute the feature vector sequence.
[0040] Furthermore, the step 2) comprises the following steps:
[0041] Step 2.1), receive the feature vector sequence
[0042] Each component of the feature vector is input to the corresponding bionic neuron of the perception layer as the initial state of each bionic neuron. The perception layer transmits inhibitory signals or excitation signals to the relay layer through sparse synapses of two polarities, and updates the state of each bionic neuron in the relay layer according to the strength of the synapse and the signal type. When the signal is transmitted to the relay layer, the perception layer continues to receive the feature vector and uses iterative calculation to complete the pipeline recognition mechanism.
[0043] Step 2.2), transit layer transfer
[0044] The bionic neurons in the transfer layer receive two kinds of signals. The excitation signal increases the membrane potential of the bionic neurons, and the inhibition signal reduces the membrane potential of the bionic neurons. In the process of signal transmission, the synapse between the two bionic neurons maintains a transmission threshold and synaptic weight. When the membrane potential of the source bionic neuron on the positive polarity synapse is higher than the transmission threshold, the signal strength will be enhanced. When the membrane potential of the source bionic neuron on the negative polarity synapse is lower than the transmission threshold, the signal strength will be enhanced. That is, the signal strength is jointly affected by the synaptic weight and polarity, and the membrane potential of the source bionic neuron. It is finally transmitted to the bionic neurons in the control layer to change its membrane potential through the differential equation corresponding to the membrane potential. While the bionic neurons in the transfer layer update the membrane potential, the perception layer continues to receive new feature vectors. In each subsequent calculation iteration, each layer of the bionic neural network receives the signal or feature vector input of the previous layer after the signal is transmitted to the next layer, and updates it at the same time, so as to simulate the basic operation mechanism of the biological nervous system.
[0045] Step 2.3), control layer loop
[0046] The control layer updates the membrane potential of each bionic neuron through the excitation signal and inhibition signal of the relay layer. In addition to receiving the signal from the relay layer, it also receives the signal output generated by the control layer in the previous time interval. The two are superimposed and added to the membrane potential of each target neuron to produce an effect. The excitation signal and inhibition signal are continuously transmitted to the driving layer through the synapse. After the signal is transmitted, it continues to receive the new signal transmitted by the relay layer and updates its own membrane potential.
[0047] Step 2.4), driver layer output
[0048] The bionic neurons in the driving layer receive the signals from the control layer and superimpose them on their own membrane potential, and then update their own membrane potential. The membrane potentials of the bionic neurons in the driving layer are converted into probability values as the quantized values of the state through a nonlinear activation function and output. After each feature vector is input into the code sequence translation module, the code of the bionic neuron with the largest probability value is selected as the output, and the codes are connected to obtain the digital code sequence.
[0049] Step 2.5), decode output
[0050] When constructing the driving layer bionic neurons, codes are used to correspond to the basic letters of the speech to be recognized. For example, in English speech recognition, codes 1 to 26 can represent letters a to z, and the code 0 for blank characters is reserved. The codes are used to correspond to each driving layer bionic neuron respectively. The code of the neuron with the largest probability value in step 2.4) is the code of a letter decided by the code sequence module to recognize an input feature vector, and the letter recognized by a feature vector is decoded through the preset letter coding rules.
[0051] Step 2.6), loop calculation
[0052] After each layer of the bionic neural network passes the signal to the next layer, it will receive new input (feature vector or synaptic signal) and update itself at the same time when the next layer is updated, returning to step 2.1), that is, the transmission-update is carried out synchronously in all layers until all feature vectors are output, and the letters output in sequence form a sequence, which is the text corresponding to the speech recognition.
[0053] Compared with the existing speech recognition system and method, the beneficial effects of the present invention are:
[0054] 1. The neural network structure of this method has a simpler structure than the second-generation artificial neural network, can realize basic decision-making functions, and has strong anti-interference ability.
[0055] 2. The neural network of this method generates different pulse sequences for different modes of input. The theory of cognitive science and neuroscience can be studied and verified by constructing a bionic neural network to learn specific tasks and combining it with the means of numerical detection of intermediate processes. It has a certain explainability for the decision-making mechanism of different tasks.
[0056] 3. This method is a concrete manifestation of pulse neural network in voice assistance system by constructing a four-layer bionic neural network architecture and bionic neurons. Compared with other technologies in the current period, the working principle of this method is closer to the functional principle of nerve cells in biology, with a higher degree of simulation, and has cutting-edge multidisciplinary theoretical support, and has more development potential in the field of artificial intelligence.
[0057] 4. The number of neurons used is greatly reduced, which greatly saves energy. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 This is a principle block diagram of the present invention.
[0059] Figure 2 Schematic diagram of Fourier transform.
[0060] Figure 3 Schematic diagram of convolutional neural network.
[0061] Figure 4 Schematic diagram of the bionic neural network structure.
[0062] Figure 5 Updated diagrams for spike signaling and neuronal states.
[0063] Figure 6 This is a schematic diagram of output decoding. DETAILED DESCRIPTION
[0064] The following describes the implementation of the present invention in detail with reference to the accompanying drawings and examples. This implementation case describes in detail an example of a specific implementation of a speech recognition system based on a bionic neural network when receiving a speech recognition training set TIMIT.
[0065] TIMIT is an English speech recognition dataset, which includes an audio file of the speech and a text record corresponding to the speech (correct recognition result). The basic characters are 26 English letters and a terminal symbol. In this case, the present invention recognizes letters as units.
[0066] refer to Figure 1 , a speech recognition model is created by the speech recognition system construction method described in this patent, using a structure of two layers of convolutional neural network and four layers of bionic neural network stacking, including:
[0067] The speech perception module corresponds to the analog-to-digital conversion and the first two layers of neurons. It receives the formatted speech file (.wav format), divides the speech file into different windows according to the time dimension, and generates a spectrum sequence corresponding to the different split windows through Fourier transformation of the audio of each window. Each split window of the sampled sound generates its own spectrum, and there is partial overlap between each split window, so that each adjacent spectrum also has partial overlap. The spectrum sequence is a vector sequence, and each vector is an expanded representation of the spectrum; each vector of the vector sequence will pass through two convolution layers, both of which are two-dimensional convolution layers, and their activation function is set to the Relu function. The function of the convolution layer is to extract the digital features of the local waveform of the spectrum of the input vector, and each vector is transformed into a feature vector and passed to the code sequence translation module;
[0068] The code sequence translation module corresponds to the third to sixth layers of bionic neurons, which are the perception layer, transfer layer, control layer and drive layer respectively. The four neural layers are responsible for receiving the output of the feature extraction of the pre-model, feature escape, preservation of self-loop timing information, and decision-making. The synapses (connections) between bionic neurons are created through a specific mathematical model. The synapses change the state of bionic neurons through asynchronous signal transmission and bipolar signal transmission. The driver layer neurons output the translated vector with probabilistic meaning according to their own state through the activation function and pass it to the text output module. In the bionic neural network established in this case, the number of perception neurons is the same as the dimension of the feature vector. The transfer layer includes 32 transfer neurons, the command layer includes 8 command neurons, and finally there are 27 drive neurons (corresponding to 26 letters and terminal symbols).
[0069] The text output module decodes the digital sequence according to the input probability distribution vector with a specific encoded inverse mapping to generate the target string for speech recognition.
[0070] refer to Figure 2In speech analysis problems, the received speech data is often distributed in the time domain. The horizontal axis represents time, and the vertical axis represents the amplitude obtained by sampling. This kind of data is often continuous in waveform and uncertain in shape, which hinders the extraction of voiceprint features. The Fourier transform converts the continuous waveform in the time domain into discrete data in the frequency domain, which makes it easier for artificial neural networks to learn the digital features of various pronunciations. The time domain data of a whole segment of speech is divided into several subsequences, and the data in each time interval is Fourier transformed to obtain a series of spectrum sequences with time significance. The sequence is suitable for learning models such as recurrent neural networks that model time, and is also easier to be extracted by the bionic network in the present invention. In this case, the audio of the speech file is segmented in the time dimension, and then the audio in each time interval is Fourier transformed to form a spectrum sequence in the time domain, which is more conducive to learning and recognition by the speech recognition system. For the sound input file in this case, the window length is set to 256, the step length of each window sliding is 160, and the length of the Fourier transform is 384, and the length unit is the number of samples.
[0071] refer to Figure 3 , the data volume of the spectrum sequence is still large, and in most cases in daily speech, context association will not occur at a distance of more than three words. In order to reduce the amount of data, a two-layer convolutional neural network is used to extract features and compress information on the spectrum sequence. It can be considered as extracting the features of various consonants and vowels multiple times, and memorizing their common combinations, so as to correspond to common speech. For this case, the phonemes in English pronunciation are learned, that is, some of the most critical parts of the characteristics, and the input spectrum is compressed and locally matched, which is conducive to the subsequent matching and recognition of the input spectrum with the spectrum of each phoneme. In this case, the first layer is a convolutional layer composed of 32 convolutional kernels with a size of (11,41) and a stride of (2,2), and the second layer is a convolutional layer composed of 32 convolutional kernels with a size of (11,21) and a stride of (2,2).
[0072] refer to Figure 4The perception layer of the bionic neural network receives the compressed spectrum features, transmits the inhibitory signal or the excitation signal to the next layer through the sparse two-polarity synapses, and updates the state (membrane potential) of the target neuron according to the strength of the synapse and the signal type. Different time constants within the same calculation iteration interval ensure the asynchrony of signal transmission; the signal is output to the driving layer through the forward transmission of the relay layer and the loop transmission and forward transmission of the control layer. After the input of a feature vector, the driving layer updates the state of all bionic neurons similar to the first three layers through the influence of the synaptic signal and its own state; when the signal is transmitted to the next layer, the membrane potential of the next layer is changed through the signal input, and at the same time, the neurons in this layer receive the previous signal. The signal of the layer is transmitted, and the corresponding differential equation is used to update the state of all bionic neurons after the signal is transmitted. Therefore, the whole network will be in a cyclic calculation process of transmitting signals and updating and settling the state after signal transmission until all input vectors are recognized as outputs; the states of the neurons in each driving layer are quantized and correspond to the confidence levels (probabilities) of the text letters recognized as different codes, and are arranged into a vector with each dimensional component as a probability value. The letter corresponding to the dimension with the highest confidence level is selected as the recognition result of one input. After feature segmentation and extraction, the voice input corresponds to multiple vectors that can be recognized as letters, thereby obtaining a speech recognition result in the form of a letter sequence.
[0073] refer to Figure 4 and Figure 5 A synapse between two adjacent layers will affect the state of the source neuron i and the state of the target neuron j at the same time. First, the target neuron receives the excitatory or inhibitory signals on all synapses, and then changes its own state according to the membrane potential equation. Then the source neuron of the synapse will receive the new input and update its own state according to the differential equation of the bionic neuron mentioned above. Such calculation iterations are performed at both ends of all synapses to continuously obtain the output of the driving neuron.
[0074] refer to Figure 4 and Figure 6, the state quantization values of all driver layer neurons will be processed by a normalization function (such as a softmax function) and mapped to a value representing the degree of confidence. The number of the neuron with the largest value after mapping is taken, and the pre-designed letter code is queried to find the corresponding letter (there may be blanks) and add it to the current letter sequence. The driver layer will continue to give output until the speech processing is completed, and the final letter sequence corresponds to the text result of speech recognition. In this case, each dimension of the output 27-dimensional vector corresponds to the probability that the feature vector of this input is recognized as a letter of that dimension, such as (0.95, 0, 0.01, ···, 0.04). The letter corresponding to the dimension of the largest component 0.95 in the vector is a, which means that the feature vector of this input is most likely a for the system. Therefore, a is output to the text sequence, and the text sequence of the speech recognition result is obtained by recognizing letters one by one.
[0075] The above is only a preferred embodiment of the present invention, and the present invention should not be limited to the contents disclosed in the embodiment and the drawings. Any equivalent or modification completed without departing from the spirit disclosed in the present invention shall fall within the scope of protection of the present invention.
Claims
1. Speech recognition system based on bionic neural network, It is characterized in that include: The speech perception module receives speech input to form a code, generates a time-division spectrum through Fourier transform, and then uses a convolutional neural network to extract the digital features of the local waveform to obtain a feature vector sequence; The code sequence translation module is a bionic neural network composed of four layers of bionic neurons, namely, a perception layer, a transfer layer, a control layer and a drive layer. The perception layer receives the feature vector sequence output by the speech perception module, the transfer layer performs feature escape, the control layer performs storage and decision-making of self-circulating timing information, the bionic neural network creates bionic neurons and establishes synapses between bionic neurons, the synapses change the state of bionic neurons through asynchronous signal transmission and bipolar signal transmission, the update of the state of bionic neurons corresponds to the processing of information, and the drive layer outputs a digital code sequence representing letters according to its own state; wherein, the bionic neurons use membrane potential to represent the state, use ordinary differential equations to update the state, and the equation parameters are nonlinear time-varying characteristics. The bionic neuron state is updated by the current state and the influence of the input synapse. The synapse between bionic neurons is designed to imitate the synapse of the biological nervous system. The synapse and synapse polarity from the source bionic neuron to the target bionic neuron are generated according to the probability distribution. The weight and polarity of the synapse will directly affect the state update of the corresponding connected bionic neuron. The positive polarity synapse will increase the membrane potential of the target bionic neuron, that is, the quantitative value of the state increases, and the negative polarity synapse will decrease the membrane potential of the target bionic neuron, that is, the quantitative value of the state decreases. The strength of the synapse reflects the influence of the synapse on the membrane potential of the bionic neuron. The real-time membrane potential of the bionic neuron itself has a negative feedback change over time, and the neuron has a tendency to recover to the resting potential. The text output module receives the digital code sequence, generates a letter sequence through a preset code inverse mapping, and obtains a target text result of speech recognition.
2. According to the speech recognition system based on bionic neural network of claim 1, It is characterized in that The speech perception module includes an analog-to-digital conversion unit, a sequence segmentation unit, a Fourier transform unit and a convolutional neural network; The analog-to-digital conversion unit converts the voice input into a digital signal, and stores it as a time-domain quantized file of the voice through monophonic fixed sampling rate sampling; The sequence segmentation unit divides the time-domain quantization file into a plurality of subsequences, each of which has a partial overlap; The Fourier transform unit performs Fourier transform on each subsequence to obtain a time-division spectrum sequence with time characteristics, each time-division spectrum sequence corresponds to a pronunciation feature of a letter; The convolutional neural network has two layers, each layer includes multiple two-dimensional convolution kernels, all of which are passed forward to the next layer using a nonlinear activation function. Each time-division spectrum sequence passes through a two-layer convolutional neural network to extract the digital features of the local waveform, and the digital features are spliced to obtain a feature vector sequence.
3. According to the speech recognition system based on bionic neural network as claimed in claim 1, It is characterized in that The mathematical formula of the state equation corresponding to the bionic neuron is as follows: Among them, V j and V i They correspond to the states of the source bionic neuron and the target bionic neuron, i.e., membrane potential; τ i is the time constant of the target bionic neuron, which is defined as follows: represents the membrane capacitance of the target bionic neuron, is the membrane conductance of the target bionic neuron, w ij The corresponding synaptic weight, τ i The difference in values on different bionic neurons ensures different update levels in the same computational iteration, thus achieving the asynchrony of the bionic neuron membrane potential update; σ i (V j ) is the signal transmission coefficient on the synapse, which represents the synaptic connectivity. As a signal factor, it affects the signal transmission efficiency and is positively correlated with the signal strength. i (V j ) is defined as follows: γ ij is the polarity coefficient of the synapse, its positive and negative represent the polarity of the synapse, corresponding to the positive and negative of the synaptic weight, μ ij Corresponding to the transmission threshold, σ i (V j ) shows the effect of the membrane potential of the source bionic neuron on the signal strength, which indirectly affects the membrane potential update of the target bionic neuron by acting as a nonlinear factor of signal strength; is the resting potential of the target neuron, and the time constant τ i The fraction of E reflects the trend of the target bionic neuron to recover to the resting potential. ij is the opposite number of the relative potential between the two ends of the synapse, w ij σ i (V j )E ij It represents the signal propagated on the corresponding synapse. After being transmitted to the target bionic neuron, it is both a part of the negative feedback update coefficient of its membrane potential and a part of the direct linear superposition of its membrane potential in the state change equation of the target bionic neuron.
4. According to the speech recognition system based on bionic neural network as claimed in claim 3, It is characterized in that The number of bionic neurons in the perception layer is equal to the length of the feature vector sequence; the transfer layer includes N i bionic neurons; the control layer includes N c bionic neurons; the driving layer contains N m bionic neurons, where N m -1 is the length of the basic alphabet of the language in the recognition problem, and another bionic neuron represents the end symbol. The N of the driving layer m The output values of the bionic neurons are arranged in sequence to form a vector. The magnitude of each component of the vector corresponds to the probability that a feature vector in the feature vector sequence received by the code sequence translation module is recognized as the letter corresponding to each bionic neuron. The code corresponding to the bionic neuron corresponding to the largest component of the vector is the basic unit of the code sequence received by the text output module. Sparse synaptic connections are established between two adjacent layers. The establishment and polarity of the synapses are random. The signals are asynchronously transmitted to the next layer of bionic neurons through forward transmission. In addition to the synapses between adjacent layers, synaptic connections from the control layer to the control layer are also included, that is, a self-loop protruding structure, which is used to realize the accumulation of historical information and reflect its memory. The synapse creation rules are as follows: 1)N s 、N i 、N c 、N m The number of bionic neurons corresponding to the perception layer, transfer layer, command layer and drive layer is respectively inserted into n for all adjacent layers and all source bionic neurons. s-t The number of synapses is n s-t target bionic neurons, n s-t ≤N t , N t is the number of bionic neurons in the next layer, and the random selection of target bionic neurons follows n s-t Sub-binomial distribution, the polarity selection of synapses satisfies Bernoulli distribution; 2) In any two adjacent layers, for all target bionic neurons that have no synaptic inputs connected in 1), calculate the average number of synapses L received by each bionic neuron in the layer where the target bionic neuron is located, and calculate the average number of synapses L received by each bionic neuron from the upper layer through m s-t Subbinomial distribution, randomly select m s-t The source bionic neuron and the target bionic neuron establish synapses, m s-t ≤L, synaptic polarity is initialized using Bernoulli distribution; 3) For all bionic neurons in the control layer, insert l s-t synapses, l s-t ≤N c , the corresponding target bionic neuron is s-t A sub-binomial distribution is randomly selected from the control layer, and the polarity of each synapse is initialized using a Bernoulli distribution.
5. A speech recognition method based on the speech recognition system based on bionic neural network according to claim 1, It is characterized in that The steps include: Step 1: The audio perception module receives speech input and obtains a corresponding feature vector sequence; Step 2, the perception layer of the code sequence translation module receives the feature vector sequence, and the synapse updates the state of the bionic neuron through asynchronous signal transmission and bipolar signal transmission. Different update actions within the same calculation iteration interval ensure the asynchrony of signal transmission. The signal is output to the driving layer through forward transmission of the relay layer and loop transmission and forward transmission of the control layer. In each of the above signal transmission processes, all the bionic neurons in the layer receiving the synaptic signal are updated according to the influence of the synaptic signal and its own state. The membrane potential value of each bionic neuron in the driving layer after the state is updated generates its own output value through a nonlinear activation function, and the code corresponding to the bionic neuron with the largest output value is output to the text output module; Step 3, the text output module receives the code and finds the letter corresponding to the code through decoding according to the preset coding rules. The voice input corresponds to multiple vectors that can be recognized as letters after feature extraction and segmentation, thereby obtaining a speech recognition result in the form of a letter sequence. The letter sequence is the text recognition result corresponding to the input voice file.
6. The speech recognition method according to claim 5, It is characterized in that The step 1) comprises the following steps: Step 1.1), input audio codec The voice is recorded by a recording device to realize the conversion from analog signal to digital signal, and is sampled at a fixed sampling rate of a single channel and stored in a set format. This file is the time domain quantization result of the sound, and each sampling result in the time domain is the amplitude in the sampling interval; Step 1.2), spectrum generation The time domain quantization result is divided into several subsequences, and Fourier transform is performed on each subsequence. The subsequences partially overlap to obtain a spectrum sequence with time characteristics. Each spectrum sequence corresponds to the pronunciation characteristics of a letter. Step 1.3), feature extraction For each spectrum sequence in step 1.2), local features are extracted by a two-layer convolutional neural network, and data redundancy is reduced and key information is extracted by convolution of multiple two-dimensional convolution kernels, so that the concatenated feature vectors constitute the feature vector sequence.
7. The speech recognition method according to claim 5, It is characterized in that The step 2) comprises the following steps: Step 2.1), receive the feature vector sequence Each component of the feature vector is input to the corresponding bionic neuron of the perception layer as the initial state of each bionic neuron. The perception layer transmits inhibitory signals or excitation signals to the relay layer through sparse synapses of two polarities, and updates the state of each bionic neuron in the relay layer according to the strength of the synapse and the signal type. When the signal is transmitted to the relay layer, the perception layer continues to receive the feature vector and uses iterative calculation to complete the pipeline recognition mechanism. Step 2.2), transit layer transfer The bionic neurons in the transfer layer receive two kinds of signals. The excitation signal increases the membrane potential of the bionic neurons, and the inhibition signal reduces the membrane potential of the bionic neurons. In the process of signal transmission, the synapse between the two bionic neurons maintains a transmission threshold and synaptic weight. When the membrane potential of the source bionic neuron on the positive polarity synapse is higher than the transmission threshold, the signal strength will be enhanced. When the membrane potential of the source bionic neuron on the negative polarity synapse is lower than the transmission threshold, the signal strength will be enhanced. That is, the signal strength is jointly affected by the synaptic weight and polarity, and the membrane potential of the source bionic neuron. It is finally transmitted to the bionic neurons in the control layer to change its membrane potential through the differential equation corresponding to the membrane potential. While the bionic neurons in the transfer layer update the membrane potential, the perception layer continues to receive new feature vectors. In each subsequent calculation iteration, each layer of the bionic neural network receives the signal or feature vector input of the previous layer after the signal is transmitted to the next layer, and updates it at the same time, so as to simulate the basic operation mechanism of the biological nervous system. Step 2.3), control layer loop The control layer updates the membrane potential of each bionic neuron through the excitation signal and inhibition signal of the relay layer. In addition to receiving the signal from the relay layer, it also receives the signal output generated by the control layer in the previous time interval. The two are superimposed and added to the membrane potential of each target neuron to produce an effect. The excitation signal and inhibition signal are continuously transmitted to the driving layer through the synapse. After the signal is transmitted, it continues to receive the new signal transmitted by the relay layer and updates its own membrane potential. Step 2.4), driver layer output The bionic neurons in the driving layer receive the signals from the control layer and superimpose them on their own membrane potential, and then update their own membrane potential. The membrane potentials of the bionic neurons in the driving layer are converted into probability values as the quantized values of the state through a nonlinear activation function and output. After each feature vector is input into the code sequence translation module, the code of the bionic neuron with the largest probability value is selected as the output, and the codes are connected to obtain the digital code sequence.
8. The speech recognition method according to claim 7, It is characterized in that In the step 3), the codes corresponding to the basic letters of the speech to be recognized and the bionic neurons of each driving layer are used, and the codes of the bionic neurons with the largest probability value will be decoded into the recognized letters according to the corresponding rules.
9. The speech recognition method according to claim 7, It is characterized in that After each layer of the bionic neural network passes the signal to the next layer, it will receive new input and update itself at the same time as the next layer is updated. That is, the transfer-update is carried out synchronously in all layers until all feature vectors are output. The letters output in sequence form a sequence, which is the text corresponding to the speech recognition.
Citation Information
Patent Citations
Artificial neural network with side input for language modelling and prediction
CN109478250A
Decoding method, training method and speech recognition apparatus
CN112397058A
Voice recognition method and device, electronic equipment and storage medium
CN113628615A
Voice recognition method based on pulse neural network aggregation label learning
CN113838459A
Recurrent neural network architectures based on synaptic connectivity graphs
US20220188605A1
