An adaptive multi-band speech mixed emotion perception method

Through the adaptive multi-band voice mixed emotion perception method, the frequency band division and dynamically adjust the network structure is solved by using human acoustic characteristics, the shortcomings of frequency band division and adaptive feature extraction in the prior art are solved, and more efficient emotional state recognition is achieved.

CN118800282BActive Publication Date: 2024-11-29HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411273679.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-11-29
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

Existing speech emotion recognition technology fails to effectively use human acoustic characteristics to divide frequency bands, ignores the unique performance of different emotions in frequency bands, and lacks adaptive variable feature extraction methods, making it difficult to deal with the dynamics and complexity of emotional states.

Method used

Adaptive multi-band speech mixed emotion perception method is adopted to extract the Mel spectral coefficients through Mel scale triangular filter and discrete cosine transform, divide the frequency bands according to the formant peak, and use adaptive depth residual blocks and mixed region attention mechanisms to perform characteristics. Extract and fusion, dynamically adjust network structure to adapt to different emotional states.

Benefits of technology

It significantly improves the accuracy and efficiency of emotional state recognition, can capture the spectrum differences of different emotional states more accurately, and enhances the model's ability to fully represent emotions, especially in short-term speech data, which outperforms existing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118800282B_ABST
    Figure CN118800282B_ABST
Patent Text Reader

Abstract

An adaptive multi-band speech mixed emotion perception method is proposed. The input speech signal is pre-processed and framed, and the spectral features are obtained by fast Fourier transform. The signal is processed by a Mel-scale triangular filter bank to simulate the nonlinear frequency characteristics of the human auditory system, and the Mel-spectral coefficients of key frequency information are extracted by discrete cosine transform. The frequency bands are divided according to the speech formants F1, F2, and F3, and the feature extraction strategy is customized. The adaptive deep residual block processes the features of each frequency band in parallel, and the deep controller dynamically adjusts the network depth to adapt to the signal complexity. In ADRB, multi-layer distillation and residual channels realize multi-level feature extraction, and residual connection optimizes feature fusion. The hybrid regional attention mechanism combines global and local attention to strengthen the dependency between frequency bands. The time-driven module strengthens the temporal continuity, and the final feature fusion is used for emotion classification and recognition. This method comprehensively captures emotional features and significantly improves the accuracy and efficiency of emotional state recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to speech emotion recognition technology, and in particular to an adaptive multi-band speech mixed emotion perception method. Background Art

[0002] Speech emotion recognition (SER) technology is designed to analyze the characteristics of speech signals and automatically identify the speaker's current emotional state. This technology is crucial in the field of human-computer interaction and can provide emotional perception in various scenarios such as virtual assistants, online learning platforms, and health detection systems, enabling interactive systems to better understand the user's emotional state and provide more accurate and personalized emotional feedback, thereby optimizing the user experience.

[0003] Emotional information is reflected in multiple speech features, such as pitch, frequency, intensity, etc. How to scientifically extract this information from the original speech signal to characterize emotion is an important challenge. Most traditional methods rely on tedious manual feature extraction and use artificially defined classification models for feature selection, and then combine these features with machine learning algorithms, such as support vector machines, Markov models, Bayesian networks, etc., to learn and predict emotional states. In recent years, with the development of deep learning technology, end-to-end deep neural network models have become the mainstream method for speech emotion recognition. These models can automatically learn more abstract and complex features from a large amount of data, thereby improving the accuracy and generalization of emotion recognition. For example: Li, Mengbo et al. designed a convolutional neural network (CNN) with a multi-scale kernel that can effectively capture and fuse speech emotion features at different scales, thereby improving recognition performance. Jitendra et al. proposed the use of a bidirectional long short-term memory network (Bi-LSTM) to enhance the model's ability to model emotional states by extracting temporal context information and preserving key features. Maji et al. used a dual-channel self-attention mechanism to aggregate the features of convolutional capsules (Conv-Cap) and bidirectional gated recurrent units (Bi-GRU) to obtain richer emotional information and improve information diversity; Prabhakar et al. proposed an architecture based on multi-channel convolutional neural networks (CNN) and long short-term memory networks (BLSTM) to enhance performance by fusing the spectral characteristics of amplitude and phase. However, these methods have the following disadvantages: First, the existing methods do not divide the frequency bands according to human acoustic characteristics to extract features, thereby ignoring the unique performance of different emotions in the frequency bands. Secondly, given the differences in representation complexity and distribution of different data sets for various emotional states, it is necessary to design an adaptive variable feature extraction method based on the basic network structure. Finally, the expression of speech emotional state is dynamic and continuously changing, so the model needs to pay attention to both semantic information over a longer time span and local specific acoustic characteristics.

[0004] It should be noted that the information disclosed in the above background technology section is only used for understanding the background of the present application, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the invention

[0005] The main purpose of the present invention is to solve the problems existing in the above-mentioned background technology and to provide an adaptive multi-band speech mixed emotion perception method.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect of the present invention, an adaptive multi-band speech mixed emotion perception method comprises the following steps:

[0008] S1. Preprocessing the input signal and framing the signal;

[0009] S2. Perform fast Fourier transform (FFT) on each frame signal to obtain spectrum features;

[0010] S3. Apply Mel-scale triangular filter banks to process the spectrum to simulate the nonlinear frequency characteristics of the human auditory system;

[0011] S4. Process the filtered spectrum through discrete cosine transform, extract multiple Mel spectrum coefficients of each frame, and capture the key frequency information of the signal;

[0012] S5. Divide the signal into different frequency bands according to the formants (F1, F2, F3) of the speech signal, and customize the feature extraction strategy for each frequency band;

[0013] S6. Applying adaptive deep residual block ADRB to each frequency band to perform parallel multi-dimensional feature extraction and integration;

[0014] S7. Use the depth controller NSDR to dynamically predict the optimal network depth for each frequency band and adaptively adjust the network structure according to the complexity of the input signal;

[0015] S8. In the adaptive deep residual block ADRB, the depth controller dynamically controls the number of convolution layers, multi-level feature extraction is achieved through multi-layer distillation channels and residual channels, and feature fusion is performed using residual connections;

[0016] S9. Apply the hybrid regional attention mechanism HRFA, combining global and local attention mechanisms, to strengthen the long-range and short-range dependencies between features in different frequency bands. The global attention mechanism captures the full-frequency context information through a multi-head attention architecture, and the local attention mechanism focuses on the adjacent areas around each frequency for fine-grained analysis.

[0017] S10. The time-driven module strengthens the correlation continuity of different frequency features in the time series, handles the positive and reverse time order, and captures long-term dependencies;

[0018] S11. Fusion of features extracted by multi-band processing, hybrid region attention mechanism enhancement and time-driven module;

[0019] S12. Use the fused features to classify and identify emotional states.

[0020] In a second aspect of the present invention, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the adaptive multi-band speech mixed emotion perception method is implemented.

[0021] In a third aspect of the present invention, a computer program product includes a computer program, and when the computer program is executed by a processor, the adaptive multi-band speech mixed emotion perception method is implemented.

[0022] The present invention has the following beneficial effects:

[0023] In order to overcome the problems in traditional speech emotion recognition, the present invention proposes an adaptive multi-band speech hybrid emotion perception method, constructs an adaptive multi-band hybrid perception network (Adaptive Multi-band Hybrid-awareNetwork), combines multi-band processing and hybrid perception mechanism, adaptively extracts rich emotional features, so as to achieve more accurate emotional state detection, and effectively overcomes the limitations of existing speech emotion recognition methods. In the present invention, according to human acoustic characteristics, F1, F2, F3 formant frequency bands, the speech signal is divided into multiple frequency bands, and the characteristics of each frequency band are extracted in a targeted manner to capture the differences in the spectrum of different emotional states; using a variable deep residual network structure, the network structure can be dynamically adjusted according to the characteristics of the input audio to adapt to the differences in modeling complexity of different emotional states; using the attention mechanism to aggregate global semantic information and local acoustic features to achieve comprehensive characterization of emotions. In general, the present invention, based on the AMH-Net method, provides a pioneering framework and mechanism that can be dynamically adjusted according to human acoustic characteristics, can fully capture emotional features, and thus significantly improve the accuracy and efficiency of emotional state recognition.

[0024] Experimental results on six different datasets show that the present invention performs particularly well on short-duration speech, outperforming existing advanced methods. Overall, the present invention provides a dynamic and comprehensive solution for accurate and efficient speech emotion recognition.

[0025] Other beneficial effects of the embodiments of the present invention will be further described below. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is an algorithm architecture diagram of the adaptive multi-band hybrid perception network AMH-Net according to an embodiment of the present invention.

[0027] Figure 2 The performance of AMH-Net according to an embodiment of the present invention in terms of emotion recognition accuracy is demonstrated compared with other emotion recognition methods. DETAILED DESCRIPTION

[0028] The following is a detailed description of the embodiments of the present invention. It should be emphasized that the following description is only exemplary and is not intended to limit the scope and application of the present invention.

[0029] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0030] Speech emotion recognition (SER) technology aims to analyze speech signals and automatically identify the speaker's emotional state. Existing methods fail to divide frequencies based on human acoustic features, and lack adaptive feature extraction for different emotional states. In order to overcome these problems in existing SER methods, the method of the present invention proposes an adaptive multi-band hybrid perception network (AMH-Net), which combines multi-band processing and hybrid perception mechanisms to adaptively extract rich emotional features to achieve more accurate emotional state detection. The innovative design of the present invention mainly includes: 1. According to human acoustic features, F1, F2, F3 formant frequency bands, the speech signal is divided into multiple frequency bands, and the features of each frequency band are extracted in a targeted manner to capture the differences in the spectrum of different emotional states. 2. Using a variable deep residual network structure, the network structure can be dynamically adjusted according to the characteristics of the input audio to adapt to the differences in modeling complexity of different emotional states. 3. The global semantic information and local acoustic features are aggregated using the attention mechanism to achieve a comprehensive representation of emotions. In general, in the present invention, the model divides the speech signal into multiple frequency bands based on the resonance peaks (F1, F2, F3), adopts a variable depth residual network structure, and uses the attention mechanism to combine the global semantic information with the local acoustic features to form a comprehensive emotion representation, which effectively overcomes the limitations of the existing SER method.

[0031] The embodiment of the present invention provides an adaptive multi-band speech mixed emotion perception method, comprising the following steps:

[0032] S1. Preprocess the input signal and divide the signal into frames; for example, adjust the input speech signal to a uniform sampling rate, such as 22.050 kHz; divide the signal into frames and apply a Hamming window function to each frame. The frame length can be set to 50 milliseconds and the overlap between frames to 12.5 milliseconds to maintain signal continuity and reduce spectrum leakage;

[0033] S2. Perform fast Fourier transform (FFT) on each frame of signal to obtain spectrum features;

[0034] S3. Apply Mel-scale triangular filter banks to process the spectrum to simulate the nonlinear frequency characteristics of the human auditory system;

[0035] S4. Processing the filtered spectrum by discrete cosine transform, extracting multiple Mel spectrum coefficients of each frame, for example, extracting the first 39 Mel spectrum coefficients of each frame, and capturing key frequency information of the signal;

[0036] S5. Divide the signal into different frequency bands according to the formants (F1, F2, F3) of the speech signal, and customize the feature extraction strategy for each frequency band;

[0037] S6. Applying adaptive deep residual block ADRB to each frequency band to perform parallel multi-dimensional feature extraction and integration;

[0038] S7. Use the depth controller NSDR to dynamically predict the optimal network depth for each frequency band and adaptively adjust the network structure according to the complexity of the input signal;

[0039] S8. In the adaptive deep residual block ADRB, the depth controller dynamically controls the number of convolution layers, multi-level feature extraction is achieved through multi-layer distillation channels and residual channels, and feature fusion is performed using residual connections;

[0040] S9. Apply the hybrid regional attention mechanism HRFA, combining global and local attention mechanisms, to strengthen the long-range and short-range dependencies between features in different frequency bands. The global attention mechanism captures the full-frequency context information through a multi-head attention architecture, and the local attention mechanism focuses on the adjacent areas around each frequency for fine-grained analysis.

[0041] S10. The time-driven module strengthens the correlation continuity of different frequency features in the time series, handles the positive and reverse time order, and captures long-term dependencies;

[0042] S11. Fusion of features extracted by multi-band processing, hybrid region attention mechanism enhancement and time-driven module;

[0043] S12. Use the fused features to classify and identify emotional states.

[0044] In some embodiments, in step S5, based on the resonance peaks F1, F2 and F3 of the speech signal, the Mel frequency cepstral coefficient feature (MFCC) is divided into at least three frequency bands, and each frequency band corresponds to different emotional characteristics. Step S6 specifically includes: each frequency band is assigned a group of adaptive deep residual block (ADRB) submodules, and the submodules process the data of their respective frequency bands in parallel to realize the extraction and integration of multi-dimensional features; each adaptive deep residual block (ADRB) cooperates with a depth controller, which dynamically predicts and adjusts the network depth according to the complexity of the input signal to adapt to the emotional characteristics of different audio frequency bands; the adaptive deep residual block combines the predicted network depth, dynamically selects the convolution layer and the activation function, and completes the feature extraction of different audio signals; the feature extraction process realizes the automatic adjustment and capture of the multi-scale features of the audio signal through the collaborative work of the depth controller and the adaptive deep residual block, optimizes the network performance and reduces the computational complexity.

[0045] In some embodiments, step S7 specifically includes: the depth controller performs depth information mapping and adaptive adjustment on the frequency components based on Mel spectrum coefficients in each frequency band; generates a feature map for each frequency band signal using a convolution operation, and calculates a depth probability logical value based on the feature map; performs probability confidence weighted averaging on the depth probability logical value of each frequency component to determine the global depth information of the frequency band; the depth controller obtains the global depth information of the input frequency band by weighted summing the depth information probability of each frequency signal, thereby dynamically predicting and adjusting the network depth to adapt to the emotional characteristics of different audio frequency bands.

[0046] In some embodiments, step S8 specifically includes: the adaptive deep residual block includes multiple layers of distillation channels and residual channels, and the depth controller dynamically controls the number of convolution layers to achieve multi-level feature extraction and information fusion of Mel spectrum features; the model divides the channels into two groups through group convolution: half is the distillation channel, using a normal convolution kernel of size 1; the other half is the residual channel, using a convolution kernel of size 3 for deep separable convolution; the output of the residual channel branch is also used as the input of the next level residual channel, and information is extracted through the next level distillation channel, and multi-level feature fusion is achieved through residual connection to optimize global information; the channel separation strategy extracts key features through lightweight learning branches to reduce model complexity and computational cost; the final output is modulated by a fine-grained spatial attention mechanism and a channel attention mechanism, wherein the spatial attention mechanism and the channel attention mechanism are respectively optimized for feature maps of different channels to obtain multi-band processing results.

[0047] In some embodiments, step S9 specifically includes: applying a hybrid regional attention mechanism HRFA ​​to process the multi-band processing results, which combines global and local attention mechanisms to enhance the dependency between different frequency band features and improve the model's perception and processing capabilities of audio data; the local attention mechanism captures local important features through average pooling and convolution operations, focusing on adjacent areas around each frequency, generating regional representations, and performing fine-grained analysis through point convolution; the global attention mechanism uses a multi-head attention architecture to encode and dynamically weight the local subspace feature information of the entire frequency band to capture full-frequency domain contextual information; by splicing local features and global features along the channel axis, and then using convolution for feature compression, and then applying activation functions and batch normalization operations, a feature output that combines local details and global information is obtained.

[0048] In some embodiments, step S10 specifically includes: using a time-driven frequency information extraction module to strengthen the correlation continuity of different frequency features in the time series to enhance the model's ability to represent complex semantic information; the module stacks multiple time-driven sub-modules based on deep separable convolutions, which process signals in forward and reverse time order respectively to capture dynamic changes in the time series; by adjusting the expansion rate of the convolution kernel, the time coverage of each time-driven sub-module is controlled to effectively capture the dependencies on different time spans while keeping the parameter quantity unchanged; the results of the forward and reverse time order processing are superimposed to obtain the final time-driven frequency information; the time-driven sub-module operation extracts time scale-related information from the processing results of the hybrid attention mechanism, and performs feature enhancement through deep separable convolution and activation function; the final output is the cumulative sum of the forward and reverse time order outputs, representing the comprehensive features after processing by the time-driven module.

[0049] The adaptive multi-band speech hybrid emotion perception method (AMH-Net) of the present invention provides a comprehensive and efficient solution to the limitations of existing speech emotion recognition (SER) technology through innovative technical solutions. The main technical advantage of this method is that it can intelligently divide the speech signal into multiple frequency bands based on human acoustic characteristics using F1, F2, and F3 formants, and customize feature extraction strategies for each frequency band to accurately capture the unique performance of different emotional states on the spectrum. By adopting a variable depth residual network structure, AMH-Net can adaptively and dynamically adjust the network depth according to the characteristics of the input audio, effectively dealing with the differences in modeling complexity of different emotional states. In addition, the method also incorporates a hybrid regional attention mechanism, combines global and local information, strengthens the dependency between features of different frequency bands, and enhances the model's ability to perceive detailed information and process contextual information of audio data. The experimental results of AMH-Net on multiple data sets show that its performance on short-term speech is particularly outstanding. It not only significantly exceeds the existing advanced methods in overall performance, but also maintains high performance and accuracy when processing a large number of emotional categories and complex emotions. In general, AMH-Net, with its dynamic and adaptive feature extraction and comprehensive emotion representation capabilities, significantly improves the accuracy and efficiency of emotion state recognition, becoming a powerful solution in the field of SER. Experimental results on six different datasets show that AMH-Net performs particularly well on short-term speech, outperforming existing advanced methods.

[0050] The algorithm example and experimental verification are further described below.

[0051] In order to demonstrate the acoustic feature modeling capability of AMH-Net, the most commonly used Mel-frequency cepstral coefficient feature (MFCC) is used as the model input: first, the sampling rate of each corpus is set to 22.050 kHz, and each speech signal is framed using the Hamming window, with a frame length of 50 milliseconds and an overlap of 12.5 milliseconds between frames to maintain the continuity of the signal content. Subsequently, a 2048-point fast Fourier transform (FFT) is performed on each frame to obtain the spectral features. At the same time, in order to better simulate the nonlinear frequency characteristics of the human auditory system, a Mel-scale triangular filter bank is used in the spectral domain for processing. Finally, the filtering process is completed by discrete cosine transform, and the first 39 Mel-frequency spectral coefficients of each frame are selected to capture the envelope characteristics of the low-frequency signal and the detailed information of the high-frequency signal.

[0052] AMH-Net is a method for sentiment classification based on acoustic features. First, it uses the Adaptive Deep Residual Block structure in multi-band feature classification extraction to extract specific frequency band acoustic features in the F1, F2 and F3 resonance peak ranges. Secondly, it uses the Hybrid Regional-focused Attention mechanism to enhance the representation ability of key frequency band information by fusing global and local information. Finally, it introduces the Temporal-Driven frequency information extraction module to capture the long-term dependencies of acoustic features in different frequency bands. AMH-Net is as follows Figure 1 Each part will be introduced in detail as follows.

[0053] In the processing of Mel-frequency cepstral coefficient features (MFCC), the multi-band feature classification extraction module is designed to divide the frequency range of F1, F2 and F3 resonance peaks into Segmented processing is performed to achieve efficient feature extraction. Then, each frequency band corresponds to a group of adaptive deep residual block submodules for parallel processing to achieve multi-dimensional feature extraction and integration. In addition, to ensure that these adaptive deep residual blocks can accurately fit the emotional characteristics of different audio frequency bands, each adaptive deep residual module needs to cooperate with a deep controller (Neural structure depth regulator) to complete information processing. The depth controller dynamically predicts the optimal network depth according to the complexity of the input signal. ; Adaptive depth residual block combined with predicted depth , choose the appropriate convolutional layer And the activation function , complete the feature extraction of different audio signals , i represents the index. The MFCE formula can be expressed as:

[0054]

[0055] This design method can automatically adjust the network structure according to the input, so as to better capture the multi-scale characteristics of the audio signal, while optimizing the network performance and reducing the computational complexity. The two components of the depth controller and the adaptive depth residual block are constructed as follows:

[0056] Depth controller: According to In each frequency band, the depth information is mapped, adaptively adjusted and predicted based on the different frequency components of the Mel spectrum coefficients. The controller uses convolution operations to generate corresponding feature maps for the frequency band signals, and calculates the depth probability logic value corresponding to each frequency component. Finally, the global depth information of the frequency band is obtained through weighted average processing of probability confidence. The operation formula is as follows:

[0057]

[0058] in, is the sum of the Mel spectrum coefficients in this frequency band, For a specific frequency, is the probability of depth information. By weighted summing the probability of depth information of each frequency signal, we can get the input Global depth information of the frequency band .

[0059] Adaptive deep residual block: This module contains multiple layers of distillation channels and residual channels. The number of convolution layers is dynamically controlled by the depth controller to achieve multi-level feature extraction and information fusion of Mel spectrum features. Among them, the model is divided into two groups of channels through grouped convolution: half of the channels are distillation channels (ordinary convolution, convolution kernel size is 1), and the other half of the channels are residual channels (shallow residual convolution blocks, composed of depth-separable convolutions with convolution kernels of 3). In the information processing flow, the output of each layer of residual channel branch is not only used as the input of the next level of residual channel, but also passes through the next level of distillation channel for information extraction, and uses residual connections for multi-level feature fusion to optimize global information. This channel separation strategy aims to extract key features through lightweight learning branches. Finally, the final output of the module is obtained through modulation by fine-grained spatial attention mechanism (ESA) and channel attention mechanism (CCA). The operation formula is as follows:

[0060]

[0061] in and Represent the distillation channel and the residual channel respectively, and Represents the convolution operation on the respective channels. and is the spatial attention mechanism and the channel attention mechanism, This is the result of multi-band processing.

[0062] The adaptive deep residual block combined with the deep controller introduces a unique residual distillation channel design to extract multi-level features, while ensuring accuracy while optimizing the complexity and computational cost of the model.

[0063] Hybrid regional focus attention mechanism: for multi-band processing results , if these frequency band features are simply concatenated, the correlation between them cannot be captured. To this end, a hybrid attention mechanism is used to process the features. By combining global and local attention mechanisms, the long-range and short-range dependencies between input frequency band features are enhanced to improve the overall model's perception of detailed information and contextual information processing of audio data at the frequency level. The formula operation is as follows:

[0064]

[0065] in, Indicates that the local features are and global features Splicing, Indicates the use of convolution to compress features. is the activation function, and Represents a batch normalization operation. Output It is a feature that represents local details and global information.

[0066] Local attention mechanism: It mainly focuses on the input frequency band area and uses average pooling and convolution operations to capture local important features. It focuses on the adjacent areas around each frequency, generates regional representations, and processes them through point convolution to perform fine-grained analysis of complex emotional states. The formula operation is as follows:

[0067]

[0068] in, For single-band input, is the average pooling operation, The convolution kernel weights corresponding to the frequency band, is the activation function, is the number of attention heads.

[0069] Global attention mechanism: mainly models the feature correlation between different frequency domains, so that the network can capture deeper global feature information. The module uses a multi-head attention architecture to encode the local subspace feature information of the input full frequency band, and implements dynamic weighting to capture the full frequency domain context information. The operation formula is as follows:

[0070]

[0071] in, , , Represents input from multiple frequency bands queries, keys, and values ​​obtained through different linear transformations; is used to normalize the attention score; Relative position encoding adds position information to the attention scores between each pair of features.

[0072] In summary, the hybrid attention mechanism provides an effective method for extracting and enhancing audio features at different regions and scales.

[0073] Time-driven frequency information extraction module: It is mainly used to strengthen the correlation and continuity of different frequency features in the time series, so as to enhance the model's ability to represent complex semantic information in the time series. This module stacks multiple time-driven sub-modules based on depthwise separable convolutions to process the time in both positive and reverse order. In addition, the module controls the time coverage range of each time-driven module by adjusting the expansion rate of the convolution kernel, so that it can effectively capture the dependencies in different time spans while keeping the parameter quantity unchanged. Finally, the outputs in both the time order and time reverse order are superimposed to obtain the final output of the module. The specific calculation steps are as follows:

[0074]

[0075] In Formula 7, It is the time-driven submodule operation, processing the results from the hybrid attention mechanism Extracting time scale related information, is a depth-wise separable convolution operation. In Formula 8, and Represent the number of stacking layers and the expansion rate, respectively. Indicates reverse time order, It is the processing result of the time-driven frequency information extraction module.

[0076] experiment

[0077] Datasets and evaluation metrics

[0078] In order to test the effectiveness of AMH-Net in speech emotion recognition, six diversified language datasets were used in the experiment. The datasets are CASIA (Institute of Automation, Chinese Academy of Sciences), EmoDB (Technical University of Berlin), EMOVO (Italian researchers), IEMOCAP (University of California, San Diego), SAVEE (University of Surrey) and RAVDESS (Ryerson University). These datasets cover different languages ​​and types of emotional expressions, providing rich resources for emotion recognition and analysis. The parameters are shown in Table 1:

[0079] Table 1

[0080]

[0081] Evaluation indicators: In view of the imbalanced distribution of emotion categories in the dataset, two commonly used evaluation indicators are used for performance evaluation, namely weighted average recall (WAR, also known as accuracy) and unweighted average recall (UAR). WAR corrects the category imbalance by weighting the recall rate using the predicted probability of each category; while UAR considers each category equally to ensure equal category weights. The calculation method is as follows:

[0082]

[0083]

[0084]

[0085] The recall rate is designed to measure the proportion of positive samples identified by the model to all actual positive samples. represents the number of samples correctly identified as positive class, Indicates the number of samples that are actually positive but are mistakenly identified as negative. is the total number of samples in the dataset, is the total number of categories, It is The number of samples in each category, It is These two indicators are used to jointly measure the recognition effect of different methods on each category of data.

[0086] The proposed model AMH-Net was built using the Tensorflow2.6.0 framework and CUDA11.3.1 environment. When processing acoustic data, 39-dimensional MFCC (Mel-frequency cepstral coefficients) were extracted using the Librosa toolbox. During the training process, dropout=0.2 and PIN_memory=True were set to improve the generalization ability of the model; training was performed on a server equipped with NVIDIA GEFORCERTX4090 GPU, CPUi9-11900k, and ddr4 4000 32GB. In order to make a fair comparison with the current state-of-the-art method (SOTA), 10-fold cross-validation (CV) was performed in the experiment.

[0087] Ablation experiments were conducted on various corpus datasets, mainly using AMH-Net derived models for comparison. Baseline: The main part of the model is based on the time-driven frequency information extraction module for speech emotion classification; w / o ADRB: cancel the acoustic F1, F2, and F3 frequency band divisions, and process the audio as a whole; w / o NSDR: cancel the depth control of ADRB by the depth controller, and apply the same feature extraction method to all emotion categories; w / o HRFA: remove the hybrid attention mechanism. The ablation results are shown in Table 1:

[0088] Table 1

[0089]

[0090] Table 1 shows the average performance of the ablation study under 10-fold cross validation on the RAVDESS benchmark corpus, and "w / o" means removing the component from AMH-Net. The evaluation metric is UAR (%) / WAR (%), and the best results are highlighted in bold.

[0091] Based on the above experimental data analysis, each component in the AMH-Net model has a positive impact on the overall performance of the model. When the adaptive deep residual block (ARDB) is removed from AMH-Net (w / o ARDB), the model's emotion recognition accuracy is significantly reduced by 4.14%, but the running time is improved due to the inclusion of an attention mechanism in the model. This shows that ARDB plays a key role in capturing frequency characteristics and improving the recognition accuracy of the model. After the deep regulator (NSDR) in AMH-Net (w / o NSDR), the ARDB structure is fixed, the parameters increase significantly by 15.56%, and the running time is extended by 62.50%. This reveals that NSDR can effectively reduce model complexity, optimize network structure, and improve operating efficiency. After the mixed regional focus attention (HRFA) is removed from AMH-Net (w / o HRFA), it is found that the accuracy of the model drops slightly by 1.7%, and the running time is slightly extended by 25%. This shows that HRFA ​​plays an important role in maintaining a balance between model efficiency and performance. Therefore, the comprehensive improvement of AMH-Net in emotion recognition based on acoustic characteristics is based on the integration and coordination of key components, thereby improving the overall performance.

[0092] like Figure 2As shown in the visualization of probability graphs, the error rate of the baseline is mainly concentrated in the three emotional states of neutral neural, sad, and surprise. Combined with the analysis of the data set, the number of samples of these complex emotions is relatively small compared to other emotional states, which puts higher requirements on the training and optimization of the model. Combining the use of regional processing of speech segments and the hybrid regional attention mechanism, the local characteristics and global semantics of the speech data are effectively maintained, especially when processing samples with complex emotional states, it can better capture and understand the subtle changes in emotions, improving the accuracy and robustness of the model.

[0093] Results Analysis

[0094] Comparison with the latest methods: Compared with the current mainstream SOTA methods, several representative methods on each dataset were selected, and a 10-fold cross-validation strategy was adopted to ensure the comprehensiveness and fairness of the model results. As shown in Table 2, the average performance of the method of the present invention on all 6 datasets significantly exceeded that of other methods, showing the superiority of the method of the present invention in overall performance. Especially on short-time sequence speech datasets such as EMODB and RAVDESS, UA and WA are improved by 1.52% and 2.56% respectively compared with the most advanced MS-SENet, and AMH-Net maintains good performance in processing situations with more emotional categories and complex emotions. However, the performance on the IEMOCAP and SAVEE long-time sequence speech datasets is relatively ordinary. The reason is that the attention mechanism will significantly increase the computational complexity when processing long-time sequence audio data, and at the same time, it will cause greater pressure on the memory of the hardware device. Therefore, the optimization strategy of the attention mechanism for long-time sequence audio input in the later stage still faces great challenges.

[0095] Table 2

[0096]

[0097] Table 2 shows the overall results of different methods on six emotion recognition (SER) benchmark corpora. The evaluation indicators are UAR (%) / WAR (%). “-” indicates the lack of this indicator, and the best results are highlighted in bold.

[0098] In summary, the method of the present invention proposes AMH-Net, an adaptive multi-band hybrid perceptual network for speech emotion recognition (SER). AMH-Net divides the speech signal into multiple frequency bands based on formants (F1, F2, F3) and uses a variable depth residual network to capture emotional features. This approach is beneficial to SER by using stable formants to convey detailed speech information and accurately characterize emotional states. Experimental results show that AMH-Net performs superiorly on various datasets and significantly improves accuracy and efficiency, making it a powerful solution for SER.

[0099] An embodiment of the present invention further provides a storage medium for storing a computer program, which at least performs the above method when executed.

[0100] An embodiment of the present invention further provides a control device, comprising a processor and a storage medium for storing a computer program; wherein the processor is configured to execute at least the method described above when executing the computer program.

[0101] An embodiment of the present invention further provides a processor, wherein the processor executes a computer program and at least executes the method described above.

[0102] The storage medium can be implemented by any type of non-volatile storage device, or a combination thereof. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The storage medium described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0103] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0104] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0105] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0106] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.

[0107] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0108] The methods disclosed in the several method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.

[0109] The features disclosed in several product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.

[0110] The features disclosed in several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0111] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. An adaptive multi-band speech mixed emotion perception method, characterized in that: The following steps are involved: S1. Preprocessing the input signal and framing the signal; S2. Perform fast Fourier transform (FFT) on each frame of signal to obtain spectrum characteristics; S3. Apply Mel-scale triangular filter banks to process the spectrum to simulate the nonlinear frequency characteristics of the human auditory system; S4. Process the filtered spectrum through discrete cosine transform, extract multiple Mel spectrum coefficients of each frame, and capture the key frequency information of the signal; S5. Divide the signal into different frequency bands according to the formants F1, F2 and F3 of the speech signal, and customize the feature extraction strategy for each frequency band; S6. Applying adaptive deep residual block ADRB to each frequency band to perform parallel multi-dimensional feature extraction and integration; S7. Use the depth controller NSDR to dynamically predict the optimal network depth for each frequency band and adaptively adjust the network structure according to the complexity of the input signal; S8. In the adaptive deep residual block ADRB, the depth controller dynamically controls the number of convolution layers, multi-level feature extraction is achieved through multi-layer distillation channels and residual channels, and feature fusion is performed using residual connections; S9. Apply the hybrid regional attention mechanism HRFA, combining global and local attention mechanisms, to strengthen the long-range and short-range dependencies between features in different frequency bands. The global attention mechanism captures the full-frequency context information through a multi-head attention architecture, and the local attention mechanism performs fine-grained analysis on the adjacent regions around each frequency. S10. The time-driven module strengthens the correlation continuity of different frequency features in the time series, handles the positive and reverse time order, and captures long-term dependencies; S11. Fusion of features extracted by multi-band processing, hybrid region attention mechanism enhancement and time-driven module; S12. Use the fused features to classify and identify emotional states.

2. The adaptive multi-band speech mixed emotion perception method as claimed in claim 1, characterized in that: In step S1, the input signal is preprocessed to adjust the input speech signal to a uniform sampling rate; the signal is framed, and a Hamming window function is applied to each frame, and the frame length and inter-frame overlap are set to maintain signal continuity and reduce spectral leakage.

3. The adaptive multi-band speech mixed emotion perception method as claimed in claim 1, characterized in that: In step S4, the first 39 Mel-spectrogram coefficients of each frame are extracted.

4. The adaptive multi-band speech mixed emotion perception method according to any one of claims 1 to 3, characterized in that: In step S5, based on the formants F1, F2 and F3 of the speech signal, the Mel frequency cepstral coefficient feature MFCC is divided into at least three frequency bands, each frequency band corresponding to a different emotional characteristic; In step S6, the adaptive depth residual block ADRB includes a group of adaptive depth residual block ADRB submodules, each frequency band is assigned a submodule, and the submodules process the data of the respective frequency bands in parallel to realize the extraction and integration of multi-dimensional features; Each adaptive deep residual block ADRB is equipped with a deep controller, which dynamically predicts and adjusts the network depth according to the complexity of the input signal to adapt to the emotional characteristics of different audio frequency bands; The adaptive depth residual block combines the predicted network depth and dynamically selects the convolutional layer and activation function to complete the feature extraction of different audio signals; The feature extraction process realizes automatic adjustment and capture of multi-scale features of audio signals through the collaborative work of the depth controller and the adaptive depth residual block, optimizes network performance and reduces computational complexity.

5. The adaptive multi-band speech mixed emotion perception method according to any one of claims 1 to 3, characterized in that: In step S7, the depth controller performs depth information mapping and adaptive adjustment on the frequency components based on the Mel spectrum coefficients in each frequency band; Use convolution operation to generate a feature map for each frequency band signal, and calculate the depth probability logic value based on this feature map; Perform probability confidence weighted averaging on the depth probability logic value of each frequency component to determine the global depth information of the frequency band; The depth controller obtains the global depth information of the input frequency band by weighted summation of the depth information probability of each frequency signal, thereby dynamically predicting and adjusting the network depth to adapt to the emotional characteristics of different audio frequency bands.

6. The adaptive multi-band speech mixed emotion perception method according to any one of claims 1 to 3, characterized in that: In step S8, the adaptive depth residual block includes multiple layers of distillation channels and residual channels, and the number of convolution layers is dynamically controlled by the depth controller to achieve multi-level feature extraction and information fusion of Mel spectrum features; The model divides the channels into two groups through grouped convolution: half are distillation channels, using a normal convolution kernel of size 1; the other half are residual channels, using a convolution kernel of size 3 for depth-separable convolution; The output of the residual channel branch is also used as the input of the next level residual channel, and information is extracted through the next level distillation channel. Multi-level feature fusion is achieved through residual connection to optimize global information. The channel separation strategy extracts key features through lightweight learning branches, reducing model complexity and computational cost; The final output is modulated by fine-grained spatial attention mechanism and channel attention mechanism, where the spatial attention mechanism and channel attention mechanism are optimized for the feature maps of different channels respectively to obtain multi-band processing results.

7. The adaptive multi-band speech mixed emotion perception method according to any one of claims 1 to 3, characterized in that: In step S9, a hybrid regional attention mechanism HRFA ​​is applied to process the multi-band processing results, which combines global and local attention mechanisms to enhance the dependency between features of different frequency bands and improve the model's perception and processing capabilities of audio data; The local attention mechanism captures important local features through average pooling and convolution operations, focusing on the adjacent areas around each frequency, generating regional representations, and performing fine-grained analysis through point convolution; The global attention mechanism uses a multi-head attention architecture to encode and dynamically weight the local subspace feature information of the entire frequency band to capture the full frequency domain context information; By concatenating local features and global features along the channel axis, using convolution to compress features, and then applying activation functions and batch normalization operations, a feature output that combines local details and global information is obtained.

8. The adaptive multi-band speech mixed emotion perception method according to any one of claims 1 to 3, characterized in that: In step S10, a time-driven frequency information extraction module is used to strengthen the correlation continuity of different frequency features in the time series, so as to enhance the model's ability to represent complex semantic information; By stacking multiple time-driven submodules based on depthwise separable convolution, the submodules process signals in the forward and reverse order of time respectively to capture the dynamic changes in the time series; By adjusting the expansion rate of the convolution kernel, the time coverage of each time-driven submodule is controlled to effectively capture the dependencies on different time spans while keeping the number of parameters unchanged; The results of the time forward and reverse processing are superimposed to obtain the final time-driven frequency information; The time-driven submodule extracts time-scale related information from the processing results of the hybrid attention mechanism and performs feature enhancement through depth-separable convolution and activation functions; The final output is the cumulative sum of the time-sequential and reverse-sequential outputs, representing the comprehensive features after processing by the time-driven module.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the adaptive multi-band speech mixed emotion perception method as described in any one of claims 1-8 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the adaptive multi-band speech mixed emotion perception method as described in any one of claims 1-8 is implemented.

Citation Information

Patent Citations

  • Transform-based inter-modal joint coding method, device and equipment

    CN115937641A

  • Speaker recognition method based on Fca-Res2Net fusion self-attention

    CN116469395A