A multimodal emotional semantics system for identifying depression tendency
Through the emotional semantic multi-modal depression tendency identification system, the self-supervised contrastive learning framework and CLIP model are used to solve the problem that existing depression detection equipment cannot explain the basis for judgment, provide interpretable emotional semantic information, assist clinical decision-making, and improve Accuracy of depression detection.
Patent Information
- Application Number
- CN202410954525.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-17
AI Technical Summary
Existing depression detection equipment cannot explain the basis for judging depression and cannot provide effective information required for clinical decision-making in the results, making it difficult for clinicians to understand the feature learning results of the model.
An emotional semantic multi-modal depression tendency identification system was developed, including a topic extraction module, a key frame extraction module, an emotional semantic module and a picture-text matching module. Through the self-supervised contrastive learning framework and CLIP model, representation features and interpretable The connection between emotional and semantic information provides cross-modal transfer of topic and semantic knowledge to aid clinical decision-making.
It effectively explains facial activities in depression detection results, provides interpretable emotional semantic information, assists in disease diagnosis, and improves the accuracy and credibility of clinical decision-making.
Smart Images

Figure CN118507036B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of multimodal recognition and prediction, and specifically relates to the technical field of multimodal recognition and prediction of depression tendency. Background Art
[0002] The diagnosis of clinical depression can be challenging because its manifestations vary significantly between individuals. Currently, the only diagnostic methods used for depression are clinical opinion and self-report, which may introduce subjective bias. In addition, due to the serious imbalance between the number of doctors and patients, many people cannot receive a diagnosis in a timely manner. Therefore, there is an urgent need to develop objective and robust depression detection models to help clinicians diagnose patients with depression.
[0003] Compared with single-modal methods, multimodal systems that fuse different channels and cues are expected to provide more accurate detection. In practice, the diagnosis process requires clinicians to capture the changes in the interviewee's expression and emotional semantic information on different topics, which are recorded in the interview video. Some studies have managed to improve the recognition performance of the diagnosis process by identifying key frames in the interview video that can distinguish patients with depression. For example, the existing technology has emphasized the video frames related to depression detection through the attention mechanism, thereby improving the performance of depression detection. Different topics will lead to different changes in speech and facial activities, and these topics contribute differently to the detection process. For example, a smile when talking about family matters may be more discriminative than a smile when saying hello, because the latter may be just for social etiquette. Some studies have shown that topic modeling is more effective for depression detection. For example, the existing technology has improved the performance of multimodal depression recognition tasks by incorporating topic-based data augmentation procedures into deep learning models. Existing topic-based modeling methods have achieved excellent results in multimodal depression detection.
[0004] Even with keyframe and topic models with deep learning architectures (such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), and transformers), it is difficult for clinicians to understand the feature learning results of the model. Some studies have tried to establish connections between speech behavior, speech preludes, eye movements, head postures, and labels in feature space to explain how the results are generated. When making clinical decisions, professional clinicians often refer to machine-generated results without fully understanding the mechanism of result generation. Therefore, how to provide effective information required for clinical decision-making in the results is a challenge. Summary of the invention
[0005] In order to solve the technical problem that the current depression detection equipment cannot explain the basis for judging depression and cannot provide effective information required for clinical decision-making in the results, the present invention provides an emotional semantic multimodal depression tendency recognition system, the system comprising:
[0006] Theme extraction module: extracts the interview theme set and the interview texts corresponding to each interview theme in the interview theme set according to the interview records of all interviewees;
[0007] Dividing the interview videos of all interviewees according to the interview texts, and extracting the interview videos corresponding to each interview topic in the interview topic set in sequence;
[0008] Input the interview topics and interview texts into the sentiment semantics module;
[0009] Input the interview topic and interview video into the key frame extraction module;
[0010] Key frame extraction module: extract key frames to distinguish depression from non-depression in the interview video corresponding to each interview topic;
[0011] Input the key frames into the sentiment semantics module;
[0012] Input the keyframes into the image-text matching module;
[0013] Emotional semantics module: constructs prior semantic information based on the input interview topics, key frames, and interview texts, combined with person labels, and inputs the prior semantic information into the image-text matching module;
[0014] Image-text matching module: Use the matching model to match the input keyframes and prior semantic information, obtain the prior semantic information that best reflects the keyframe content, and output it in pairs with the keyframe.
[0015] The beneficial effects of the present invention are:
[0016] In this invention, a self-supervised contrastive learning framework is developed, which is a topic-contrast language-image pre-training model framework; first, the interview transcripts are extracted based on topic modeling, and then key frames are generated for each video clip using a key frame generation method. Next, the emotional semantic information in the interview texts of different topics is used as supervision to interpret the facial activities associated with the key frames; through the CLIP model, a connection is established between the representation features and the interpretable emotional semantic information, thereby effectively transferring the topic and semantic knowledge across modalities; the proposed framework can also provide inspiration for providing effective clinical decision-making result information in auxiliary disease diagnosis tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a schematic diagram of a multimodal depression tendency identification system according to an embodiment of the present invention;
[0018] Figure 2 This is a schematic diagram of a topic extraction model according to an embodiment of the present invention;
[0019] Figure 3This is a schematic diagram of a key frame extraction module according to an embodiment of the present invention;
[0020] Figure 4 This is a schematic diagram of the emotion semantic module described in an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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 protection scope of the present invention.
[0022] like Figure 1 As shown, the interpretable emotion semantic multimodal depression tendency recognition system provided by this embodiment includes a topic extraction module, a key frame extraction module, an emotion semantic module and a picture-text matching module.
[0023] First, the functions of each module and the principles of their cooperation are explained:
[0024] Topic extraction module: extract interview topics from the interview records of all interviewees, obtain a topic set consisting of several interview topics, and match the corresponding interview topic to the interview record of each interviewee. The interview topic matching of each interviewee's interview record is performed in segments (one sentence is a segment), which means that each interviewee's interview record may correspond to several interview topics;
[0025] Match the interview record clips of all interviewees with the interview topics in turn to obtain a set of interview record clips corresponding to each interview topic, which is recorded as the interview text; then match the interview video clips corresponding to the interview text with the interview topic to obtain a set of interview video clips corresponding to each interview topic, which is recorded as the interview video;
[0026] The interview texts mentioned in the subsequent narrative section refer to the set of interview record clips corresponding to each interview topic; the interview videos mentioned in the subsequent narrative section refer to the set of interview video clips corresponding to each interview topic;
[0027] Input the interview topics and interview texts into the emotional semantics module to provide a basis for constructing prior semantic information in the subsequent emotional semantics module;
[0028] The interview topics and interview videos are input into the key frame extraction module to provide a basis for the subsequent key frame extraction module to extract key frames.
[0029] Key frame extraction module: extract key frames that distinguish depression from non-depression in the interview video corresponding to each interview topic, and input the key frames into the emotion semantic module to provide a basis for constructing prior semantic information in the emotion semantic module;
[0030] The key frame is input into the image-text matching module, which provides a basis for matching the key frame with the corresponding prior semantic information in the subsequent image-text matching module.
[0031] Emotional semantics module: constructs prior semantic information based on the input interview topics, key frames, and interview texts, combined with person labels, and inputs the prior semantic information into the image-text matching module;
[0032] Personnel labels are as follows: Before the interview, the test subjects need to be classified into depressed and non-depressed persons, and the corresponding personnel labels are marked. and Representing depressed and non-depressed people respectively.
[0033] Image-text matching module: Use the matching model to match the input keyframes and prior semantic information to obtain the prior semantic information that best reflects the keyframe content, pair it with the keyframe and output it to provide medical staff with interpretable emotional semantic information to assist them in making diagnoses.
[0034] The following content describes the specific working principle and method of each module:
[0035] Topic extraction module:
[0036] like Figure 2 The figure shows a schematic diagram of the topic extraction model constructed in the topic extraction module. The topic extraction process reflected by the above model is as follows:
[0037] First, define the terms in the topic extraction model:
[0038] Divide the interview transcript text into headings as follows: All Captions= ,in represents the interview record text of the i-th interviewee; each sentence in the interview record text is represented by S (Sentence), so S is a collection of word fragments; the topic extraction model divides the interview record text into N different types of interview topics, forming an interview topic set T, which is expressed as , and use this to analyze the text data of the i-th respondent Classify and output one or more corresponding interview topics.
[0039] The interview topic is ,pass get;
[0040] Among them, p represents the probability distribution of each interview sentence S corresponding to each topic in the interview topic set T;
[0041] It represents the vector group that maps the interview topic set T to the K-dimensional space through embedding, and the value of K is equal to the number of interview topics contained in the interview topic set T;
[0042] Schematic diagram of the topic extraction model Figure 2 It can be seen that the model is divided into two operation lines, and the first operation line finally obtains , the second operation line finally obtains .
[0043] (1) Combined with the topic extraction model How to calculate and introduce:
[0044] First, Input sentence by sentence, and segment each interview sentence S by using Word Tokens (a technique for converting words into vectors, an operation method in the BERT model) to obtain the set ; Continue to use Filtered Word Tokens (a technique for removing non-keywords, an operation method in the BERT model) to remove modal words, stop words, and other irrelevant words to obtain , after embedding, we get the embedding vector of each interview sentence S And input into the LDA (Latent Dirichlet Allocation) model.
[0045] The LDA model is based on Output the corresponding topic ( );
[0046] The subject of interview sentence S It is necessary to calculate the topics in the trained interview topic set T to determine the topic Which topic in the topic set T does it belong to? For example, the topic trained by a single interview sentence S is sometimes not accurate enough. For example, if the topic "the best gift" is trained by all the interview record text captions, the topic "the best gift" may be obtained. For a single sentence S, the LDA model outputs its corresponding topic It is very likely to be "received", but the probability form of "received" is closest to "the best gift", so it is also necessary to pass , determine the topic of a single sentence Which topic in the corresponding topic set T? This part is to explain why the LDA model is based on Output the topic corresponding to the interview sentence S After that, you need to go through the follow-up Get the interview topic corresponding to the interview sentence S. In a real experiment, the representation of probability and feature space and a certain degree of similarity in the topic set may be very abstract. Therefore, the "received" and "best gift" involved in this part are only provided as examples and cannot represent the real experimental situation.
[0047] use To represent the probability distribution of each interview topic corresponding to the interview sentence S;
[0048] Indicates that Map to Probability distribution parameters of the process;
[0049] Indicates mapping S to Probability distribution parameters of the process;
[0050] Among them, due to represents the probability distribution parameters related to interview sentences and interview topics, and each interview topic only contains 1-3 corresponding interview sentences, so Relatively fixed, so the model parameters can be targeted To optimize, only use The embedded vector is obtained in part, thus realizing the extraction of interview topics.
[0051] Explanation for the above statement “each interview topic only contains 1-3 corresponding interview sentences”:
[0052] There are several reasons for topic modeling for clinical interview transcriptions: First, the number of topics in clinical interviews is limited, and subjects do not actively initiate topics, so general methods such as multi-granularity topic models and dynamic topic models are difficult to fully utilize their characteristics. Second, the way to initiate topics in interviews is relatively fixed; it is obvious that when a specific topic is initiated, the subject will give a corresponding answer to this topic, and the subject usually only uses 1-3 sentences to answer each topic. For this reason, the LDA model that infers latent topics through document mechanisms is more suitable for extracting interview topics than the BerToptic model that is good at capturing contextual information.
[0053] (2) Combined with the topic extraction model How to calculate and introduce:
[0054] First, input the Captions sentence by sentence, as above, and segment each sentence S by using Word Tokens; then, use Filtered Word Tokens to remove modal words, stop words, and other irrelevant words to obtain a word set.
[0055] The word set is input into the LDA model, and the LDA model outputs the interview topic set T according to the word set, which is expressed as Then, the interview topic set T is mapped to the K-dimensional space through embedding, and the embedding vector of the topic is .
[0056] Embedding vector of the topic Contains global topic information of the entire interview text, because it is a parameter trained from all topics. Based on this, we are able to extract the topic information contained in each interview process, providing important topic information for designing sentiment semantics.
[0057] Keyframe extraction module:
[0058] Key frame extraction module such as Figure 3 As shown, use represents the interview image sequence corresponding to any interview video, where Represents RGB image frames. The optical flow of the RGB image frames of the interview image sequence is extracted by the TVL1 optical flow algorithm to obtain the corresponding optical flow image frames. Represents the obtained optical flow image sequence.
[0059] A CNN network, specifically a ResNet50 network trained on the ImageNet dataset, is used to extract appearance and motion features from the input interview image sequence and its corresponding optical flow image sequence; the feature map corresponding to the output interview image sequence is represented as , the feature map corresponding to the output optical flow image sequence is expressed as ;in and They represent the CNN feature map of the k-th frame RGB image and the CNN feature map of the corresponding optical flow image respectively.
[0060] Similarly, we can obtain the CNN features of the RGB image sequence of each interview video And the corresponding CNN features of the optical flow image sequence , where N is the number of interview videos, represents the CNN features of the nth interview video RGB image sequence, Represents the CNN features of the optical flow image sequence corresponding to the nth interview video. The CNN features of the video RGB image and the corresponding optical flow image are respectively connected through the fully connected layer and Pass, and fully connected layer Will and Connect them together to obtain the CNN feature set of the RGB image sequence and optical flow image sequence corresponding to all the interview videos, which is named feature set V and expressed as V= , to enhance the representation capabilities of videos.
[0061] In order to identify the difference of each video frame, the depressed people in the feature set V ( ) and non-depressed people ( ) interview videos are divided into the following categories: , the feature set of non-depressed people is expressed as , and then use linear discriminant analysis to get the projection vector of depressed people and the projection vector of non-depressed people :
[0062] ;
[0063] ;
[0064] in represents linear discriminant analysis;
[0065] Design score function ,use To calculate the feature set of people belonging to the depressed category The scores of each frame of each interview video are as follows:
[0066] ;
[0067] in, Representation feature set The feature vector of the i-th frame of the m-th video in the interview is taken as the key frame to distinguish depression from non-depression;
[0068] Design score function ,use To calculate the feature set of non-depressed people The scores of each frame of each interview video are as follows:
[0069] ;
[0070] in, Representation feature set The feature vector of the jth frame of the nth video in is used, and the frame with the highest score in each interview video is taken as the key frame to distinguish depression from non-depression.
[0071] Finally, the key frames obtained by the above method for each interview video are input into the image-text matching module.
[0072] Sentimental semantics module:
[0073] The prior semantic information constructed in the emotional semantic module includes personnel labels, interview topics and emotional semantic information. The emotional semantic information is constructed based on the input key frames and interview texts. Each interview topic has its corresponding interview text. The semantic information specifically includes three types of prompt information, namely:
[0074] (1) Expression change prompts based on key frames:
[0075] Related prompt information: He (she) had a very disheartened / relaxed expression during the response. Based on the input key frames, emotion recognition is performed using the facial expression recognition model AMP-Net to determine whether the prompt is disheartened or relaxed. This part of the semantics is mainly based on the semantic information of the overall facial expression state of the interviewee observed during the interview.
[0076] (2) Semantic information extraction based on interview text:
[0077] Related prompt information: His (her) response appeared very disheartened / optimistic. The emotional semantic information of the interview text is identified based on the BERT model to determine whether the prompt is disheartened (negative) or optimistic (optimistic). This part of the semantics is based on the semantic information recorded by the interviewee's answer during the interview, because the interviewee's emotions are sometimes not shown in his or her facial expressions.
[0078] (3) Semantic information prompts based on key frames:
[0079] Related prompt information: During the response, when discussing XXX (Topic), the mood was optimistic (During the response, when discussing XXX (interview topic)), the interview text was manually aligned with the extracted key frames, and corresponding semantic prompts were made according to the interviewer's facial expression changes under different topics (key frames). Considering that different topics contribute differently to depression, corresponding semantic prompts were made for the facial expression changes under the topic. This is also the key for doctors to diagnose depression in interviewees during interviews.
[0080] Image-text matching module:
[0081] The matching model is used to match the input keyframes and prior semantic information to obtain the prior semantic information that best reflects the keyframe content. The information is paired with the keyframes and output to provide medical staff with interpretable emotional semantic information to assist them in making diagnoses.
[0082] The matching model is implemented using the CLIP model, which adopts the contrastive learning method. By performing self-supervised learning on a large-scale text-image pair dataset, the model can learn the correlation between text and images and embed them into the same semantic space. This enables the model to learn the correspondence between text and images, thereby achieving cross-modal semantic alignment.
[0083] The CLIP model performs similarity matching on the input image and text, finds the prior semantic information with the greatest similarity based on the input key frame, and outputs the key frame and prior semantic information in pairs.
Claims
1. An emotional semantic multimodal depression tendency recognition system, It is characterized in that The system comprises: Theme extraction module: extracts the interview theme set and the interview texts corresponding to each interview theme in the interview theme set according to the interview records of all interviewees; The interview theme set extracted is as follows: Divide the interview transcript text into headings as follows: All Captions= ,in represents the interview record text of the i-th interviewee; each sentence in the interview record text is represented by S, so S is a set of word fragments; the topic extraction model divides the interview record text into N different types of interview topics, forming an interview topic set T, which is expressed as ; The interview texts corresponding to each interview topic in the interview topic set are extracted as follows: S31. Input the interview record text of the i-th interviewee, and obtain the embedding vector of each sentence by performing word segmentation, removing irrelevant words and embedding operations in sequence. , the embedding vector Input into the LDA model, the LDA model is based on the embedding vector Output corresponding topic ; S32, use To represent the probability distribution of each sentence corresponding to each topic in the interview topic set T; where, Indicates that Map to Probability distribution parameters of the process; S33. By: ; Get the interview topic in the interview topic set T corresponding to each sentence, where Indicates the interview topic, It represents the vector group that maps the interview topic set T to the K-dimensional space through embedding, and the value of K is equal to the number of interview topics contained in the interview topic set T; S34, combining sentences with the same interview topic to obtain interview texts corresponding to each interview topic in the interview topic set in sequence; Dividing the interview videos of all interviewees according to the interview texts, and extracting the interview videos corresponding to each interview topic in the interview topic set in sequence; Input the interview topics and interview texts into the sentiment semantics module; Input the interview topic and interview video into the key frame extraction module; Key frame extraction module: extract key frames to distinguish depression from non-depression in the interview video corresponding to each interview topic; Input the key frames into the sentiment semantics module; Input the keyframes into the image-text matching module; Emotional semantics module: constructs prior semantic information based on the input interview topics, key frames, and interview texts, combined with person labels, and inputs the prior semantic information into the image-text matching module; The prior semantic information includes personnel labels, interview topics and emotional semantic information, and the emotional semantic information includes expression change prompts based on key frames, semantic information extraction based on interview texts and semantic information prompts based on key frame correspondences; Image-text matching module: uses a matching model to match the input keyframes and prior semantic information, obtains the prior semantic information that best reflects the keyframe content, and outputs it in pairs with the keyframe. The matching model uses the CLIP model.
2. The multimodal depression tendency identification system according to claim 1, It is characterized in that The key frames that distinguish depression and non-depression were extracted from the interview videos corresponding to each interview topic, specifically: S41, extracting the optical flow of the RGB image frame of the interview image sequence by using the TVL1 optical flow algorithm to obtain the corresponding optical flow image frame; S42, using the CNN network to extract appearance and motion features from the input interview image sequence and its corresponding optical flow image sequence, and passing and connecting them through the fully connected layer to obtain the CNN feature set of the RGB image sequence and optical flow image sequence corresponding to all interview videos, which is named feature set V here; S43. Divide the feature set V according to the personnel labels. The feature set of the depressed personnel is expressed as , the feature set of non-depressed people is expressed as , and then use linear discriminant analysis to get the projection vector of depressed people and the projection vector of non-depressed people ; S44. Use the projection vector of depressed people Calculate the feature set of people belonging to the depressed category The score of each frame of each interview video is calculated, and the frame with the highest score in each interview video is taken as the key frame to distinguish depression from non-depression; S45. Use projection vector of non-depressed people Calculate the feature set for non-depressed people The score of each frame of each interview video is calculated, and the frame with the highest score in each interview video is taken as the key frame to distinguish depression from non-depression.
3. The multimodal depressive tendency identification system according to claim 2, It is characterized in that The personnel labels are specifically as follows: before the interview, the test subjects need to be classified into depressed and non-depressed persons, and the corresponding personnel labels are marked. and Representing depressed and non-depressed people respectively.
4. The multimodal depressive tendency identification system according to claim 3, It is characterized in that The emotional semantic information specifically includes three types of prompt information, specifically: Tips for expression changes based on keyframes: Related prompt information: Based on the input keyframes, emotion recognition is performed based on the facial expression recognition model AMP-Net to determine whether the prompt is depressed or happy; Semantic information extraction based on interview text: Related prompt information: The emotional semantic information of the interview text is identified based on the BERT model to determine whether the prompt is negative or optimistic; Based on the semantic information corresponding to the key frame: Related prompt information: Manually align the interview text with the extracted key frames, and make corresponding semantic prompts based on the changes in the interviewer's facial expressions under different topics.
