A multi-task speech emotion recognition method, device and storage medium

Through the multi-task speech emotion recognition method, combined with the information bottleneck and time multi-granularity perception module, the problems of redundant information and dimensionality disaster in speech emotion recognition are solved, the recognition efficiency and accuracy are improved, and the emotion recognition ability is enhanced.

CN118553271BActive Publication Date: 2024-10-15TIANJIN SINO GERMAN VOCATIONAL TECHNICAL COLLEGE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411028482.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-15
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing speech emotion recognition technology faces the problems of dimensionality disaster and excessive redundant information, resulting in limited recognition efficiency and accuracy, and it is difficult to effectively extract emotional features in speech.

Method used

A multi-task speech emotion recognition method is adopted, by introducing speaker recognition and gender recognition as auxiliary tasks, using a neural network model to extract the characteristics of Mel frequency cepstral coefficients and Mel spectrograms, and combining information bottlenecks and time multi-granularity perception modules to reduce Redundant information, extracts minimally sufficient feature embeddings, and aggregates features through a perceptual aggregation module to mitigate speaker and gender difference effects.

Benefits of technology

The recognition efficiency and accuracy of speech emotion recognition are improved. By reducing redundant information and extracting more discriminative emotional information, the model's emotion recognition ability is enhanced, and the impact of speaker and gender on recognition is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553271B_ABST
    Figure CN118553271B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-task speech emotion recognition method, device and storage medium, which relates to the field of speech processing, including: enhancing the high-frequency part of speech; 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 the Mel-frequency cepstral coefficients and Mel-frequency spectrogram of the windowed speech; extracting the speech features of the Mel-frequency spectrogram and the Mel-frequency cepstral coefficients based on a neural network model; capturing emotional information at multiple granularity levels to obtain feature embedding of emotional information; reducing redundant information in multi-task feature embedding based on the information bottleneck principle; 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 emotional information, and finally inputting them into a classifier to predict the emotion expressed by the speech to be recognized. The emotion recognition capability of the speech recognition system can be improved.
Need to check novelty before this filing date? Find Prior Art

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] Among them, the input feature is X TMGA-1 ∈R T×F , where T represents the number of frames, F represents the feature dimension, and α is the softmax activation function. It represents the characteristics after the TMGA-1 layer;

[0015] Two different feature mapping functions are used to transform X TMGA-1 Get Q TMGA-1 and K TMGA-1 ;

[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] In the formula, and represents a learnable mapping vector; Q TMGA-1 and K TMGA-1 The product of represents the intrinsic measure of sentiment relevance, since Q TMGA-1 and K TMGA-1 The input dimension of corresponds to 1, so the scale parameter is still 1, as shown in the following expression:

[0019] A=Q TMGA-1 K TMGA-1

[0020] Where A∈R F×1 Represents weight.

[0021] According to the multi-task speech emotion recognition method disclosed in the present invention, preferably, it also includes:

[0022] 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:

[0023]

[0024] In the formula, α is the softmax activation function, and sum represents the sum of the weights of each frame;

[0025] The TMGA-n layer uses a convolutional layer with two different convolution kernels n to obtain X TMGA-n Q TMGA-n and K TMGA-n , as shown in the following formula:

[0026]

[0027] In the formula, and is a learnable mapping matrix;

[0028] The calculation formula of weight A is as follows:

[0029]

[0030] In the formula, represents weight;

[0031] In order to avoid too many parameters, the maximum pooling method is used to obtain the most significant features from the feature set with a time length of n, denoted as

[0032] Average pooling is used to obtain an overall description of features in a short time from a feature set of time length n, expressed as Right now:

[0033]

[0034] Where maxpool and avgpool represent maximum pooling and average pooling respectively.

[0035] 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:

[0036]

[0037] Among them, w(n) represents the window function and N represents the window size.

[0038] 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.

[0039] 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.

[0040] 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.

[0041] 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, recognizes 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

[0042] Figure 1 A schematic flow chart of a multi-task speech emotion recognition method according to an embodiment of the present invention is shown.

[0043] 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

[0044] Figure 3 A schematic diagram of a Res2Net architecture according to an embodiment of the present invention is shown.

[0045] Figure 4 A schematic diagram of a Res2Net-V architecture according to an embodiment of the present invention is shown.

[0046] Figure 5 A schematic diagram of the architecture of a time multi-granularity perception module according to an embodiment of the present invention is shown.

[0047] Figure 6 A schematic diagram of the perception aggregation module architecture according to an embodiment of the present invention is shown.

[0048] 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

[0049] 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.

[0050] 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.

[0051] The abbreviations of the nouns involved in the present invention include:

[0052] 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.

[0053] 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.

[0054] 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 are able to 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.

[0055] 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.

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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.

[0061] 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.

[0062] 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:

[0063] 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;

[0064] Step S102, speech framing: dividing a continuous speech signal into multiple segments to obtain framed speech;

[0065] Step S103, windowing processing: using a windowing function to process the framed speech to obtain a windowed speech;

[0066] Step S104, audio feature extraction: extracting Mel-frequency cepstral coefficients and Mel-frequency spectrogram of the windowed speech;

[0067] 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;

[0068] Step S106, extracting time series features: using a long short-term memory network to extract time series features;

[0069] 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;

[0070] 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;

[0071] 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;

[0072] Step S110, prediction: inputting the final emotion feature into the classifier to predict the emotion expressed by the speech to be recognized.

[0073] 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:

[0074] y(n)=x(n)-αx(n-1)

[0075] Wherein, α (0.9<α<1.0) is the pre-emphasis coefficient, the input signal at time n is x(n), and the output signal is y(n).

[0076] 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.

[0077] 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:

[0078]

[0079] Among them, w(n) represents the window function and N represents the window size.

[0080] 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 an audio signal changing over time. MS is good at analyzing the frequency content 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 for different spectral bands and concisely describes the shape of the spectral envelope.

[0081] 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 X passes through a convolution layer with a 1×1 kernel to obtain X 1×1Then, increase the number of channels to enhance the diversity of features. 1×1 Divided into four equal parts by channel, namely X i (i=1,2,3,4). X1 is directly output, while X2 is combined with X1 and sent to the convolution layer with a 3×3 kernel. This process continues iteratively, and the result is X' i (i=1,2,3,4). 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.

[0082] 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:

[0083] Table 1 Bidirectional long short-term memory network layer parameter settings

[0084]

[0085] like Figure 5 As 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 emotional information in speech is multi-granular, that is, the emotional information transmitted in different time intervals may be different. In order to capture emotional 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, ...).

[0086] 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 X j (j=1,2,...,n). jThe 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.

[0087] The specific implementation process of TMGA-1 includes:

[0088] Assume the input feature is X TMGA-1 ∈R T×F , where T represents the number of frames and F 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 shown below.

[0089]

[0090] Where α is the softmax activation function, Indicates the characteristics after the TMGA-1 layer. Each parameter is explained in detail below:

[0091] Two different feature mapping functions are used to transform X TMGA-1 Get Q TMGA-1 and K TMGA-1 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:

[0092]

[0093] In the formula, and Represents a learnable mapping vector.

[0094] Q TMGA-1 and K TMGA-1 The product of represents the intrinsic measure of sentiment relevance, since Q TMGA-1 and K TMGA-1 The input dimension of corresponds to 1, so the scale parameter is still 1. It can be expressed as follows:

[0095] A=Q TMGA-1 K TMGA-1

[0096] Where A∈R F×1 Represents weight.

[0097] The specific implementation process of TMGA-n includes:

[0098] Assume that the input feature of TMGA-n is represented as X TMGA-n ∈R T×FTMGA-n introduces the concept of attention to extract fine-grained sentiment features by calculating self-attention of windows with different fixed lengths.

[0099] The formula is shown below.

[0100]

[0101] In the formula, α is the softmax activation function, and sum represents the sum of the weights of each frame, the purpose of which is to reduce the number of parameters for subsequent operations.

[0102] TMGA-n uses a convolutional layer with two different convolution kernels n to obtain X TMGA-n Q TMGA-n andK TMGA-n , as shown in the following formula:

[0103]

[0104] In the formula, and is a learnable mapping matrix.

[0105] The calculation formula of weight A is as follows.

[0106]

[0107] In the formula, Represents weight.

[0108] In order to avoid too many parameters, the maximum pooling method is used to obtain the most significant features from the feature set with a time length of n, denoted as In addition, the concept of residual is introduced to prevent the performance degradation as the network depth increases. Furthermore, average pooling is used to obtain an overall description of the features in a short time from a feature set of time length n, expressed as The process is expressed by the following formula:

[0109]

[0110] Where maxpool and avgpool represent maximum pooling and average pooling respectively.

[0111] 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:

[0112]

[0113] Where L represents variational information bottleneck optimization, I represents the mutual information of two random variables, and Yt (t∈{speaker,gender,emotion}) represents the label, Z t is the minimum sufficient single-task embedding after encoding, Represents a single task. The source of is shown in the following formula:

[0114]

[0115] In the formula, Learning a network for a single task. represents the input sequence distribution of each task.

[0116] The VIB technique is used to optimize the IB objective function of this method to obtain the lower bound of I(z,y) and the upper bound of I(x,z), as shown in the following formula:

[0117] I(z,y)≥∫dxdydzp(x)p(y|x)p(z|x)logq(y|z)

[0118]

[0119] Where q(y|z) represents the variational approximation of p(y|x), and q(z) represents the variational approximation of the marginal distribution p(z), and it is usually assumed that p(z) obeys a normal Gaussian distribution.

[0120] The objective function can be rewritten as follows using the lower bound formula of I(z,y) and the upper bound formula of I(x,z):

[0121]

[0122] In order to obtain the optimal value of L, J VIB The opposite number of is minimized. Then the objective function of each task network is obtained, as shown in the following formula:

[0123]

[0124] 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:

[0125]

[0126] In order to solve the parameter update problem caused by stochastic gradient calculation, a reparameterization method is used, as shown below:

[0127]

[0128] Where α~N(0,I) obeys the standard normal Gaussian distribution, and I is a unit vector whose elements are all equal to 1.

[0129] 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:

[0130] Z emotion =AAM(Z speaker , Z gender )+Z emotion

[0131] Among them, AAM represents the perception aggregation module, Z speaker , Z gender and Z emotion Represents speaker embedding, gender embedding, and sentiment embedding.

[0132] J MTIB-t Can be divided into -logq(Y t |Z t ), and q(Z t ). Among them, -logq(Y t |Z t ) uses cross entropy loss. 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:

[0133] q(Z t )~N(0,I)

[0134]

[0135] Finally, Monte Carlo sampling is used to obtain J MTVIB-t , as shown in the following formula:

[0136]

[0137] In the formula, N represents the sample size (i.e. batch size) and n represents the sample.

[0138] The final objective function is as follows:

[0139] J all =J MTVIB-emo +βJ MTVIB-spr +βJ MTVIB-gen

[0140] like Figure 6As shown, step S109 of the above embodiment specifically includes: aggregating the speaker embedding and the gender embedding through the perception 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 emotion embedding to the emotion recognition classifier to reduce the impact of gender and speaker 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.

[0141] Specifically, AAM introduces an attention mechanism. First, the speaker embedding and gender embedding are combined to obtain X sg Then, two feature mapping functions are used to obtain Q sg and K sg Finally, Q sg and K sg The product of the weight and X sg Multiply them to get the final result. The specific steps are shown in the following formula:

[0142] X sg =X spr_emb +X gen_emb

[0143]

[0144] A sg =Q sg K sg

[0145]

[0146] In the formula, and is the learnable mapping vector, X spr_emb and X gen_emb Represented as speaker feature embedding and gender feature embedding, Represents the final output.

[0147] 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.

[0148] like Figure 7As 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.

[0149] 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.

[0150] 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.

[0151] 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 read-only memory (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.

[0152] 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; Aggregating the feature embedding of the speaker information and the feature embedding of the gender information through a perception aggregation module, combining them with the feature embedding of the emotion information, and finally inputting them into a classifier to predict the emotion expressed by the speech to be recognized; 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: Among them, the input feature is X TMGA-1 ∈R T×F , where T represents the number of frames, F represents the feature dimension, and α is the softmax activation function. It represents the characteristics after the TMGA-1 layer; Two different feature mapping functions are used to transform X TMGA-1 Get Q TMGA-1 and K TMGA-1 ; 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; Q TMGA-1 and K TMGA-1 The product of represents the intrinsic measure of sentiment relevance, since Q TMGA-1 and K TMGA-1 The input dimension of corresponds to 1, so the scale parameter is still 1, as shown in the following expression: A=Q TMGA-1 K TMGA-1 Where A∈R F×1 represents weight; 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, and sum represents the sum of the weights of each frame; The TMGA-n layer uses a convolutional layer with two different convolution kernels n to obtain X TMGA-n Q TMGA-n and K TMGA-n , as shown in the following formula: In the formula, and is a learnable mapping matrix; The calculation formula of weight A is as follows: In the formula, represents weight; In order to avoid too many parameters, the maximum pooling method is used to obtain the most significant features from the feature set with a time length of n, denoted as Average pooling is used to obtain an overall description of features in a short time from a feature set of time length n, expressed as Right now: In the formula, maxpool and avgpool represent maximum pooling and average pooling respectively; Based on the information bottleneck principle, the objective function for extracting the minimum sufficient single-task feature embedding is: Where L represents variational information bottleneck optimization, I represents the mutual information of two random variables, and Y t Indicates the label, Z t is the minimum sufficient single-task embedding after encoding, For single task representation; The source is as follows: In the formula, For a single-task learning network, U f represents the input sequence distribution of each task.

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 any one of claims 1 to 4, characterized in that: The windowing function is a Hamming window, and the calculation process is shown in the following formula: Among them, w(n) represents the window function and N represents the window size.

6. The multi-task speech emotion recognition method according to any one of claims 1 to 4, characterized in that: The high frequency part is a speech signal above 800 Hz.

7. 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 6.

8. 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 6.