Mental disease auxiliary diagnosis method and system based on multi-modal data analysis model
Through multi-modal data analysis models, combined with voice, facial expressions and text data, it solves the problem of traditional diagnosis relying on subjective observation, achieves efficient auxiliary diagnosis of mental illness, improves diagnostic accuracy and efficiency, and saves labor costs.
Patent Information
- Application Number
- CN202410757223.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Traditional diagnosis of mental illness relies on doctors' subjective observations and lacks definition of objective characteristics. In addition, faced with the diagnostic needs of scarce medical human resources, it is difficult to effectively assist the diagnosis of common mental illnesses.
Using a method based on the multimodal data analysis model, multimodal features are extracted by collecting and processing the user's voice, facial expressions and text data, and the feature processing branch and feature fusion module of the Transformer architecture are used to generate an integrated multimodal State feature representation for auxiliary diagnosis.
It improves the accuracy and efficiency of diagnosis, saves labor costs, enables deep learning model training of heterogeneous multi-modal data, and assists doctors in intelligently diagnosing common mental illnesses.
Smart Images

Figure CN118748079A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology and relates to a method and system for auxiliary diagnosis of mental illness, and in particular to a method and system for auxiliary diagnosis of common mental illness based on a heterogeneous multimodal data analysis model. Background Art
[0002] Common mental illnesses include schizophrenia, bipolar disorder, and depression. Traditionally, subjective interviews by psychiatrists are the key to diagnosing the above common mental illnesses. During the interview, the doctor asks the patient about the symptoms (mainly text), and the subjective observation and feelings of the patient's facial expressions and voice changes are one of the important bases for making a diagnosis. The doctor asks the patient about the symptoms (such as depression, anxiety, irritability, auditory hallucinations, and persecution delusions), listens to the patient's speech characteristics (taking depression as an example, the patient often has a low voice, slow speech speed, small amount of speech, and lack of tone), and observes the patient's facial expression characteristics (taking schizophrenia as an example, the patient often has a dull facial expression and dull eyes), and makes a diagnosis after comprehensive consideration. The above facial expressions and voice characteristics have corresponding text descriptions in the current common diagnostic standards for mental illnesses, such as the American Statistical Manual of Mental Disorders (DSM-5), such as "reduced volume, tone, and content of speech" and "sad and solemn expression"; however, there is no objective characteristic value to define the above characteristics in the diagnostic standards, and it depends on the doctor to subjectively grasp and feel.
[0003] In recent years, with the help of computers' ability to process speech waveforms and analyze facial expressions, and further with the help of model analysis and mining of the rules, it is expected to find quantifiable and objective speech and expression features for auxiliary diagnosis of common mental illnesses. In addition, the huge challenge facing the current mental health field is how to meet the diagnostic needs of patients with common mental illnesses with scarce medical human resources. Therefore, there is an urgent need for a system that integrates heterogeneous multimodal data collection and analysis methods of speech, facial expressions, and text to assist doctors in diagnosis. Summary of the invention
[0004] The purpose of the present invention is to provide a common mental illness auxiliary diagnosis method and system based on the collection and analysis of heterogeneous multimodal data such as voice, facial expressions and text, so as to assist doctors in intelligent diagnosis and improve the efficiency of doctors' consultation.
[0005] The technical solution adopted by the method of the present invention is: a method for auxiliary diagnosis of mental illness based on a multimodal data analysis model, comprising the following steps: Step 1: Collect the facial expression data, voice data and text data of the user when receiving the consultation, and pre-process them; Step 2: Extract multimodal features, including features of pre-processed facial expression data, voice data, and text data; Step 3: Input the multimodal features into a multimodal data analysis model and output a classification result; First, for the multimodal features, non-numeric NaN values in the multimodal features are processed by filling 0 to maintain the integrity of the data; then, for the features of different modes, the maximum-minimum normalization method is used to ensure that the multimodal features have similar value ranges; Then, multimodal feature fusion is performed. First, a multi-view dimensionality reduction method is used to ensure that the features of different modalities are aligned in the feature dimension. Then, through the feature cascade method, the features from different modalities are fused to form an integrated multimodal feature representation. Finally, the integrated multimodal features are input into the multimodal data analysis model to output the classification results, including normal results and abnormal results.
[0006] Preferably, the multimodal data analysis model comprises a multimodal data processing layer, a multimodal feature fusion layer, and a classification module; The multimodal data processing module includes three parallel Transformer-based feature processing branches; the first branch is an audio feature processing branch, including a Transformer-based audio feature encoder and an audio feature dimensionality reduction module, the audio feature encoder uses two cascaded Transformer units, and the audio feature dimensionality reduction module is composed of a linear layer, an activation layer, a Dropout layer, and a Batch Normalization layer in sequence; the second branch is a text feature processing branch, including a Transformer-based text feature encoder and a text feature dimensionality reduction module, the text feature encoder uses two cascaded Transformer units, and the text feature dimensionality reduction module is composed of a linear layer, an activation layer, a Dropout layer, and a Batch Normalization layer in sequence; the third branch is a visual feature processing branch, including a Transformer-based visual feature encoder and a visual feature dimensionality reduction module, the text feature encoder uses two cascaded Transformer units, and the visual feature dimensionality reduction module is composed of an automatic average pooling layer, a Dropout layer, and a Batch Normalization layer. The layers are composed in sequence; a batch normalization layer is added at the end of each branch to stabilize the training process and ensure the consistency of text feature distribution; The multimodal feature fusion module includes a feature cascade layer, a multimodal feature self-attention layer and a multi-level fusion feature calculation layer; the feature cascade layer is to splice the audio features, text features and visual features in the dimension of the feature channel to obtain the cascade fusion features; the multimodal feature self-attention layer includes an audio feature self-attention module, a text feature self-attention module and a visual feature self-attention module arranged in parallel, and the three attention modules have the same structure, which are all composed of a self-attention layer, an attention weight calculation layer and an attention weighted layer; finally, the modal self-attention features obtained by the three modal feature self-attention modules are spliced in the dimension of the feature channel to obtain the self-attention joint fusion features; the multi-level fusion feature calculation layer adds the cascade fusion features obtained by the multimodal feature fusion layer to the self-attention joint fusion features to obtain the multi-level fusion features; The classification module includes a linear layer and a Softmax layer; the Softmax layer converts the output result of the linear layer into a probability distribution.
[0007] Preferably, in step 1, the facial expression data of the user while watching the movie is obtained by playing positive movie clips, neutral movie clips and negative movie clips to the user.
[0008] Preferably, in step 1, by asking the user to read designated verses, voice data and facial expression data are collected when the user reads positive verses, neutral verses and negative verses.
[0009] Preferably, in step 1, when the user is being interviewed, the user's facial expression, voice and text data are collected.
[0010] Preferably, the preprocessing first removes the records of incomplete data collection from the data set to ensure the integrity of all sample data; then converts the voice data of the user reading the poem and the communication voice data during the consultation stage into text format; finally, searches for the corresponding text timestamps in the user voice data, and segments the voice data and the corresponding video data according to these timestamps.
[0011] Preferably, the step 2 extracts multimodal features; A text feature extractor based on the Transformer architecture is used to extract text data features; the text feature extractor includes two parts: a text segmenter and a text encoder; the text segmenter segments and transforms the input text, and each word generates a unique vector corresponding to the word after passing through the segmenter, and adds it to its position code to obtain the final text embedding vector, wherein the position code is calculated by rotating the position code; finally, the vectors of all words are combined by splicing to form a text embedding vector for input to the text encoder; the text encoder is composed of multiple Transformer Blocks, and is used to output the feature vector corresponding to the current paragraph of text for subsequent analysis; OpenSMILE is used to extract features from the segmented speech data to obtain frame energy, loudness, and auditory spectrum features in the user's speech data; The facial expression data is sampled at intervals using the frame extraction method, and then the image and video analysis model is used to convert each sampled frame into an expression feature. Finally, all frame features are spliced into a single expression feature for subsequent analysis.
[0012] Preferably, the multimodal data analysis model is a trained model; during the training process, cross entropy is used as the model loss function L : ; in, is the predicted label probability, y is the true label; by calculating the cross entropy value between the predicted value and the true value, the model is guided to update the parameters, so that the predicted probability distribution of the model output is closer and closer to the true probability distribution.
[0013] The technical solution adopted by the system of the present invention is: a mental illness auxiliary diagnosis system based on a multimodal data analysis model, comprising: one or more processors; A storage device is used to store one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement the method for auxiliary diagnosis of mental illness based on the multimodal data analysis model.
[0014] Compared with the prior art, the beneficial effects of the present invention include: (1) The heterogeneous multimodal data collection method for mental illness designed in this invention is closely combined with the traditional and classic diagnosis and treatment experience of frontline psychiatric clinical staff. It can simultaneously collect heterogeneous multimodal data of text, voice, and facial expressions in the multi-stage experimental process of "watching movies-reading poems-digital doctor consultation"; (2) The heterogeneous multimodal data post-processing method designed by the present invention can convert the collected heterogeneous multimodal data into feature vectors that can be understood by deep learning and used for deep learning model training; the designed heterogeneous multimodal mental illness analysis model can assist doctors in intelligent diagnosis and improve doctors' consultation efficiency, saving labor costs.
[0015] (3) The data collection method proposed in the present invention has collected a large amount of heterogeneous multimodal data. The data processing, feature extraction, and feature processing and analysis models proposed in the present invention were used to evaluate the collected heterogeneous multimodal data, achieving a high diagnostic accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The technical solution of the present invention is further described below using embodiments and specific implementation methods. In addition, in the process of describing the technical solution, some drawings are also used. For those skilled in the art, other drawings and the intention of the present invention can also be obtained based on these drawings without paying creative work.
[0017] Figure 1 is a flow chart of a method according to an embodiment of the present invention; Figure 2 A flow chart of data processing and feature extraction in the method of an embodiment of the present invention; Figure 3 A structural diagram of a multimodal data analysis model according to an embodiment of the present invention; Figure 4 This is a user interaction system built using HTML and JavaScript in accordance with an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0019] Please see Figure 1 The present embodiment provides a method for assisting diagnosis of mental illness based on a multimodal data analysis model, comprising the following steps: Step 1: Collect the facial expression data, voice data and text data of the user when receiving the consultation, and pre-process them; In one implementation, by playing positive movie clips, neutral movie clips, and negative movie clips to the user, the facial expression data of the user while watching the movie is obtained.
[0020] In one embodiment, by requiring the user to read a specified verse, voice data and facial expression data are collected when the user reads positive verses, neutral verses and negative verses.
[0021] In one embodiment, when a user is undergoing medical consultation, the user's facial expression, voice and text data are collected.
[0022] In one embodiment, the preprocessing first removes the records of incomplete data collection from the data set to ensure the integrity of all sample data; then uses a speech-to-text tool to convert the user's voice data when reading poetry and the communication voice data during the consultation stage into text format, and saves these text data for subsequent use; finally, uses an automated text matching method to find the corresponding text timestamps in the user's voice data, and segments the voice data and corresponding video data according to these timestamps, and saves their segments for subsequent processing. At this point, the post-processing of multimodal data is completed.
[0023] Step 2: Extract multimodal features, including features of pre-processed facial expression data, voice data, and text data; Please see Figure 2 In one embodiment, the multimodal features are extracted; a text feature extractor based on the Transformer architecture is used to extract text data features; the text feature extractor includes two parts: a text segmenter and a text encoder; the text segmenter segments and transforms the input text, and each word generates a unique vector corresponding to the word after passing through the segmenter and adds it to its position code to obtain the final text embedding vector, wherein the position code is calculated by rotating the position code; finally, the vectors of all words are combined together to form a text embedding vector for input to the text encoder; the text encoder is composed of a plurality of Transformer Blocks, and is used to output the feature vector corresponding to the text for subsequent analysis. OpenSMILE is used to extract features from the segmented speech data to obtain frame energy, loudness, and auditory spectrum features in the user's speech data; the facial expression data is sampled at intervals by the frame extraction method, and then each sampled frame is converted into expression features using the image and video analysis model, and finally all frame features are spliced into a single expression feature for subsequent analysis.
[0024] Step 3: Input the multimodal features into a multimodal data analysis model and output a classification result; Please see Figure 3 , the multimodal data analysis model includes a multimodal data processing layer, a multimodal feature fusion layer, and a classification module; The multimodal data processing module includes three parallel Transformer-based feature processing branches. The first branch is the audio feature processing branch. This branch consists of two parts: a Transformer-based audio feature encoder and an audio feature dimensionality reduction module. Two cascaded Transformer units are used inside the audio feature encoder. Specifically, the input dimension of the encoder is set to 6373 dimensions of the original audio features, the length of the audio sequence is 20, each input Transformer unit is configured with 8 heads, the hidden layer dimension is set to 500, and the dropout value is set to 0.5. The audio feature dimensionality reduction module consists of a linear layer, an activation layer, a Dropout layer, and a Batch Normalization layer in sequence, wherein the input dimension of the linear layer is 6373 (feature dimension) multiplied by 20 (the number of audio sequences), and the output dimension is set to 256. The activation layer is a LeakReLU activation layer to achieve nonlinear transformation, and the dropout of a Dropout layer is set to 0.5. The second branch is the text feature processing branch, which consists of two parts: a Transformer-based text feature encoder and a text feature dimensionality reduction module. The text feature encoder uses two cascaded Transformer units. Specifically, the input dimension of the encoder is set to 768 dimensions of the original audio features, the length of the audio sequence is 16, each input Transformer unit is configured with 8 heads, the hidden layer dimension is set to 500, and the dropout value is set to 0.5. The text feature dimensionality reduction module consists of a linear layer, an activation layer, a Dropout layer, and a Batch Normalization layer in sequence. The input dimension of the linear layer is 768 (feature dimension) multiplied by 16 (the number of text feature sequences), and the output dimension is set to 256. The activation layer is a LeakReLU activation layer to achieve nonlinear transformation, and the dropout of a Dropout layer is set to 0.5. The third branch is the visual feature processing branch, which consists of two parts: a Transformer-based visual feature encoder and a visual feature dimensionality reduction module. The text feature encoder uses two cascaded Transformer units. Specifically, the input dimension of the encoder is set to 35 dimensions of the original audio features, each Transformer unit of the input is configured with 8 heads, the hidden layer dimension is set to 500, and the dropout value is set to 0.5.The visual feature dimensionality reduction module consists of an automatic average pooling layer, a Dropout layer, and a Batch Normalization layer. The automatic average pooling layer only needs to pool the input features into features with a dimension of 256, and the dropout of the Dropout layer is set to 0.5. A batch normalization layer is added at the end of each branch to stabilize the training process and ensure the consistency of the text feature distribution.
[0025] The multimodal feature fusion module includes a feature cascade layer, a multimodal feature self-attention layer, and a multi-level fusion feature calculation layer. The feature cascade layer refers to the splicing of audio features, text features, and visual features with a dimension of 256 on the dimension of the feature channel to obtain a cascade fusion feature with a dimension of 768. The multimodal feature self-attention layer includes an audio feature self-attention module, a text feature self-attention module, and a visual feature self-attention module. The three attention modules have the same structure and are composed of a self-attention layer, an attention weight calculation layer, and an attention weighted layer. The self-attention layer is a feature vector of query (Q), key (K), and value (V) with a dimension of 256 obtained by inputting features (X) through three linear layers respectively. The attention weight calculation layer uses dot product to calculate the correlation score between Q and K, and converts the correlation score into a self-attention weight (A) through a Softmax function. The attention weighted layer refers to multiplying V by A to obtain a weighted feature (F), and then adding F to X to obtain a modal self-attention feature. Finally, the modal self-attention features obtained by the three modal feature self-attention modules are concatenated in the feature channel dimension to obtain the self-attention joint fusion feature with a dimension of 768. The cascade fusion features obtained by the multi-modal feature fusion layer of the multi-level fusion feature calculation layer are added to the self-attention joint fusion features to obtain a multi-level fusion feature with a dimension of 768.
[0026] The classification module includes a linear layer and a Softmax layer. First, the linear layer sets the input dimension to 768 and the output dimension to 2, and the Softmax layer converts the output result of the linear layer into a probability distribution.
[0027] In one implementation, the specific implementation of step 3 includes the following sub-steps: Step 3.1: For the multimodal data processing module; due to errors in data collection, sensor failure, data loss and other issues, there may be "non-digital" (NaN, Not a Number) in the features. Therefore, the present invention will first pre-process the existing NaN values of the features, that is, fill in 0 to maintain the integrity of the data; then, for the features of different modes, the maximum-minimum normalization method is used to ensure that the multimodal features have a similar numerical range; the multimodal features are first further extracted using a multi-branch multimodal feature encoder; in view of the fact that audio, text and video features may differ in feature dimensions, the present invention first uses a multi-view dimensionality reduction module composed of a linear layer, Dropout and an activation layer to ensure that the features of different modes are aligned in feature dimensions; Step 3.2: For the multimodal feature fusion module; the present invention first fuses the features from different modalities through the feature cascade layer to form a cascaded multimodal feature; then uses a multi-branch multimodal self-attention module to weight the features of different modalities to form an attention-weighted multimodal feature; finally, through the multi-level fusion feature calculation layer, the original cascaded multimodal features and the attention-weighted multimodal features are added on the feature channel to obtain a multi-level fusion feature with a dimension of 768.
[0028] Step 3.3: Input the integrated multimodal features into the multimodal classification module and output the classification results, including normal results and abnormal results.
[0029] In one embodiment, the multimodal data analysis model is a trained model; the training process includes the following steps: Step 1: Construct a heterogeneous multimodal training dataset of "movie watching-poetry reading-digital doctor consultation"; (1) This embodiment uses HTML and JavaScript to build a user interaction system. Figure 4 ,This system contains one positive, neutral and negative movie clip, one positive, neutral and negative poem, and 18 consultation and communication questions based on the interaction with a digital doctor.
[0030] (2) In the above system, users watch positive, neutral, and negative emotional stimulation movies, and audio and video acquisition equipment is used to obtain the user's facial expression data while watching the movie. The movie clips involved are presented to the user in the order of positive (transmitting joyful and happy emotions) movie clips, neutral (not involving emotional stimulation, generally documentaries) movie clips, and negative (transmitting sad and painful emotions) movie clips.
[0031] (3) In the above system, the user reads positive, neutral, and negative emotional stimulation poems, and the audio and video acquisition equipment is used to obtain the user's facial expression data when reading the poems. The emotional stimulation poems involved are presented on the computer screen in the order of positive (transmitting joyful and happy emotions), neutral (not involving emotional stimulation, generally neutral descriptions), and negative (transmitting sad and painful emotions). The user looks at the computer screen and reads the poems on the screen.
[0032] (4) In the above system, the user accepts the digital doctor's consultation, and the audio and video acquisition equipment is used to obtain the user's facial expression, voice, and text data when the digital doctor is consulting. The digital doctor's consultation simulates the communication between the doctor and patients with three common mental illnesses. During the communication process, the first 6 questions mainly involve light topics such as the subject's hometown, food, attractions, interpersonal relationships, personality, etc., which are conducive to effective communication between the digital doctor and the subject in the next stage; the 7th, 8th, 9th, 10th, and 11th questions are common key questions about depression; the 12th, 13th, 14th, and 15th questions are common key questions about bipolar disorder; the 16th and 17th questions are common key questions about schizophrenia, and the 18th sentence is a farewell speech to the user.
[0033] Step 2: Post-processing and feature extraction of multimodal data of speech, facial expressions, and text of common mental illnesses (1) Post-processing of multimodal data: After collecting heterogeneous multimodal data in the first step, this embodiment first cleans and processes data of different modalities. The specific steps are as follows: Use manual methods to remove records of incomplete data collection from the data set to ensure the integrity of all sample data. Then, use a speech-to-text tool to convert the user's answers to the poetry reading and digital doctor consultation communication stages in step one into text format, and save these text data for subsequent use. After that, use an automated text matching method to find the corresponding text timestamps in the user's audio data, and segment the audio and corresponding video data according to these timestamps, and save their segments for subsequent processing. At this point, the post-processing of multimodal data is completed.
[0034] (2) Multimodal feature extraction: After implementing multimodal data post-processing, this embodiment performs feature extraction on different modal data. For text data, the present invention adopts a text feature extractor based on the Transformer architecture. Specifically, the feature extractor includes two parts: a text segmenter and a text encoder. The text segmenter segments and transforms the input text. After each word passes through the segmenter, a unique vector corresponding to the word is generated and added to its position code to obtain the final word embedding vector, wherein the position code is calculated by rotating the position code. Finally, the vectors of all words are spliced and merged together to form a text embedding vector for input to the text encoder. The text encoder is composed of multiple Transformer Blocks. The final encoder will output the feature vector corresponding to this paragraph of text for subsequent analysis models. For speech data, this embodiment uses OpenSMILE to extract features from the segmented audio segments to obtain low-level audio features such as frame energy, loudness, and auditory spectrum in the user audio for subsequent analysis models. For facial expression data, this embodiment adopts a frame extraction method to perform interval sampling of facial expressions, and then uses a large image and video analysis model to convert each sampled frame into an expression feature, and then all frame features are spliced into a single expression feature for the subsequent model analysis in step three.
[0035] Step 3: Multimodal data feature processing and model analysis of common mental illness speech, facial expression, and text (1) Multimodal data processing module; Due to errors in data collection, sensor failures, data loss, and other issues, there may be "non-number" (NaN, Not a Number) in the features. Therefore, the present invention will first pre-process the NaN values of the features, that is, fill them with 0 to maintain the integrity of the data; then, for the features of different modes, the maximum-minimum normalization method is used to ensure that the multimodal features have similar numerical ranges; the multimodal features are first further extracted using a multi-branch multimodal feature encoder; in view of the fact that audio, text, and video features may differ in feature dimensions, the present invention first uses a multi-view dimensionality reduction module composed of a linear layer, a Dropout layer, and an activation layer to ensure that the features of different modes are aligned in feature dimensions; (2) Multimodal feature fusion module; The present invention firstly fuses features from different modalities through a feature cascade layer to form a cascaded multimodal feature; then uses a multi-branch multimodal self-attention module to weight features of different modalities to form an attention-weighted multimodal feature; finally, through a multi-level fusion feature calculation layer, the original cascaded multimodal features and the attention-weighted multimodal features are added on the feature channel to obtain a multi-level fusion feature with a dimension of 768.
[0036] (3) Multimodal classification module training; The integrated multimodal features are input into the multimodal classification module, and the classification results are output; including normal results and abnormal results. This embodiment considers using different modal combinations at different stages, and fusing modal features of different combinations to establish a common mental illness classification model for training optimization. In the movie watching stage, the facial expression feature information of the user when watching the movie is mainly collected, so the expression feature can be directly used as input. In the poetry reading stage, the audio and facial visual features of the user when reading are mainly collected, so only voice features, only facial expression features, and a combination of voice features and facial expression features can be set as input at this stage. In the digital doctor consultation stage, the audio, text and facial visual features of the user when answering questions are mainly collected, so only voice features, only text features, only facial expression features, and a combination of voice, text and facial expression features can be set as input at this stage. Combining the multimodal features of the above three stages, the voice, text, and facial expression features from different stages are fused respectively through the feature cascade method, and then multimodal fusion is performed to form a multimodal feature representation of the whole process as input, and the user is judged for binary classification training on whether he suffers from common mental illness. During the training process, this embodiment uses cross entropy as the model training loss function. For the binary classification problem, the cross entropy loss is: ; in, is the predicted label probability, y is the true label; by calculating the cross entropy value between the predicted value and the true value, the model is guided to update the parameters, so that the predicted probability distribution of the model output is closer and closer to the true probability distribution.
[0037] Based on the established model, the new multimodal data is used to make binary predictions on whether the patient has common mental illnesses. The prediction results are analyzed and interpreted to evaluate the performance and reliability of the model in practical applications, providing a reference for further improvement and optimization of the model.
[0038] This embodiment also provides a mental illness auxiliary diagnosis system based on a multimodal data analysis model, including: one or more processors; A storage device is used to store one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement the method for auxiliary diagnosis of mental illness based on the multimodal data analysis model.
[0039] The present invention is further described below through specific implementations.
[0040] In the early stage, the present invention conducted experiments on 440 sample data, and divided all the data into a training set and a test set. The training set has a total of 352 sample data, including 123 diseased samples and 229 normal samples. The test set has a total of 88 sample data, including 25 diseased samples and 63 normal samples.
[0041] The present invention carries out multi-modal diagnostic model training and testing in stages and throughout the whole process: The staged division means that the present invention divides step 1 into three stages: watching movies, reading poems and digital doctor consultation. In the first stage, the present invention uses a single visual modality for model training and judgment. The training accuracy is shown in Table 1. In the second stage, the present invention uses a single visual modality, a single audio modality, and a dual modality of vision and audio for model training and testing. The training accuracy is shown in Table 1. In the third stage, the present invention uses a single audio modality, a single text modality, a single visual modality, and a triple modality of audio, text and vision for model training and testing. The training accuracy is shown in Table 1.
[0042] Table 1: Test results of multimodal diagnosis model in different stages
[0043] The whole process refers to: model training and testing for the single audio modality, single text modality, single visual modality, and audio, text and visual tri-modality in the whole process of data collection of the present invention. The training accuracy is shown in Table 2 below.
[0044] Table 2: Test results of the multimodal diagnostic model for the entire process
[0045] The present invention has designed a collection method that can simultaneously collect heterogeneous multimodal data of text, voice, and facial expression in the multi-stage experimental process of "watching movies-reading poems-digital doctor consultation"; and designed heterogeneous multimodal data post-processing and heterogeneous multimodal mental illness analysis models to assist doctors in intelligent diagnosis and improve doctors' consultation efficiency. In short, based on the collection and analysis of heterogeneous multimodal data of voice, facial expression, and text, an integrated system is developed to ultimately achieve intelligent auxiliary diagnosis for patients with common mental illnesses and save labor costs.
[0046] It should be understood that the embodiments described above are part of the embodiments of the present invention, rather than all of the embodiments. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be combined with each other arbitrarily to form a feasible technical solution. Such combination is not restricted by the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the protection scope required by the present invention.
[0047] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. A method for assisting diagnosis of mental illness based on a multimodal data analysis model, characterized in that: The following steps are involved: Step 1: Collect the facial expression data, voice data and text data of the user when receiving the consultation, and pre-process them; Step 2: Extract multimodal features, including features of pre-processed facial expression data, voice data, and text data; Step 3: Input the multimodal features into a multimodal data analysis model and output a classification result; Firstly, for the multimodal features, non-numeric NaN values existing in the multimodal features are processed by filling 0 to maintain the integrity of the data; Then, the maximum-minimum normalization method is used to process the features of different modes to ensure that the multimodal features have a preset value range; Then, multimodal feature fusion is performed. First, a multi-view dimensionality reduction method is used to ensure that the features of different modalities are aligned in the feature dimension. Then, through the feature cascade method, the features from different modalities are fused to form an integrated multimodal feature representation. Finally, the integrated multimodal features are input into the multimodal data analysis model to output the classification results, including normal results and abnormal results.
2. The method for assisting diagnosis of mental illness based on a multimodal data analysis model according to claim 1, characterized in that: In step 1, by playing positive movie clips, neutral movie clips and negative movie clips to the user, the facial expression data of the user while watching the movie is obtained.
3. The method for assisting diagnosis of mental illness based on a multimodal data analysis model according to claim 1, characterized in that: In step 1, by asking the user to read a specified verse, voice data and facial expression data are collected when the user reads positive verses, neutral verses and negative verses.
4. The method for assisting diagnosis of mental illness based on a multimodal data analysis model according to claim 1, characterized in that: In step 1, when the user is being consulted, the user's facial expression, voice and text data are collected.
5. The method for assisting diagnosis of mental illness based on a multimodal data analysis model according to claim 1, characterized in that: The preprocessing first removes the records of incomplete data collection from the data set to ensure the integrity of all sample data; then converts the voice data of the user reading the poem and the communication voice data during the consultation stage into text format; finally, searches for the corresponding text timestamps in the user voice data, and segments the voice data and the corresponding video data according to these timestamps.
6. The method for assisting diagnosis of mental illness based on a multimodal data analysis model according to claim 1, characterized in that: Extracting multimodal features as described in step 2; A text feature extractor based on the Transformer architecture is used to extract text data features; the text feature extractor includes two parts: a text segmenter and a text encoder; the text segmenter segments and transforms the input text, and each word is passed through the text segmenter to generate a unique vector corresponding to the word and add it to its position code to obtain the final word embedding vector, wherein the position code is calculated by rotating the position code; finally, the vectors of all words are concatenated and merged together to form a text embedding vector for input to the text encoder; the text encoder is composed of multiple Transformer Blocks, and is used to output the feature vector corresponding to the current paragraph of text for subsequent analysis; OpenSMILE is used to extract features from the segmented speech data to obtain frame energy, loudness, and auditory spectrum features in the user's speech data; The facial expression data is sampled at intervals using the frame extraction method, and then the image and video analysis model is used to convert each sampled frame into an expression feature. Finally, all frame features are spliced into a single expression feature for subsequent analysis.
7. The method for assisting diagnosis of mental illness based on a multimodal data analysis model according to any one of claims 1 to 6, characterized in that: In step 3, the multimodal data analysis model includes a multimodal data processing module, a multimodal feature fusion module, and a classification module; The multimodal data processing module includes three parallel Transformer-based feature processing branches; the first branch is an audio feature processing branch, including a Transformer-based audio feature encoder and an audio feature dimensionality reduction module, the audio feature encoder uses two cascaded Transformer units, and the audio feature dimensionality reduction module is composed of a linear layer, an activation layer, a Dropout layer, and a Batch Normalization layer in sequence; the second branch is a text feature processing branch, including a Transformer-based text feature encoder and a text feature dimensionality reduction module, the text feature encoder uses two cascaded Transformer units, and the text feature dimensionality reduction module is composed of a linear layer, an activation layer, a Dropout layer, and a Batch Normalization layer in sequence; the third branch is a visual feature processing branch, including a Transformer-based visual feature encoder and a visual feature dimensionality reduction module, the text feature encoder uses two cascaded Transformer units, and the visual feature dimensionality reduction module is composed of an automatic average pooling layer, a Dropout layer, and a Batch Normalization layer. The layers are composed in sequence; a batch normalization layer is added at the end of each branch to stabilize the training process and ensure the consistency of text feature distribution; The multimodal feature fusion module includes a feature cascade layer, a multimodal feature self-attention layer and a multi-level fusion feature calculation layer; the feature cascade layer is to splice the audio features, text features and visual features in the dimension of the feature channel to obtain the cascade fusion features; the multimodal feature self-attention layer includes an audio feature self-attention module, a text feature self-attention module and a visual feature self-attention module arranged in parallel, and the three attention modules have the same structure, which are all composed of a self-attention layer, an attention weight calculation layer and an attention weighted layer; finally, the modal self-attention features obtained by the three modal feature self-attention modules are spliced in the dimension of the feature channel to obtain the self-attention joint fusion features; the multi-level fusion feature calculation layer adds the cascade fusion features obtained by the multimodal feature fusion layer to the self-attention joint fusion features to obtain the multi-level fusion features; The classification module includes a linear layer and a Softmax layer; the Softmax layer converts the output result of the linear layer into a probability distribution.
8. The method for assisting diagnosis of mental illness based on a multimodal data analysis model according to any one of claims 1 to 6, characterized in that: The multimodal data analysis model is a trained model; during the training process, cross entropy is used as the model loss function L : ; in, is the predicted label probability, y is the true label; by calculating the cross entropy value between the predicted value and the true value, the model is guided to update the parameters, so that the predicted probability distribution of the model output is closer and closer to the true probability distribution.
9. A mental illness auxiliary diagnosis system based on a multimodal data analysis model, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method for auxiliary diagnosis of mental illness based on a multimodal data analysis model as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Multi-mode based emotion recognition method
CN108805089A
Speech and facial feature extraction method and system for depression detection
CN109171769A
Multi-modal emotion recognition method and system based on attention mechanism and GMN
CN113095357A
Multi-modal sentiment analysis method based on MIT and FSM
CN113806609A
Schizophrenia risk assessment and screening algorithm fusing multi-modal biological characteristics
CN115691787A
Cited By
Voice signal-based depression auxiliary diagnosis system and diagnosis method
CN119405314A
A depression auxiliary diagnosis system and method based on a voice signal
CN119405314B
Multi-modal feature splicing method and multi-modal data processing method based on rotation position coding technology
CN120724380A
Virtual standardized patient teaching model generation method and system
CN120784001A
Mental health emotion deep interaction method, system and equipment based on large model
CN121366716A
