Voice emotion recognition method based on time-space gating interaction
Through the spatiotemporal gated interaction network and dynamic learning rate strategy, the recognition difficulty caused by the personalized characteristics in speech emotion recognition is solved, the accuracy and robustness of speech emotion recognition are improved, and better extraction of deep speech features is achieved. and understanding.
Patent Information
- Application Number
- CN202410858176.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-10
AI Technical Summary
Existing speech emotion recognition technology has shortcomings in extracting deep features of speech. In particular, it is difficult to accurately identify the emotional expressions of different speakers due to the differential impact caused by personalized characteristics.
Adopting a method based on spatiotemporal gated interaction, by constructing a spatiotemporal gated interaction backbone network, the gated interaction unit is designed for speech spatiotemporal feature interaction, and the verification set is used to dynamically update the learning rate to enhance the generalization ability of the model, combined with the time pyramid pool ization and gating mechanisms to extract and fuse features.
It improves the accuracy and robustness of speech emotion recognition, alleviates the impact of personalization on recognition, enhances the generalization ability of the model, and can more effectively capture the emotional information in speech.
Smart Images

Figure CN118629433A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of speech emotion recognition and relates to a speech emotion recognition method based on spatiotemporal gating interaction. Background Art
[0002] With the rapid development of artificial intelligence and machine learning technologies, speech sentiment analysis has become an indispensable research focus in the fields of natural language processing (NLP) and human-computer interaction. This technology is committed to capturing and understanding human emotional states from speech signals, giving intelligent systems more delicate emotional cognition capabilities. Speech sentiment analysis has shown great application potential in many fields, such as improving human-computer interaction experience, deepening emotional computing research, promoting mental health monitoring, and optimizing intelligent customer service systems. Because of its key role in improving user experience and optimizing interaction methods, researchers have paid great attention to speech sentiment analysis.
[0003] The accuracy and robustness of speech emotion analysis are crucial to understanding the emotional features in speech signals, but it faces many challenges. Due to the influence of different speakers, complex environments, and changing emotional states, it is particularly difficult to accurately extract implicit emotional features from speech. Although speech recognition technology has made significant progress, current intelligent applications still find it difficult to fully capture and interpret the rich emotional information contained in speech, and the ability to understand complex emotional expressions and contexts needs to be improved. Given that speech is the main medium of human communication, analyzing its emotional connotation is crucial to building harmonious social interactions. Therefore, incorporating speech emotion recognition into the core areas of scientific research will not only help promote the intelligence and personalization of human-computer communication, but also deepen the understanding of the core value of emotional intelligence in speech research.
[0004] In the past decade, deep learning has won wide acclaim in the field of machine learning for its outstanding multi-layer linear and nonlinear computing capabilities and unparalleled data representation capabilities. In speech emotion recognition technology, the breakthrough application of deep neural networks has significantly accelerated the development of this field, enabling machines to automatically and accurately extract stable and expressive emotional features from speech. Thanks to the excellent information flow control ability of the gating mechanism and the advantage of preventing gradient explosion, neural network models such as long short-term memory networks can accurately capture long-term dependencies in speech signals. This study uses deep learning tools such as convolutional neural networks (CNN) and transformers to recognize speech emotions, and uses the gating mechanism to interact with the spatiotemporal information of speech.
[0005] The significant challenge in current speech emotion recognition research is the lack of ability to effectively extract deep features of speech. This challenge mainly stems from the personalized nature of speech emotion expression, that is, different people have significant differences in expressing the same emotion. This personalization covers the sound quality, pitch, and language habits such as speaking speed and pauses, which brings obstacles to the accurate recognition of emotions in speech. In order to overcome this challenge, some studies have tried to use auxiliary tasks such as text recognition and speaker recognition to improve the robustness of the model and alleviate the impact of personalization on speech emotion recognition to a certain extent. Although these attempts have achieved certain results, the impact of personalization on emotion recognition has not been effectively alleviated. Because speech emotion recognition is complex, it requires the model to deeply understand the emotional information in the speech, not just the sound features or speaker identity. Therefore, we need to further explore new methods and technologies to better deal with the impact of personalization on speech emotion recognition and improve the accuracy and reliability of recognition. Summary of the invention
[0006] In view of this, the object of the present invention is to provide a speech emotion recognition method based on spatiotemporal gating interaction.
[0007] To achieve the above purpose, the technical means adopted by the present invention are described in detail as follows:
[0008] A speech emotion recognition method based on spatiotemporal gating interaction comprises the following steps:
[0009] Step 1: Divide the samples into training set and test set, and a certain proportion of the training set will be used as the validation set;
[0010] Step 2: Construct a spatiotemporal gated interactive backbone network;
[0011] Step 3: Design a gated interaction unit for speech spatiotemporal feature interaction;
[0012] Step 4: Design a strategy to dynamically update the learning rate using the validation set;
[0013] Step 5: Conduct comparative experiments with various different methods to verify the effectiveness of the proposed method.
[0014] Optionally, in step 1, the samples are divided into a training set, a validation set, and a test set. To alleviate the impact of personalization on speech emotion recognition, the validation set is used to obtain a guiding factor for updating the learning rate to enhance the generalization ability of the model. Specifically, the sample division satisfies: The size of the speech sample set is S.
[0015] Optionally, the specific process of step 2 includes: time domain emotion feature extraction, the pre-trained WavLM model can obtain potential emotion representation with contextual relationship from the original waveform of the speech. Specifically, the output of WavLM is as follows:
[0016] f w =WavLM(x i |θ w ),
[0017] Among them, x i represents the speech time domain waveform directly input into the pre-trained WavLM model, θ w are the model parameters of WavLM, It represents the potential emotional features with contextual relationships obtained by WavLM, T1 represents the time dimension determined by the length of the input speech, and d1 represents the feature dimension.
[0018] Due to the variability of speech length, the time dimension of the emotional features of different speech samples extracted using WavLM is also variable. Therefore, this paper uses time pyramid pooling to map the variable time dimension to a fixed time dimension size for subsequent feature interaction and classification. This pooling method divides the emotional features into different levels from the time dimension, and finally performs feature concatenation to obtain the ability to handle the variability of speech length. The levels of time pyramid pooling are divided into PL = {2 i |i=0,1,…,n}, after n+1 times of pooling operations, we finally get a fixed-length time dimension output f t .
[0019] f t =TPP(f' w ),
[0020] represents the fixed-size temporal sentiment feature obtained through TPP, represents f w Temporal features after spatiotemporal gating interaction with spatial features.
[0021] Spatial domain sentiment feature extraction, in order to ensure that the network can effectively focus on the frame and frequency dimensions, two parallel convolutions are designed in the first layer to focus on different dimensional features respectively, and then the features are spliced according to the first dimension. The output is:
[0022]
[0023] In the formula, Conv 1a (·) and Conv 1b (·) represents the feature extraction function of the time dimension and space dimension of the speech Fbank feature, Concat(·) represents feature concatenation, f represents the number of frames, and M represents the number of Mel filters. Then, the second layer is designed to convert X a The first half of the features output by WavLM Perform the first spatiotemporal gating feature interaction and convolution to obtain feature X b , specifically:
[0024]
[0025] Among them, h represents the spatial domain output after the spatiotemporal feature gating interaction, Then represents the time domain output, G(·) represents global pooling. Then the third layer is designed to convert X b The second half of the features of the WavLM output Perform another spatiotemporal gating feature interaction and convolution to obtain feature X c , specifically:
[0026]
[0027] in, represents the time domain output after gated interaction. Then two convolution operations are performed to obtain the speech feature X d .
[0028]
[0029] At the same time, the time domain features will also be updated to f w ':
[0030]
[0031] Optionally, the specific process of step 3 includes: the present invention includes two gate control units, GI1 and GI2. For GI1, it only contains an output gate, specifically:
[0032]
[0033] Among them, O F represents the output gate, S F With T F Represent spatial domain features and temporal domain features respectively, and Both represent the parameters of the output gate, and G(·) represents the global average pooling. Due to the variability of speech length, the S extracted after different speech input models F and T F The size is not fixed, so this paper uses G(·) to eliminate this effect. Therefore, the final output H' of the gated interaction F :
[0034] H' F =tanh(H F )⊙O F ,H F ∈{S F ,T F},
[0035] Among them, H' F Represents the spatial feature S after interaction F Or time domain characteristics T F , ⊙ represents the mathematical operation of Hadamard product, It refers specifically to the multiplication operation between matrices, σ(·) refers specifically to the sigmoid(·) activation function, and tanh(·) is the activation function.
[0036] At the same time, in order to ensure that the spatiotemporal features can be effectively integrated, this paper also designs a method of feature integration using the gating mechanism GI2. GI2 consists of a reset gate and an update gate. Specifically:
[0037]
[0038] In the formula, R F Represents the reset gate, Z F represents the update gate, and Represents the parameters of the corresponding gate. The final output of GI2 is expressed as:
[0039] O TS =tanh(G(S F )⊙R F +G(T F )⊙(1-R F ))⊙Z F +(G(S F )+G(T F ))⊙(1-Z F ),
[0040] Among them, O TS Represents the fusion features obtained using the gated interaction method.
[0041] Optionally, in step 4: the learning rate update formula is expressed as:
[0042]
[0043] In the formula, represents the average accuracy of the validation set at the tth epoch, eps is a very small number used to avoid numerical instability when the denominator is zero, and lr represents the learning rate. The weighted accuracy (WA) and unweighted accuracy (UA) are expressed as:
[0044]
[0045] Among them, K represents the total number of emotion categories; TP i Specifically refers to the number of samples of the i-th category of emotion correctly predicted by the model; and FN iIt represents the number of samples of the i-th category emotion that is incorrectly predicted by the model.
[0046] The above learning rate update formula has the following problems: when p>1(c t+1 <c t ), at this time lr' is too small to guide the model out of the local optimum. At the same time, as t increases, will be much smaller than lr. To avoid this, it needs to be improved.
[0047]
[0048] In the formula, β>1 represents the control hyperparameter, which is used to measure the degree of updating the learning rate. t+1 <c t ), obtain a larger learning rate and guide the model out of the local optimum; when p<1(c t+1 >c t ), a smaller learning rate can be obtained, thus ensuring that the model parameters change around the current optimal solution.
[0049] Optionally, in step 5: In order to verify the effectiveness of the proposed method, the present invention conducts comparative experiments with a variety of different methods. In addition, the present invention conducts experiments on datasets such as IEMOCAP and EMODB, and further confirms the superiority of the proposed method by comparing it with the current advanced methods.
[0050] The beneficial effects of the present invention are: proposing a speech emotion recognition method based on spatiotemporal gated interaction, 1) dividing the samples into a training set and a test set, and at the same time, a certain proportion of the training set will be set out as a verification set; 2) constructing a spatiotemporal gated interaction backbone network; 3) designing a gated interaction unit for speech spatiotemporal feature interaction; 4) designing a strategy for dynamically updating the learning rate using the verification set.
[0051] The unique advantages, core objectives and significant features of the present invention will be gradually revealed in the subsequent detailed description. For technical experts in this field, these highlights will naturally become clear after in-depth research, and may even be further inspired and understood in the process of practical application of the present invention. In short, the value and potential benefits of the present invention will be fully revealed and verified in the discussion below. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to make the objectives, technical implementation paths and significant advantages of the present invention clearer and easier to understand, the present invention will be described in detail and optimized with the help of the accompanying drawings. Through such description, readers will be able to more intuitively understand the core elements and potential value of the present invention.
[0053] Figure 1 Overall process;
[0054] Figure 2 The overall framework of the speech emotion recognition method based on spatiotemporal gating interaction;
[0055] Figure 3 Temporal pyramid pooling module structure diagram;
[0056] Figure 4 The structure diagram of the spatial feature extraction module;
[0057] Figure 5 Left (right) figure: Structure diagram of the spatiotemporal gating GI1 (GI2) interaction unit. DETAILED DESCRIPTION
[0058] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0059] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0060] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0061] See also Figures 1 to 5 The present invention provides a speech emotion recognition method with spatiotemporal gating interaction. Figure 1 The following is a flowchart for specific implementation.
[0062] Figure 2The overall architecture design of the present invention is presented. Figure 3 , Figure 4 as well as Figure 5 is right Figure 2 The internal structure of specific modules in the system is shown in more detail, revealing the specific composition and details of these modules. The following is an explanation with reference to the accompanying drawings, including the following steps:
[0063] Optionally, step two specifically includes: establishing a corresponding parallel spatiotemporal gated interaction network, extracting speech emotion features from the time domain waveform and spectrum of the speech respectively, and using a gated interaction unit to perform spatiotemporal feature gated interaction in the shallow network and the deep network.
[0064] Figure 2 It is the overall structure diagram of the spatiotemporal gated interactive network of the present invention, which mainly includes the time pyramid pooling structure for time domain feature extraction ( Figure 3 ), spatial feature extraction structure ( Figure 4 ) and the gate control unit structure ( Figure 5 ). The proposed spatiotemporal gating interaction network structure is as follows Figure 2 As shown in the figure, we use the parallel spatiotemporal gated interaction network as the model backbone of the present invention. At the same time, in order to alleviate the impact of personalization on spatiotemporal feature extraction, we use the validation set to guide the update of the learning rate. The main structure is the temporal domain sentiment feature extraction, the spatial domain sentiment feature extraction, the gated interaction unit and the learning rate update strategy.
[0065] Time-domain emotion feature extraction: The pre-trained WavLM model can obtain contextual latent emotion representation from the original waveform of the speech. Specifically, the output of WavLM is:
[0066] f w =WavLM(x i |θ w ),
[0067] Among them, x i represents the speech time domain waveform directly input into the pre-trained WavLM model, θ w are the model parameters of WavLM, It represents the potential emotional features with contextual relationships obtained by WavLM, T1 represents the time dimension determined by the length of the input speech, and d1 represents the feature dimension.
[0068] Due to the variability of speech length, the time dimension of the emotional features of different speech samples extracted using WavLM is also variable. Therefore, this paper uses time pyramid pooling to map the variable time dimension to a fixed time dimension size for subsequent feature interaction and classification. This pooling method divides the emotional features into different levels from the time dimension, and finally performs feature concatenation to obtain the ability to handle the variability of speech length. The levels of time pyramid pooling are divided into PL = {2 i |i=0,1,…,n}, after n+1 times of pooling operations, we finally get a fixed-length time dimension output f t .
[0069] f t =TPP(f' w ),
[0070] in, represents the fixed-size temporal sentiment feature obtained through TPP, represents f w Temporal features after spatiotemporal gating interaction with spatial features.
[0071] Spatial emotional feature extraction: To ensure that the network can effectively focus on the frame and frequency dimensions, two parallel convolutions are designed in the first layer to focus on features of different dimensions respectively, and then feature concatenation is performed according to the first dimension. The output is:
[0072]
[0073] In the formula, Conv 1a (·) and Conv 1b (·) represents the feature extraction function of the time dimension and space dimension of the speech Fbank feature, Concat(·) represents feature concatenation, f represents the number of frames, and M represents the number of Mel filters. Then, the second layer is designed to convert X a The first half of the features output by WavLM Perform the first spatiotemporal gating feature interaction and convolution to obtain feature X b , specifically:
[0074]
[0075] Among them, h represents the spatial domain output after the spatiotemporal feature gating interaction, Then represents the time domain output, G(·) represents global pooling. Then the third layer is designed to convert X b The second half of the features of the WavLM output Perform another spatiotemporal gating feature interaction and convolution to obtain feature X c , specifically:
[0076]
[0077] in, represents the time domain output after gated interaction. Then two convolution operations are performed to obtain the speech feature X d .
[0078]
[0079] At the same time, the time domain features will also be updated to f w ':
[0080]
[0081] Gated interaction unit: The present invention includes two gating units, GI1 and GI2. GI1 only contains output gates, specifically:
[0082]
[0083] Among them, O F represents the output gate, S F With T F Represent spatial domain features and temporal domain features respectively, and Both represent the parameters of the output gate, and G(·) represents the global average pooling. Due to the variability of speech length, the S extracted after different speech input models F and T F The size is not fixed, so this paper uses G(·) to eliminate this effect. Therefore, the final output H' of the gated interaction F :
[0084] H' F =tanh(H F )⊙O F ,H F ∈{S F ,T F},
[0085] Among them, H' F Represents the spatial feature S after interaction F Or time domain characteristics T F , ⊙ represents the mathematical operation of Hadamard product, It refers specifically to the multiplication operation between matrices, σ(·) refers specifically to the sigmoid(·) activation function, and tanh(·) is the activation function.
[0086] At the same time, in order to ensure that the spatiotemporal features can be effectively integrated, this paper also designs a method of feature integration using the gating mechanism GI2. GI2 consists of a reset gate and an update gate. Specifically:
[0087]
[0088] In the formula, R F Represents the reset gate, Z F represents the update gate, and (i=1,2) represents the parameters of the corresponding gate. The final output of GI2 is expressed as:
[0089] O TS =tanh(G(S F )⊙R F +G(T F )⊙(1-R F ))⊙Z F +(G(S F )+G(T F ))⊙(1-Z F ),
[0090] Among them, O TS Represents the fusion features obtained using the gated interaction method.
[0091] Learning rate update strategy: Regarding the update of learning rate, the formula can be expressed as:
[0092]
[0093] In the formula, represents the average accuracy of the validation set at the tth epoch, eps is a very small number used to avoid numerical instability when the denominator is zero, and lr represents the learning rate. The weighted accuracy (WA) and unweighted accuracy (UA) are expressed as:
[0094]
[0095] Among them, K represents the total number of emotion categories; TP i Specifically refers to the number of samples of the i-th category of emotion correctly predicted by the model; and FN i It represents the number of samples of the i-th category emotion that is incorrectly predicted by the model.
[0096] The above learning rate update formula has the following problems: when p>1(c t+1 <c t ), at this time lr' is too small to guide the model out of the local optimum. At the same time, as t increases, will be much smaller than lr. To avoid this, it needs to be improved.
[0097]
[0098] In the formula, β>1 represents the control hyperparameter, which is used to measure the degree of updating the learning rate. t+1 <ct ), obtain a larger learning rate and guide the model out of the local optimum; when p<1(c t+1 >c t ), a smaller learning rate can be obtained, thus ensuring that the model parameters change around the current optimal solution.
Claims
1. A speech emotion recognition method based on time-gated interaction, the method comprising the following steps: Step 1: Divide the samples into training set and test set, and a certain proportion of the training set will be used as the validation set; Step 2: Construct a spatiotemporal gated interactive backbone network; Step 3: Design a gated interaction unit for speech spatiotemporal feature interaction; Step 4: Design a strategy to dynamically update the learning rate using the validation set; Step 5: Conduct comparative experiments with various different methods to verify the effectiveness of the proposed method.
2. According to the method of speech emotion recognition based on spatiotemporal gating interaction described in claim 1, the advantage is that: in the step 1, the samples are divided into a training set, a validation set, and a test set. In order to alleviate the impact of personalization on speech emotion recognition, the validation set is used to obtain a guiding factor for updating the learning rate to enhance the generalization ability of the model. Specifically, the speech sample set size S, the sample division satisfies:
3. The method for speech emotion recognition with spatiotemporal gating interaction according to claim 2 has the advantages that: in the step 2, the temporal domain emotion feature extraction: the pre-trained WavLM model can obtain potential emotion representation with contextual relationship from the original waveform of the speech. Specifically, the output of WavLM is as follows: f w =WavLM(x i |θ w ), in, x i represents the speech time domain waveform directly input into the pre-trained WavLM model, θ w are the model parameters of WavLM, It represents the potential emotional features with contextual relationships obtained by WavLM, T1 represents the time dimension determined by the length of the input speech, and d1 represents the feature dimension. Due to the variability of speech length, the time dimension of the emotional features of different speech samples extracted using WavLM is also variable. Therefore, this paper uses time pyramid pooling to map the variable time dimension to a fixed time dimension size for subsequent feature interaction and classification. This pooling method divides the emotional features into different levels from the time dimension, and finally performs feature concatenation to obtain the ability to handle the variability of speech length. The levels of time pyramid pooling are divided into PL = {2 i |i=0,1,…,n}, after n+1 times of pooling operations, we finally get a fixed-length time dimension output f t . f t =TPP(f' w ), represents the fixed-size temporal sentiment feature obtained through TPP, represents f w Temporal features after spatiotemporal gating interaction with spatial features. Spatial emotional feature extraction: To ensure that the network can effectively focus on the frame and frequency dimensions, two parallel convolutions are designed in the first layer to focus on features of different dimensions respectively, and then feature concatenation is performed according to the first dimension. The output is: In the formula, Conv 1a (·) and Conv 1b (·) represents the feature extraction function of the time dimension and space dimension of the speech Fbank feature, Concat(·) represents feature concatenation, f represents the number of frames, and M represents the number of Mel filters. Then, the second layer is designed to convert X a The first half of the features output by WavLM Perform the first spatiotemporal gating feature interaction and convolution to obtain feature X b , specifically: Among them, h represents the spatial domain output after the spatiotemporal feature gating interaction, Then represents the time domain output, G(·) represents global pooling. Then the third layer is designed to convert X b The second half of the features of the WavLM output Perform another spatiotemporal gating feature interaction and convolution to obtain feature X c , specifically: in, represents the time domain output after gated interaction. Then two convolution operations are performed to obtain the speech feature X d . At the same time, the time domain features will also be updated to f w ':
4. The method for speech emotion recognition with spatiotemporal gating interaction according to claim 3 has the advantage that: in step 3, two gating units, GI1 and GI2, are included. For GI1, only an output gate is included, specifically: in, O F represents the output gate, S F With T F Represent spatial domain features and temporal domain features respectively, and Both represent the parameters of the output gate, and G(·) represents the global average pooling. Due to the variability of speech length, the S extracted after different speech input models F and T F The size is not fixed, so this paper uses G(·) to eliminate this effect. Therefore, the final output H' of the gated interaction F : H' F =tanh(H F )⊙O F ,H F ∈{S F ,T F }, Among them, H' F Represents the spatial feature S after interaction F Or time domain characteristics T F , ⊙ represents the mathematical operation of Hadamard product, It refers specifically to the multiplication operation between matrices, σ(·) refers specifically to the sigmoid(·) activation function, and tanh(·) is the activation function. At the same time, in order to ensure that the spatiotemporal features can be effectively integrated, this paper also designs a method of feature integration using the gating mechanism GI2. GI2 consists of a reset gate and an update gate. Specifically: In the formula, R F Represents the reset gate, Z F represents the update gate, and Represents the parameters of the corresponding gate. The final output of GI2 is expressed as: O TS =tanh(G(S F )⊙R F +G(T F )⊙(1-R F ))⊙Z F +(G(S F )+G(T F ))⊙(1-Z F ), Among them, O TS Represents the fusion features obtained using the gated interaction method.
5. The method for speech emotion recognition based on spatiotemporal gating interaction according to claim 4 has the advantage that: in step 4, a learning rate update method is designed to balance the difference in sample distribution between the training set and the test set. Specifically, the learning rate update formula is expressed as: In the formula, represents the average accuracy of the validation set at the tth epoch, eps is a very small number used to avoid numerical instability when the denominator is zero, and lr represents the learning rate. The weighted accuracy (WA) and unweighted accuracy (UA) are expressed as: in, K represents the total number of sentiment categories; TP i Specifically refers to the number of samples of the i-th category of emotion correctly predicted by the model; and FN i It represents the number of samples of the i-th category emotion that is incorrectly predicted by the model. The above learning rate update formula has the following problems: when p>1(c t+1 <c t ), at this time lr' is too small to guide the model out of the local optimum. At the same time, as t increases, will be much smaller than lr. To avoid this, it needs to be improved. In the formula, β>1 represents the control hyperparameter, which is used to measure the degree of updating the learning rate. t+1 <c t ), obtain a larger learning rate and guide the model out of the local optimum; when p<1(c t+1 >c t ), a smaller learning rate can be obtained, thus ensuring that the model parameters change around the current optimal solution.
6. The method for speech emotion recognition based on spatiotemporal gated interaction according to claim 5 has the advantage that: in the step 5, in order to verify the effectiveness of the proposed method, the present invention conducts comparative experiments with a variety of different methods. In addition, the present invention conducts experiments on data sets such as IEMOCAP and EMODB, and further confirms the superiority of the proposed method by comparing with current advanced methods. Such an experimental design not only ensures the comprehensive verification of the method, but also provides strong support for its effect in practical applications.
