Speech emotion recognition method and system based on time-frequency features and global attention
Through methods based on time-frequency features and global attention, the time and frequency features of speech signals are extracted and fused, and combined with convolutional neural networks and attention mechanisms, the problem of unused features and long dependencies in speech emotion recognition in the existing technology is solved. , improving the recognition accuracy.
Patent Information
- Application Number
- CN202210852485.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-07-20
AI Technical Summary
Existing speech emotion recognition technology is difficult to fully utilize the temporal characteristics of speech signals, the connection between static features and dynamic features is not fully utilized, and it is difficult to effectively deal with the problems of long dependencies and query-independent dependencies.
A method based on time-frequency features and global attention is used to extract the time features and frequency features of the three-dimensional logarithmic mel spectrogram, and input them into the spatial feature extraction module and the global context attention module for fusion, using convolutional neural The network and attention mechanism extract the spatial and temporal features of the speech signal, and combine with the global context attention module to analyze the feature connections between channels.
It improves the accuracy of speech emotion recognition, makes full use of the static and dynamic features of speech signals, solves the problem of unused connections between static features and dynamic features, and improves the ability to handle long dependencies and query-independent dependencies.
Smart Images

Figure CN115019833B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of speech signal processing and pattern recognition, and in particular to a speech emotion recognition method and system based on time-frequency features and global attention. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute the prior art that has been known to a person skilled in the art.
[0003] Speech emotion recognition (SER), as an important part of human-computer interaction, has great research value and practical value. Despite this, SER is still a challenging task. The first challenge faced by researchers is how to extract appropriate acoustic features from speech to represent speech. Many previous researchers used several manual acoustic features (LLDs) of speech, such as prosodic features (e.g., pitch, energy, zero crossing), spectral features (e.g., linear prediction coefficient (LPC), linear prediction cepstral coefficient (LPCC), mel frequency cepstral coefficient (MFCC)) and nonlinear features, such as Teager-energy-operator (TEO). However, the above features can only simply describe the characteristics of speech, or can only describe the static characteristics of speech. Speech is time series data and contains a large number of dynamic features. Using only static features cannot fully utilize the acoustic characteristics of speech.
[0004] Inspired by visual recognition tasks and the development of convolutional neural networks (CNNs), speech emotion recognition using CNNs has gradually become mainstream. Because CNNs are good at capturing features in the spatial domain, and spectrograms can represent speech features in the form of images. CNNs are used to capture the features of audio signals from a spatial perspective and recognize speech. As we all know, speech signals are typical time series data, and making good use of the temporal acoustic features of speech signals will increase recognition accuracy. The long short-term memory recurrent neural network (LSTM-RNN) has the advantage of being suitable for modeling the temporal dependencies between sequences and is widely used in SER. By using the attention mechanism to utilize the parts that have a significant impact on emotion recognition, long sequence time information can also be processed.
[0005] Although the above neural network models have been successfully applied in language emotion recognition, there are still the following problems that need to be solved: (1) Speech is time series data, and simply using static features cannot fully express the acoustic features of speech. In addition, the connection between static features and dynamic features is not utilized, and there are also a large number of acoustic features hidden in it; (2) Most methods based on CNN or LSTM and attention mechanisms only extract the spatial information or temporal information of speech, but speech is rich data and does not fully utilize spatial and temporal information; (3) Whether it is RNN, LSTM or ordinary attention mechanism, it cannot solve the long-term dependency problem and query-irrelevant dependency problem well. Summary of the invention
[0006] In order to solve the above problems, the first aspect of the present invention provides a speech emotion recognition method based on time-frequency features and global attention, so as to make full use of the spatial features and temporal features contained in the speech signal and improve the accuracy of emotion recognition.
[0007] In order to achieve the above object, the present invention mainly includes the following aspects:
[0008] In a first aspect, an embodiment of the present invention provides a method for speech emotion recognition based on time-frequency features and global attention, the method comprising:
[0009] Preprocessing the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram;
[0010] Extracting the time features and frequency features of the three-dimensional logarithmic Mel-spectrogram and fusing them to obtain the time-frequency features of the speech signal;
[0011] Input the time-frequency feature into a preset spatial feature extraction module, and output the spatial feature of the speech signal; and input the time-frequency feature into a global context attention module, and output the temporal feature of the speech signal, and use the global context attention module to determine the features between the channels of the three-dimensional logarithmic Mel spectrogram, and fuse the obtained spatial feature and temporal feature;
[0012] The fused features are subjected to dimensionality reduction and input into the classifier for emotion recognition.
[0013] In a possible implementation, the preprocessing of the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram includes:
[0014] Acquire the speech to be recognized, divide the speech into frames, remove the silence at the beginning and the end, and unify the length of the speech to obtain a speech signal;
[0015] Performing windowing processing on the speech signal, performing short-time Fourier transform on the windowed speech signal to obtain a power spectrum, inputting the power spectrum into a Mel filter bank, and performing logarithmic operation to obtain a logarithmic Mel spectrogram;
[0016] The first-order derivative and the second-order derivative of the logarithmic Mel-spectrogram are calculated and fused with the logarithmic Mel-spectrogram to obtain a three-dimensional logarithmic Mel-spectrogram.
[0017] In one possible implementation, a first convolutional neural network is used to extract the temporal features of the three-dimensional logarithmic Mel-spectrogram, and a second convolutional neural network is used to extract the frequency features of the three-dimensional logarithmic Mel-spectrogram; the first convolutional neural network and the second convolutional neural network both include a convolutional layer with an activation function of ReLU, a layer normalization layer and a local average pooling, and different convolution kernel sizes are set to extract the frequency features and / or temporal features of the three-dimensional logarithmic Mel-spectrogram.
[0018] In a possible implementation, the spatial feature extraction module includes five convolutional neural network layers, each of which includes a convolution layer, a normalization layer, a ReLU activation function, and a local average pooling layer.
[0019] In a possible implementation, a softmax activation function is used in the global context attention module, and the information selection mechanism of softmax is utilized to calculate the maximum probability associated with the current information.
[0020] In a possible implementation, after fusing the obtained spatial features and temporal features and before performing dimensionality reduction processing on the fused features, it also includes: inputting the fused features into a global context attention module, calculating the unprocessed temporal features in the spatial feature extraction module, and the feature connections between the channels of the fused features.
[0021] In a possible implementation, GlobalAverPooling is used to perform dimensionality reduction processing on the fused features to obtain a feature vector after dimensionality reduction; the feature vector is input into a SoftMax classifier for classification, and the emotion corresponding to the speech signal is determined according to the classification result.
[0022] In a second aspect, an embodiment of the present invention provides a speech emotion recognition system based on time-frequency features and global attention, the speech emotion recognition system comprising:
[0023] A preprocessing module, used for preprocessing the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram;
[0024] A feature extraction module, used to extract the time features and frequency features of the three-dimensional logarithmic Mel-spectrogram, and fuse them to obtain the time-frequency features of the speech signal;
[0025] A feature fusion module is used to input the time-frequency feature into a preset spatial feature extraction module, and output the spatial feature of the speech signal; and input the time-frequency feature into a global context attention module, and output the temporal feature of the speech signal, and use the global context attention module to determine the features between the channels of the three-dimensional logarithmic Mel-spectrogram, and fuse the obtained spatial feature and temporal feature;
[0026] The emotion recognition module is used to reduce the dimension of the fused features and input them into the classifier for emotion recognition.
[0027] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the speech emotion recognition method described in the first aspect and any possible implementation scheme of the first aspect are performed.
[0028] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the speech emotion recognition method as described in the first aspect and any possible implementation scheme of the first aspect are executed.
[0029] Based on the above technical solution, the present invention has the following beneficial effects:
[0030] 1. By extracting the time and frequency features of the three-dimensional logarithmic Mel spectrogram and analyzing and processing it, the static and dynamic features of the speech signal, as well as the channel connection between the static and dynamic features, are fully utilized to obtain deeper feature connections and enrich the feature dimensions;
[0031] 2. Extract the time dimension and space (frequency) dimension data separately and fuse them; use the spatial feature extraction module and the global context attention module to analyze the time-frequency features, make full use of the spatial and temporal features contained in the speech signal, and analyze the inter-channel features of the fused features. The analyzed features are more comprehensive, which can solve the problem that the existing attention mechanism only learns dependencies that are not related to the query and improve the accuracy of emotion recognition results. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0033] Figure 1 This is one of the flow charts of the speech emotion recognition method provided by the embodiment of the present invention;
[0034] Figure 2 This is a second flow chart of the speech emotion recognition method provided by an embodiment of the present invention;
[0035] Figure 3 is a schematic diagram of the internal structure of the global context attention module provided by an embodiment of the present invention;
[0036] Figure 4 is a structural diagram of a speech emotion recognition system provided by an embodiment of the present invention;
[0037] Figure 5 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0039] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0040] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0041] See also Figure 1 and Figure 2 ,like Figure 1 As shown in, this embodiment provides a speech emotion recognition method based on time-frequency features and global attention, and the speech emotion recognition method specifically includes the following steps:
[0042] S101: Preprocess the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram.
[0043] In the specific implementation, the speech signal to be recognized is first obtained, and then the obtained speech signal is preprocessed, wherein the speech preprocessing includes framing, windowing, removing the first and last silences, unifying the speech length, etc. A three-dimensional log-Mel spectrogram is obtained based on the preprocessed speech signal.
[0044] By extracting the time and frequency features of the three-dimensional logarithmic Mel-spectrogram and analyzing and processing it, we can make full use of the static and dynamic features of speech, as well as the channel connection between the static and dynamic features, obtain deeper feature connections, enrich the feature dimensions, and thus help improve the accuracy of emotion recognition results.
[0045] As an optional implementation, the preprocessing of the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram specifically includes the following steps:
[0046] Step a: Acquire the speech to be recognized, divide the speech into frames, remove the silence at the beginning and end, and unify the length of the speech to obtain a speech signal.
[0047] In the specific implementation, the .wav format speech files in the data set are preprocessed. Using the initial sampling frequency of 22050Hz, the speech is framed, the silence at the beginning and end is removed, and then according to the experimental results, 3s is selected as the uniform length of each speech, and the speech longer than 3 seconds is trimmed, and the speech shorter than 3 seconds is padded. In this way, the speech signal is divided into small segments, one frame at a time, so as to facilitate the analysis of the speech signal.
[0048] Step b: performing windowing processing on the speech signal, performing short-time Fourier transform on the windowed speech signal to obtain a power spectrum, inputting the power spectrum into a Mel filter bank, and performing logarithmic operation to obtain a logarithmic Mel spectrogram.
[0049] In a specific implementation, in order to ensure smooth transition between frames and maintain its continuity, the speech signal is subjected to windowing processing. Specifically, the speech signal is windowed using a Hamming window, wherein the Hamming window formula is as follows:
[0050]
[0051] Where N is the number of frames and n is the current frame number.
[0052] The windowed speech signal is subjected to a short-time Fourier transform (STFT) to obtain the spectrum of each frame, and the spectrum is squared to obtain the power spectrum, so as to convert the time domain signal into an energy distribution in the frequency domain. Furthermore, the power spectrum is input into the Mel filter bank, and after logarithmic operation, a Log-Mel spectrogram is obtained. Here, the Log-Mel spectrogram can be regarded as a static feature of the speech signal.
[0053] Step c: Calculate the first-order derivative and the second-order derivative of the logarithmic Mel-spectrogram, and fuse them with the logarithmic Mel-spectrogram to obtain a three-dimensional logarithmic Mel-spectrogram.
[0054] In the specific implementation, the first-order derivative and the second-order derivative of the Log-Mel spectrogram are calculated and fused with the Log-Mel spectrogram to obtain the final artificial emotion feature 3-D Log-Mel spectrogram. Here, the first-order derivative and the second-order derivative of the Log-Mel spectrogram can be regarded as the dynamic features of the speech signal.
[0055] S102: extracting the time features and frequency features of the three-dimensional logarithmic Mel-spectrogram, and fusing them to obtain the time-frequency features of the speech signal.
[0056] In the specific implementation, a convolutional neural network model (CNN) is used to learn the time features and frequency features in the 3-D Log-Mel spectrogram respectively, and then fuse them to obtain the time-frequency features of the speech signal.
[0057] As an optional implementation, a first convolutional neural network is used to extract the time features of the three-dimensional logarithmic Mel spectrogram, and a second convolutional neural network is used to extract the frequency features of the three-dimensional logarithmic Mel spectrogram; the first convolutional neural network and the second convolutional neural network both include a convolution layer with an activation function of ReLU, a layer normalization layer, and a local average pooling, and different convolution kernel sizes are set to extract the frequency features and / or time features of the three-dimensional logarithmic Mel spectrogram. Specifically, the convolution kernel size of the CNN for extracting the time features is (10, 2), and the convolution kernel size for extracting the frequency features is (2, 8).
[0058] S103: Input the time-frequency feature into a preset spatial feature extraction module, and output the spatial feature of the speech signal; and input the time-frequency feature into a global context attention module, and output the temporal feature of the speech signal, and use the global context attention module to determine the features between the channels of the three-dimensional logarithmic Mel-spectrogram, and fuse the obtained spatial features and temporal features.
[0059] In the specific implementation, Figure 2As shown in , the obtained time-frequency features are input into the feature analysis module for analysis. Specifically, the time-frequency features are analyzed using the spatial feature extraction module and the global context attention module, making full use of the spatial and temporal features contained in the speech signal, and analyzing the inter-channel features of the fused features, so that the analyzed features are more comprehensive.
[0060] As an optional implementation, the spatial feature extraction module includes five convolutional neural network layers, each of which includes a convolutional layer, a normalization layer, a ReLU activation function, and a local average pooling layer. The convolutional layer formula is as follows:
[0061]
[0062] Among them, x(i,j) represents the input of the convolution layer, w(i,j) represents the convolution kernel of size c*d, z(i,j) represents the output obtained by the convolution layer, and then z(i,j) is placed in the layer normalization layer after the convolution. The layer normalization layer activates and normalizes the output of the convolution layer and uses the learned features as the input of a small batch. It acts as a regularizer to speed up the training process by reducing internal covariate shifts; the ReLU layer, as an activation function layer, defines the output of the layer normalization layer. The advantages of using ReLU are: its computational complexity is low, it can speed up learning to reduce the offset effect, and it performs better than other activation functions in batch normalization. The ReLU activation function is defined as:
[0063]
[0064] Among them, Z represents the characteristics of the input activation function.
[0065] Then, an average pooling layer is used to extract the average value from each patch of the activated convolutional feature map. It is used to prevent overfitting and downsample the output features to reduce the computational load; finally, the feature set is reduced in dimension by global average pooling to obtain the spatial feature Z i1 This facilitates the subsequent feature fusion.
[0066] The global context attention module is used to calculate the temporal features of the speech signal, and the global context attention module is used to calculate the features between the 3-D Log-Mel spectrogram channels. Specifically, a global context attention module is constructed to calculate the temporal features in the fusion features and calculate the features within the 3-D Log-Mel spectrogram channels. The expressions are as follows:
[0067]
[0068] Among them, X i and X jrepresents the input of the global context module, ∑ j α j X j is the context modeling module, using weight α j The features of all positions are combined by weighted average to obtain the global context feature N p is the number of positions in the feature, δ(·) represents the feature transformation to capture the channel interdependence features of the 3-D Log-Mel spectrogram, and F(.,.) represents the fusion function, which is used to merge the global context features into the features of each position, and finally obtain the rich temporal features Z after dimensionality reduction. i2 ; Finally, the temporal features and spatial features are fused to obtain the fused feature Z i :
[0069] Z i =Add(Z i1 , Z i2 ).
[0070] like Figure 3 As shown in , the detailed formula of the fused features is as follows:
[0071]
[0072] in is the weight of global attention, δ(·) = W v2 ReLU(LN(W v1 (·))) represents the feature transformation module, which is used to capture the interdependence between channels. k and W v represents linear transformation (1×1 convolution), X i and X j For input.
[0073] As an optional implementation, after fusing the obtained spatial features and temporal features and before performing dimensionality reduction processing on the fused features, it also includes: inputting the fused features into a global context attention module, calculating the unprocessed temporal features in the spatial feature extraction module, and the feature connections between the channels of the fused features.
[0074] CNN has great advantages in processing spatial data, but cannot process temporal data. It uses the global context attention module to continue calculating the residual temporal features, and then generates new feature dependencies between channels through feature fusion. This is also a good and useful feature for speech analysis, so the global context attention module is used again for analysis to obtain the final features.
[0075] S104: Perform dimensionality reduction processing on the fused features and input them into the classifier for emotion recognition.
[0076] Optionally, GlobalAverPooling is used to perform dimensionality reduction processing on the fused features to obtain a feature vector after dimensionality reduction; the feature vector is input into a SoftMax classifier for classification, and the emotion corresponding to the speech signal is determined according to the classification result.
[0077] In the specific implementation, the final features are input into the GlobalAverPooling module, and the GlobalAverPooling module is used for dimensionality reduction, which reduces the computational complexity, greatly reduces the parameters of the network, and regularizes the entire network structure to prevent overfitting, directly giving each channel actual meaning, and obtaining the vector after dimensionality reduction. The vector after dimensionality reduction is input into the SoftMax classifier to classify the emotion, and the output is expressed in the (0,1) interval, and the dimension with the maximum probability is found as the final output result, that is, the final emotion.
[0078] See also Figure 4 , Figure 4 is a structural diagram of a speech emotion recognition system provided by an embodiment of the present invention, such as Figure 4 As shown in , this embodiment also provides a speech emotion recognition system based on time-frequency features and global attention, and the speech emotion recognition system 400 includes:
[0079] A preprocessing module 410 is used to preprocess the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram;
[0080] A feature extraction module 420 is used to extract the time feature and frequency feature of the three-dimensional logarithmic Mel-spectrogram, and fuse them to obtain the time-frequency feature of the speech signal;
[0081] A feature fusion module 430 is used to input the time-frequency feature into a preset spatial feature extraction module, and output the spatial feature of the speech signal; and input the time-frequency feature into a global context attention module, and output the temporal feature of the speech signal, and use the global context attention module to determine the features between the channels of the three-dimensional logarithmic Mel-spectrogram, and fuse the obtained spatial feature and temporal feature;
[0082] The emotion recognition module 440 is used to perform dimensionality reduction processing on the fused features and input them into the classifier for emotion recognition.
[0083] The speech emotion recognition system provided in this embodiment is used to implement the aforementioned speech emotion recognition method. Therefore, the specific implementation method of the speech emotion recognition system can be found in the embodiment part of the speech emotion recognition method in the previous text, and will not be repeated here.
[0084] See also Figure 5 , Figure 5 Schematic diagram of the structure of a computer device provided by an embodiment of the present invention. Figure 5 As shown in , the computer device 500 includes a processor 510 , a memory 520 and a bus 530 .
[0085] The memory 520 stores machine-readable instructions executable by the processor 510. When the computer device 500 is running, the processor 510 communicates with the memory 520 via the bus 530. When the machine-readable instructions are executed by the processor 510, the above-mentioned Figure 1 and Figure 2 The steps of the speech emotion recognition method in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.
[0086] Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the speech emotion recognition method described in the above method embodiment are executed.
[0087] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0088] 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 speech emotion recognition method based on time-frequency features and global attention, characterized in that: The speech emotion recognition method comprises: Preprocessing the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram; Extracting the time features and frequency features of the three-dimensional logarithmic Mel-spectrogram and fusing them to obtain the time-frequency features of the speech signal; Input the time-frequency feature into a preset spatial feature extraction module, and output the spatial feature of the speech signal; and input the time-frequency feature into a global context attention module, and output the temporal feature of the speech signal, and use the global context attention module to determine the features between the channels of the three-dimensional logarithmic Mel spectrogram, and fuse the obtained spatial feature and temporal feature; The fused features are subjected to dimensionality reduction and input into the classifier for emotion recognition.
2. The speech emotion recognition method according to claim 1, characterized in that: The acquired speech signal is preprocessed to obtain a three-dimensional logarithmic Mel spectrogram, including: Acquire the speech to be recognized, divide the speech into frames, remove the silence at the beginning and the end, and unify the length of the speech to obtain a speech signal; Performing windowing processing on the speech signal, performing short-time Fourier transform on the windowed speech signal to obtain a power spectrum, inputting the power spectrum into a Mel filter bank, and performing logarithmic operation to obtain a logarithmic Mel spectrogram; The first-order derivative and the second-order derivative of the logarithmic Mel-spectrogram are calculated and fused with the logarithmic Mel-spectrogram to obtain a three-dimensional logarithmic Mel-spectrogram.
3. The speech emotion recognition method according to claim 1, characterized in that: A first convolutional neural network is used to extract the temporal features of the three-dimensional logarithmic Mel-spectrogram, and a second convolutional neural network is used to extract the frequency features of the three-dimensional logarithmic Mel-spectrogram; the first convolutional neural network and the second convolutional neural network both include a convolutional layer with an activation function of ReLU, a normalization layer and a local average pooling layer, and different convolution kernel sizes are set to extract the frequency features and / or temporal features of the three-dimensional logarithmic Mel-spectrogram.
4. The speech emotion recognition method according to claim 1, characterized in that: The spatial feature extraction module includes five convolutional neural network layers, each of which includes a convolution layer, a normalization layer, a ReLU activation function and a local average pooling layer.
5. The speech emotion recognition method according to claim 1, characterized in that: The global context attention module uses a softmax activation function and utilizes the softmax information selection mechanism to calculate the maximum probability associated with the current information.
6. The speech emotion recognition method according to claim 1, characterized in that: After the obtained spatial features and temporal features are fused, and before the fused features are subjected to dimensionality reduction processing, the method also includes: inputting the fused features into a global context attention module, calculating the unprocessed temporal features in the spatial feature extraction module, and the feature connections between the channels of the fused features.
7. The speech emotion recognition method according to claim 1, characterized in that: The fused features are subjected to dimensionality reduction processing by using GlobalAverPooling to obtain a dimensionality-reduced feature vector; the feature vector is input into a SoftMax classifier for classification, and the emotion corresponding to the speech signal is determined according to the classification result.
8. A speech emotion recognition system based on time-frequency features and global attention, characterized in that: The speech emotion recognition system comprises: A preprocessing module, used for preprocessing the acquired speech signal to obtain a three-dimensional logarithmic Mel-spectrogram; A feature extraction module, used to extract the time features and frequency features of the three-dimensional logarithmic Mel spectrogram, and fuse them to obtain the time-frequency features of the speech signal; A feature fusion module is used to input the time-frequency feature into a preset spatial feature extraction module, and output the spatial feature of the speech signal; and input the time-frequency feature into a global context attention module, and output the temporal feature of the speech signal, and use the global context attention module to determine the features between the channels of the three-dimensional logarithmic Mel-spectrogram, and fuse the obtained spatial feature and temporal feature; The emotion recognition module is used to reduce the dimension of the fused features and input them into the classifier for emotion recognition.
9. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the speech emotion recognition method as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the speech emotion recognition method according to any one of claims 1 to 7 are executed.
Citation Information
Cited By
Usage of emotion recognition in trade monitoring
US20240127335A1
