Anti-strong generalization speech emotion recognition method fusing uncertainty
By diversifying and expanding the speech samples and screening uncertainty, the overfitting problem caused by insufficient sample size in speech emotion recognition is solved, and the generalization ability and recognition accuracy of the model are improved.
Patent Information
- Application Number
- CN202411169806.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-25
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In speech emotion recognition, insufficient sample size leads to the model being prone to overfitting, limiting the generalization ability of the model.
The speech samples are expanded by velocity enhancement, noise injection, time shift, resampling, tone movement and reverb methods, and an uncertain sample screening mechanism is designed to ensure the dynamic constraint model of predicting entropy and standard deviation. Robustness and generalization.
It significantly improves the accuracy and robustness of speech emotion recognition, ensuring the effectiveness and reliability of the model in the case of data scarcity.
Smart Images

Figure CN118887977A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of speech emotion recognition, and specifically relates to a speech emotion recognition method integrating uncertainty and adversarial strong generalization. Background Art
[0002] Speech emotion recognition is an important research direction in the field of speech processing. It accurately identifies and understands the speaker's emotional state by analyzing the speaker's speech signal. This technology is widely used in depression monitoring, customer service voice quality inspection, emotional design of elderly-friendly products, etc., greatly improving the intelligence level of computers. Although this field has huge application potential, the problem of insufficient labeled data in practical applications and development processes has seriously restricted the widespread application of the technology. Therefore, research on the problem of insufficient labeled data in cross-speaker speech emotion recognition has important theoretical and practical value.
[0003] In existing research, although many scholars have used Generative Adversarial Network to improve the recognition rate of the system under the condition of few samples, when the sample size is insufficient, the model is prone to overfitting, which limits the generalization ability of the model.
[0004] In view of this, the present invention uses enhancement methods such as speed enhancement, noise injection, time shift, resampling, pitch shift and reverberation (RIR) to expand the original speech samples during the adversarial training process to improve the diversity of training samples. At the same time, an uncertainty sample screening mechanism is designed to eliminate low-quality expanded samples to ensure the robustness of adversarial training. Furthermore, a dynamic constraint model of low-quality expanded sample errors based on predicted entropy and standard deviation is constructed, and the selection of pseudo labels is guided by a comprehensive uncertainty metric to ensure the generalization of the model. This method improves the quality and diversity of training data through diversified sample expansion techniques and strict uncertainty screening mechanisms, significantly improves the accuracy and robustness of speech emotion recognition, and ensures the effectiveness and reliability of the model under data scarcity conditions. Summary of the invention
[0005] Purpose of the invention: Studies have shown that adversarial training can significantly improve the generalization performance of the model. However, when the sample size is insufficient, the model is prone to overfitting, which in turn limits the generalization ability of the model. We need to take a series of measures to solve this problem.
[0006] Technical solution: A method for speech emotion recognition that integrates uncertainty and strong generalization. The specific steps are as follows:
[0007] (1) Obtain a speech database containing multiple emotion types, divide the speech data into source domain and target domain according to different individuals, the source domain and target domain speech data contain the same emotion type, extract the log-mel spectrogram features of the source domain and target domain speech data, and record them as T 0 train , T 0 test ;
[0008] (2) The source domain speech data is expanded using speech enhancement methods such as speed enhancement, noise injection, time shift, resampling, pitch shift and reverberation (RIR), and the log-mel spectrogram features of the expanded speech data are extracted, denoted as T a ;
[0009] (3) Build a feature extractor network, a classifier network, and a discriminator network, and use the built network to train T 0 train Conduct adversarial training until the preset training rounds;
[0010] (4) Use the adversarially trained feature extractor network and classifier to enhance the dataset T a Make predictions, obtain the probability prediction matrix, calculate the prediction entropy and standard deviation of the prediction samples, and obtain the uncertainty K of the samples through the method based on prediction entropy and standard deviation. The specific calculation formula is as follows:
[0011] K=n*H(μ(p c ))+m*σ(p c )
[0012] In the above formula, n, m are computable hyperparameters, σ(p c ) represents the standard deviation, H(μ(p c )) is the prediction entropy, is the probability value corresponding to class c in T forward propagations;
[0013] (5) The prediction vector in the probability prediction matrix is screened using the calculated uncertainty K, uncertainty limit threshold λ, and confidence threshold γ. The specific formula is as follows:
[0014] K<λIμ(p c )>γ
[0015] Only samples that meet the above conditions are retained, and samples that do not meet the conditions are eliminated;
[0016] (6) Calculate the pseudo-label of the sample that satisfies step (5). The calculation formula is as follows:
[0017]
[0018] y j ′ and the original sample y of the expanded data j Compare them. If the two label types are inconsistent, the sample is removed, and finally the screened enhanced dataset T is obtained. aug_final_clean , T aug_final_clean Add to T 0 train In the expanded training set T 0 ';
[0019] (7) Repeat steps (3)-(6) until the preset round ends the loop. The feature extractor network and classifier obtained by adversarial training in step (4) can be used as a recognition model for speech emotion.
[0020] Furthermore, step (2) specifically comprises:
[0021] S21. When extracting the log-mel spectrogram of the enhanced speech data, to cope with the variability of utterance length, we split each utterance into two-second segments for extraction;
[0022] Furthermore, step (3) specifically comprises:
[0023] S31, yes Conduct adversarial training until the preset training rounds. Input the features of the source domain and the target domain into the feature extractor to extract deep features, input the features of the source domain into the classifier to obtain sentiment classification results, and input the features of the source domain and the target domain into the discriminator to distinguish the distribution of these two types of features. It includes two stages: training the discriminator and training the feature extractor and classifier. In the discriminator training stage, the parameters of the discriminator are updated so that it can effectively distinguish the data from the source domain and the target domain to achieve the adversarial purpose. In the feature extractor and classifier training stage, the parameters of the feature extractor and classifier are updated so that they can generate features with good feature representation and classification performance, while confusing the discriminator as much as possible to reduce the difference between the source domain and the target domain. In each stage, the loss function is optimized through multiple iterations to ensure the convergence and training effect of the model;
[0024] Furthermore, step (4) specifically comprises:
[0025] S41. Calculate the standard deviation formula:
[0026]
[0027] Among them, σ(p c ) represents the standard deviation, T is the number of forward propagations, is the probability value corresponding to class c in T forward propagations, is the average of the probabilities corresponding to class c.
[0028] The calculation formula of prediction entropy is:
[0029]
[0030] in, It is the probability value corresponding to class c in T forward propagations. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Picture 1 It is the main flow chart of the present invention;
[0032] Picture 2 It is a detailed diagram of the process of the present invention; Specific implementation methods
[0034] The present invention is further described below in conjunction with specific implementation modes.
[0035] Implementation method 1: The present invention discloses a method for speech emotion recognition integrating uncertainty and strong generalization, and the specific steps are as follows:
[0036] (1) Obtain a speech database containing multiple emotions, divide it into source domain and target domain data according to individuals, and extract the logarithmic Mel-spectrogram features of the source domain and the target domain;
[0037] In this embodiment, the most widely used public dataset IEMOCAP (Interactive Emotional Dyadic Motion Capture) in speech emotion recognition is selected, which contains 10,039 utterances, annotated by at least 3 expert evaluators, with a total length of about 12 hours of data, recorded by 10 professional actors (5 men and 5 women) through five different sessions, each session including a conversation between two actors. This experiment considers four emotions: happy, angry, sad, and neutral, and incorporates excitement into the happy class, with a total of 5,531 utterances. To cope with the variability of utterance length, we split each utterance into two-second segments to extract log-mel spectrogram features. The experiments all adopt the strategy of independent speakers, that is, the five-fold cross-validation strategy;
[0038] (2) Data enhancement is performed on the source domain data. Six data enhancement methods are used as shown below. The parameters are randomly selected through the code. Each method randomly selects 50% of the samples in the training set for perturbation to generate new enhanced samples. The specific data enhancement method parameter settings are shown in Table 1:
[0039] Table 1
[0040]
[0041] (3) Build a feature extractor network, a classifier network, and a discriminator network, and use the built network to Conduct adversarial training to the preset training rounds; build an adversarial network, which is mainly composed of a feature extractor network (Table 2), a classifier (Table 3), and a discriminator network (Table 4); input the features of the source domain and the target domain into the feature extractor to extract deep features, input the features of the source domain into the classifier to obtain sentiment classification results, and input the features of the source domain and the target domain into the discriminator to distinguish the distribution of these two types of features;
[0042] Table 2
[0043]
[0044]
[0045] Table 3
[0046]
[0047] Table 4
[0048]
[0049] (4) Use the adversarially trained feature extractor network and classifier to enhance the dataset T a Make predictions and obtain a probability prediction matrix;
[0050] (5) Design an uncertainty sample screening mechanism. The uncertainty is measured by the standard deviation of the predicted probability obtained in T random forward propagations and the predicted entropy. Formula (5) is as follows. Based on personal experience, manually adjust the values of n and m to observe their impact on the weighted accuracy (WA) and find the n and m values that give the highest weighted accuracy. Table 5 shows the WA values corresponding to the manually adjusted n and m values based on experience.
[0051] K=n*H(μ(p c ))+m*σ(p c ) (5)
[0052] Where K represents uncertainty, n and m are the lead coefficients of the prediction entropy and standard deviation respectively.
[0053] Table 5
[0054] n m WA(%) 1 0 67.67 0 1 65.42 0.50 0.50 66.78 0.80 0.20 66.53 0.20 0.80 67.04 0.25 0.75 67.6 0.28 0.72 67.77 0.29 0.71 67.05 0.30 0.70 67.00
[0055] From the above experimental data, it can be seen that in T times of random forward propagation: when the standard deviation is used to measure uncertainty, the weighted accuracy is 65.42%; when the predicted entropy is used to measure uncertainty, the weighted accuracy is 67.67%; when both the standard deviation and the predicted entropy are used to measure uncertainty, when the weight coefficients n = 0.28 and m = 0.72, the weighted accuracy is the highest, which is 67.77%.
[0056] Manually adjusting the values of n and m not only increases the workload, but also has the risk of error, which may be affected by subjective factors, resulting in data bias or inaccuracy. In contrast, dynamically adjusting data has better flexibility and adaptability, reduces workload, and the design of dynamically adjusting coefficient weights makes the contributions of the two variables, standard deviation and prediction entropy, in the weighted sum relatively balanced.
[0057] Therefore, the present invention constructs a low-quality expanded sample error dynamic constraint model based on prediction entropy and standard deviation. The values of the leading coefficients n and m are dynamically adjusted to observe their effects on the weighted accuracy (WA). The specific results are shown in Table 6.
[0058] Table 6
[0059] n m WA(%) 1 0 67.67 0 1 65.42 0.87 0.13 72.96 0.27 0.73 70.94 0.30 0.70 68.26 0.83 0.17 64.23 0.44 0.56 62.38
[0060] It can be seen from Table 6 that dynamically adjusting the weight coefficients n and m can more effectively improve the weighted accuracy. When n = 0.87 and m = 0.13, the weighted accuracy reaches 72.96%, which is 5.19% higher than the highest accuracy of manual adjustment, 7.54% higher than the standard deviation alone, and 5.29% higher than the predicted entropy alone. The experimental results show that the dynamic constraint model of low-quality augmented sample error based on predicted entropy and standard deviation is effective and significantly improves the weighted accuracy.
[0061] Implementation method two:
[0062] In this paper, a method for speech emotion recognition with adversarial strong generalization that integrates uncertainty is proposed. Experiment 1 has tested the uncertainty estimation, and next we will compare the performance difference with and without adversarial training.
[0063] According to experiments, when n = 0.28 and m = 0.72, the weighted accuracy is 67.77%. In this experiment, the control variable method is used to keep n = 0.28 and m = 0.72 unchanged, and the model is changed to verify the applicability and generalization ability of the new model of the feature extractor and classifier after adversarial training. The model is replaced with ResNet-18, and adversarial training is not introduced. The experimental results are shown in Table 7:
[0064] Table 7
[0065]
[0066] By observing Table 7, we can see that the weighted accuracy of the new model composed of adversarial training of the original speech signal combined with uncertainty estimation is 67.77%, while the weighted accuracy of ResNet-18 combined with uncertainty estimation is 63.36%. This verifies that the new model composed of the feature extractor network and classifier proposed by us after adversarial training is significantly better than ResNet-18 in terms of performance. Taking into account the constraints of adversarial and uncertainty, the model is more comprehensively optimized during the training process, which improves the performance in the speech emotion recognition task. The adversarial network helps the model learn more robust and generalized features, improving the applicability and generalization ability of the model in various scenarios.
[0067] Overall, these experimental results demonstrate the effectiveness of the uncertainty-integrated adversarial strong generalization speech emotion recognition method proposed in this paper.
Claims
1. A method for speech emotion recognition integrating uncertainty and strong generalization, characterized in that: The steps include: (1) Obtain a speech database containing multiple emotion types, divide the speech data into source domain and target domain according to different individuals, and extract the log-mel spectrogram features of the source domain and target domain speech data, which are recorded as (2) The source domain speech data is expanded using speech enhancement methods such as speed enhancement, noise injection, time shift, resampling, pitch shift and reverberation (RIR), and the log-mel spectrogram features of the expanded speech data are extracted, denoted as T a ; (3) Build a feature extractor network, a classifier network, and a discriminator network, and use the built network to Conduct adversarial training until the preset training rounds; (4) Use the adversarially trained feature extractor network and classifier to enhance the dataset T a Make predictions, obtain the probability prediction matrix, calculate the prediction entropy and standard deviation of the prediction samples, and obtain the uncertainty K of the samples through the method based on prediction entropy and standard deviation. The specific calculation formula is as follows: K=n*H(μ(p c ))+m*σ(p c ) In the above formula, n, m are computable hyperparameters, σ(p c ) represents the standard deviation, H(μ(p c )) is the prediction entropy, is the probability value corresponding to class c in T forward propagations; (5) The prediction vector in the probability prediction matrix is screened using the calculated uncertainty K, uncertainty limit threshold λ, and confidence threshold γ. The specific formula is as follows: K<λIμ(p c )>c Only samples that meet the above conditions are retained, and samples that do not meet the conditions are eliminated; (6) Calculate the pseudo-label of the sample that satisfies step (5). The calculation formula is as follows: y′ j and y of the original sample of the augmented data j Compare them. If the two label types are inconsistent, the sample is removed, and finally the screened enhanced dataset T is obtained. arg_final_clean , T arg_final_clean Add to In the above example, we get the expanded training set T′0; (7) Repeat steps (3)-(6) until the preset round ends the loop. The feature extractor network and classifier obtained through adversarial training in step (4) can be used as a recognition model for speech emotion.
2. According to the method for speech emotion recognition integrating uncertainty and strong generalization as described in claim 1, it is characterized in that: The speech enhancement methods used in step (2) are not limited to the six methods listed, and other speech enhancement methods are applicable; S21. When extracting the log-mel spectrogram of the enhanced speech data, in order to cope with the variability of utterance length, we split each utterance into two-second segments for extraction.
3. According to the method for speech emotion recognition integrating uncertainty and adversarial strong generalization as described in claim 1, it is characterized in that: The feature extractor network built in step (3) is responsible for extracting sentiment features, the classifier network is responsible for classifying features, and the discriminator network is used to evaluate the metric distance between the source domain and the target domain; S31, yes Conduct adversarial training until the preset training rounds. Input the features of the source domain and the target domain into the feature extractor to extract deep features, input the features of the source domain into the classifier to obtain the sentiment classification results, and input the features of the source domain and the target domain into the discriminator to distinguish the distribution of these two types of features. It includes two stages: training the discriminator and training the feature extractor and classifier. In the discriminator training stage, the parameters of the discriminator are updated so that it can effectively distinguish the data of the source domain and the target domain to achieve the adversarial purpose. In the feature extractor and classifier training stage, the parameters of the feature extractor and classifier are updated so that they can generate features with good feature representation and classification performance, while confusing the discriminator as much as possible to reduce the difference between the source domain and the target domain. In each stage, the loss function is optimized through multiple iterations to ensure the convergence and training effect of the model.
4. According to the method for speech emotion recognition integrating uncertainty and adversarial strong generalization as described in claim 1, it is characterized in that: The calculation formulas for standard deviation and prediction entropy in step (4) are as follows: S41. Calculate the standard deviation formula: Among them, σ(p c ) represents the standard deviation, T is the number of forward propagations, is the probability value corresponding to class c in T forward propagations, is the average of the probabilities corresponding to class c. The calculation formula of prediction entropy is: in, It is the probability value corresponding to class c in T forward propagations.
5. According to the method for speech emotion recognition integrating uncertainty and adversarial strong generalization as described in claim 1, it is characterized in that: In step (5), the hyperparameters n and m can be calculated using the following formula: In the above formula, a and b are two random numbers, and n+m=1.
Citation Information
Cited By
Speech synthesis method and device based on style description and electronic equipment
CN119694289A
Speech synthesis method and device based on reference speech, and electronic equipment
CN119694290A
