Multi-task speech emotion recognition method and device and storage medium
Through multi-task learning and information bottleneck technology, combined with the temporal multi-granularity perception module and attention mechanism, the problem of dimensional disaster and redundant information in speech emotion recognition is solved, the recognition efficiency and accuracy are improved, and speaker and gender differences are alleviated. The influence enhances the discriminative ability of speech emotion recognition.
Patent Information
- Application Number
- CN202411028482.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-07-30
AI Technical Summary
Existing speech emotion recognition technology faces the problems of dimensionality disaster and too much redundant information, resulting in limited recognition efficiency and accuracy, especially because speaker and gender differences have a greater impact on emotion recognition.
Using a multi-task learning strategy, speaker identification and gender identification are used as auxiliary tasks, and the minimum sufficient feature embedding is extracted through information bottlenecks and time multi-granularity perception modules, combined with an attention mechanism to reduce the impact of speaker and gender differences, and through perceptual aggregation The module aggregates features and feeds them into the classifier for prediction.
It effectively reduces the redundant information in speech emotion embedding, improves the accuracy and efficiency of emotion recognition, reduces the impact of speaker and gender on emotion recognition, and enhances the discriminative ability of the model.
Smart Images

Figure CN118553271A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech processing technology, and in particular to a multi-task speech emotion recognition method, device and storage medium. Background Art
[0002] Emotion recognition is a research field that studies how humans analyze emotions from different biometrics such as facial expressions and body features, which is crucial for affective computing. Among these biometrics, speech is one of the most widely used forms of human communication, which not only conveys explicit language content but also conveys implicit emotional information of the speaker. Therefore, SER (Speech Emotion Recognition) is an important direction of emotion recognition research. Although SER has made great achievements in recent years, it still faces great challenges due to the complexity of speech. The development of speech emotion recognition has not yet found the best features for emotion classification, and extracting speech features related to emotion is still a direction worth studying. In the early days, the extraction of speech emotion features mainly focused on pre-sound features and spectrum-related features. In recent years, with the rise of deep learning technology, speech emotion recognition systems have attracted the attention of researchers. Many classic neural networks have been widely used in SER to effectively extract emotional information from speech.
[0003] Deep learning has greatly improved speech emotion recognition. However, most emotion embeddings obtained by the model are designed to fully represent the input features. Although these methods are effective, they are very complex, and the generated high-dimensional multi-feature embeddings often contain redundant information that is irrelevant to emotion. Therefore, there are two problems with existing neural network models: the curse of dimensionality and too much redundant information. Researchers have made great efforts to solve the problem of the curse of dimensionality. For example, the autoencoder neural network is applied to extract bottleneck features to reduce the dimension. Although the introduction of autoencoders can effectively alleviate the problem of the curse of dimensionality, too much redundancy still exists. In order to solve the redundancy problem, researchers often use attention mechanisms to emphasize emotion-related features and propose a directed self-attention mechanism with bidirectional long short-term memory (BLSTM-DSA), which can automatically annotate the weights of speech frames, so as to accurately select frames with emotional information in the time series network. Although the attention mechanism can effectively alleviate redundancy, it cannot completely solve the problem of the curse of dimensionality, and redundant information may still exist in the emotion embedding. Due to the complexity and ambiguity of human emotions themselves, the application of neural network models in SER tasks is still limited.
[0004] Therefore, how to improve the recognition efficiency and accuracy of SER tasks has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art or related technology, discloses a multi-task speech emotion recognition method, device and storage medium, introduces a multi-task strategy, takes speaker recognition and gender recognition as auxiliary tasks, reduces the impact of speaker and gender differences on speech emotion recognition, and thus enhances emotion recognition capability.
[0006] The first aspect of the present invention discloses a multi-task speech emotion recognition method, comprising: receiving speech to be recognized, filtering noise and enhancing the high-frequency part of the speech to be recognized; dividing a continuous speech signal into multiple segments to obtain framed speech; processing the framed speech with a windowing function to obtain windowed speech; extracting Mel-frequency cepstral coefficients and Mel-frequency spectrograms of the windowed speech; extracting speech features of the Mel-frequency spectrograms and Mel-frequency cepstral coefficients based on a neural network model, wherein the speech features include speaker information, gender information and emotion information; based on the multi-granularity of emotion information in speech, capturing emotion information at multi-granularity levels, obtaining fine-grained emotion information, and obtaining feature embedding of emotion information; in the speech emotion recognition task, based on the information bottleneck principle, extracting the minimum sufficient single-task feature embedding, obtaining the feature embedding of speaker information and the feature embedding of gender information, so as to reduce redundant information in the multi-task feature embedding; aggregating the feature embedding of speaker information and the feature embedding of gender information through a perception aggregation module, and combining them with the feature embedding of emotion information, and finally inputting them into a classifier to predict the emotion expressed by the speech to be recognized.
[0007] In this technical solution, irrelevant redundant information in each task embedding is filtered out based on the variational information bottleneck (VIB). In addition, the present invention also uses the minimum sufficient speaker embedding and gender embedding as auxiliary information to reduce the impact of speaker and gender differences on emotion recognition, thereby improving the emotion recognition ability of the model. By introducing the attention mechanism, multi-granularity emotion representations of different time granularities are extracted from speech.
[0008] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, the step of extracting speech features of mel-spectrogram and mel-frequency cepstral coefficients based on the neural network model specifically includes: extracting speech features of mel-frequency cepstral coefficients based on the Res2Net-V model; extracting speech features of mel-spectrogram based on the Res2Net model.
[0009] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, it also includes: after acquiring the speech features, using a long short-term memory network to extract time series features.
[0010] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, it also includes: inputting the feature embedding of speaker information and the feature embedding of gender information into corresponding classifiers respectively to constrain the feature embedding of speaker information and the feature embedding of gender information.
[0011] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, based on the multi-granularity of the emotion information in the speech, the emotion information is captured at the multi-granularity level, the fine-grained emotion information is obtained, and the steps of embedding the feature of the emotion information are specifically included:
[0012] The self-attention mechanism is introduced to focus on the frames containing the most emotional information to form the TMGA-1 layer. The expression of the calculation process is:
[0013]
[0014] The input features are ,in Indicates the frame number. represents the feature dimension, is the softmax activation function, It represents the characteristics after the TMGA-1 layer;
[0015] Two different feature mapping functions are used to obtain Get and ;
[0016] In order to learn the global features of each time unit and reduce the number of required training parameters, a learnable mapping vector is used to compress the features of each time unit into a vector of dimension 1; the formula for this process is as follows:
[0017]
[0018]
[0019] In the formula, and represents a learnable mapping vector; and The product of represents the intrinsic measure of sentiment relevance, since and The input dimension of corresponds to 1, so the scale parameter is still 1, as shown in the following expression:
[0020]
[0021] In the formula, Represents weight.
[0022] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, it also includes:
[0023] The self-attention mechanism is introduced to extract fine-grained sentiment features by calculating the self-attention of windows of different fixed lengths to form a TMGA-n layer. The expression of the calculation process is:
[0024]
[0025] In the formula, is the softmax activation function, Represents the sum of the weights of each frame;
[0026] The TMGA-n layer uses two different convolutional kernels. The convolutional layer is used to obtain on and , as shown in the following formula:
[0027]
[0028]
[0029] In the formula, and is a learnable mapping matrix;
[0030] Weight The calculation formula is as follows:
[0031]
[0032] In the formula, represents weight;
[0033] In order to avoid too many parameters, the maximum pooling method is used from the time length The most significant feature is obtained from the feature set, denoted as ;
[0034] Use average pooling to extract The overall description of the features in a short time can be obtained by focusing on the features of ,Right now:
[0035]
[0036]
[0037] In the formula, and They represent maximum pooling and average pooling respectively.
[0038] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, the windowing function is a Hamming window, and the calculation process is shown in the following formula:
[0039]
[0040] in, Expressed as a window function, Indicates the window size.
[0041] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, the high-frequency part is a speech signal above 800 Hz.
[0042] The second aspect of the present invention discloses a multi-task speech emotion recognition device, comprising: a memory for storing program instructions; a processor for calling the program instructions stored in the memory to implement a multi-task speech emotion recognition method as any of the above technical solutions.
[0043] A third aspect of the present invention discloses a computer-readable storage medium storing a program code, wherein the program code is used to implement a multi-task speech emotion recognition method as described in any of the above technical solutions.
[0044] The beneficial effects of the present invention include at least: the present invention performs multi-task learning based on information bottleneck and time multi-granularity perception to identify the emotion of speech, and solves the redundant information (information irrelevant to emotion) in speech emotion embedding through information bottleneck technology, so that the model can extract more discriminative emotion information. The proposed time multi-granularity perception module is mainly used to extract multi-granularity emotion clues embedded in speech, prevent the loss of information in speech emotion recognition tasks, and combine multi-task learning strategies to reduce the influence of speakers and gender on emotion recognition, which brings certain development to personalized speech emotion recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic flow chart of a multi-task speech emotion recognition method according to an embodiment of the present invention is shown.
[0046] Figure 2 A schematic diagram showing a neural network model architecture of a multi-task speech emotion recognition method according to an embodiment of the present invention
[0047] Figure 3 A schematic diagram of a Res2Net architecture according to an embodiment of the present invention is shown.
[0048] Figure 4 A schematic diagram of a Res2Net-V architecture according to an embodiment of the present invention is shown.
[0049] Figure 5A schematic diagram of the architecture of a time multi-granularity perception module according to an embodiment of the present invention is shown.
[0050] Figure 6 A schematic diagram of the perception aggregation module architecture according to an embodiment of the present invention is shown.
[0051] Figure 7 A schematic block diagram of a multi-task speech emotion recognition device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0052] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0054] The abbreviations of the nouns involved in the present invention include:
[0055] CNN: Convolutional Neural Networks (CNNs) are deep learning models that excel at processing data with grid-like topology structures, such as images. By stacking multiple convolutional layers, CNNs are able to learn simple to complex feature representations, which makes them very effective in tasks such as image classification, object detection, and semantic segmentation.
[0056] RNN: Recurrent Neural Networks (RNNs) are a deep learning model for processing sequence data. Unlike traditional neural networks, RNNs can process sequence data of arbitrary length and can remember previous information, which makes them very effective in processing time series data, natural language processing (NLP) and speech recognition.
[0057] LSTM: Long Short-Term Memory (LSTM) is a special type of recurrent neural network (RNN) designed to solve the vanishing gradient problem encountered by traditional RNNs when processing long sequences of data. LSTMs can learn long-term dependencies by introducing a gating mechanism, which makes them perform well in many sequence modeling tasks, such as language models, machine translation, speech recognition, etc.
[0058] MS: Mel Spectrogram (MS) is a spectrum graph representation method commonly used in audio signal processing. It is particularly suitable for simulating the human ear's perception characteristics of sounds of different frequencies.
[0059] MFCC: (Mel-Frequency Cepstral Coefficients, MFCC) is a commonly used feature extraction method in audio signal processing, especially in the field of speech recognition. MFCC converts audio signals into a series of cepstral coefficients by simulating the auditory characteristics of the human ear. These coefficients can capture the important characteristics of the sound.
[0060] IB: Information Bottleneck (IB) is a concept in information theory that selects which information to keep and which to discard based on its contribution to completing a task. It describes the constraints and limitations encountered when processing information, especially in the fields of data compression and communication. The information bottleneck theory was proposed by Tishby and his students Nadav et al. in the early 2000s to study how to effectively transmit and store information under limited information processing capabilities.
[0061] VIB: Variational Information Bottleneck (VIB) is a learning framework based on information theory that guides the model to strike a balance between feature selection and data representation learning. Its core idea is to achieve data compression by minimizing the mutual information between input data and model representation while retaining task-related information.
[0062] MTVIB: The multi-task variational information bottleneck module proposed in this invention is mainly used to reduce the redundant information irrelevant to each downstream task.
[0063] TMGA: The temporal multi-granularity perception module proposed in the present invention aims to capture emotional information at multiple granularity levels, that is, to capture the emotional information transmitted in different time intervals.
[0064] AAM: The perception aggregation module proposed in this invention is mainly used to filter out valuable information in speaker feature embedding and gender feature embedding for emotion recognition.
[0065] like Figure 1 As shown, according to one embodiment of the present invention, the multi-task speech emotion recognition method disclosed in the present invention includes:
[0066] Step S101, speech enhancement: receiving the speech to be recognized, filtering the noise and enhancing the high frequency part of the speech to be recognized;
[0067] Step S102, speech framing: dividing a continuous speech signal into multiple segments to obtain framed speech;
[0068] Step S103, windowing processing: using a windowing function to process the framed speech to obtain a windowed speech;
[0069] Step S104, audio feature extraction: extracting Mel-frequency cepstral coefficients and Mel-frequency spectrogram of the windowed speech;
[0070] Step S105, extracting common features: extracting speech features of Mel-frequency spectrogram and Mel-frequency cepstral coefficients based on a neural network model, wherein the speech features include speaker information, gender information and emotion information;
[0071] Step S106, extracting time series features: using a long short-term memory network to extract time series features;
[0072] Step S107, multi-granularity perception: based on the multi-granularity of the emotional information in the speech, the emotional information is captured at the multi-granularity level, the fine-grained emotional information is obtained, and the feature embedding of the emotional information is obtained;
[0073] Step S108: reducing redundant information: in the speech emotion recognition task, based on the information bottleneck principle, extracting the minimum sufficient single-task feature embedding, obtaining the feature embedding of the speaker information and the feature embedding of the gender information, so as to reduce the redundant information in the multi-task feature embedding;
[0074] Step S109: Aggregation of feature embeddings: Aggregating the feature embeddings of speaker information and gender information through a perception aggregation module, and combining them with the feature embeddings of emotion information;
[0075] Step S110, prediction: inputting the final emotion feature into the classifier to predict the emotion expressed by the speech to be recognized.
[0076] According to the above embodiment, preferably, step S101 specifically includes: pre-emphasis, which is essentially to increase the energy of the high-frequency part of the audio and remove noise. Because the voice signal is affected by the glottal excitation and the radiation of the mouth and nose, the high-frequency part will attenuate above 800HZ. To address this problem, a digital filter is used to implement the pre-emphasis operation, and the input and output relationship is shown in the following formula:
[0077]
[0078] In the formula, is the pre-emphasis coefficient, The input signal at time is , the output signal is .
[0079] According to the above embodiment, preferably, step S102 is a process of dividing the continuous speech signal into fixed-length segments. Specifically, the speech signal is unstable, and the acoustic parameters will change with the speaking process, but the speech signal can remain unchanged in a sufficiently short time, such as 20 to 30 milliseconds. By framing the speech signal, this quasi-stationary state can be approached to obtain local features. In addition, by deliberately overlapping these segments by 30% to 50%, the relationship and information between frames can be retained. Continuous speech signals also limit the use of processing techniques such as discrete Fourier transform (DFT) in fields such as SER. In addition, fixed-size frames are more suitable for emotion recognition models, such as neural network models.
[0080] According to the above embodiment, preferably, step S103 specifically includes: after the voice signal is framed, the beginning and the end of each frame signal are not continuous. If no processing is performed, directly performing operations such as Fourier transform will cause problems such as spectrum leakage, so that false values appear in the spectrum, deviating from reality, and adopting a windowing function can reduce leakage. The windowing operation is to multiply each frame of voice signal by a window function, which is usually a symmetrical, smooth window function. The windowing operation limits each frame of voice signal to a shorter time window, and reduces the spectrum leakage introduced by the window boundary through the smoothing property of the window function, thereby better retaining the time domain characteristics of the voice signal, and providing accurate input for subsequent spectrum analysis. The present invention adopts a Hamming window, and the formula is as follows:
[0081]
[0082] in, Expressed as a window function, Indicates the window size.
[0083] According to the above embodiment, preferably, step S104 specifically includes: using librosa audio feature extraction tool to extract Mel-Frequency Cepstral Coefficients (MFCC) and Mel Spectrogram (MS), respectively, wherein T×128-dimensional MS and T×39-dimensional MFCC (T represents the number of frames) are used, and T×39-dimensional MFCC is composed of its static features (T×13 dimensions) and first- and second-order differences. MS is a spectrum diagram using the Mel scale, which is a visual representation of the sound intensity or energy of all frequencies in the audio signal changing over time. MS is good at analyzing the frequency components and intensity of a specific audio signal, simulating the human ear's perception of sound at different frequencies. MFCC is a compressed representation of the Mel filter bank, which contains rate change information of different spectral bands and concisely describes the shape of the spectral envelope.
[0084] like Figure 2 and Figure 3 As shown, step S105 of the above embodiment specifically includes: the present invention uses different sub-networks to extract common features, wherein the sub-network corresponding to MS uses Res2Net as the basic module, and the sub-network corresponding to MFCC uses Res2Net-V as the basic module according to its characteristics, aiming to extract rich speaker information, gender information and emotion information. Specifically, Figure 3 As shown in Figure 2, due to the high correlation of Mel spectra, two-dimensional convolution is selected as the basic module, and the res2Net network module architecture is introduced to extract rich multi-scale features from Mel spectra at a fine-grained level. Specifically, the input After a convolutional layer with a 1×1 kernel, we get Then, the number of channels is increased to enhance the diversity of features. It is divided into four equal parts according to the channel, namely . Direct output, while and are combined and fed into a convolutional layer with a 3×3 kernel. This process continues iteratively and the result is Finally, these feature maps are concatenated along the channels and passed through the ReLU layer to obtain the final output features. Note that a batch normalization (BN) layer is added after each convolutional layer. Figure 4 As shown in the figure, due to the weak correlation between MFCC feature coefficients, an improved module based on 1D-CNN and Res2Net, called Res2Net-V, is designed to extract rich multi-scale features from MFCC. It should be noted that Res2Net-V no longer divides channels equally, but directly extracts fine-grained multi-scale features from the features obtained after the convolution layer with a 1x1 convolution kernel. Finally, all features are fused using a summation operation, and the final output features are obtained through the Relu layer.
[0085] like Figure 2 As shown, step S106 of the above embodiment specifically includes: after the CNN layer, using the LSTM layer to extract time series features, the specific parameters are shown in the following Table 1:
[0086] Table 1 Bidirectional long short-term memory network layer parameter settings
[0087] parameter Details value #timg# BiLSTM hidden unit number 256 #timg# BILSTM layers 2
[0088] like Figure 5As shown, step S107 of the above embodiment specifically includes: designing a new TMGA module for the multi-granularity characteristics of emotion, which is used to extract the emotion expression at different multi-granularities in the speech emotion recognition task. The emotion information in speech is multi-granular, that is, the emotion information transmitted in different time intervals may be different. In order to capture emotion information at a multi-granularity level, a temporal multi-granularity perception module (TMGA) is proposed. TMGA can be divided into two types: TMGA-1 and TMGA-n. TMGA-1 uses 1 time window, and TMGA-n uses n time windows (n=1, 2, 3, ...).
[0089] Specifically, the features extracted by the common information extraction part are fed into the TMGA module to obtain fine-grained sentiment information. In the TMGA module, the input is processed by TMGA-1 and TMGA-n to obtain . The new features are concatenated in the time domain and then input into the BN layer and ReLU layer to get the final result. The final result is input into the downstream speech emotion recognition task to identify the emotion.
[0090] The specific implementation process of TMGA-1 includes:
[0091] Assume that the input features are ,in Indicates the frame number. Represents the feature dimension. TMGA-1 introduces a self-attention mechanism to focus on the frames that contain the most emotional information. The specific formula is as follows.
[0092]
[0093] In the formula, is the softmax activation function, Indicates the characteristics after the TMGA-1 layer. Each parameter is explained in detail below:
[0094] Two different feature mapping functions are used to obtain Get and In order to learn the global features of each time unit and reduce the number of required training parameters, a learnable mapping vector is used to compress the features of each time unit into a vector of dimension 1. The formula for this process is as follows:
[0095]
[0096]
[0097] In the formula, and Represents a learnable mapping vector.
[0098] and The product of represents the intrinsic measure of sentiment relevance, since and The input dimension of corresponds to 1, so the scale parameter is still 1. It can be expressed as follows:
[0099]
[0100] In the formula, Represents weight.
[0101] The specific implementation process of TMGA-n includes:
[0102] Assume that the input features of TMGA-n are expressed as TMGA-n introduces the concept of attention and extracts fine-grained sentiment features by calculating the self-attention of different fixed-length windows. The formula is shown below.
[0103]
[0104] In the formula, is the softmax activation function, It represents the sum of the weights of each frame, with the aim of reducing the number of parameters for subsequent operations.
[0105] TMGA-n uses convolution kernels with two different The convolutional layer is used to obtain on and , as shown in the following formula:
[0106]
[0107]
[0108] In the formula, and is a learnable mapping matrix.
[0109] Weight The calculation formula is as follows.
[0110]
[0111] In the formula, Represents weight.
[0112] In order to avoid too many parameters, the maximum pooling method is used from the time length The most significant feature is obtained from the feature set, denoted as In addition, the residual concept is introduced to prevent the performance from degrading as the network depth increases. Furthermore, average pooling is used to extract The overall description of the features in a short time can be obtained by focusing on the features of The process is represented by the following formula:
[0113]
[0114]
[0115] In the formula, and They represent maximum pooling and average pooling respectively.
[0116] Step S108 of the above embodiment specifically includes: using the IB principle to extract the minimum sufficient single-task feature embedding to reduce the redundant information in each task feature embedding. The objective function of the method is shown in the following formula:
[0117]
[0118] In the formula, Indicates the label, is the minimum sufficient single-task embedding after encoding, Represents a single task. The source of is shown in the following formula:
[0119]
[0120] In the formula, Learning a network for a single task. represents the input sequence distribution of each task.
[0121] The VIB technique is used to optimize the IB objective function of this method, and we get The lower bound and The upper bound of is shown in the following formula:
[0122]
[0123]
[0124] In the formula, express The variational approximation of Represents marginal distribution The variational approximation of It follows a normal Gaussian distribution.
[0125] By formula The lower bound and The upper bound formula of the objective function can be rewritten as the following formula:
[0126]
[0127] In order to get The optimal value of The opposite number of is minimized. Then the objective function of each task network is obtained, as shown in the following formula:
[0128]
[0129] Assumptions Obey Gaussian distribution. Gaussian distribution The mean and variance of are learned by the deep neural network and can be expressed as the following formula:
[0130]
[0131]
[0132]
[0133] In order to solve the parameter update problem caused by stochastic gradient calculation, a reparameterization method is used, as shown below:
[0134]
[0135] In the formula, It follows a standard normal Gaussian distribution. is a unit vector with all elements equal to 1.
[0136] It should be noted that due to the complexity and personality of speech, the speaker and gender feature embedding is used as auxiliary language information and sentiment embedding to feed into the sentiment classifier. As shown in the following formula:
[0137]
[0138] Among them, AAM represents the perception aggregation module, and Represents speaker embedding, gender embedding, and sentiment embedding.
[0139] Can be divided into , and The KL divergence between . Cross entropy loss is used. And the approximate marginal distribution of the encoded single-task emotion embedding is assumed to be a standard normal Gaussian distribution. The specific formula is as follows:
[0140]
[0141]
[0142] Finally, Monte Carlo sampling
[15] is used to obtain , as shown in the following formula.
[0143]
[0144] In the formula, represents the sample size (i.e. batch size), Represents a sample.
[0145] The final objective function is as follows:
[0146]
[0147] like Figure 6 As shown, step S109 of the above embodiment specifically includes: aggregating the speaker embedding and the gender embedding through the perceptual aggregation module (AAM), and the AAM is intended to extract information useful for emotion recognition in the feature embeddings of the two downstream tasks, and combine it with the emotion embedding after TMGA: In speech emotion recognition, due to the influence of factors such as speakers and gender, different people will have different voices when expressing emotions. The present invention sends gender information and speaker information as auxiliary information together with the emotion embedding to the emotion recognition classifier to reduce the impact of gender and speakers on emotion recognition. However, the feature embeddings of gender and speaker may contain redundant information. Therefore, before combining them with the emotion embedding, they are first selected through AAM to filter out valuable information for emotion recognition.
[0148] Specifically, AAM introduces an attention mechanism. First, the speaker embedding and gender embedding are combined to obtain Then, two feature mapping functions are used to obtain and Finally, and The product of Multiply them to get the final result. The specific steps are shown in the following formula:
[0149]
[0150]
[0151]
[0152]
[0153]
[0154] In the formula, and is the learnable mapping vector, and Represented as speaker feature embedding and gender feature embedding, Represents the final output.
[0155] The above step S110 specifically includes: inputting the final emotion feature into the classifier to predict the emotion expressed by the current speech. At the same time, the speaker embedding and the gender embedding are sent to the corresponding classifier to constrain the speaker embedding and the gender embedding respectively.
[0156] like Figure 7 As shown, according to another embodiment of the present invention, a multi-task speech emotion recognition device 700 is also disclosed, including: a memory 701, used to store program instructions; a processor 702, used to call the program instructions stored in the memory to implement the multi-task speech emotion recognition method as in the above embodiment.
[0157] According to another embodiment of the present invention, a computer-readable storage medium is disclosed. The computer-readable storage medium stores program codes, and the program codes are used to implement the multi-task speech emotion recognition method as described in the above embodiment.
[0158] In summary, the present invention proposes a new MTVIB based on VIB to filter out irrelevant redundant information in each task embedding. In addition, the present invention also uses the minimum sufficient speaker embedding and gender embedding as auxiliary information to reduce the impact of speaker and gender differences on emotion recognition, so that the model can extract more discriminative emotional information, thereby improving the emotion recognition ability of the model. By introducing the attention mechanism (TMGA) to extract multi-granularity emotion representations of different time granularities from speech, attention is paid to the multi-granularity emotional clues embedded in the speech to prevent the loss of information in the speech emotion recognition task. At the same time, the multi-task learning strategy is combined to reduce the impact of speakers and gender on emotion recognition, which brings certain developments to personalized speech emotion recognition.
[0159] All or part of the steps in the various methods of the above embodiments can be completed by controlling the relevant hardware through a program, and the program can be stored in a readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other readable medium that can be used to carry or store data.
[0160] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-task speech emotion recognition method, characterized in that: include: Receiving a speech to be recognized, filtering noise and enhancing a high frequency portion of the speech to be recognized; Divide the continuous speech signal into multiple segments to obtain framed speech; Processing the framed speech using a windowing function to obtain a windowed speech; Extracting Mel-frequency cepstral coefficients and Mel-frequency spectrogram of the windowed speech; Extracting speech features of the mel-frequency spectrogram and the mel-frequency cepstral coefficients based on a neural network model, wherein the speech features include speaker information, gender information, and emotion information; Based on the multi-granularity of emotional information in speech, emotional information is captured at multiple granularity levels, fine-grained emotional information is obtained, and feature embedding of emotional information is obtained; In the speech emotion recognition task, based on the information bottleneck principle, the minimum sufficient single-task feature embedding is extracted to obtain the feature embedding of speaker information and the feature embedding of gender information to reduce the redundant information in the multi-task feature embedding; The feature embedding of the speaker information and the feature embedding of the gender information are aggregated through a perception aggregation module, combined with the feature embedding of the emotion information, and finally input into a classifier to predict the emotion expressed by the speech to be recognized.
2. The multi-task speech emotion recognition method according to claim 1, characterized in that: The step of extracting the speech features of the Mel-frequency spectrogram and the Mel-frequency cepstral coefficients based on the neural network model specifically includes: Extracting speech features of the Mel-frequency cepstral coefficients based on the Res2Net-V model; The speech features of the mel-spectrogram are extracted based on the Res2Net model.
3. The multi-task speech emotion recognition method according to claim 1, characterized in that: Also includes: After acquiring the speech features, a long short-term memory network is used to extract temporal features.
4. The multi-task speech emotion recognition method according to claim 1, characterized in that: Also includes: The feature embedding of the speaker information and the feature embedding of the gender information are respectively input into corresponding classifiers to constrain the feature embedding of the speaker information and the feature embedding of the gender information.
5. The multi-task speech emotion recognition method according to claim 1, characterized in that: The step of capturing the emotional information at multiple granularity levels based on the multi-granularity of the emotional information in the speech, obtaining fine-grained emotional information, and obtaining feature embedding of the emotional information specifically includes: The self-attention mechanism is introduced to focus on the frames containing the most emotional information to form the TMGA-1 layer. The expression of the calculation process is: The input features are ,in Indicates the frame number. represents the feature dimension, is the softmax activation function, It represents the characteristics after the TMGA-1 layer; Two different feature mapping functions are used to obtain Get and ; In order to learn the global features of each time unit and reduce the number of required training parameters, a learnable mapping vector is used to compress the features of each time unit into a vector of dimension 1; the formula for this process is as follows: In the formula, and represents a learnable mapping vector; and The product of represents the intrinsic measure of sentiment relevance, since and The input dimension of corresponds to 1, so the scale parameter is still 1, as shown in the following expression: In the formula, Represents weight.
6. The multi-task speech emotion recognition method according to claim 5, characterized in that: Also includes: The self-attention mechanism is introduced to extract fine-grained sentiment features by calculating the self-attention of windows of different fixed lengths to form a TMGA-n layer. The expression of the calculation process is: In the formula, is the softmax activation function, Represents the sum of the weights of each frame; The TMGA-n layer uses two different convolutional kernels. The convolutional layer is used to obtain on and , as shown in the following formula: In the formula, and is a learnable mapping matrix; Weight The calculation formula is as follows: In the formula, represents weight; In order to avoid too many parameters, the maximum pooling method is used from the time length The most significant feature is obtained from the feature set, denoted as ; Use average pooling to extract The overall description of the features in a short time is obtained by focusing on the features of ,Right now: In the formula, and They represent maximum pooling and average pooling respectively.
7. The multi-task speech emotion recognition method according to any one of claims 1 to 6, characterized in that: The windowing function is a Hamming window, and the calculation process is shown in the following formula: in, Expressed as a window function, Indicates the window size.
8. The multi-task speech emotion recognition method according to any one of claims 1 to 6, characterized in that: The high frequency part is a speech signal above 800 Hz.
9. A multi-task speech emotion recognition device, characterized in that: include: A memory for storing program instructions; A processor, configured to call the program instructions stored in the memory to implement the multi-task speech emotion recognition method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code, and the program code is used to implement the multi-task speech emotion recognition method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Multi-granularity take-out user comment sentiment analysis method
CN113094502A
Speech emotion classification and synthesis method, system and device and storage medium
CN116013370A
Voice emotion recognition method based on attention MCNN in combination with gender information
CN116453548A
Speaker recognition method based on Fca-Res2Net fusion self-attention
CN116469395A
Sentiment classification method and device based on artificial intelligence, computer equipment and medium
CN116504276A
Cited By
Speech emotion recognition method and system based on multi-dimensional information perception strategy
CN120279950A
A speech emotion recognition method and system based on multi-dimensional information perception strategy
CN120279950B
Multi-modal sentiment analysis method based on sentiment consistency distillation and information bottleneck
CN120561727A
