Cross-library speech emotion recognition method based on three-dimensional tensor structure information
By extending the speech features into three-dimensional tensors and using tensor singular value decomposition and multi-scale radial basis function alignment, the poor generalization problem caused by feature differences in speech emotion recognition across libraries is solved, and the recognition performance is significantly improved.
Patent Information
- Application Number
- CN202411169805.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-25
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art has poor generalization of the model due to large feature differences in cross-base speech emotion recognition, which cannot fully capture feature structure information, affecting the recognition performance.
By extending the two-dimensional speech features into three-dimensional tensor form, the core tensor and factor matrix of different dimensions are extracted using tensor singular value decomposition technology, and the features of different dimensions are aligned through multi-scale radial basis functions, combining the self-coding network and Adam optimizes the network to improve the generalization ability and emotion recognition performance of the model.
It significantly improves the generalization ability and performance of cross-base speech emotion recognition, improves the model's ability to recognize speech emotion states, and is ahead of the average recall rate of other classical algorithms.
Smart Images

Figure CN118887976A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a speech emotion recognition method, and in particular to a cross-database speech emotion recognition method based on three-dimensional tensor structure information. Background Art
[0002] Artificial intelligence is developing rapidly. Chatbots have reached the level of generating long replies and including memory functions. Research on speech emotion recognition is also making breakthroughs. Computers analyze and process speech signals to obtain people's current emotional state, which is speech emotion recognition. Different speech signals have different characteristics and distribution patterns in terms of time structure, amplitude structure, fundamental frequency structure, and formant structure. As long as the computer can capture these features in the speech signal and analyze them, it can easily identify human emotions and thus better conduct human-computer interaction. However, in real life, test sets and training sets often come from different corpora. Due to the large differences in the features of different corpora, it is difficult to extract these emotional features, and the performance of cross-corpus speech emotion recognition is greatly reduced.
[0003] Extracting emotional features with rich structural information is one of the most important methods to solve cross-database speech emotion recognition. However, in traditional acoustic feature analysis, it is often processed based on two-dimensional space, and some hidden structural information may not be fully utilized, which limits the model's ability to recognize the emotional state of speech, resulting in poor model generalization and affecting cross-database performance. By expanding low-dimensional features into three-dimensional tensor form, structural information that cannot be represented in two-dimensional space can be captured, and the intrinsic structural information of features in multidimensional space can be considered as much as possible, which helps to extract richer features and improve the generalization ability of emotion recognition. Therefore, in order to comprehensively consider the structural information of features, the present invention proposes a cross-database speech emotion recognition method based on three-dimensional tensor structural information, focusing on using structural information in three-dimensional space to enhance model performance. Firstly, the original speech features are passed through an autoencoder network to remove redundant information in the features to obtain low-dimensional coding features. Then, the low-dimensional coding features are expanded into a three-dimensional tensor form. The three-dimensional tensor features are decomposed into a core tensor and factor matrices of different dimensions using the tensor singular value decomposition technique. Secondly, a feature alignment module is designed to align features of different dimensions through multi-scale radial basis functions, thereby reducing the differences in cross-library features and improving the generalization ability of the model. Finally, the network is optimized by adjusting the loss parameters to improve the model's emotion recognition performance. Summary of the invention
[0004] Purpose of the invention: To address the problem that existing models are unable to fully capture feature structure information, this paper constructs a cross-database speech emotion recognition model based on three-dimensional tensor structure information. It mainly obtains the structural information of the core tensor and features of different dimensions by converting from two-dimensional space to three-dimensional space and using the tensor singular value decomposition technology; then, the multi-scale radial basis loss calculation method is used to align the features of different dimensions of the source domain and the target domain to improve the generalization ability of the model.
[0005] Technical solution: The cross-database speech emotion recognition method based on three-dimensional tensor structure information described in the present invention includes:
[0006] (1) Obtain two different speech emotion databases, select the database containing several speech samples and corresponding emotion labels as the source domain, and select the database containing only several speech samples as the target domain;
[0007] (2) Preprocess the speech samples of the source domain and the target domain, and select the acoustic features specified by the INTERSPEECH2010 Emotion Challenge as the model input to extract the acoustic features of the source domain and the target domain;
[0008] (3) Inputting the acoustic features extracted in step (2) into the autoencoder network to remove redundant information in the features to obtain low-dimensional coding features, and then expanding the low-dimensional coding features into a three-dimensional tensor form by adding an extra dimension to obtain a three-dimensional tensor feature;
[0009] (4) Using the tensor singular value decomposition technique, the obtained three-dimensional tensor features are decomposed to obtain the core tensor and factor matrices of different dimensions, and the low-rank tensor approximation method is used to represent the original tensor;
[0010] (5) Use the multi-scale radial basis loss function to align the factor matrices of different dimensions in the source domain and the target domain, and adjust the scale parameters and loss parameters;
[0011] (6) Construct an overall loss function, use source domain samples to train the model, use Adam optimization network to complete model training, and use the trained model to identify the target domain and output the emotion category.
[0012] Furthermore, step (2) specifically includes:
[0013] Step S21, preprocessing each speech sample in the source domain and the target domain, including pre-emphasis, framing, and windowing operations;
[0014] Step S22: Use the open SMILE open source tool to extract the acoustic features specified by the INTERSPEECH2010 Emotion Challenge from the original speech to obtain the acoustic features of the source domain and the target domain.
[0015] Furthermore, step (3) specifically includes:
[0016] Step S31: normalize the acoustic features of step (2) using the Min-Max normalization method. The calculation formula of the present invention is as follows:
[0017]
[0018] In the formula, x′ represents the value of a single feature, min is the minimum value of the feature column, and max is the maximum value of the feature column; Step S32, the normalized source domain and target domain features are input into the autoencoder network to remove redundant information in the features to obtain low-dimensional encoding features, and then the low-dimensional encoding features are upgraded, that is, an extra dimension is added to obtain features in the form of a three-dimensional tensor. Assuming that the original data size is B×D, B represents the batch size, and D represents the feature dimension, the expanded three-dimensional tensor form of size B×D×1 is obtained, that is, the tensor Furthermore, step (4) specifically includes:
[0019] Step S41: Decompose the obtained three-dimensional tensor features using tensor singular value decomposition technology to obtain a core tensor and factor matrices of different dimensions. The tensor singular value decomposition process is as follows:
[0020]
[0021] In the formula is a core tensor with shape (R1, R2, R3), R i is the rank in each dimension; U (1) is the factor matrix of the first dimension, with shape (D, R1); U (2) is the factor matrix on the second dimension, with shape (B, R2); U (3) is the factor matrix on the third dimension, with a shape of (1, R3); × n Represents tensor multiplication in the nth dimension;
[0022] Step S42: Use a low-rank tensor approximation method to represent the original tensor, use mean square error to reconstruct the tensor, minimize the difference between the reconstructed features and the original features, and calculate the reconstruction loss as follows:
[0023]
[0024]
[0025] where x i is the original feature, z i is the reconstructed feature, L re1 represents the source domain reconstruction loss, L re2 represents the target domain reconstruction loss;
[0026] Step S43: The autoencoder network model inputs the source domain speech emotion features extracted in step (2) and the sample labels into the autoencoder network to obtain the source domain classification loss of the model:
[0027]
[0028] Where B represents the batch size during training, y ix The value is 1 or 0. Represents the predicted probability that the sample belongs to the Cth emotion type.
[0029] Further, step (5) comprises:
[0030] Step S51, the multi-scale radial basis function MRBF loss calculation function is as follows:
[0031]
[0032] in and are the factor matrices of the source domain and the target domain after tensor singular value decomposition, which contain the structural information of features of different dimensions, and σ is the scale parameter that controls the width of the Gaussian kernel;
[0033] Step S52, RBF(·) is a radial basis function, specifically a Gaussian kernel function:
[0034]
[0035] Furthermore, step (6) specifically includes:
[0036] Step S61, the overall loss of the model is:
[0037] L all =γL cls +βL re1 +βL re2 +λL MRBF
[0038] Where, L cls is the classification loss, L re1 is the source domain tensor reconstruction loss, L re2 is the target domain tensor reconstruction loss, L MRBF is the radial basis function loss of the source domain and the target domain;
[0039] Step S62, using Adaptive Moment Estimation (Adam) algorithm to optimize the network;
[0040] Step S63: After each round of loss function calculation, update the parameters according to the gradient of each parameter in the network using the loss function to optimize the feature processing network. The update process is as follows:
[0041]
[0042] Where W is the network parameter, η is the learning rate, m t is the first-order moment estimate, v t For the second moment estimate, ε is a very small number to prevent the denominator from being zero.
[0043] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the present invention proposes an innovative cross-database speech emotion recognition method that focuses on using structural information in three-dimensional space to enhance model performance. By expanding the features from two-dimensional space to three-dimensional space, the tensor singular value decomposition technology is used to capture structural information that cannot be represented in two-dimensional space; secondly, the multi-scale radial basis function is used to align features of different structures to improve the generalization ability of the model; finally, multiple losses are jointly optimized to improve the model's emotion recognition performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram of the process of the present invention;
[0045] Figure 2 It is a specific operation step diagram of the present invention; DETAILED DESCRIPTION
[0046] The present invention will be further described below in conjunction with specific implementation methods.
[0047] (1) Obtain two speech emotion databases, select a database containing several speech samples and corresponding emotion labels as the source domain, and select a database containing only several speech samples as the target domain;
[0048] In this embodiment, three public datasets widely used in speech emotion recognition, Berlin (B), eNTERFACE (e), and CASIA (C), are selected as benchmark libraries. Six groups of experiments are set up based on the number of common emotion categories. The number of selected emotion categories and the number of speech items are shown in Table 1.
[0049] Table 1
[0050]
[0051] (2) Preprocess the speech samples of the source domain and the target domain, and select the acoustic features specified by the INTERSPEECH2010 Emotion Challenge as the model input to extract the acoustic features of the source domain and the target domain;
[0052] This step includes:
[0053] Step S21, preprocessing each speech sample in the source domain and the target domain, including pre-emphasis, framing, and windowing operations;
[0054] Step S22: Use the open SMILE open source tool to extract the acoustic features specified by the INTERSPEECH 2010 Emotion Challenge from the original speech to obtain the acoustic features of the source domain and the target domain.
[0055] (3) Inputting the acoustic features extracted in step (2) into the autoencoder network to remove redundant information in the features to obtain low-dimensional coding features, and then expanding the low-dimensional coding features into a three-dimensional tensor form by adding an extra dimension to obtain a three-dimensional tensor feature; this step includes:
[0056] Step S31: normalize the acoustic features in step (2) using the Min-Max normalization method. The calculation formula is as follows:
[0057]
[0058] In the formula, x′ represents the value of a single feature, min is the minimum value of the feature column, and max is the maximum value of the feature column; Step S32, the normalized source domain and target domain features are input into the autoencoder network to remove redundant information in the features to obtain low-dimensional coding features, and then the low-dimensional coding features are upgraded, that is, an extra dimension is added to obtain features in the form of a three-dimensional tensor. Assuming that the original data size is B×D, B represents the batch size, and D represents the feature dimension, the expanded three-dimensional tensor form of size B×D×1 is obtained, that is, the tensor
[0059] (4) Using the tensor singular value decomposition technique, the obtained three-dimensional tensor features are decomposed to obtain the core tensor and factor matrices of different dimensions, and the low-rank tensor approximation method is used to represent the original tensor;
[0060] This step includes:
[0061] Step S41, use the tensor singular value decomposition technology to decompose the obtained three-dimensional tensor features to obtain the core tensor and factor matrices of different dimensions, expand the tensor x, convert it into matrices X1, X2, X3, and then perform singular value decomposition on each matrix, the expression is:
[0062] X n =U (n) S n (V (n) ) T
[0063] Where U represents the left singular vector, V represents the right singular vector, S represents the singular value, and n = 1, 2, 3. The left singular value vector U and the original tensor are used to calculate the core tensor. The specific formula is as follows:
[0064]
[0065] The core tensor captures the core structural information of the original tensor, so the three-dimensional tensor singular value decomposition formula is as follows:
[0066]
[0067] In the formula is a core tensor with shape (R1, R2, R3), R i is the rank in each dimension; U (1) is the factor matrix of the first dimension, with shape (D, R1); U (2) is the factor matrix on the second dimension, with shape (B, R2); U (3) is the factor matrix on the third dimension, with a shape of (1, R3); × n Represents tensor multiplication in the nth dimension;
[0068] Step S42: Use a low-rank tensor to approximate the original tensor, use the mean square error to reconstruct the tensor, minimize the difference between the original tensor and the reconstructed tensor, and calculate the reconstruction loss as follows:
[0069]
[0070]
[0071] where x i is the original feature, z i is the reconstructed feature, L re1 represents the source domain reconstruction loss, L re2 represents the target domain reconstruction loss; step S43, the autoencoder network model inputs the source domain speech emotion features extracted in step (2) and the sample label into the autoencoder network to obtain the source domain classification loss of the model:
[0072]
[0073] Where B represents the batch size during training, yiC takes the value of 1 or 0, Represents the predicted probability that the sample belongs to the Cth emotion type.
[0074] (5) Use the multi-scale radial basis loss function to align the factor matrices of different dimensions in the source domain and the target domain, and adjust the scale parameters and loss parameters;
[0075] This step includes:
[0076] Step S51: The multi-scale radial basis function MRBF loss calculation function is as follows:
[0077]
[0078] in and are the factor matrices of the source domain and the target domain after singular value decomposition, which contain the characteristic structure information of different modes, and σ is the scale parameter that controls the width of the Gaussian kernel;
[0079] Step S52: RBF(·) is a radial basis function, specifically a Gaussian kernel function:
[0080]
[0081] (6) Construct an overall loss function, which includes classification loss, source domain reconstruction loss, target domain reconstruction loss, and multi-scale radial basis function loss. Use source domain samples to train the model, use Adam optimization network to complete model training, and use the trained model to identify the target domain and output the emotion category.
[0082] This step includes:
[0083] Step S61, the overall loss of the model is:
[0084] L all =γL cls +βL re1 +βL re2 +λL MRBF
[0085] Where, L cls is the classification loss, L re1 is the source domain tensor reconstruction loss, L re2 is the target domain tensor reconstruction loss, L MRBF is the radial basis function loss of the source domain and the target domain;
[0086] Step S62, using the Adaptive Moment Estimation (Adam) algorithm to optimize the network, with the initial learning rate set to 0.1, the batch_size set to 32, and the number of iterations set to 5040;
[0087] Step S63: After each round of loss function calculation, update the parameters according to the gradient of each parameter in the network using the loss function to optimize the feature processing network. The update process is as follows:
[0088]
[0089] Where W is the network parameter, η is the learning rate, mt is the first-order moment estimate, v t For the second moment estimate, ε is a very small number to prevent the denominator from being zero.
[0090] (7) In order to verify the effectiveness of the present invention, according to the six different cross-database recognition schemes in Table 1, several other classic and high-performance algorithms in cross-database speech emotion recognition were selected, namely: SVM, TCA, TSDSL, JDAR, DANN, DDACNN, DASA, and the experimental results were compared, as shown in Table 2.
[0091] (8) The experimental results of the disclosed algorithm are compared with those of other algorithms. The results are evaluated using the unweighted average recall rate (UAR). The experimental results show that the average UAR of the cross-database speech emotion recognition algorithm based on three-dimensional tensor structure information proposed in the present invention is ahead of other algorithms.
[0092] Table 2
[0093]
Claims
1. A cross-database speech emotion recognition method based on three-dimensional tensor structure information, characterized in that The method includes: (1) Obtain two different speech emotion databases, select the database containing several speech samples and corresponding emotion labels as the source domain, and select the database containing only several speech samples as the target domain; (2) Preprocess the speech samples in the source domain and the target domain, and select the acoustic features specified by the INTERSPEECH2010 Emotion Challenge as model input for feature extraction; (3) Inputting the acoustic features extracted in step (2) into the autoencoder network to remove redundant information in the features to obtain low-dimensional coding features, and then expanding the low-dimensional coding features into a three-dimensional tensor form by adding an extra dimension to obtain a three-dimensional tensor feature; (4) Using the tensor singular value decomposition technique, the obtained three-dimensional tensor features are decomposed to obtain the core tensor and factor matrices of different dimensions, and the low-rank tensor approximation method is used to represent the original tensor; (5) Use the multi-scale radial basis loss function to align the factor matrices of different dimensions in the source domain and the target domain, and adjust the scale parameters and loss parameters; (6) Construct an overall loss function, use source domain samples to train the model, use Adam optimization network to complete model training, and use the trained model to identify the target domain and output the emotion category.
2. According to claim 1, a cross-database speech emotion recognition method based on three-dimensional tensor structure information is characterized in that: Step (2) specifically includes: Step S21, preprocessing each speech sample in the source domain and the target domain, including pre-emphasis, framing, and windowing operations; Step S22: Use the open SMILE open source tool to extract the acoustic features of the original speech specified by the INTERSPEECH2010 Emotion Challenge, and obtain the acoustic features of the source domain and the target domain.
3. The cross-database speech emotion recognition method based on three-dimensional tensor structure information according to claim 1 is characterized in that Step (3) specifically includes: Step S31: normalize the acoustic features in step (2) using the Min-Max normalization method. The calculation formula is as follows: In the formula, x′ represents the value of a single feature, min is the minimum value of the feature column, and max is the maximum value of the feature column; Step S32: Input the normalized source domain and target domain features into the autoencoder network to remove redundant information in the features and obtain low-dimensional coding features. Then, the low-dimensional coding features are upgraded, that is, an extra dimension is added to obtain features in the form of three-dimensional tensors. Assuming that the original data size is B×D, B represents the batch size, and D represents the feature dimension, the expanded three-dimensional tensor form with a size of B×D×1 is obtained, that is, the tensor 4. The cross-database speech emotion recognition method based on three-dimensional tensor structure information according to claim 1 is characterized in that Step (4) specifically includes: Step S41: Decompose the obtained three-dimensional tensor features using tensor singular value decomposition technology to obtain a core tensor and factor matrices of different dimensions. The tensor singular value decomposition process is as follows: In the formula is the core tensor, with shape (R1, R2, R3), R i is the rank on each mode; U (1) is the factor matrix of the first dimension, with shape (D, R1); U (2) is the factor matrix on the second dimension, with shape (B, R2); U (3) is the factor matrix on the third dimension, with a shape of (1, R3); ×n represents tensor multiplication on the nth dimension; Step S42: Use a low-rank tensor approximation method to represent the original tensor, use mean square error to reconstruct the tensor, and calculate the reconstruction loss as follows: where x i is the original feature, z i is the reconstructed feature, L re1 represents the source domain reconstruction loss, L re2 represents the target domain reconstruction loss; Step S43: The autoencoder network model inputs the source domain speech emotion features extracted in step (2) and the sample labels into the autoencoder network to obtain the source domain classification loss of the model: Where B represents the batch size during training, y ic The value is 1 or 0. Represents the predicted probability that the sample belongs to the Cth emotion type.
5. The cross-database speech emotion recognition method based on three-dimensional tensor structure information according to claim 1 is characterized in that Step (5) specifically includes: Step S51, the multi-scale radial basis function MRBF loss calculation function is as follows: in and are the factor matrices of the source domain and the target domain after tensor singular value decomposition, which contain the structural information of features of different dimensions, and σ is the scale parameter that controls the width of the Gaussian kernel; Step S52, RBF(·) is a radial basis function, specifically a Gaussian kernel function:
6. The method for cross-database speech emotion recognition based on three-dimensional tensor structure information according to claim 1 is characterized in that Step (6) specifically includes: Step S61, the overall loss of the model is: L all =γL cls +βL re1 +βL re2 +λL MRBF Where, L cls is the classification loss, L re1 is the source domain tensor reconstruction loss, L re2 is the target domain tensor reconstruction loss, L MRBF is the radial basis function loss of the source domain and the target domain; Step S62, using Adaptive Moment Estimation (Adam) algorithm to optimize the network; Step S63: After each round of loss function calculation, update the parameters according to the gradient of each parameter in the network using the loss function to optimize the feature processing network. The update process is as follows: Where W is the network parameter, η is the learning rate, m t is the first-order moment estimate, v t For the second moment estimate, ε is a very small number to prevent the denominator from being zero.
Citation Information
Cited By
Regional linkage monitoring feedback purification control method and system for multiple units
CN120428681A
