A multidimensional psychological state assessment method based on multimodal fusion

By using time-dilated convolutional networks and multi-modal fusion technology in the automatic mental state detection model, combined with audio-visual and text features, the problem of low recognition rate in long-term sequence and multi-modal data processing is solved and efficient Depression screening and assessment improves detection accuracy and universality.

CN117796810BActive Publication Date: 2024-09-06HEFEI UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410173563.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-07
Publication Date
2024-09-06
Estimated Expiration
2044-02-07

AI Technical Summary

Technical Problem

Existing automatic mental state detection models have problems with low recognition rate and insufficient accuracy when processing long-term sequences and multi-modal visual data, especially ignoring the complementarity between different types of visual information.

Method used

A multi-dimensional mental state assessment model based on time-dilated convolutional network (TDCN) is constructed, combined with the audio-visual feature extraction module and text feature extraction module, semantic alignment is performed through the text-guided multi-modal fusion module, and contrastive learning is used to enhance the model's discrimination ability. .

Benefits of technology

It improves the recognition rate and accuracy of depression detection, can effectively identify subtle changes in emotional expression at an early stage, is suitable for providing early screening and intervention in resource-limited environments, and enhances the universality of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117796810B
    Figure CN117796810B
Patent Text Reader

Abstract

The present invention discloses a multidimensional psychological state assessment method based on multimodal fusion, which belongs to the technical field of text and audio data processing. The method comprises: S100: constructing a multidimensional psychological state assessment model based on a time dilation convolutional network and encapsulating it into software, wherein the multidimensional psychological state assessment model comprises: an audio-visual feature extraction module, a text feature extraction module and a multimodal fusion module; S200: acquiring data to be tested, and performing psychological state assessment using encapsulated software with a multidimensional psychological state assessment model. The present invention will be an important auxiliary tool for mental health professionals and public health systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of text and audio data processing, and more specifically to a multi-dimensional psychological state assessment method based on multi-modal fusion. Background Art

[0002] Depression is a common psychological disorder that seriously affects an individual's social function. According to the World Health Organization, approximately 264 million people worldwide suffer from depressive disorders, and this number is growing every year. However, the cure rate of depression is quite limited. Its symptoms are diverse, diagnosis is difficult, and accuracy is affected. Due to limited medical resources, only a small number of people who need treatment can get help. Therefore, screening for subthreshold depression is crucial, which helps to detect potential depressive symptoms early.

[0003] Currently, automatic mental state detection (ADD) technology has attracted increasing attention. The goal of building an ADD model is to help medical experts determine the mental state of patients from a large amount of recorded data, such as interview videos. Typical ADD models are built according to the pattern classification paradigm, where discriminative features are automatically learned from a large amount of input data and then fed into a predictor to generate labels or scores, which are used as reference information for medical experts. From the above process, the ADD system has the potential to help medical experts because it is more objective and repeatable and requires less human intervention. Images or videos provide rich visual clues of mental state. In applications, visual clues mainly refer to changes in the facial appearance or head movements of the interviewee. Compared with ordinary people, patients with depression usually have different facial expressions, such as dull expressions and abnormal head movements. Therefore, visual data has become the main source of information for detecting depression. However, unlike short-term behaviors, visual cues related to depression require relatively long observation time to be recognized. Therefore, detection models usually require a large perceptual field to explore depression-specific information. For mental state detection based on visual cues, it is necessary to consider the dynamic characteristics of the data, which can be called temporal information. Some studies have tried to use LSTM or TCN to solve this problem. However, there are still limitations in two aspects. On the one hand, these networks are not suitable for processing long sequences. On the other hand, they tend to use a single visual clue, ignoring the complementarity between different types of visual information, reducing the recognition rate and affecting the evaluation accuracy.

[0004] Therefore, how to provide a multidimensional mental state assessment method based on multimodal fusion is an urgent problem that technicians in this field need to solve. Summary of the invention

[0005] In view of this, the present invention provides an accurate and efficient multidimensional psychological state assessment method based on multimodal fusion, which utilizes deep learning technology and multimodal data analysis methods to make up for the shortcomings of traditional diagnostic methods.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] A multidimensional psychological state assessment method based on multimodal fusion, comprising the following steps:

[0008] S100: Using the time dilation convolutional network as a basis to construct a multidimensional mental state assessment model and encapsulate it into software, wherein the multidimensional mental state assessment model includes: an audio-visual feature extraction module, a text feature extraction module and a text-guided multimodal fusion module, specifically:

[0009] Acquire interview video and audio data, and process the interview video and audio data according to the audio-visual feature extraction module to obtain audio-visual features;

[0010] Acquire interview text data, train the text feature extraction module based on the interview text data, and obtain text features according to the trained text feature extraction module;

[0011] Using the text-guided multimodal fusion module to semantically align text features with audio-visual features to obtain a multidimensional psychological state assessment model, and encapsulating the multidimensional psychological state assessment model into software;

[0012] S200: Acquire the data to be tested, and perform psychological state assessment using packaged software with the multidimensional psychological state assessment model.

[0013] Optionally, the audio-visual feature extraction module is constructed based on the auto-encoding structure of the TDCN structure, and the audio-visual feature extraction module includes: four encoders and four decoders;

[0014] Among them, the four encoders extract low-dimensional data of four features from the original input and input them into the four decoders respectively;

[0015] Compute the difference between each decoder output and the corresponding original input features;

[0016] The difference is weighted and used as the overall loss of the audio-visual feature extraction module.

[0017] Optionally, calculating the difference between the output of each decoder and the corresponding original input feature includes: using a mean square error MSE loss, expressed as:

[0018]

[0019]

[0020]

[0021] Among them, H m is the low-dimensional representation of the four features, represents the encoder, Denotes the decoder, X m represents the original input, X′ m Denotes the decoder output, l m is the encoding and decoding loss of each feature, where m∈{1, 2, 3, 4} represents four manual features, T represents the time dimension, D represents the feature dimension, t represents the coordinate of the current point in the time dimension in the feature matrix, and d represents the coordinate of the current point in the feature dimension in the feature matrix.

[0022] Optionally, the difference is weighted and used as the overall loss of the audio-visual feature extraction module, expressed as:

[0023]

[0024] Among them, l auto represents the overall loss, λ m Represents the weights of the autoencoder loss for different features.

[0025] Optionally, the audio-visual feature extraction module further includes a feature fusion part, which uses feature attention FWA to perform fusion along the dimension of the feature, and the expression is:

[0026] A=σ(W 1 ReLU(W 2 avgpool(H));

[0027] Among them, A is the attention map, σ is the Sigmoid function, and W 1 and W 2 is a learnable weight parameter, and avgpool represents the average pooling operation along the time dimension;

[0028] The attention map A is applied to the input feature map elements and is expressed as:

[0029] H att =A⊙H;

[0030] Among them, ⊙ represents element-by-element multiplication, H is the autoencoder output concatenated from the low-dimensional representation of the four features, and H att represents the autoencoder output after multiplying the attention weight;

[0031] The fusion result is converted into a one-dimensional vector as the output of the audio-visual feature extraction module.

[0032] Optionally, the text feature extraction module construction process includes:

[0033] Acquire text data, the text data including short sentences and / or single word sentences, wherein the short sentences and / or single words are redistributed and merged into a long sentence sample set, each of the long sentence sample sets is evenly divided into 20 long sentences, and if the long sentence exceeds 512 words, the redundant part is discarded;

[0034] Use the pre-trained roBERTa model to extract the features of each long sentence sample set, connect the features extracted from a single sentence into a matrix, and form the sample features corresponding to each long sentence sample set;

[0035] Construct a multi-head attention model, input the sample features into the multi-head attention model to learn the relationship between sentences and output;

[0036] The output result is embedded as a text feature and reshaped into a one-dimensional vector as the output of the text feature extraction module.

[0037] Optionally, the construction of the text feature extraction module also includes:

[0038] An EDAIC dataset is obtained, the text feature extraction module is connected to a fully connected layer, and contrastive learning is used to perform training on depression state recognition, subthreshold detection, and PHQ score prediction based on the EDAIC dataset.

[0039] Optionally, the contrastive learning includes:

[0040] The contrast loss of the text feature extraction module is combined with the regression task or classification task loss to form a joint loss function, which is:

[0041] l t = l task-text +w CL-text l CL-text ;

[0042] Among them, l task-text represents the classification task loss, l CL-text represents the contrast loss, W CL-text is the weight of the loss in the contrastive learning part.

[0043] Optionally, the regression task uses three types of labels for sub-threshold crowd detection for comparative learning, and the formula is:

[0044]

[0045] Among them, l CLrepresents the contrast loss function, I represents the set of index pairs in a batch of training, A(i) represents the set of training pairs, P(i) represents the set of positive training pairs, τ is an adjustable parameter, z represents the embedding of samples in the batch, i represents the serial number of all samples, p represents the serial number of positive samples, and a represents the serial number of negative samples.

[0046] Optionally, the text-guided multimodal fusion module includes:

[0047] The audio-visual feature extraction module makes the audio-visual features and the text features have the same shape through the fully connected layer, uses the MSE loss to calculate the gap between the audio-visual feature extraction module and the text feature extraction module, and continuously narrows the gap during the iteration process. The expression is:

[0048]

[0049] Among them, l gap represents the difference between audio-visual features and text features, N represents the total number of elements in these two one-dimensional embeddings, and x t represents text feature embedding, x av represents the audio-visual feature embedding, n represents the coordinate position of the current element in the one-dimensional embedding;

[0050] The joint loss is defined as the main task loss l task , autoencoder loss l auto , contrast loss l CL-av And the newly defined cross-modal contrast loss l gap The weighted sum of is expressed as:

[0051] l=w task l task +w auto l auto +w gap l gap +w CL-av l CL-av ;

[0052] Among them, w task represents the loss weight of the main task, w auto Denoted as the autoencoder loss weight, w gap Expressed as the cross-modal contrast loss weight, w CL-av Expressed as contrast loss weight.

[0053] It can be seen from the above technical solutions that compared with the prior art, the present invention discloses a multidimensional mental state assessment method based on multimodal fusion, which can capture subtle changes in emotional expression by analyzing interview video, audio and text data, and can effectively identify even in the early stages. Using the time dilation convolutional network (TDCN) as the basis, a multidimensional mental state assessment model is constructed, which is specially designed to extract the most compact and relevant features from long sequences. In order to make full use of the advantages of the text modality, the RoBERTa pre-training model is integrated with the attention mechanism for high-quality text encoding. Then, a text-guided multimodal fusion (TGMF) module is developed, using text encoding as an anchor to guide audio and video modality encoding to ensure multimodal alignment. In addition, the present invention applies contrastive learning to distinguish different categories and enhance the universality of the model. The present invention shows excellent performance in the regression task of the EDAIC dataset, and performs well in detecting depressive states and identifying subthreshold populations. The application of the present invention can improve the recognition rate of depression detection, especially in resource-limited environments, providing the possibility of early screening and intervention for a wider range of people. This will be an important auxiliary tool for mental health professionals and public health systems. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0055] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0056] Figure 2 It is a schematic diagram of the structure of the multidimensional psychological state assessment model of the present invention. DETAILED DESCRIPTION

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

[0058] The purpose of the present invention is to provide a multidimensional psychological state assessment method based on multimodal fusion, including: S100: using a time dilation convolutional network as a basis to construct a multidimensional psychological state assessment model and encapsulate it into software, wherein the multidimensional psychological state assessment model includes: an audio-visual feature extraction module, a text feature extraction module and a text-guided multimodal fusion module, specifically: obtaining interview video and audio data, and processing the interview video and audio data according to the audio-visual feature extraction module to obtain audio-visual features; obtaining interview text data, training the text feature extraction module based on the interview text data, and obtaining text features according to the trained text feature extraction module; using the text-guided multimodal fusion module to semantically align text features with audio-visual features to obtain a multidimensional psychological state assessment model, and encapsulating the multidimensional psychological state assessment model into software; S200: obtaining data to be tested, and using the encapsulated software with the multidimensional psychological state assessment model to perform psychological state assessment. It is intended to provide an accurate and efficient depression screening and early warning tool, which will be an important auxiliary tool for mental health professionals and public health systems.

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

[0060] See also Figure 1 The embodiment of the present invention discloses a multi-dimensional psychological state assessment method based on multi-modal fusion, comprising the following steps:

[0061] S100: Using the time dilation convolutional network as a basis to build a multidimensional mental state assessment model and encapsulate it into software, wherein the multidimensional mental state assessment model includes: an audio-visual feature extraction module, a text feature extraction module and a multimodal fusion module, specifically:

[0062] Obtain interview video and audio data, and process the interview video and audio data according to the audio-visual feature extraction module to obtain audio-visual features;

[0063] Acquire interview text data, train a text feature extraction module based on the interview text data, and obtain text features according to the trained text feature extraction module;

[0064] The text-guided multimodal fusion module is used to semantically align text features with audio-visual features to obtain a multidimensional psychological state assessment model, and the multidimensional psychological state assessment model is encapsulated in software;

[0065] S200: Acquire the data to be tested, and use the packaged software with a multi-dimensional psychological state assessment model to conduct psychological state assessment.

[0066] Specifically, the goal of the present invention is to train three models for three tasks (mental state detection, subthreshold detection tasks, and PHQ score prediction training) respectively, and encapsulate them into software. More specifically, it includes building an audio-visual feature extraction module, building a text feature extraction module, building a text-guided multimodal fusion (TGMF), and performing comparative learning. There are some difficulties in the current multimodal fusion tasks, among which the representative ones are the differences and fine-grained problems between audio-visual and text modalities, which divide audio-visual and text modalities into two different subgroups. The audio-visual modality is processed at a fine-grained frame level, while the text modality is processed at a higher-level session level. Finally, the two modalities are fused at the endpoint.

[0067] In a specific embodiment, see Figure 2 As shown in Figure 1, the model framework includes an audio-visual feature extraction module and a text feature extraction module. In the audio-visual feature extraction module, the input visual features include eye movement, facial data, and audio features eGeMAPS and MFCC. These features are encoded through a simplified TDCN encoder. (where m is the four audio-visual features and enc represents the encoder) is compressed in the time and feature dimensions to extract the effective feature h m (m∈1, 2, 3, 4). Then, the decoder symmetric to the TDCN encoder (where dec stands for decoder) decodes the extracted features. The effectiveness of the extracted features is ensured by ensuring that the difference between the decoder output and the original input features is minimized. At the same time, the encoder output is input to the feature attention part to learn the information contained between different features. The final output of this part is the total output x of the entire audio-visual feature extraction module part av .

[0068] Specifically, in the text feature extraction module, the text input is fed into the RoBERTa pre-trained model to extract embeddings, and then the obtained embeddings are fed into the multi-head attention module to learn the information between sentences. This gives the output x of the text part t . The output of the audio-visual feature extraction module is reshaped through a fully connected layer to match the shape of the text part output. The difference between the two is minimized so that the text part guides the extraction of audio-visual features. The outputs of the audio-visual feature extraction module and the text feature extraction module are concatenated and fed into a fully connected layer for prediction. In addition, the text feature extraction module and the audio-visual feature extraction module also add contrastive learning tasks respectively to enhance the model's ability to distinguish different categories.

[0069] In general, the audio-visual feature extraction module implements feature extraction and reconstruction through the TDCN encoder and decoder to ensure that the extracted features are effective. The text feature extraction module uses the RoBERTa model to extract text embedding and learns the relationship between texts through a multi-head attention model. The feature outputs of the two modules are connected together and used for training different tasks. This framework aims to effectively extract and fuse features of multimodal data.

[0070] In a specific embodiment, the process of constructing an audio-visual feature extraction module includes:

[0071] An autoencoder based on the TDCN structure is used to process visual features (eye gaze, action units) and audio features (eGeMAPS and MFCC). First, the TDCN structure is modified to suit the needs of the model. Then, batch normalization is performed to stabilize the training process and improve the generalization ability of the model.

[0072] Subsequently, four decoders corresponding to the four features are constructed to implement the autoencoder. The architecture of the decoder is symmetrical to the four encoders and is responsible for reconstructing the original input data from the compressed representation in the latent space. This means that the layers and configurations are mirror images of each other. This symmetry ensures that the decoder can accurately reconstruct the original input. Using this approach ensures that the extracted features are valid.

[0073] Specifically, the encoder From the raw input (audio and visual handcrafted features extracted from the raw video using openSMILE and openface) m The low-dimensional representation H of the four features extracted from (m∈{1, 2, 3, 4}) (where m represents four manual features) m (m∈{1,2,3,4}) are input to their respective decoders Here they are remapped to a high-dimensional space with the same shape as the input features. Then, the output X′ of each feature decoder is calculated m The difference between its corresponding original input features uses the mean square error (MSE) loss, and the specific expression is as follows:

[0074]

[0075]

[0076]

[0077] Among them, H m is the low-dimensional representation of the four features, represents the encoder, Denotes the decoder, X mrepresents the original input, X′ m represents the decoder output (same shape as the original output), l m is the encoding and decoding loss of each feature, where m∈{1, 2, 3, 4} represents four manual features, T represents the time dimension, D represents the feature dimension, t represents the coordinate of the current point in the time dimension in the feature matrix, and d represents the coordinate of the current point in the feature dimension in the feature matrix.

[0078] This difference is weighted and used as the overall loss l for the entire autoencoder part auto , is minimized in the subsequent training process, and the specific expression is as follows:

[0079]

[0080] Among them, l auto represents the overall encoding and decoding loss, λ m Represents the weights of the autoencoder loss for different features.

[0081] In the autoencoder, this embodiment also connects the low-dimensional representations of the four features along the feature dimension to obtain the encoder output H∈R T×mD (R refers to the tensor matrix.) Then, feature-wise attention (FWA) is used to fuse H along the feature dimension as follows:

[0082] A=σ(W 1 ReLU(W 2 avgpool(H)))

[0083] A=σ(W 1 ReLU(W 2 avgpool(H));

[0084] Among them, A is the attention map, σ is the Sigmoid function, and W 1 and W 2 is a learnable weight parameter, and avgpool represents the average pooling operation along the time dimension;

[0085] Then, the attention map A is applied to the input feature map elements:

[0086] H att =A⊙H;

[0087] Among them, ⊙ represents element-by-element multiplication, H is the autoencoder output concatenated from the low-dimensional representation of the four features, and H att represents the autoencoder output after multiplying the attention weight;

[0088] Specifically, the fusion result is converted into a one-dimensional vector as the output of the audio-visual feature extraction module.

[0089] In a specific embodiment, the text feature extraction module construction process includes: for the limited sample size of the EDAIC dataset, the generalization ability of the model is enhanced by using a pre-trained model. The rich pre-trained model of the text modality is used to extract text features from the EDAIC dataset. These features are then fused to form a text modality encoding. In the text-guided multimodal fusion part, this text encoding is used to guide the encoding process of the audio-visual data, thereby improving the overall generalization potential of the model.

[0090] Specifically, the text data contains a large number of short sentences or single-word sentences, such as "OK". I redistribute the short sentences in the sample and merge them into long sentences. Each sample is evenly divided into 20 long sentences. If the long sentence exceeds 512 words, the excess part is discarded.

[0091] The features of each segmented sentence are extracted using the pre-trained roBERTa model. Subsequently, the features extracted from a single sentence are concatenated into a matrix to form the feature representation H of each sample. text These sample features are then fed into a multi-head attention model to learn the relationship between sentences. The output of the multi-head attention is used as the text feature embedding x t Afterwards, these embeddings are reshaped into one-dimensional vectors as the output of the text feature extraction module.

[0092] The text feature extraction module is connected to a fully connected layer and trained on the EDAIC dataset for mental state detection, subthreshold detection tasks, and PHQ score prediction. When the F1 score on the validation set reaches a peak, the model parameters of the text feature extraction module are saved. In the subsequent multimodal fusion process, for the three target tasks, the text feature extraction module loads the model parameters trained under the corresponding tasks and keeps them unchanged.

[0093] In a specific embodiment, the specific content of text learning is: the training phase of the text feature extraction module and the entire multidimensional mental state assessment model adopts a contrastive learning method, which is applied to text and audio-visual encoding respectively. Contrastive learning plays a key role in the present invention, and significantly enhances the model's ability to distinguish different categories by amplifying the differences between contrasting samples. This further helps to establish clear boundaries in the encoding features, thereby improving the overall accuracy and robustness of the model in detecting subthreshold mental states.

[0094] Specifically, the training of the text feature extraction module is independent, and its parameters are fixed in the subsequent main task. In the training process of the text feature extraction module, contrastive learning is particularly applied to the text modality. CL-text With regression or classification task loss l task-textCombined to form a joint loss function l t The formula is:

[0095] l t = l task-text +w CL-text l CL-text ;

[0096] Among them, l task-text represents the classification task loss, l CL-text represents the contrast loss, W CL-text is the weight of the loss in the contrastive learning part.

[0097] In a specific embodiment, supervised contrast loss is used as the main loss function for text and audio-visual modalities. In this process, positive samples are defined as instances with the same label in the same batch, while negative samples are instances with different labels. The goal is to promote contrastive learning by encouraging similarities between positive samples and differences between negative samples. For regression tasks, due to the wide distribution of labels, three types of labels for subthreshold crowd detection tasks are used for contrastive learning. The formula is:

[0098]

[0099] Among them, l CL represents the contrast loss function, I represents the set of index pairs in a batch of training, A(i) represents the set of training pairs, P(i) represents the set of positive training pairs, τ is an adjustable parameter that controls the scaling of the similarity scores, thereby affecting the shape of the probability distribution, z represents the embedding of samples in the batch, i represents the serial numbers of all samples, p represents the serial number of positive samples, and a represents the serial number of negative samples.

[0100] The application of supervised contrast loss aims to enhance the model's ability to capture the similarities between samples of the same category and the differences between samples of different categories, which helps to improve the overall representation learning of the model and deal with the boundary fuzziness problem in mental state detection and sub-threshold crowd recognition.

[0101] In a specific embodiment, in order to solve the problem of aligning text features with audio-visual features in the time dimension, the present invention constructs a text-guided multimodal fusion module (TGMF).

[0102] Specifically, the specific structure of TGMF is: use the pre-trained text features with clear boundaries and visual acoustic coding to calculate the MSE loss, and make this loss as small as possible to guide the extraction of visual acoustic coding and align the two semantically, and then splice the two and perform the main task judgment.

[0103] The specific implementation process is: encode the text features separately and fuse them with the video and audio features at the end of the text feature extraction module. Before the main task training, first load the text feature extraction module parameters trained on the corresponding task for the current main task (mental state detection, subthreshold detection task, and PHQ score prediction training), and then use the text feature extraction module and the audio-visual feature extraction module to encode their respective modalities. In the feature fusion part, the connection method is directly used to integrate the text feature embedding x t Harmonic visual feature embedding x av After that, a fully connected layer is used to make predictions for classification or regression tasks. The encoder of the text feature module is also used to guide the encoder of the audio-visual feature extraction module. Let the audio-visual embedding pass through the fully connected layer f fc Make it the same shape as the text embedding, and use MSE loss to calculate the gap between the two and continuously narrow it during the iteration process. gap , the expression is:

[0104]

[0105] Among them, l gap represents the difference between audio-visual features and text features, N represents the total number of elements in these two one-dimensional embeddings, and x t represents text feature embedding, x av Represents the audio-visual feature embedding, and n represents the coordinate position of the current element in the one-dimensional embedding.

[0106] Finally, the joint loss is defined as the main task loss l task , autoencoder loss l auto , contrast loss l CL-av And the newly defined cross-modal contrast loss l gap The weighted sum of .

[0107] l=w task l task +w auto l auto +w gap l gap +w CL-av l CL-av ;

[0108] Among them, these weights represent the main task loss weight w task , autoencoder loss weight w auto , cross-modal contrast loss weight w gap and contrast loss weight w CL-av .

[0109] In a specific embodiment, the software package includes:

[0110] First, the backend service of the model was implemented through the Flask framework, which included creating API endpoints to handle the input of receiving video, audio, and text data, and returning the output of depression identification and PHQ score prediction. Subsequently, a user interface was developed using Vue.js to enable users to upload their data and interact with the backend through an HTTP client. In addition, the steps of deploying the Flask application to the server and how to deploy the Vue application to a static website hosting service were also involved. This entire structure aims to provide an efficient and interactive platform that enables deep learning models to realize their potential for predicting depression in practical applications.

[0111] After starting, Flask loads the three task models (psychological state detection, subthreshold detection tasks, and PHQ score prediction training) on ​​the GPU. When using, the user first uploads the interview video to the user interface built by Vue, and Vue uses Axios (HTTP client library) to send the file to the Flask backend. The backend first saves the video file, and then uses openSMILE and openFACE (toolkits for acoustic and visual feature extraction, respectively) to extract acoustic features eGeMAPS and MFCC (two acoustic feature sets) and visual features gaze (eye movement) and AUs (facial units). At the same time, moviepy (python toolkit) is used to extract audio from the original video, and Google Cloud Speech-to-Text API (text recognition tool) is used to identify the voice content from the audio and transcribe it into text. The present invention uses a thread pool to open three threads, each thread corresponds to a task (i.e., corresponds to a model), and each thread performs the following operations: the extracted four acoustic visual features and text content are respectively input into the corresponding entrances of the deep learning model, and then the output results of the model are obtained. The three threads obtain the results of psychological state detection, subthreshold detection task and PHQ score prediction respectively, which are packaged and returned to the front-end Vue, and then presented to the user.

[0112] In summary, the multidimensional mental state assessment method based on multimodal fusion provided by the embodiment of the present invention is not only a technical breakthrough, but also a major contribution to public health management and mental health intervention strategies. Through early identification and intervention, the present invention helps to assist in detection, reduce the negative impact of depression on individuals and society, improve the quality of life of patients, and reduce the pressure on the medical care system.

[0113] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0114] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A multidimensional psychological state assessment method based on multimodal fusion, characterized in that: The following steps are involved: S100: Using the time dilation convolutional network as a basis to construct a multidimensional mental state assessment model and encapsulate it into software, wherein the multidimensional mental state assessment model includes: an audio-visual feature extraction module, a text feature extraction module and a text-guided multimodal fusion module, specifically: Acquire interview video and audio data, and process the interview video and audio data according to the audio-visual feature extraction module to obtain audio-visual features; Acquire interview text data, train the text feature extraction module based on the interview text data, and obtain text features according to the trained text feature extraction module; Using the text-guided multimodal fusion module to semantically align text features with audio-visual features to obtain a multidimensional psychological state assessment model, and encapsulating the multidimensional psychological state assessment model into software; S200: Acquire the data to be tested, and use the packaged software with the multi-dimensional psychological state assessment model to perform psychological state assessment; The audio-visual feature extraction module is constructed based on the self-encoding structure of the TDCN structure, including: four encoders and four decoders; Among them, the four encoders extract low-dimensional data of four features from the original input and input them to the four decoders respectively; Compute the difference between each decoder output and the corresponding original input features; The difference is weighted and used as the overall loss of the audio-visual feature extraction module; The calculation of the difference between the output of each decoder and the corresponding original input feature includes: using the mean square error MSE loss, expressed as: Among them, H m is the low-dimensional representation of the four features, represents the encoder, Denotes the decoder, X m represents the original input, X′ m Denotes the decoder output, l m is the encoding and decoding loss of each feature, where m∈{1, 2, 3, 4} represents four manual features, T represents the time dimension, D represents the feature dimension, t represents the coordinate of the current point in the time dimension in the feature matrix, and d represents the coordinate of the current point in the feature dimension in the feature matrix; The difference is weighted and used as the overall loss of the audio-visual feature extraction module, expressed as: Among them, l auto represents the overall loss, λ m Represents the weights of the autoencoder loss of different features; The audio-visual feature extraction module also includes a feature fusion part, which uses feature attention FWA to fuse along the dimension of the feature, and the expression is: A=σ(W1·ReLU(W2·avgpool(H))); Among them, A is the attention map, σ is the Sigmoid function, W1 and W2 are learnable weight parameters, and avgpool represents the average pooling operation along the time dimension; The attention map A is applied to the input feature map elements and is expressed as: H att =A⊙H; Among them, ⊙ represents element-by-element multiplication, H is the autoencoder output concatenated from the low-dimensional representation of the four features, and H att represents the autoencoder output after multiplying the attention weight; Convert the fusion result into a one-dimensional vector as the output of the audio-visual feature extraction module; The construction of the text feature extraction module also includes: Obtaining an EDAIC dataset, the text feature extraction module is connected to a fully connected layer, and using contrastive learning to perform training for depression state recognition, subthreshold detection, and PHQ score prediction based on the EDAIC dataset; The contrastive learning includes: The contrast loss of the text feature extraction module is combined with the regression task or classification task loss to form a joint loss function, the formula is: l t =l task-text +w CL-text l CL-text ; Among them, l task-text represents the classification task loss, l CL-text represents the contrast loss, W CL-text is the weight of the loss of the contrastive learning part; The regression task uses three types of labels for sub-threshold crowd detection for comparative learning, and the formula is: Among them, l CL represents the contrast loss function, I represents the set of index pairs in a batch of training, A(i) represents the set of training pairs, P(i) represents the set of positive training pairs, τ is an adjustable parameter, z represents the embedding of samples in the batch, i represents the serial number of all samples, p represents the serial number of positive samples, and a represents the serial number of negative samples; The text-guided multimodal fusion module includes: The audio-visual feature extraction module makes the audio-visual features and the text features have the same shape through the fully connected layer, uses the MSE loss to calculate the gap between the audio-visual feature extraction module and the text feature extraction module, and continuously narrows the gap during the iteration process. The expression is: Among them, l gap represents the difference between audio-visual features and text features, N represents the total number of elements in these two one-dimensional embeddings, and x t represents text feature embedding, x av represents the audio-visual feature embedding, n represents the coordinate position of the current element in the one-dimensional embedding; The joint loss is defined as the main task loss l task , autoencoder loss l auto , contrast loss l CL-av And the newly defined cross-modal contrast loss l gap The weighted sum of is expressed as: l=w task l task +w auto l auto +w gap l gap +w CL-av l CL-av ; Among them, w task represents the loss weight of the main task, w auto Denoted as the autoencoder loss weight, w gap Expressed as the cross-modal contrast loss weight, w CL-av Denoted as contrast loss weight.

2. The multidimensional psychological state assessment method based on multimodal fusion according to claim 1 is characterized in that: The text feature extraction module construction process includes: Acquire text data, the text data including short sentences and / or single word sentences, wherein the short sentences and / or single words are redistributed and merged into a long sentence sample set, each of the long sentence sample sets is evenly divided into 20 long sentences, and if the number of words contained in a long sentence exceeds a preset threshold, the redundant part is discarded; Use the pre-trained roBERTa model to extract the features of each long sentence sample set, connect the features extracted from a single sentence into a matrix, and form the sample features corresponding to each long sentence sample set; Construct a multi-head attention model, input the sample features into the multi-head attention model to learn the relationship between sentences and output; The output result is embedded as a text feature and reshaped into a one-dimensional vector as the output of the text feature extraction module.

Citation Information

Cited By

  • Systems and methods for language-independent acoustic-based determination of mental state

    WO2026159677A1