Discrete decoding method under guidance of continuous decoding in voice brain-computer interface

By adopting the method of continuous decoding to guide discrete decoding in the speech brain-computer interface, using multi-channel CNN and LSTM to extract features, and dynamically adjusting the loss function, the signal acquisition limitations and error accumulation problems of speech brain-computer interface decoding in the existing technology are solved. Achieved more efficient speech decoding and speech synthesis effects.

CN118571237AActive Publication Date: 2024-08-30ZHEJIANG UNIV

Patent Information

Application Number
CN202410351710.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-08-30
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

Existing speech brain-computer interface technology is limited by the spatiotemporal resolution and signal-to-noise ratio of signal collection, resulting in discrete decoding accumulating errors in speech decoding, missing speech prosody and emotional information, and the decoding effect of the collected intracranial EEG signals is not good. good, limiting its application and research.

Method used

Continuous decoding is used to guide the discrete decoding method, and the spatial, frequency and temporal characteristics of brain signals are extracted through multi-channel 2D-CNN and LSTM, combined with 1D-CNN for dimensionality reduction and classification, the loss function is dynamically adjusted to optimize the decoding model, and the continuous decoding system is used to extract The acoustic features guide discrete decoding and realize transfer training.

Benefits of technology

It improves the performance of discrete decoding, enhances the mapping and decoding accuracy of speech features, provides more natural speech output, and provides adjustment input for subsequent speech synthesis systems, improving the overall decoding effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118571237A
    Figure CN118571237A
Patent Text Reader

Abstract

The invention discloses a discrete decoding method under the guidance of continuous decoding in a voice brain-computer interface based on decoding research of the voice brain-computer interface. According to the method, a deep learning model in which a continuous decoding system and a discrete decoding system coexist is used, information such as a Mel spectrum, a fundamental frequency and an aperiodic signal in continuous decoding acoustic information is trained firstly, then features extracted through continuous decoding are used for conducting instructive and migrated training on discrete decoding, and the acoustic information is obtained. And finally, training of discrete decoding (namely a classification task) is completed. The discrete decoding performance is far higher than that of a pure discrete decoding result, meanwhile, signals such as the fundamental frequency output by trained continuous decoding can serve as adjustment input of a subsequent speech synthesis system based on the discrete decoding result, and the speech synthesis effect of the discrete decoding result is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech brain-computer interface decoding methods, and in particular to a discrete decoding method under the guidance of continuous decoding in a speech brain-computer interface. Background Art

[0002] Many diseases can cause aphasia, and there are about 20 million aphasia patients. Their quality of life is greatly affected, and they may even become depressed. Therefore, it is very important to restore patients' ability to speak through certain technologies and help them improve their quality of life.

[0003] We can extract the corresponding physiological parameters at each level of speech occurrence, and then achieve a certain degree of speech communication through mapping modeling, such as electromyography, lip reading, tongue ultrasound, etc. Among them, the speech brain-computer interface is a device that generates some form of speech output from the user's brain signals.

[0004] There are two types of speech decoding in brain-computer interfaces. One is to classify brain signals and convert them into text, also known as discrete decoding, and the other is to directly synthesize speech from brain signals. Discrete decoding reduces the target feature dimension, and the results can be corrected later using advanced language models. However, errors will accumulate, take a long time, and lack information such as the rhythm, stress, and emotion of the speech itself. On the contrary, the output of continuous feature decoding is more natural and direct.

[0005] At present, the research and application of speech brain-computer interface are subject to many restrictions. 1 Ordinary subjects can only extract non-invasive signals such as EEG and fMRI, and the temporal and spatial resolution of these signals is not high. 2 The acquisition and location of some intracranial EEG signals depend on the patient's treatment needs, rather than the needs of speech decoding research or application, and the decoding effect of the acquired signals is not good. Therefore, more discrete decoding methods are used than continuous decoding. We believe that continuous decoding provides a rich mapping of speech features. Even if it cannot meet the requirements of complete continuous decoding under technical conditions, such as signal-to-noise ratio, resolution or electrode position limitations, this mapping can help discrete decoding improve performance. Based on this assumption, we designed and implemented the solution. Unlike direct discrete decoding, we used continuous decoding to conduct guided transfer training for discrete decoding and compared and analyzed the results. The results proved that our assumptions were correct and reasonable. Summary of the invention

[0006] The present invention provides a discrete decoding method under the guidance of continuous decoding in a speech brain-computer interface.

[0007] A discrete decoding method under the guidance of continuous decoding in a speech brain-computer interface comprises the following steps:

[0008] (1) After preprocessing the brain activity signal, a time series set C*F*T of different channels and different frequency bands is obtained and input into a decoding model, wherein the decoding model includes a continuous decoding module and a discrete decoding module arranged in sequence;

[0009] Among them, C is the number of brain signal channels, generally the number of electrodes; F is the different frequency bands; T is the duration.

[0010] (2) The continuous decoding module uses a multi-channel 2D-CNN network to extract the spatial and frequency features of the input time series set C*F*T, and then uses LSTM to extract the temporal features, and maps the spatial, frequency and temporal features to the acoustic features of the audio;

[0011] (3) The discrete decoding module uses the 1D-CNN network to reduce the dimension of the spatial features, frequency features, and time series features extracted in step (2), and then maps the reduced-dimensional features to classification categories to obtain the classification results;

[0012] (4) Calculate the difference Vc between the audio acoustic features output in step (2) and the actual audio acoustic features, and the difference Vd between the classification result output in step (3) and the actual classification, set the loss function L of the decoding model, L is a linear combination of Vc and Vd, and dynamically change the Vc weight coefficient λc and the Vd weight coefficient λd, adjust the loss function, update the network parameters of the decoding model, and obtain the optimized decoding model;

[0013] (5) Input the brain activity signal into the optimized decoding model and output language text.

[0014] In step (1), the brain activity signal preprocessing specifically includes:

[0015] The brain activity signals obtained from multiple locations include spatial information and temporal information. The single time series of the brain activity signals at each location is expanded into a multi-band time series through wavelet decomposition, and frequency information is added on the basis of the spatial and temporal information of the brain activity signals.

[0016] The multi-band expansion improves the signal-to-noise ratio of signals in different frequency bands, making it easier for the convolution module to extract the corresponding frequency band features, thereby improving the feature extraction capability of the entire model.

[0017] In step (2), the acoustic features of the audio include Mel spectrum features, fundamental frequency features and non-periodic signal features. Mel spectrum features, fundamental frequency features and non-periodic signal features represent the basic acoustic features of speech: Mel spectrum expresses the changes of different frequency signals of sound over time from the time-frequency domain; fundamental frequency expresses the pitch and contains the rhythm and structural information of speech; non-periodic signal reflects the degree of voiced and unvoiced sound. These three features basically characterize the audio, can express the audio in a relatively comprehensive but general way, and can also conveniently provide sound synthesis input for some vocoders, such as the vocoder WORLD.

[0018] In step (3), the 1D-CNN network includes: three one-dimensional convolution modules connected in sequence, and the one-dimensional convolution module includes a convolution layer and a pooling layer connected in sequence. Because the amount of data used in speech decoding is generally small, considering the model complexity and overfitting problems, an overly complex structure is not adopted, but three connected one-dimensional convolution modules are used to reduce and simplify the features in the time dimension.

[0019] In step (4), the Vc weight coefficient λc and the Vd weight coefficient λd are dynamically changed to adjust the loss function and update the network parameters of the decoding model, specifically including:

[0020] In the first stage, the Vd weight coefficient λd takes the first segment of the S-type saturation function, and the control size is less than 0.02. The Vc weight coefficient λc=1-λd, and the control size is greater than 0.98. The continuous decoding module adjusts its own module parameters through the loss function L, and completes the maximum extraction of spatial features, frequency features and temporal features in the first stage;

[0021] In the second stage, the Vd weight coefficient λd takes the second segment of the S-type saturation function, λd increases, λc decreases, and the spatial features, frequency features, and temporal features obtained by the continuous decoding module guide the training of the discrete decoding module;

[0022] In the third stage, the Vd weight coefficient λd takes the third segment of the S-type saturation function, λd is greater than 0.98, λc is less than 0.02, the discrete decoding module is self-trained, the fine-tuning of the entire model is completed, and the network parameters of the entire decoding model are updated through the loss function.

[0023] The implementation of the three stages can achieve three goals: 1) continuous decoding fully learns feature expression; 2) continuous decoding guides discrete decoding, and this role is to smoothly transition between guidance and self-learning; 3) discrete decoding fully absorbs learning effects, and self-learning completes the transformation of learning experience. The three-stage implementation is automatically realized through the S-type saturation function, without manual intervention and operation.

[0024] The S-type saturation function is a sigmoid function.

[0025] Compared with the prior art, the present invention has the following advantages:

[0026] The present invention uses a deep learning model in which a continuous decoding system and a discrete decoding system coexist. First, the mel spectrum, fundamental frequency, and non-periodic signal information in the continuous decoding acoustic information are trained. Then, the features extracted by continuous decoding are used to guide and transfer the discrete decoding, and finally the training of discrete decoding (that is, the classification task) is completed. Such discrete decoding performance is much higher than the simple discrete decoding result. At the same time, the fundamental frequency and other signals output by the trained continuous decoding can be used as the adjustment input of the subsequent speech synthesis system based on the discrete decoding result, enhancing the speech synthesis effect of the discrete decoding result. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A discrete decoding model framework guided by continuous decoding;

[0028] Figure 2 The graph of the original sigmoid function and the graph corresponding to the function after parameter modification;

[0029] Figure 3 For the prediction result statistics, Figure A is the confusion matrix of the classification results of the discrete module training decoding alone (represented by "D"); Figure B is the confusion matrix of the classification results of the discrete decoding module under the guidance of continuous decoding (represented by "C"; the circle on the left of Figure C represents the number of correctly decoded samples of C, and the circle on the right represents the number of correctly decoded samples of D, and the middle is the number of correct samples of both. (In the figure, C represents discrete decoding guided by continuous decoding, and D represents separate discrete decoding).

[0030] Figure 4 Comparison of predicted probability and correct category distribution (in the figure, C represents discrete decoding guided by continuous decoding, and D represents discrete decoding alone). DETAILED DESCRIPTION

[0031] The discrete decoding method under the guidance of continuous decoding in the speech brain-computer interface is implemented by the following steps:

[0032] (1) After preprocessing, the brain activity signal is input into the decoding model in the form of a time series set C*F*T (C is the number of brain signal channels, generally the number of electrodes; F is the different frequency bands; T is the duration) with different channels and frequency bands;

[0033] (2) The continuous decoding module uses a multi-channel 2D-CNN network to extract the spatial and frequency features of the input brain activity signal, and then uses LSTM to extract the temporal features, and then maps the extracted features to the acoustic features of the audio (Mel spectrum features, fundamental frequency features, non-periodic signal features, etc.);

[0034] (3) The discrete decoding module uses a 1D-CNN network (including a pooling layer) to simplify and reduce the dimension of the features extracted in step (2), and then maps the simplified features to classification categories;

[0035] (4) First, train the continuous decoding module to ensure that the feature extraction module extracts acoustic features to the maximum extent; then start the discrete decoding training, and gradually increase the weight of discrete decoding, and correspondingly reduce the continuous decoding training weight. This process is the process of continuous decoding guiding discrete decoding training, and it is also the process of model migration from continuous decoding to discrete decoding. Finally, discrete decoding self-training completes the fine-tuning of the entire model.

[0036] (5) Input the brain activity signal into the optimized decoding model and output language text.

[0037] In the preprocessing process of step (1), a single time series is expanded into a multi-band time series by wavelet decomposition, and frequency information is added to the original spatial and temporal information of the brain activity signal, thereby enriching the information dimension of the input signal. In addition to the wavelet decomposition method, Hilbert transform, multi-taper method (MTM method) and other methods can also be used to expand the frequency information of the signal.

[0038] In the step (2), multi-dimensional features of the input signal are extracted by multi-channel 2D-CNN plus LSTM.

[0039] In the step (2), the acoustic features including the mel spectrum, fundamental frequency, and non-periodic signal are continuously decoded. The various acoustic features are helpful for the feature extraction of the multi-dimensional brain activity signal in step (2). The acoustic features that can be used also include envelope, phonation mode (plosive sound, side stream sound, etc.), phonation position (lip, lip-teeth, teeth, etc.), tone, etc.

[0040] In the step (3), the features are simplified and dimensionally reduced through 1D-CNN+pooling layer.

[0041] In step (4), the continuous decoding task is trained first, then the discrete decoding task training is guided, and the task migration is gradually performed, and finally the discrete decoding self-training completes the classification task, which is a coexistence, guidance, and migration-type thinking and training method. The whole process can use sigmoid (but not limited to sigmoid) gradient function to design and plan the steps.

[0042] The model form of the coexistence of discrete decoding and continuous decoding described in steps (2), (3), (4), and (5) (the feature reduction module of discrete decoding can also be after the output of 2D-CNN). The coexistence model not only allows continuous decoding to guide discrete decoding to complete classification, but also retains the ability of continuous decoding. Its output can also serve as supplementary information for subsequent discrete decoding result speech synthesis.

[0043] 1 As Figure 1 As shown in the figure, a model framework for the coexistence of continuous decoding and discrete decoding is constructed. It is divided into three parts: 1) basic feature extraction, including spatial feature extraction, frequency feature extraction, and temporal feature extraction; 2) mapping of acoustic features; 3) discrete decoding feature extraction (feature reduction) and mapping to text.

[0044] 2 During the specific implementation, the acoustic features are first fitted (continuous decoding).

[0045] 2.1 Extract spatial and frequency features from the preprocessed brain activity signal input (the signal is a multi-dimensional time series, each dimension corresponds to a spatial position). In our implementation, we used 2D convolution. Depending on the spatial position characteristics, other forms of spatial feature extraction can also be used, such as 3D convolution or 1D convolution.

[0046] 2.2 Extract the temporal features of the sequence after the spatial features and frequency features are extracted. LSTM is used in our implementation.

[0047] 2.3 Acoustic Feature Mapping

[0048] 3 Then, when the continuous decoding training is basically completed, the discrete decoding training is started. In our implementation, the sigmoid function is used to plan the entire training process (see Formula 1 for the sigmoid function).

[0049]

[0050] Change the parameters of formula 1 to

[0051]

[0052] The original sigmoid function and the function after changing parameters are as follows Figure 2 shown.

[0053] We let x be the training round, and f(x) be the weight coefficient λd of the difference Vd between the predicted classification result and the actual classification in the model loss function L. The total number of training rounds is 100. At about round x=40, continuous decoding is started to guide the training of discrete decoding. Then after about 20 rounds, it basically becomes complete discrete decoding. The planning function can also be other similar functions, such as Logistic, Tanh, arctan and other functions.

[0054] 4 Guidance and transferability depend on the intermediate change process. Shortening the change process means shortening the guidance process, which is closer to transfer learning in the ordinary sense. The purpose of the guidance process is to preserve the feature space of the "teacher" - continuous decoding to a greater extent, and provide more detailed feature selection for the "student" - discrete decoding.

[0055] 5 In this framework, continuous training can also be trained together with discrete training.

[0056] 6 From our implementation example, we can see that the guided training of continuous decoding provides help for discrete decoding, and the performance is much better than that of discrete decoding alone. Our implementation example is the prediction of 15 letters and numbers, with a total of 550 samples. Figure 3 As shown in Figure 1, Figure A is the confusion matrix of the classification results of the discrete module training decoding alone (denoted by "D"); Figure B is the confusion matrix of the classification results of the discrete decoding module (denoted by "C") under the guidance of continuous decoding; the circle on the left of Figure C represents the number of correctly decoded samples of C, the circle on the right represents the number of correctly decoded samples of D, and the middle is the number of correctly decoded samples of both. In terms of quantity, the number of T has increased.

[0057] like Figure 4 As shown, the leftmost figure of A) shows the predicted probability distribution of all correctly predicted samples of C and the predicted probability distribution of all correctly predicted samples of D in the 5fold test, as well as their comparison. The middle figure represents the comparison of the predicted probability distribution of samples predicted correctly by both C and D. The right figure represents the comparison of the predicted probability distribution of samples predicted correctly by each of C and D. Figure B) is a 5fold summary of Figure A). Figure C) is the distribution of samples represented by Figure B) in their respective categories. From the discussion of the predicted probability, among the samples in the common part of C and D, the predicted probability of C is generally higher than that of D; among the correct samples of each, the predicted probability of C is also generally higher than that of D, and the number is more than that of D. So in comparison, the final discrete decoding effect of C is better than that of D.

Claims

1. A discrete decoding method under the guidance of continuous decoding in a speech brain-computer interface, characterized in that: The following steps are involved: (1) After preprocessing the brain activity signal, a time series set C*F*T of different channels and different frequency bands is obtained and input into a decoding model, wherein the decoding model includes a continuous decoding module and a discrete decoding module arranged in sequence; Among them, C is the number of brain signal channels; F is the different frequency bands; T is the duration; (2) The continuous decoding module uses a multi-channel 2D-CNN network to extract the spatial and frequency features of the input time series set C*F*T, and then uses LSTM to extract the temporal features, and maps the spatial, frequency and temporal features to the acoustic features of the audio; (3) The discrete decoding module uses the 1D-CNN network to reduce the dimension of the spatial features, frequency features, and time series features extracted in step (2), and then maps the reduced-dimensional features to classification categories to obtain the classification results; (4) Calculate the difference Vc between the audio acoustic features output in step (2) and the actual audio acoustic features, and the difference Vd between the classification result output in step (3) and the actual classification, set the loss function L of the decoding model, L is a linear combination of Vc and Vd, and dynamically change the Vc weight coefficient λc and the Vd weight coefficient λd, adjust the loss function, update the network parameters of the decoding model, and obtain the optimized decoding model; (5) Input the brain activity signal into the optimized decoding model and output language text.

2. The discrete decoding method under the guidance of continuous decoding in the speech brain-computer interface according to claim 1 is characterized in that: In step (1), the brain activity signal preprocessing specifically includes: The brain activity signals obtained from multiple locations include spatial information and temporal information. The single time series of the brain activity signals at each location is expanded into a multi-band time series through wavelet decomposition, and frequency information is added on the basis of the spatial and temporal information of the brain activity signals.

3. The discrete decoding method under the guidance of continuous decoding in the speech brain-computer interface according to claim 1 is characterized in that: In step (2), the acoustic features of the audio include Mel-spectrogram features, fundamental frequency features and non-periodic signal features.

4. The discrete decoding method under the guidance of continuous decoding in the speech brain-computer interface according to claim 1 is characterized in that: In step (3), the 1D-CNN network includes: three one-dimensional convolution modules connected in sequence, and the one-dimensional convolution module includes a convolution layer and a pooling layer connected in sequence.

5. The discrete decoding method under the guidance of continuous decoding in the speech brain-computer interface according to claim 1 is characterized in that: In step (4), the Vc weight coefficient λc and the Vd weight coefficient λd are dynamically changed to adjust the loss function and update the network parameters of the decoding model, specifically including: In the first stage, the Vd weight coefficient λd takes the first segment of the S-type saturation function, and the control size is less than 0.

02. The Vc weight coefficient λc=1-λd, and the control size is greater than 0.

98. The continuous decoding module adjusts its own module parameters through the loss function L, and completes the maximum extraction of spatial features, frequency features and temporal features in the first stage; In the second stage, the Vd weight coefficient λd takes the second segment of the S-type saturation function, λd increases, λc decreases, and the spatial features, frequency features, and temporal features obtained by the continuous decoding module guide the training of the discrete decoding module; In the third stage, the Vd weight coefficient λd takes the third segment of the S-type saturation function, λd is greater than 0.98, λc is less than 0.02, the discrete decoding module is self-trained, the fine-tuning of the entire model is completed, and the network parameters of the entire decoding model are updated through the loss function.

6. The discrete decoding method under the guidance of continuous decoding in the speech brain-computer interface according to claim 5 is characterized in that: The S-type saturation function is a sigmoid function.

Citation Information

Patent Citations

  • Method for controlling animal robot to turn on basis of ventral posterior medial nucleus electrical stimulation

    CN104679028A

  • Microphone array-oriented channel attention weighted speech enhancement method

    CN112151059A

  • Smart campus speech recognition method based on deep learning

    CN114550706A

  • Electroencephalogram signal voice decoding method based on generative adversarial network

    CN116364096A

  • Electroencephalogram signal sounding detection method based on convolutional sequential network

    CN117688372A

Cited By

  • Language decoding method and device based on electroencephalogram signals and electronic equipment

    CN121905152A