Multi-scale speech emotion recognition method and device, medium and product

By using a multi-scale global fusion perception model with efficient multi-scale attention in speech emotion recognition, the problem of low recognition accuracy and efficiency caused by fixed-scale feature processing is solved, and more efficient emotional state tracking and recognition accuracy are achieved.

CN118737202APending Publication Date: 2024-10-01CENTRAL SOUTH UNIVERSITY OF FORESTRY AND TECHNOLOGY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411001690.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing speech emotion recognition technology suffers from low recognition accuracy and low efficiency in multi-scale feature processing. This is mainly due to the fact that fixed-scale local features ignore the influence of different scales, resulting in the inability to efficiently focus on channels and spatial attention, and the loss of important emotions. information.

Method used

Using a multi-scale global fusion perception model based on efficient multi-scale attention, through multi-scale convolution and feature splicing layers, combined with batch normalization and residual connection, a multi-scale speech emotion recognition model is constructed to obtain different scale features and perform emotional analysis. Type recognition, enhances feature blending and network training efficiency across channel dimensions.

Benefits of technology

It improves the recognition accuracy and efficiency of multi-scale speech emotion recognition, can better track changes in emotional states over time, improves the recognition accuracy in complex emotional states, and performs better than traditional convolutional neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737202A_ABST
    Figure CN118737202A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-scale speech emotion recognition method and device, a medium and a product, and relates to the field of speech recognition, and the method comprises the steps: building a multi-scale speech emotion recognition model based on a multi-scale global fusion perception model with efficient multi-scale attention; obtaining different scale features of the target audio; and utilizing the trained multi-scale speech emotion recognition model to perform emotion type recognition on different scale features of the target audio. According to the invention, the recognition accuracy and recognition efficiency of multi-scale speech emotion recognition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech recognition, and in particular to a multi-scale speech emotion recognition method, device, medium and product. Background Art

[0002] Speech is a key medium for communication between people and plays an important role in everyone's daily life. Speech Emotion Recognition (SER) aims to predict the emotions reflected in speech. SER is a basic task for various intelligent applications. For example, SER brings better user experience to intelligent robots by better understanding the user's intention and state. Therefore, the research community is increasingly interested in SER tasks.

[0003] In recent years, inspired by the rapid development of computer vision, great improvements have been made in SER. The standard Convolutional Neural Networks (CNN) architecture mainly includes feature representation and attention map. In general, feature representation usually learns fixed-scale features to capture all informative features. In addition, attention maps are used to focus on most of the sentiment information in local fixed-scale features. However, sentiment is manifested as changes of different scales in time-varying spectral features.

[0004] Typical SER research works mainly focus on the feature representation of speech emotion information. Deep learning networks are used to learn feature representations for predicting the emotion label of each feature segment. Then, by considering the feature segments as images, convolutional networks show a great impact on SER feature representation. Finally, multiple methods such as extreme learning machines (ELMs), capsule networks, and LSTMs are applied to fuse all feature representations from all feature segments. However, most existing CNNs focus on local features of fixed scales and ignore the effects of different scales.

[0005] With the development of Deep Convolutional Neural Networks (DCNN), when CNN is extended to span multiple convolutional layers in the SER task, it shows a significant ability to enhance the learning of feature representations. However, this leads to stacking more deep convolution pairs and consumes a lot of memory and computing resources, which is the main disadvantage of building DCNN. Recently, attention-based models have made significant progress in SER. For example, multi-head attention maps are learned through convolution operations to select important information based on surrounding information. Regional attention is further introduced to calculate the importance of convolutions of different ranges. In addition, channel weighting is introduced to simulate the interaction of cross-dimensional emotions to extract channel attention. Convolutional Block Attention Module (CBAM) exploits the semantic interdependence between spatial and channel dimensions in feature maps to establish cross-channel and cross-spatial information. Therefore, CBAM shows great potential in integrating cross-dimensional attention weights into input features.

[0006] Compared with channel attention, Coordination Attention (CA) embeds the directional information into the channel attention along the spatial dimension and selects the appropriate channel dimension reduction ratio, achieving performance comparable to that of channel attention. Although this processing reduces the computational burden of the model, the network structure still needs to be reduced in dimension, which limits the development of existing attention.

[0007] Typically, feature representation is used to learn fixed-scale features to capture all informative features. In local fixed-scale features, attention is used to focus on most of the emotional information. However, emotions are manifested as clarity changes at different scales in the time-frequency spectrum features. The limitations of existing convolutional neural networks in SER are specifically reflected in the following: emotions have different time spans and intonation intensities, and most existing CNNs focus on local features of fixed scales while ignoring the effects of different scales; resulting in the inability of existing multi-scale convolutional network structures to efficiently focus on channels and spatial attention, thereby losing important emotional information at different scales.

[0008] Therefore, in order to improve the recognition accuracy and efficiency of multi-scale speech emotion recognition, it is urgent to provide a multi-scale speech emotion recognition method. Summary of the invention

[0009] The purpose of this application is to provide a multi-scale speech emotion recognition method, device, medium and product, which can improve the recognition accuracy and recognition efficiency of multi-scale speech emotion recognition.

[0010] To achieve the above objectives, this application provides the following solutions:

[0011] In a first aspect, the present application provides a multi-scale speech emotion recognition method, the multi-scale speech emotion recognition method comprising:

[0012] A multi-scale speech emotion recognition model is constructed based on a multi-scale global fusion perception model with efficient multi-scale attention.

[0013] Obtain different scale features of the target audio;

[0014] The trained multi-scale speech emotion recognition model is used to identify the emotion type of the target audio based on different scale features.

[0015] Optionally, the multi-scale speech emotion recognition model specifically includes: a feature extraction layer, a first cross-space multi-scale block, a first maximum pooling layer, a second cross-space multi-scale block, a second maximum pooling layer, a third cross-space multi-scale block, a convolution layer, a batch normalization layer, a global perception fusion block, a fully connected layer and a classification output layer connected in sequence;

[0016] The first cross-space multi-scale block and the second cross-space multi-scale block both include: a 3×3 standard convolution layer and a 5×5 standard convolution layer, a feature splicing layer in the channel dimension, a residual connection layer, a batch normalization layer, and an efficient multi-scale attention; the third cross-space multi-scale block includes: a 3×3 standard convolution layer and a 5×5 standard convolution layer, a feature splicing layer in the channel dimension, a residual connection layer, and a batch normalization layer.

[0017] Optionally, the number of input channels of the first cross-space multi-scale block is 16, and the number of output channels is 32;

[0018] The number of input channels of the second cross-space multi-scale block is 32, and the number of output channels is 64;

[0019] The number of input channels of the third cross-space multi-scale block is 64, and the number of output channels is 128.

[0020] Optionally, the acquiring different scale features of the target audio specifically includes:

[0021] Preprocessing the target audio; the preprocessing includes: segmentation and filling;

[0022] The preprocessed target audio is sent to 1×3 spatial convolution and 3×1 temporal convolution to extract features of different scales.

[0023] In a second aspect, the present application provides a multi-scale speech emotion recognition device, the multi-scale speech emotion recognition device comprising:

[0024] A model building module, which is used to build a multi-scale speech emotion recognition model based on a multi-scale global fusion perception model with efficient multi-scale attention;

[0025] A different scale feature acquisition module is used to acquire different scale features of the target audio;

[0026] The emotion type recognition module is used to use the trained multi-scale speech emotion recognition model to identify the emotion type of the target audio with different scale features.

[0027] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the multi-scale speech emotion recognition method.

[0028] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the multi-scale speech emotion recognition method when executed by a processor.

[0029] In a third aspect, the present application provides a computer program product, including a computer program, which implements the multi-scale speech emotion recognition method when executed by a processor.

[0030] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0031] The present application provides a multi-scale speech emotion recognition method, device, medium and product, and constructs a multi-scale speech emotion recognition model based on the multi-scale global fusion perception model MFFAS with efficient multi-scale attention (EMA). The multi-scale global fusion perception layer in the multi-scale global fusion perception model helps to expand the receptive field of the feature, enhance the feature mixing across channel dimensions, and make the network training more efficient. EMA is added to the multi-scale global fusion perception model, and EMA produces better pixel-level attention to the high-level features of the network. In long conversations, it helps to track the changes in emotional state over time, and helps to solve the problem of reduced recognition accuracy caused by changes in emotional differences under various complex emotional states. Compared with traditional convolutional neural networks, it improves the accuracy and recognition efficiency of multi-scale speech emotion recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 This is an application environment diagram of a multi-scale speech emotion recognition method in an embodiment of the present application;

[0034] Figure 2 A schematic diagram of a flow chart of a multi-scale speech emotion recognition method provided in one embodiment of the present application;

[0035] Figure 3 Schematic diagram of the structure of a multi-scale global fusion perception model with efficient multi-scale attention;

[0036] Figure 4 Schematic diagram of the structure of the first cross-space multi-scale block and the second cross-space multi-scale block;

[0037] Figure 5 This is a schematic diagram of the third cross-space multi-scale block structure;

[0038] Figure 6 Schematic diagram of the global perception fusion block structure. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0041] The multi-scale speech emotion recognition method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, or it can be integrated on the server 104, or it can be placed on the cloud or other servers. The terminal 102 can send the different scale features of the target audio to the server 104. After the server 104 receives the different scale features of the target audio, for the different scale features of the target audio, the multi-scale speech emotion recognition model trained by the server 104 performs emotion type recognition on the different scale features of the target audio. The server 104 can feedback the obtained emotion type to the terminal 102. In addition, in some embodiments, the multi-scale speech emotion recognition method can also be implemented by the server 104 or the terminal 102 alone, such as the terminal 102 can directly identify the different scale features of the target audio, or the server 104 can obtain the different scale features of the target audio from the data storage system and identify the different scale features of the target audio.

[0042] The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers, or may be a cloud server.

[0043] In an exemplary embodiment, Figure 2 As shown, a multi-scale speech emotion recognition method is provided, which is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate, including the following S201 to S203. Among them:

[0044] S201, construct a multi-scale speech emotion recognition model based on a multi-scale global fusion perception model with efficient multi-scale attention;

[0045] Efficient multi-scale attention can retain information on each channel while reducing the computational overhead of multi-layer networks. Different from channel or spatial attention mechanisms, which extract deep representations by establishing cross-channel relationships through dimensionality reduction, EMA uses a cross-space learning method to fuse the output feature maps of two parallel subnetworks without reducing the channel dimension, thereby improving the efficiency of feature extraction and maintaining a small depth and low latency, and more efficiently obtaining richer emotional information.

[0046] In order to expand the receptive field of features, the multi-scale global fusion perception model extracts shallow features in a multi-scale convolutional manner, which helps the network capture local features and some broad features in the spectrum graph at the same time and improves the semantic expression ability of the network. Therefore, in this application, multi-scale convolution is still used to extract shallow features. In order to enhance the network's attention to different features and extract more meaningful features, EMA is introduced to extract deep representations.

[0047] S202, obtaining different scale features of the target audio;

[0048] S203, using the trained multi-scale speech emotion recognition model to identify the emotion type of the different scale features of the target audio.

[0049] The specific training process of the multi-scale speech emotion recognition model is as follows:

[0050] S1, obtaining a training data set; the training data set includes: a plurality of audio files containing different contents;

[0051] S2, dividing the training data set into a training set and a validation set;

[0052] Expanding the training data set by using data preprocessing methods such as speech segmentation, fast Fourier transform, and Mel filter bank to obtain an expanded data set;

[0053] The expanded data set is divided into training set and validation set according to the set ratio.

[0054] S3, using the training set to input the multi-scale speech emotion recognition model to train model parameters, to obtain a trained multi-scale speech emotion recognition model;

[0055] S4, inputting the verification set into the trained multi-scale speech emotion recognition model to adjust the model parameters to obtain a verified multi-scale speech emotion recognition model.

[0056] like Figure 3 As shown, the multi-scale speech emotion recognition model specifically includes: a feature extraction layer, a first cross-space multi-scale block, a first maximum pooling layer, a second cross-space multi-scale block, a second maximum pooling layer, a third cross-space multi-scale block, a convolution layer, a batch normalization layer, a global perception fusion block, a fully connected layer and a classification output layer connected in sequence;

[0057] like Figure 4 As shown, the first cross-space multi-scale block and the second cross-space multi-scale block both include: a 3×3 standard convolution layer and a 5×5 standard convolution layer, a feature concatenation layer in the channel dimension, a residual connection layer, a batch normalization layer, and an efficient multi-scale attention layer; as shown Figure 5As shown in FIG. 1 , the third cross-space multi-scale block includes: a 3×3 standard convolution layer and a 5×5 standard convolution layer, a feature concatenation layer in the channel dimension, a residual connection layer, and a batch normalization layer. The feature concatenation layer in the channel dimension is used to concatenate the features of the 3×3 and 5×5 standard convolution outputs. The 3×3 and 5×5 standard convolutions are used to capture local features and some broad features in the spectrogram, respectively.

[0058] The calculation formula of the residual connection layer is:

[0059] F(x) = H(x) + x;

[0060] Here, x refers to the original input, F(x) refers to the final output of the residual connection layer, and H(x) refers to the output of the input x after it is transformed by 3×3 and 5×5 standard convolution, feature concatenation, and batch normalization layers in sequence.

[0061] The calculation formula of the batch normalization layer is:

[0062]

[0063] Among them, H 1 (x) and H 2 (x) indicates that the 3×3 and 5×5 convolution operations are performed on the input x to obtain the respective outputs; BN indicates batch normalization operation, and Concat indicates concatenation operation in the channel dimension;

[0064] The batch normalization operation usually includes the following steps:

[0065] Step 1: Calculate the mean μ of each channel in the batch B and variance

[0066] Step 2: Normalize each channel using the mean and variance to obtain BN;

[0067] Step 3: Scale and translate the normalized tensor using learnable parameter scaling factor γ and offset β.

[0068] The specific calculation formula is as follows:

[0069] H = Concate(h 1 (x),H 2 (x));

[0070]

[0071] The feature extraction layer includes: 1×3 spatial convolution, 3×1 temporal convolution and feature splicing layer; wherein, the feature splicing layer uses the output features of the 1×3 and 3×1 convolutions spliced ​​in the height dimension.

[0072] Among them, ∈ is a small constant used for numerical stability to prevent division by zero; This means that we calculate the average of the squared differences between all data points and the batch mean for each channel.

[0073] The specific operation of EMA is as follows:

[0074] a) Send the batch normalized output of the EMA upper layer to the input layer, and divide the input feature groupx into g sub-features in the channel dimension;

[0075] b) Each feature is passed into adaptive average pooling (XAvgPool) along the height direction, adaptive average pooling (YAvgPool) along the width direction, and 3×3 standard convolution;

[0076] c) The feature outputs of XAvgPool and YAvgPool are concatenated along the height dimension and passed through a 1×1 convolution;

[0077] d) Split the concatenated feature output into two parts along the height and width x h and x w , respectively, passed into the sigmoid function. Among them, for each position (i, j) in the output feature map, the average value of all pixel values ​​in the input feature map G(F) is calculated, and the information of each channel of the entire feature map is compressed into a single value, which is expressed by the formula:

[0078]

[0079] e) Groupx and sigmoid activated x h and x w Multiply them together and pass through the group normalization layer GroupNorm. The corresponding calculation formula is as follows:

[0080] X1=g x ×σ(x h )×σ(permute(x w ));

[0081] Among them, g x is the original input tensor, σ represents the sigmoid activation function, permute(x w ) represents the w Perform dimension permutation and convert x w The dimensions are permuted from (b,c / g,h,w) to (b,c / g,w,h).

[0082] f) Perform adaptive average pooling on X1, then reshape (four-dimensional to three-dimensional), transpose (channels and hw are interchanged), and pass through the softmax layer to obtain the new feature X. The corresponding calculation formula is as follows:

[0083] X=softmax(permute(reshape(agp(X1)), (0, 2, 1)));

[0084] Among them, X1 refers to the new feature tensor obtained after the group normalization layer, agp(X1) means adaptive average pooling of X1, reshape() means reshaping the result of agp(X1) into a two-dimensional tensor, permute() means transposing the channel dimension of the reshaped tensor, and finally softmax() is used to convert each input vector into a probability distribution.

[0085] g) Cross-space learning: For richer feature aggregation, a cross-space information aggregation method in different spatial dimensions is used to solve the semantic segmentation problem. Two tensors are introduced, one is the output of the 1×1 branch, and the other is the output of the 3×3 branch. The output of the 1x1 branch is encoded with global spatial information using 2D global average pooling, and the output of the least branch is directly converted to the corresponding dimensional shape before the channel feature joint activation mechanism. The 2D global average pooling operation is expressed as:

[0086]

[0087] The first maximum pooling layer includes: a 2×2 pooling window, which is used to cover the 2×2 pixel area of ​​the input feature map; the sliding step size is also 2; the second maximum pooling layer includes: a 2×2 pooling window, which is used to cover the 2×2 pixel area of ​​the input feature map; the sliding step size is also 2; Figure 6 As shown, the global perception fusion layer includes: a first normalization layer, a first fully connected layer, a GeLU activation layer, a second normalization layer, a 1×1 convolutional layer, a second fully connected layer and a residual layer connected in sequence.

[0088] The number of input channels of the first cross-space multi-scale block is 16, and the number of output channels is 32;

[0089] The number of input channels of the second cross-space multi-scale block is 32, and the number of output channels is 64;

[0090] The number of input channels of the third cross-space multi-scale block is 64, and the number of output channels is 128.

[0091] Group normalization is used in EMA. Batch normalization is used in other network layers in the model.

[0092] In the first cross-spatial multi-scale block, the second cross-spatial multi-scale block, and the third cross-spatial multi-scale block, batch normalization is applied to the concatenated convolution output. The convolution operation and residual connection generate outputs with different scale features. Batch normalization helps to further normalize the mean and variance of the batch data and reduce the internal covariate shift during training. The input of the normalized layer allows a larger learning rate to be used without causing instability in the training process. Because the output distribution of the normalized layer is more stable, it reduces the sensitivity to the learning rate. At the same time, batch normalization can replace regularization techniques such as Dropout to simplify the design and training process of the network.

[0093] Using group normalization in EMA allows you to control the scope of normalization by adjusting the number of groups. More groups means fewer channels within each group, which can provide more fine-grained normalization. By normalizing features, group normalization helps reduce overfitting of the model, allowing the model to perform well on both training and test data.

[0094] Next, taking multi-scale speech emotion recognition as an example, the specific implementation process of the above method in practical application is explained.

[0095] 1. Dataset and preprocessing

[0096] (1) Dataset

[0097] To ensure the objectivity and scientificity of the experiment, we chose to use a publicly available dataset, IEMOCAP, which will be referred to here as the Interactive Emotional Binary Motion Capture Database (IEMOCAP), collected by the SAIL Laboratory of the University of Southern California. It involves dialogues between 10 professional actors (5 men and 5 women), divided into 5 sessions, each consisting of 1 man and 1 woman. The dialogue is divided into two parts, one is a fixed script designed to induce specific emotions, and the other is free play under a given theme scenario. The dataset is annotated with 6 categories of emotions: neutral, happiness, sadness, anger, frustration, and excitement. Non-neutral emotions account for 77%. The database contains a total of about 12 hours of data. In addition, IEMOCAP provides rich multimodal information, including video, audio, text transcription, and facial motion capture data. The dataset is suitable for research fields such as emotion recognition, human-computer interaction, dialogue systems, and social robots. In this study, audio data was mainly selected as the research object.

[0098] (2) Pretreatment

[0099] MFCC is used to extract audio features, and the sampling rate is set to 16000Hz. In this dataset, four types of emotion labels are mainly used, namely "neutral", "happy", "sad", and "angry". Since the emotion labels of happiness and excitement are similar, "excitement" is also regarded as a happy emotion.

[0100] In the preprocessing stage, each audio file is first split into multiple 2s segments using a custom audio segmentation function segment(), which can overlap partially. If the original audio length is not enough to split a segment of the required length, the padding option is enabled to extend it by repeating the audio data.

[0101] Secondly, a custom FeatureExtractor class is used to extract multiple acoustic features from the audio data, including but not limited to log filter banks (logfbank), mel frequency cepstral coefficients (mfcc), filter banks (fbank), mel spectrograms (melspectrograms), and ordinary spectrograms (spectrograms). The process() class is used to process the dataset, and the parameters passed in include but are not limited to the audio file name, the corresponding emotion label, MFCC acoustic features, 16000Hz sampling rate, and the split ratio of the training set and the validation set is 8:2.

[0102] Again, in the data augmentation part, in order to improve the generalization ability of the model, new training samples are created by applying linear interpolation on the original data. Specifically, given two different samples and and their corresponding labels and The mixup method generates a new sample and its label as follows:

[0103]

[0104] Where λ is a random weight drawn from a Beta distribution (or other probability distribution), usually in the range [0,1]. This method effectively smoothes the discrete data space into a continuous space.

[0105] Finally, after the above operations, a feature file in pkl format is obtained in the data preprocessing stage. The file consists of a feature vector dictionary (vector), an emotion label (ylabel), a dictionary (valdict) containing each segment of the validation set and the corresponding emotion label, and a sequence number (info). This feature file needs to be involved in model training, where vector is a two-dimensional array representing the feature vector of each audio segment; ylabel is a one-dimensional array representing the emotion label corresponding to vector; the valdict dictionary contains each audio segment of the validation set and the emotion label corresponding to the audio segment, which is used to evaluate the model after each epoch and does not participate in training. Table 1 shows the number of training sets and test sets corresponding to each type of emotion label.

[0106] Table 1

[0107] Emotional categories neutral sad angry happy total Training set 706 446 213 424 1789 Test Set 177 111 53 106 447 total 883 557 266 530 2236

[0108] (3) MFFAS multi-scale speech emotion recognition method

[0109] Using the four types of emotions in the IEMOCAP public dataset for key research, the MFFAS multi-scale speech emotion recognition model was designed. The input is a speech conversation audio. First, after the preprocessing stage, the speech conversation is cut into multiple 2-second segments, and the corresponding audio features are extracted and stored in the feature file in a ratio of 80% for the training set and 20% for the test set. Subsequently, the feature file is sent to the 1×3 spatial convolution and 3×1 temporal convolution for multi-scale shallow feature extraction to obtain multi-scale audio feature representation, and then the multi-scale features are spliced ​​in the height dimension. The spliced ​​shallow features are then input into the first cross-space multi-scale block. In the first cross-space multi-scale block, the features are subjected to parallel convolutions of different convolution kernel sizes, batch normalization layers, and residual structures to better capture the multi-scale information of the input features and improve the network's extraction of broader semantic information. The introduction of EMA after this input can obtain higher-level features in the spatial dimension, enabling the network to learn more complex functions. Then, through the first 2×2 maximum pooling layer, the feature dimension is reduced, which helps to reduce the complexity and computational complexity of the model. Continue to pass through the second cross-spatial multi-scale block, the second maximum pooling layer, and then the third cross-spatial multi-scale block to obtain more advanced features. Finally, a 5×5 convolution layer is used to establish a global feature representation, capture relevant information at a larger scale, and embed the output features of large-scale global spatial information. A batch normalization layer is connected after the 5×5 convolution layer for standardization to accelerate model convergence. Finally, the output features are passed through the global perception fusion block to enhance the feature mixing across channel dimensions; the global perception fusion block uses a gMLP block to reshape the output of the global perception fusion block and input it into the fully connected (FC) network for classification.

[0110] Based on the same inventive concept, the embodiment of the present application also provides a multi-scale speech emotion recognition device for implementing the multi-scale speech emotion recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more multi-scale speech emotion recognition device embodiments provided below can refer to the limitations of the multi-scale speech emotion recognition method above, and will not be repeated here.

[0111] In an exemplary embodiment, a multi-scale speech emotion recognition device is provided, comprising:

[0112] A model building module, which is used to build a multi-scale speech emotion recognition model based on a multi-scale global fusion perception model with efficient multi-scale attention;

[0113] A different scale feature acquisition module is used to acquire different scale features of the target audio;

[0114] The emotion type recognition module is used to use the trained multi-scale speech emotion recognition model to identify the emotion type of the target audio with different scale features.

[0115] In an exemplary embodiment, a computer device is provided, which may be a server or a terminal. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for different scale features of the target audio. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a multi-scale speech emotion recognition method is implemented.

[0116] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0117] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0119] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0120] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0121] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0122] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A multi-scale speech emotion recognition method, characterized in that: The multi-scale speech emotion recognition method comprises: A multi-scale speech emotion recognition model is constructed based on a multi-scale global fusion perception model with efficient multi-scale attention. Obtain different scale features of the target audio; The trained multi-scale speech emotion recognition model is used to identify the emotion type of the target audio based on different scale features.

2. The multi-scale speech emotion recognition method according to claim 1, characterized in that: The multi-scale speech emotion recognition model specifically includes: a feature extraction layer, a first cross-space multi-scale block, a first maximum pooling layer, a second cross-space multi-scale block, a second maximum pooling layer, a third cross-space multi-scale block, a convolution layer, a batch normalization layer, a global perception fusion block, a fully connected layer and a classification output layer connected in sequence; The first cross-space multi-scale block and the second cross-space multi-scale block both include: a 3×3 standard convolution layer and a 5×5 standard convolution layer, a feature splicing layer in the channel dimension, a residual connection layer, a batch normalization layer, and an efficient multi-scale attention; the third cross-space multi-scale block includes: a 3×3 standard convolution layer and a 5×5 standard convolution layer, a feature splicing layer in the channel dimension, a residual connection layer, and a batch normalization layer.

3. The multi-scale speech emotion recognition method according to claim 2, characterized in that: The number of input channels of the first cross-space multi-scale block is 16, and the number of output channels is 32; The number of input channels of the second cross-space multi-scale block is 32, and the number of output channels is 64; The number of input channels of the third cross-space multi-scale block is 64, and the number of output channels is 128.

4. The multi-scale speech emotion recognition method according to claim 1, characterized in that: The obtaining of different scale features of the target audio specifically includes: Preprocessing the target audio; the preprocessing includes: segmentation and filling; The preprocessed target audio is sent to 1×3 spatial convolution and 3×1 temporal convolution to extract features of different scales.

5. A multi-scale speech emotion recognition device, characterized in that: The multi-scale speech emotion recognition device comprises: A model building module, which is used to build a multi-scale speech emotion recognition model based on a multi-scale global fusion perception model with efficient multi-scale attention; A different scale feature acquisition module is used to acquire different scale features of the target audio; The emotion type recognition module is used to use the trained multi-scale speech emotion recognition model to identify the emotion type of the target audio with different scale features.

6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the multi-scale speech emotion recognition method according to any one of claims 1 to 4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the multi-scale speech emotion recognition method according to any one of claims 1 to 4 is implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the multi-scale speech emotion recognition method according to any one of claims 1 to 4 is implemented.

Citation Information

Cited By

  • Abnormal sound detection method and system of neural network based on multiple receptive fields

    CN119091909A