Emotion recognition method and device fusing voice and image features

By fusing voice and image features, it solves the problem of low accuracy in human emotion recognition and achieves more accurate and automated emotion analysis, which is suitable for a variety of application scenarios.

CN118673353APending Publication Date: 2024-09-20CHINA AUTOMOTIVE INNOVATION CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310249840.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Due to the influence of the experimenter's personal bias, cultural background, and contextual information, human emotion recognition is not very accurate. Existing technologies are difficult to effectively process a single annotated data set, and there is a lack of comprehensive analysis methods for multi-modal information.

Method used

By fusing voice and image features, we use data preprocessing, feature extraction, cross-modal information fusion and timing models to generate a variety of sentiment analysis results, eliminate ambiguities and uncertainties, and obtain more accurate sentiment analysis results.

Benefits of technology

It achieves more accurate, automated and real-time sentiment analysis, can provide reliable results under a single labeling condition, and is suitable for professional and mass applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673353A
    Figure CN118673353A
Patent Text Reader

Abstract

The invention provides an efficient and accurate emotion recognition method and device fusing voice and image features. The method comprises the following steps: extracting multi-modal information by a feature extraction model, and obtaining feature vectors of image information and audio information; carrying out cross-modal information multi-dimensional fusion splicing, and carrying out modal fusion on emotion-related information; the time sequence model generates a plurality of sentiment analysis results, a facial motion unit, seven basic sentiment classifications and titers and wake-up intensities. Through actual use verification and experiments of emotion recognition and uncertainty estimation, the method provided by the invention provides reliable uncertainty estimation, has the advantages of high automation degree, high precision and real-time performance, and can meet professional or popular application requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of human-computer interaction, and specifically to an emotion recognition method and system integrating speech and image features, which is suitable for judging human emotions and emotion-related information through audio and video information. Background Art

[0002] Human emotion analysis technology has become a key issue in many fields such as social robots and user analysis. However, as a complex and subjective task, the accuracy of identifying human emotions is affected by the experimenter's personal bias, cultural background, and contextual information. Therefore, identifying human emotions is a highly uncertain task.

[0003] Due to the above difficulties, sentiment analysis datasets often require many experts to annotate, and the aggregated and cleaned results are used as the sentiment labels of the samples. However, due to the high cost of manual annotation, when annotating large-scale datasets, usually only one or a small number of experts can annotate a sample, so the accuracy and objectivity of the annotation cannot be guaranteed. In existing research work, the uncertainty of sentiment often arises from the diversity of multiple annotators, such as assigning a probability distribution to each sentiment class to characterize ambiguity, or defining the uncertainty of sentiment as the diversity between annotators. The above method cannot be applied to datasets with only a single sentiment label.

[0004] Humans perceive emotions in a variety of ways. Through information such as facial expressions, language, and tone, we can perceive emotions more accurately and finely. Multimodal information fusion technology mainly studies how to integrate models and features between different modalities. This technology can obtain more comprehensive features, improve model robustness, and ensure that the model can still work effectively when some modalities are missing. At present, there is a lack of a method that can comprehensively analyze human emotions through multiple information. Summary of the invention

[0005] Based on this, it is necessary to provide an emotion recognition method and device that integrates speech and image features to address the above technical issues. The present invention uses speech audio and image information to extract human emotions, interprets the uncertainty of emotions as the uncertainty of the posterior probability of model weights, and does not require annotation data from multiple annotators. The present invention obtains more accurate emotion analysis results by comprehensively utilizing data from multiple modalities, eliminating ambiguity and uncertainty through complementarity.

[0006] According to a first aspect of the present invention, there is provided an emotion recognition method integrating speech and image features, comprising:

[0007] Data preprocessing step, preprocessing and converting multimodal data of audio and images;

[0008] Feature extraction step, extracting multimodal information through a feature extraction model to obtain feature vectors of audio information and image information;

[0009] Cross-modal information fusion and splicing step, modal fusion of emotion-related information;

[0010] The result generation step generates a variety of sentiment analysis results through the time series model.

[0011] Among them, "multiple emotion analysis results" refers to multiple emotion-related labels, such as facial action units AU, seven basic emotions EXPR, and valence and arousal.

[0012] In some embodiments, preprocessing and converting multimodal data of audio and image includes sampling data from the audio and image data at the same frame rate; further, it includes: preprocessing and converting modal data of facial key points; the image can be a single frame.

[0013] Among them, converting audio means: converting the audio spectrum into a Mel spectrum graph, which is generated by extracting K Mel joint filtering features from M frames of audio; the image follows the sampling frequency of the audio to obtain a fixed resolution facial expression color image group (or single frame image).

[0014] In some embodiments, the feature extraction model extracts multimodal information, including: extracting a feature vector e of the audio information from the Mel-spectrogram of the audio information through an audio feature encoder; aud ; The image information is processed by the face image encoder and the feature vector e is output vis ; The face encoder selects a network architecture that pre-trains the model on the face alignment task.

[0015] Specifically, the feature extraction model extracts multimodal information, including: obtaining feature vectors of audio information, image information, and facial key point information, where the audio information is extracted using an audio feature encoder, and the audio feature encoding result is an audio feature vector e aud ; The image information is extracted using a face image encoder, and the encoding result of the image features is the image feature vector e vis .

[0016] In some embodiments, the modality fusion emotion-related information includes fusion and splicing according to the following formula:

[0017] e=[e aud ,e vis ]

[0018] Where [,] is the fusion and concatenation operation of vectors.

[0019] In some embodiments, a variety of sentiment analysis results are generated based on the time series model, including:

[0020] According to three different timing models, three kinds of emotion analysis results are generated respectively: facial action unit, seven basic emotion classifications, and valence and arousal intensity.

[0021] In some embodiments, it further includes a construction and training step to construct and train the feature extraction model and the timing model.

[0022] According to a second aspect of the present invention, there is provided an emotion recognition device integrating speech and image features, comprising:

[0023] Data preprocessing module, used to preprocess and transform multimodal data of audio and images;

[0024] A feature extraction module is used to extract multimodal information through a feature extraction model and obtain feature vectors of audio information and image information;

[0025] Cross-modal information fusion and splicing module, used for modal fusion of emotion-related information;

[0026] The result generation module is used to generate various sentiment analysis results through the time series model.

[0027] According to a third aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.

[0028] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method of any of the above embodiments are implemented.

[0029] By implementing the above solution of the present invention, the following beneficial effects can be obtained:

[0030] 1. A more intuitive and comprehensive way of describing emotions is adopted, rather than considering only a single label as in existing work. In order to extract and fuse multimodal information, a multi-dimensional fusion and splicing technology of modal information is used in the model.

[0031] 2. The present invention obtains more accurate sentiment analysis results by comprehensively utilizing data from multiple modalities and eliminating ambiguity and uncertainty through complementarity.

[0032] 3. The actual use verification and the experiments of emotion recognition and uncertainty estimation show that the present invention provides reliable uncertainty estimation, has the advantages of high automation, high precision and real-time performance, and can meet the needs of professional or popular applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a flow chart of some embodiments of the emotion recognition method integrating speech and image features of the present invention;

[0034] Figure 2 is a multimodal fusion flow chart of some embodiments of the emotion recognition method integrating speech and image features of the present invention;

[0035] Figure 3 It is a schematic diagram of the structure of some embodiments of the emotion recognition device integrating speech and image features of the present invention;

[0036] Figure 4 It is a diagram of the internal structure of a computer device used to implement some embodiments of the present invention. DETAILED DESCRIPTION

[0037] Embodiments of the present invention will be described more fully below with reference to the accompanying drawings, in which embodiments of the present invention are shown. However, the present invention can be embodied in many different forms and should not be construed as limited to the embodiments set forth herein.

[0038] The terms used herein are used only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an", "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that when used herein, the term "comprising" specifies the presence of the claimed features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof.

[0039] Unless otherwise defined, the terms (including technical and scientific terms) used herein have the same meanings as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. The terms used herein should be interpreted as having the meanings consistent with their meanings in the context of this specification and in the relevant field, and should not be interpreted in an idealized or overly formal sense, unless specifically defined as such herein.

[0040] Before describing the specific details of the present application, the meanings of the terms used in the present application will be briefly explained.

[0041] Facial movement unit: A set of facial action units (AU) defined from the perspective of facial anatomy, used to accurately depict changes in facial expressions.

[0042] Seven basic emotions: that is, seven basic emotions EXPR, joy, anger, sorrow, fear, love, hate, and desire.

[0043] Valence and arousal intensity: A two-dimensional model of emotions. Emotions can be mapped to valence and arousal. Valence is a classification from negative to positive, distinguishing between positive and negative emotions. Arousal intensity ranges from calm to excitement, characterizing the degree of emotional arousal.

[0044] Figure 1 Flow charts showing some embodiments of the emotion recognition method integrating speech and image features of the present invention; Figure 2 A multimodal fusion flow chart of some embodiments of the emotion recognition method integrating speech and image features of the present invention is shown.

[0045] like Figure 1 As shown, the method includes:

[0046] The data preprocessing step S102 is to preprocess and transform the multimodal data of audio and image.

[0047] Specifically, it includes: obtaining and processing emotion-related audio and video data, and representing the training set as {X, Y}, where X represents input data and Y represents data labels. Input data can be divided into two categories {X vis ,X aud}. X vis Represents image data, X aud Indicates audio data. X vis is a face image, where That is, the face image is an RGB image with a height (width) of H pixels. aud is the Mel-spectrogram: That is, the Mel-spectrogram has two dimensions: the number of Mel filter group features and the number of audio frames. In the setting of the present invention, they are both W. If more modal information is designed, such as key points, EEG, muscle electricity, etc., it can also be added to the model after appropriate preprocessing and enter the subsequent process. The input audio is processed into a K×K Mel-spectrogram, which is generated by extracting K Mel joint filter features from M frames of audio. A series of facial images and a series of Mel-spectrograms are sampled. The sampling rate is the same as the frame rate of the input video file. L represents the sequence length and B represents the batch size. For X vis , the input shape of the visual-audio model is (B,L,3,H,H), for X aud , the input shape is (B,L,K,K).

[0048] In the feature extraction step S104, multimodal information is extracted through a feature extraction model to obtain feature vectors of audio information and image information.

[0049] Specifically include: Figure 2 As shown in the left part, audio information X audThe audio feature encoder based on D-CNN extracts audio features from the Mel spectrogram of the audio. The audio feature encoder performs dynamic detection of speech and has a lightweight network architecture to choose from. The audio feature encoder extracts an audio feature vector E from a Mel spectrogram aud . Face information X vis The face image encoder is processed. The face image encoder has a lightweight network architecture to choose from. It pre-trains the model on the face alignment task and then fine-tunes the pre-trained convolutional neural network weights. The face image encoder outputs the feature vector E vis .

[0050] The cross-modal information fusion and splicing step S106 is to modally fuse emotion-related information.

[0051] Specifically include: intra-modal and cross-modal information fusion and splicing. Figure 2 As shown in the middle part of vis With E aud The fusion is performed to obtain a feature vector with a fixed length.

[0052] In the result generation step S108, a plurality of sentiment analysis results are generated according to the time series model.

[0053] Specifically include: Figure 2 As shown in the right part of the figure, the three tasks of emotion prediction have their own timing models for AU detection, basic emotion EXPR classification, and valence and arousal V / A prediction.

[0054] Figure 3 A schematic diagram of the structure of some embodiments of the emotion recognition device integrating speech and image features of the present invention is shown.

[0055] A data preprocessing module 302 is used to preprocess and convert multimodal data of audio and images;

[0056] A feature extraction module 304 is used to extract multimodal information through a feature extraction model to obtain feature vectors of audio information and image information;

[0057] A cross-modal information fusion and splicing module 306 is used for modal fusion of emotion-related information;

[0058] The result generation module 308 is used to generate a variety of sentiment analysis results through the time series model.

[0059] In some of the embodiments, preprocessing and converting multimodal data of audio and image includes sampling data from the audio and image data at the same frame rate; further, it includes: preprocessing and converting modal data of facial key points; further, the image can be a single frame.

[0060] Among them, converting audio means: converting the audio spectrum into a Mel spectrum graph, which is generated by extracting K Mel joint filtering features from M frames of audio; the image follows the sampling frequency of the audio to obtain a fixed resolution facial expression color image group (or single frame image).

[0061] In some embodiments, the feature extraction model extracts multimodal information, including: extracting a feature vector e of the audio information from the Mel-spectrogram of the audio information through an audio feature encoder; aud ; The image information is processed by the face image encoder and the feature vector e is output vis ; The face encoder selects a network architecture that pre-trains the model on the face alignment task.

[0062] In some embodiments, the modality fusion emotion-related information includes fusion and splicing according to the following formula:

[0063] e=[e aud ,e vis ]

[0064] Where [,] is the fusion and concatenation operation of vectors.

[0065] In some of the embodiments, multiple emotion analysis results are generated based on the timing model, including: generating three emotion analysis results of facial action units, seven basic emotion classifications, and valence and arousal intensity based on three different timing models.

[0066] Some of the embodiments further include a construction and training module for constructing and training a feature extraction model and a timing model.

[0067] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. A person skilled in the art may modify or make equivalent substitutions for the technical solutions of the present invention without departing from the principle and scope of the present invention. The protection scope of the present invention shall be subject to the claims.

[0068] For the specific definition of an emotion recognition device that integrates speech and image features, please refer to the definition of an emotion recognition method that integrates speech and image features above, which will not be repeated here. Each module in the above-mentioned emotion recognition device that integrates speech and image features can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0069] The present invention also provides a computer device, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above-mentioned emotion recognition method integrating voice and image features is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc. Those skilled in the art can understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0070] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned emotion recognition method integrating speech and image features is implemented.

[0071] Those skilled in the art can understand that all or part of the processes in the above method embodiments 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 methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0072] So far, the embodiments of the present invention have been described in detail. In order to avoid obscuring the concept of the present invention, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solutions disclosed herein.

[0073] Although some specific embodiments of the present invention have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It should be understood by those skilled in the art that the above embodiments may be modified or some technical features may be replaced by equivalents without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. An emotion recognition method integrating speech and image features, characterized in that: The following steps are involved: Data preprocessing step, preprocessing and converting multimodal data of audio and images; Feature extraction step: extracting multimodal information through a feature extraction model to obtain feature vectors of audio information and image information; Cross-modal information fusion and splicing step, modal fusion of emotion-related information; The result generation step generates a variety of sentiment analysis results based on the time series model.

2. The method according to claim 1, characterized in that The preprocessing and conversion of the multimodal data of audio and image includes sampling data from the audio and image data at the same frame rate.

3. The method according to claim 1, characterized in that The image is a single frame; the converted audio is to convert the audio spectrum into a Mel spectrum graph.

4. The method according to claim 1, wherein The feature extraction model extracts multimodal information, including: extracting the feature vector e of the audio information from the Mel spectrum of the audio information through an audio feature encoder aud ; The image information is processed by the face image encoder and the output feature vector e vis .

5. The method according to claim 1, characterized in that Modal fusion emotion-related information includes: Perform fusion splicing according to the following formula: and=[and aud ,And vis ] Where [,] is the vector fusion and splicing operation.

6. The method according to claim 1, characterized in that The above method generates a variety of sentiment analysis results based on the time series model, including: Based on three different timing models, three types of emotion analysis results are generated respectively: facial action unit, seven basic emotion classifications, and valence and arousal intensity.

7. The method according to claim 1, characterized in that It also includes construction and training steps to build and train the feature extraction model and time series model.

8. An emotion recognition device integrating speech and image features, characterized in that: include: Data preprocessing module, used to preprocess and convert multimodal data of audio and images; The feature extraction module is used to extract multimodal information through the feature extraction model and obtain the feature vectors of audio information and image information; Cross-modal information fusion and splicing module, used to fuse emotion-related information; The result generation module is used to generate various sentiment analysis results through the time series model.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.