Cerebral stroke early screening method combining comparative learning and multi-modal fusion
Through the method of joint contrastive learning and multi-modal fusion, the motion and audio features of stroke patients are extracted and feature fused, which solves the problems of high data acquisition cost and single-modal input in the existing technology, and achieves more accurate and early stroke screening.
Patent Information
- Application Number
- CN202310146221.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
Existing stroke diagnosis methods have problems such as high data acquisition costs, insufficient mining of temporal information in patient action videos, and over-reliance on manual annotation and single video modality input, making diagnosis accuracy and early screening difficult.
Using the method of joint contrastive learning and multi-modal fusion, by constructing a multi-modal data set, using contrastive learning to extract action and audio features, and combining Transformers for feature fusion, a multi-layer perceptron classifier is constructed for diagnosis.
It improves the accuracy of stroke diagnosis and the effectiveness of early screening, reduces the dependence on professional equipment and manual annotation, and enhances the discriminability of features and the comprehensiveness of diagnosis.
Smart Images

Figure CN118538394A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine learning technology, and in particular to a video and audio processing method and a multimodal feature fusion method. Background Art
[0002] In the past, stroke was a disease that often occurred in the elderly. Now, the incidence of stroke is getting younger and younger. The rapid increase in the number of people with stroke has surpassed ischemic heart disease and lung cancer to become the leading cause of death in my country. The treatment of stroke is highly time-sensitive, including: the golden time for stroke rescue is usually within 6 hours. If the acute stage is not diagnosed and treated in time, it can cause serious complications and even permanent nerve damage; Timely treatment and care can help patients recover as soon as possible and reduce related complications; Treating stroke sequelae can place an ongoing burden on loved ones.
[0003] According to a survey of stroke patients in my country, the awareness rate of patients for their own stroke symptoms, such as dizziness, limb numbness, slurred speech, and headache, is only 3%-16%. The main reason for this phenomenon is that the typical symptoms of stroke are only headache and vomiting, which can be easily confused with other diseases.
[0004] At present, the main diagnostic methods for stroke are characterization diagnosis, CT diagnosis and MRI diagnosis. Among them, the high cost and low throughput of CT diagnosis and MRI diagnosis limit their simplicity and are not suitable as early screening methods; while the characterization symptom diagnosis method has the advantages of low cost and high throughput, but it is difficult for ordinary people to master and has a high misdiagnosis rate. Ordinary people have insufficient understanding of stroke symptoms, and the golden period of treatment has passed. Therefore, the study of a fast and accurate early screening method for stroke that ordinary people can master is of particular importance for the correct and timely treatment of stroke patients and the formulation of relevant nursing strategies.
[0005] Based on this, we hope to use computer artificial intelligence methods to replace representational diagnostic methods, thereby greatly lowering the threshold required for stroke diagnosis, allowing ordinary people and patients to easily perform early screening for stroke without having the corresponding diagnostic tools or relevant knowledge.
[0006] Existing machine detection methods for stroke mainly include deep learning methods based on patient CT, MRI and symptoms. Deep learning methods based on CT and MRI diagnosis have high accuracy, but require high costs and are not suitable for early screening of stroke. At present, deep learning methods based on patient symptom diagnosis mostly use deep neural networks to analyze and diagnose the patient's action video, rarely mining and utilizing the patient's action timing features in the video, and do not consider the complementary relationship between spatial features and timing features in video understanding. Therefore, the existing machine diagnosis methods for stroke mainly have the following problems: The cost of obtaining the data used as the basis for diagnosis is too high. For example, CT and MRI need to be obtained with professional medical testing equipment and are not suitable for early detection of stroke. In the existing technology, the temporal information contained in the patient's action video is not fully mined, and deep neural networks are generally used for feature extraction and classification. There is a lack of high-quality features for characterizing symptom information, resulting in low discriminability of video features, making it difficult to use them for medical diagnosis of stroke. Currently, most video medical diagnosis tasks use supervised learning methods. The constructed video medical diagnosis models rely too much on manual annotation. The models cannot be adjusted actively and do not deeply explore the comparative relationship between video samples. Currently, most deep learning methods for stroke diagnosis only use a single video modality as input, lacking more modality information for accurate diagnosis of stroke.
[0007] In view of the above problems, the present invention proposes an early stroke screening method combining contrastive learning and multimodal fusion. Compared with the existing technology, the embodiments of the present invention have the following beneficial effects: In the prior art, the temporal information contained in the patient's action video is not fully mined, and deep neural networks are generally used for feature extraction and classification, lacking high-quality features for characterizing symptom information. The present invention uses a contrastive learning method to fully mine the temporal information in the video, and uses the comparison between positive and negative sample pairs to improve the discriminability of the features, thereby improving the accuracy of the model in stroke diagnosis; Currently, most video medical diagnosis tasks use supervised learning methods, and the constructed video medical diagnosis models rely too much on manual annotation. The contrastive learning model can learn good features by comparing the relationship between video samples without additional manual annotation. Currently, most deep learning methods for stroke diagnosis only use a single video modality as input, lacking more modal information for accurate stroke diagnosis. The present invention fully analyzes the basis for stroke diagnosis symptoms and comprehensively utilizes the patient's motion feature information and language feature information, thereby being able to diagnose stroke in patients more effectively and comprehensively. Summary of the invention
[0008] In view of the deficiencies in the prior art, the present invention provides an early screening method for stroke by combining contrastive learning with multimodal fusion, so as to effectively detect stroke diseases and improve the accuracy of stroke diagnosis.
[0009] In order to solve the above technical problems, the present invention provides the following technical solutions: A method for early stroke screening combining contrastive learning and multimodal fusion, comprising: Construct a multimodal dataset of stroke patients, where each patient records four videos of different actions and a language-related audio and video; Preprocessing the video and audio in the multimodal data set of stroke patients to obtain a format that can be used for the model; Through contrastive learning, a motion feature extraction model for stroke patients is trained; Inputting the video of the multimodal data set of stroke patients into the motion feature extraction model of stroke patients to obtain the motion features of stroke patients; Train the audio feature extraction model of stroke patients through supervised learning; Inputting the audio of the multimodal data set of stroke patients into the audio feature extraction model of stroke patients to obtain the audio features of stroke patients; The stroke patient's motion and audio features are input into Transformers for adaptive feature fusion to obtain multimodal fusion features of the stroke patient; The multimodal fusion features of stroke are input into a multi-layer perceptron classifier to construct a multimodal feature fusion diagnosis model of stroke.
[0010] The method for constructing a multimodal data set of stroke patients comprises: Four videos of different actions are recorded for each patient, namely, raising hands, raising legs, sticking out tongue, and pointing nose, to form a multimodal stroke patient action video dataset; A language-related video is recorded for each patient, in which the patient repeats the sentences spoken by the medical staff, forming a multimodal stroke patient action audio dataset.
[0011] The method for preprocessing a multimodal data set of stroke patients comprises: Preprocessing the video of the stroke patient action data set includes equidistantly slicing the action video to obtain a plurality of video frame images and adjusting the video frame images to a uniform size; The audio of the multimodal data set of stroke patients is preprocessed, including audio separation of the language video to obtain an audio signal and completing the audio signal to a uniform length.
[0012] The contrastive learning model training method comprises: Based on the videos in the multimodal dataset of stroke patients, constructing positive sample pairs and negative sample pairs required for comparative learning; Based on the contrastive learning method, an encoder is used to extract features from the constructed positive and negative sample pairs, and the encoder network parameters are optimized and trained through contrastive learning loss to make the features obtained from the positive samples as similar as possible and the features obtained from the negative sample pairs as different as possible; The encoder trained by contrastive learning is used to extract features from the multimodal stroke patient motion video dataset to obtain multimodal stroke patient motion features.
[0013] The positive sample and negative sample construction method comprises: The positive sample pair is composed of two different data enhancement methods based on a spatial or temporal video data enhancement method, which are used on a video randomly sampled from the stroke patient action video dataset; The negative sample pair is formed by using the past randomly sampled videos stored in the queue cache, and by a randomly sampled video and a randomly sampled video in the queue cache.
[0014] The method for extracting audio features of stroke patients comprises: Based on the fast Fourier method, the continuous audio signal is converted into a Fourier spectrum diagram in the form of a discrete signal; Based on the log-mel conversion method, the Fourier spectrum graph is converted into a log-mel spectrum graph; The log-mel spectrogram is input into a deep convolutional network for feature extraction to obtain multimodal audio features of stroke patients.
[0015] A Transformers-based multimodal feature fusion early screening method, including: The stroke patient's motion and audio features are concatenated and input into Transformers to obtain multimodal fusion features of stroke; The stroke multimodal fusion feature extraction network and the multi-layer perceptron classifier are combined to construct a stroke multimodal fusion diagnosis model; The patient's recorded movements, voice and video are input into the stroke multimodal fusion diagnosis model to output the final stroke disease diagnosis result. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0017] Figure 1 It is the overall framework diagram of the model of the present invention; Figure 2-Figure 4 It is a schematic diagram of the comparative learning principle in the present invention; Figure 5 It is a structural schematic diagram of an audio feature extraction model in the present invention. DETAILED DESCRIPTION
[0018] The core of the present invention is to provide a method for diagnosing stroke, which can effectively extract the action language features related to stroke patients, improve the discriminability of the features, and thus improve the accuracy of stroke diagnosis.
[0019] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0020] refer to Figure 1 , Figure 1 The overall framework diagram of the model of the present invention is shown in FIG. The early screening method for stroke based on contrastive learning and multimodal feature fusion model comprises the following steps: Step 0: Construct a multimodal video and audio dataset of stroke patients for training the contrastive learning and multimodal feature fusion model.
[0021] Specifically, the multimodal video and audio dataset of stroke patients, the video dataset is composed of videos of four different actions: raising hands, raising legs, sticking out tongue, and pointing to nose, and the audio dataset is composed of audio of patients repeating sentences spoken by medical staff.
[0022] Step 1: preprocess the video and audio in the multimodal data set of stroke patients into a format that can be input into the model.
[0023] Specifically, since the number of original video frames in the multimodal dataset of stroke patients is generally large, exceeding 300 frames, in order to prevent the network parameters from being too large, it is necessary to sample and compress the video capacity while retaining the original video information as much as possible. The video preprocessing of the multimodal dataset of stroke patients is as follows: Each video of the patient's action in the data set is sliced and framed at equal intervals. Each original video is about 10 seconds, and each video is sampled at equal intervals into 32 continuous pictures.
[0024] In addition, the neural network used in the present invention requires input with a uniform length, while the original length of the audio is inconsistent, so it is necessary to make the audio in the multimodal dataset of stroke patients maintain a consistent length by supplementation or truncation. The audio preprocessing of the multimodal dataset of stroke patients includes: Performing audio separation processing on the patient voice video of the data set, outputting a continuous audio signal in a monophonic format with a sampling rate of 44000 Hz, and obtaining voice audio data of stroke patients; The speech audio data of the stroke patient are processed into a uniform length of 10 seconds, data longer than 10 seconds are truncated, and data shorter than 10 seconds are supplemented with 0.
[0025] Step 2: Each time, a video for training is selected from the multimodal data set of stroke patients, and positive sample pairs and negative sample pairs thereof are constructed for training the comparative learning model.
[0026] Specifically, the original contrastive learning is a model training at the picture level, while the multimodal data set of stroke patients is video data, so it is necessary to modify the construction method of the positive and negative sample pairs of the original contrastive learning, extend the contrastive learning from the picture field to the video field, and construct the video-level contrastive learning. Figure 2-Figure 3 , the video-level positive sample construction method includes: like Figure 2 As shown in the figure, a frame of the training video is randomly selected, and data enhancement is used to obtain a new image, which forms a positive sample pair with the original frame; like Figure 3 As shown, two frames of the training video are randomly selected to form a positive sample pair; The negative sample is constructed by using a queue cache to store past training videos, and is composed of the above-mentioned video used for training and a video randomly sampled from the queue cache.
[0027] Step 3: train the contrastive learning model through contrastive learning method, and enhance the discrimination of image features output from the four patient action videos to obtain optimized image features.
[0028] Specifically, the deep convolutional network ResNet50 is used as the encoder for contrastive learning. The positive sample pairs and negative sample pairs constructed in step 2 are input into the encoder to obtain the feature representation of the positive sample pairs and the negative sample pairs. The contrastive learning loss function is minimized through back propagation, so that Much greater than , thereby training the parameters in the encoder; in, Represents a metric function, which indicates the similarity between two vectors. Here, the cosine similarity of the two vectors is used. represents the feature vector of the sample, represents the feature vector of the positive sample, represents the feature vector of negative samples, Represents a sample randomly selected during training, Represents a randomly selected sample are similar or similar positive sample pairs, Represents a randomly selected sample are negative sample pairs that are dissimilar or of different classes.
[0029] During the contrastive learning model training process, pseudo labels are assigned to the training samples according to the positive sample pairs and negative sample pairs during training, and the contrastive learning loss function is minimized through back propagation, thereby shortening the distance between similar positive sample pairs of video features in the feature space and pushing the distance between dissimilar negative sample pairs of video features away, making the video action features finally output by the self-supervised video learning network more discriminative. Among them, the contrastive learning loss function in training is expressed as:
[0030] in, represents the loss function of the contrastive learning method, Represents a randomly selected sample Calculate the loss function. represents the inverse matrix of the sample eigenvector, Indicates j The feature vector of negative samples, j Indicates j Negative samples.
[0031] The above contrastive learning construction pairs are all trained at the video picture frame level, and cannot fully utilize the temporal information in the video. Therefore, in addition to the construction of the above positive and negative sample pairs, the present invention also applies the video frame temporal sequence recognition task, such as Figure 4As shown in the figure, a certain number of picture frames are taken from the video data set in order, and the order of the video frames is randomly disrupted according to a certain probability. The picture frames that are disrupted according to probability and the picture frames that are not disrupted are input into the model to let the model determine whether the order of the pictures is correct. By constructing classification pseudo labels, the model is back-propagated and optimized. This method model can fully mine the time sequence information in the video through the order judgment task, optimize the feature expression of the model time sequence information, and thus improve the overall stroke diagnosis classification model effect.
[0032] Step 4: preprocess the audio data, input the audio of the multimodal data set of stroke patients into the audio feature extraction model of stroke patients, and obtain the audio features of stroke patients.
[0033] Specifically, the original audio signal is a 44000Hz audio signal sampled from a continuous signal, which is not suitable for input analysis of a deep convolutional network. Therefore, the fast Fourier transform is used to convert it into a Fourier spectrum of a discrete signal, and then the deep convolutional network in the image field can be used for feature extraction. Figure 5 , Figure 5 Schematic diagram of the structure of an audio feature extraction model in the present invention, wherein the extraction method includes: Segmenting the speech audio of the multimodal data set of stroke patients into segments of 960 ms each to obtain multiple segments of audio data; Performing fast Fourier calculation on the multiple audio data segments respectively to obtain the Fourier coefficients of each audio segment, and combining them in time sequence to obtain multiple Fourier spectrograms; The multiple Fourier spectrograms are subjected to log-mel mapping operation, and the characteristic of the smooth function value of the logarithmic function is used to simulate the characteristic that the higher the frequency, the lower the sensitivity of the human ear, and converted into multiple log-mel spectrograms. The log-mel mapping formula is as follows:
[0034] in, For the frequency values on the Fourier spectrum, convert the normal frequency scale to the Mel frequency scale.
[0035] Using the VGG deep learning convolutional network as the backbone network, the above-mentioned multiple log-mel spectrograms are input into the VGG network to extract the audio feature sequence of the patient's speech.
[0036] Step 5: Input the stroke motion features obtained in step 3 and the audio features obtained in step 4 into the Transformers-based multimodal fusion model for adaptive feature fusion to obtain multimodal fusion features of stroke patients.
[0037] Specifically, the video fusion action features and the speech audio features obtained by the VGG network are spliced to obtain the multimodal splicing vector. Because Transformers is position-independent when processing information, and the input splicing features have a strongly correlated positional relationship, it is necessary to add an embedding layer to the spliced vector according to the sequential position of the splicing vector to obtain a multimodal encoding vector with position information. Finally, the multimodal encoding vector with position information is input into Transformers for multimodal adaptive feature fusion to obtain multimodal fusion features of stroke.
[0038] Step 6: Build and train a multimodal fusion diagnostic model for stroke diagnosis and classification.
[0039] Specifically, the stroke multimodal fusion feature extraction network is connected to the multi-layer perceptron classifier to construct a stroke multimodal fusion diagnosis model, the patient's recorded movements, voice and video are input into the stroke multimodal fusion diagnosis model, the cross entropy loss is used as the loss function, and the network parameters of the Transformers feature fusion model are optimized by back propagation. Among them, the cross entropy loss function corresponding to the stroke multimodal fusion diagnosis model is expressed as:
[0040] in, It is expressed as the total loss of the stroke multimodal fusion diagnosis model network, is the true label of the target individual’s stroke diagnosis result, is the disease probability predicted by the target individual stroke model, is the number of samples in a single round of training.
[0041] Finally, the video and audio features of the patient to be predicted are input into the multimodal fusion diagnosis model. After passing through the multi-layer perceptron classifier and the Softmax layer, the probability of stroke disease is output in the form of probability, thereby obtaining the final stroke disease diagnosis result.
[0042] In summary, the present invention designs an early stroke screening method combining contrastive learning and multimodal fusion. Aiming at the problem that the model does not fully mine the temporal information contained in the patient's action video and lacks high-quality features for characterizing symptom information, the present invention uses a contrastive learning method to fully mine the temporal information in the video without additional manual annotation, and uses the comparison between positive and negative sample pairs to improve the discriminability of features. Aiming at the problem that most of the current deep learning methods for stroke diagnosis only use a single video modality as input, the present invention fully analyzes the basis for stroke diagnosis symptoms, comprehensively utilizes the patient's action feature information and language feature information, and uses a Transformers-based feature fusion method for multimodal adaptive feature fusion, so that patients can be diagnosed with stroke more effectively and comprehensively.
[0043] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Any changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should fall within the protection scope of the present invention.
Claims
1. A method for early stroke screening combining contrastive learning and multimodal fusion, characterized in that: include: Construct a multimodal dataset of stroke patients, where each patient records four videos of different actions and a language-related audio and video; Preprocessing the video and audio in the multimodal data set of stroke patients to obtain a format that can be used for the model; Through contrastive learning, a motion feature extraction model for stroke patients is trained; Inputting the video of the multimodal data set of stroke patients into the motion feature extraction model of stroke patients to obtain the motion features of stroke patients; Train the audio feature extraction model of stroke patients through supervised learning; Inputting the audio of the multimodal data set of stroke patients into the audio feature extraction model of stroke patients to obtain the audio features of stroke patients; The stroke patient's motion and audio features are input into Transformers for adaptive feature fusion to obtain multimodal fusion features of the stroke patient; The multimodal fusion features of stroke are input into a multi-layer perceptron classifier to construct a multimodal feature fusion diagnosis model of stroke.
2. The method for early stroke screening by combining contrastive learning and multimodal fusion according to claim 1, characterized in that: The method for constructing a multimodal data set of stroke patients comprises: Four videos of different actions are recorded for each patient, namely, raising hands, raising legs, sticking out tongue, and pointing nose, to form a multimodal stroke patient action video dataset; A language-related video is recorded for each patient, in which the patient repeats the sentences spoken by the medical staff, forming a multimodal stroke patient action audio dataset.
3. The method for early stroke screening by combining contrastive learning and multimodal fusion according to claim 1, characterized in that: The method for preprocessing a multimodal data set of stroke patients comprises: Preprocessing the video of the stroke patient action data set includes equidistantly slicing the action video to obtain a plurality of video frame images and adjusting the video frame images to a uniform size; The audio of the multimodal data set of stroke patients is preprocessed, including audio separation of the language video to obtain a continuous audio signal and completing the audio signal to a uniform length.
4. The method for early stroke screening by combining contrastive learning and multimodal fusion according to claim 1, characterized in that: The contrastive learning model training method comprises: Based on the videos in the multimodal dataset of stroke patients, constructing positive sample pairs and negative sample pairs required for comparative learning; Based on the contrastive learning method, an encoder is used to extract features from the constructed positive and negative sample pairs, and the encoder network parameters are optimized and trained through contrastive learning loss to make the features obtained from the positive samples as similar as possible and the features obtained from the negative sample pairs as different as possible; The encoder trained by contrastive learning is used to extract features from the multimodal stroke patient motion video dataset to obtain multimodal stroke patient motion features.
5. The method for early stroke screening by combining contrastive learning and multimodal fusion according to claim 4, characterized in that: The positive sample and negative sample construction method comprises: The positive sample pair is composed of two different data enhancement methods based on a spatial or temporal video data enhancement method, which are used on a video randomly sampled from the stroke patient action video dataset; The negative sample pair is formed by using the past randomly sampled videos stored in the queue cache, and by a randomly sampled video and a randomly sampled video in the queue cache.
6. The method for early stroke screening by combining contrastive learning and multimodal fusion according to claim 1, characterized in that: The method for extracting audio features of stroke patients comprises: Based on the fast Fourier method, the continuous audio signal is converted into a Fourier spectrum diagram in the form of a discrete signal; Based on the log-mel conversion method, the Fourier spectrum graph is converted into a log-mel spectrum graph; The log-mel spectrogram is input into a deep convolutional network for feature extraction to obtain multimodal audio features of stroke patients.
7. The method for early stroke screening by combining contrastive learning and multimodal fusion according to claim 1, characterized in that: A Transformers-based multimodal feature fusion early screening method, including: The stroke patient motion and audio features obtained in claims 1-6 are concatenated and input into Transformers to obtain multimodal fusion features of stroke; The stroke multimodal fusion feature extraction network and the multi-layer perceptron classifier are combined to construct a stroke multimodal fusion diagnosis model; The patient's recorded movements, voice and video are input into the stroke multimodal fusion diagnosis model to output the final stroke disease diagnosis result.
Citation Information
Cited By
Cerebral arterial thrombosis prediction system based on big data
CN120260924A
Ischemic stroke prediction system based on big data
CN120260924B
Cerebral stroke early recognition method and system based on continuous vowel and continuous voice fusion
CN120356489A
Hybrid supervision fusion method based on multi-modal medical data
CN121121368A
