Construction method of MRI image training set and Alzheimer's disease prediction model
The visual Transformer model framework performs linear transformation and position coding on the two-dimensional slices of MRI images, solving the problem that convolutional neural networks are difficult to deal with long-distance relationships in MRI images, and achieving accurate diagnosis of Alzheimer's disease.
Patent Information
- Application Number
- CN202410868545.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-18
AI Technical Summary
Convolutional neural networks are difficult to handle the long-term relationship of MRI images, making it impossible to accurately assist in the diagnosis of Alzheimer's disease.
Construct an MRI image training set and Alzheimer's disease prediction model, linearly transform and position encode the two-dimensional slices of MRI images through the visual Transformer model framework, and use a multi-head attention mechanism to capture long-term relationships between slices and reduce convolution and pooling operations to improve the computational efficiency and prediction performance of the model.
It realizes deep learning of long-term relationships between two-dimensional slices in MRI images, reduces the risk of over-fitting, improves the accuracy and generalization ability of Alzheimer's disease prediction models, and can accurately assist in the diagnosis of Alzheimer's disease. disease.
Smart Images

Figure CN118799283A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical data processing, and in particular to a method for constructing an MRI image training set and an Alzheimer's disease prediction model. Background Art
[0002] In the past, traditional machine learning methods were mostly used to classify patients' MRI images, and then assist in diagnosing whether the patient has Alzheimer's disease, such as holding vector machines and random forests. In recent years, deep learning methods have also been widely used in the classification of such MRI images, such as convolutional neural networks such as Alexnet and VGGNet. Convolutional neural networks use convolution operations to extract image features. This convolution operation can capture different features in the image in medical image classification tasks, such as capturing the lesion characteristics of local areas and differences in physiological structures. However, convolutional neural networks are not good at processing long-distance relationships of images, and most medical images are collected using professional equipment. Most of the images are stereo images stacked by multiple slices, especially MRI images are single-channel grayscale images, and are 3D images stacked by multiple two-dimensional slices. Convolutional neural networks are difficult to process the relationship between such image slices. If the feature relationship between long-distance slices is to be calculated, then the convolutional neural network needs to pass information through multiple convolutional layers to reach the target position, and the learning effect is poor, which often leads to image classification errors.
[0003] Therefore, there is an urgent need for a method for constructing an MRI image training set and an Alzheimer's disease prediction model that is good at processing long-distance relationships of images and can deeply learn the feature relationships between slices, so as to assist in the accurate diagnosis of Alzheimer's disease. Summary of the invention
[0004] The present invention provides a method for constructing an MRI image training set and an Alzheimer's disease prediction model, so as to solve the defect that the existing convolutional neural network is not good at processing the long-distance relationship of MRI images and has difficulty in capturing the characteristic relationship between slices, resulting in the inability to accurately assist in the diagnosis of Alzheimer's disease.
[0005] The present invention provides a method for constructing an MRI image training set, comprising:
[0006] Acquire an MRI image of a target group, wherein the target group includes an Alzheimer's disease patient group, a cognitive impairment patient group, and a normal person, the MRI image carries an attribute label of the target group, and the MRI image includes a plurality of two-dimensional slices, each of the plurality of two-dimensional slices carries the same attribute label as the MRI image to which it belongs;
[0007] Preprocessing the MRI images of the target group, wherein the preprocessing includes one or any combination of the following: AC-PC origin correction, skull stripping, structure registration, smoothing, normalization, and downsampling;
[0008] The preprocessed MRI images are subjected to data enhancement to obtain an MRI image training set.
[0009] The results of MRI volumetric measurements of patients with Alzheimer's disease and cognitive impairment showed that the hippocampal volume was significantly smaller than that of the normal population, indicating that these patients had degeneration, death, and an increase in the number of neurofibrillary tangles in the hippocampus. At the same time, the hippocampal volume of patients with Alzheimer's disease was also smaller than that of patients with cognitive impairment, and the cortical atrophy of patients with Alzheimer's disease was more extensive, while the earliest pathological changes in patients with cognitive impairment were located in the medial temporal lobe and entorhinal cortex.
[0010] According to a method for constructing an MRI image training set provided by the present invention, data enhancement is performed on the preprocessed MRI image to obtain the training set, comprising:
[0011] The preprocessed MRI images are data enhanced using the MONAI deep learning medical framework to obtain an MRI image training set, wherein the data enhancement includes any one of the following or any combination thereof: flipping, translation, and rotation.
[0012] A method for constructing an Alzheimer's disease prediction model provided by the present invention comprises:
[0013] Obtaining an MRI image training set obtained by the method for constructing an MRI image training set according to any one of the above;
[0014] Each two-dimensional slice of each MRI image in the MRI image training set is regarded as a single image patch as the model input, and an Alzheimer's disease prediction model is trained based on the visual Transformer model framework.
[0015] According to a method for constructing an Alzheimer's disease prediction model provided by the present invention, each two-dimensional slice of each MRI image in the MRI image training set is regarded as a single image block as a model input, and the Alzheimer's disease prediction model is trained based on the visual Transformer model framework, including:
[0016] For each MRI image, the Patch Embedding Layer of the visual Transformer model framework is used to linearly transform and encode multiple two-dimensional slices to obtain multiple slice vectors.
[0017] Through the fully connected layer and position encoding layer (Position Embedding Layer) of the visual Transformer model framework, multiple slice vectors are connected and position encoding information is set for multiple slice vectors to obtain multiple tokens, where the tokens record the sequential semantic information and relative position relationship between multiple two-dimensional slices;
[0018] According to multiple tokens, the feature matrix of each MRI image is obtained through the Transformer Encoder Layer of the visual Transformer model framework based on the multi-head attention mechanism;
[0019] According to the feature matrix of each MRI image in the MRI image training set, the MLP head classification layer (a layer structure ultimately used for classification) of the visual Transformer model framework is used to capture the long-range relationship between multiple two-dimensional slices of each MRI image and learn the global and local features between MRI images of different groups in the target group, so as to train an Alzheimer's disease prediction model.
[0020] According to a method for constructing an Alzheimer's disease prediction model provided by the present invention, the Transformer encoding layer includes a plurality of stacked encoder modules (Encoder Block), wherein each of the plurality of encoder modules includes a multi-head self-attention layer, and the feature matrix of each MRI image obtained based on the Transformer encoding layer of the visual Transformer model framework and the multi-head attention mechanism according to the plurality of tokens includes:
[0021] Multiple tokens are residually connected and layer-normalized through multiple encoder modules, where multiple tokens are first input into the next layer along different routes, combined with the superposition results of no operation and layer transformation, and then normalized;
[0022] According to the multiple tokens after residual connection and layer normalization, different output matrices are obtained through multiple autonomous layers, and the different output matrices are concat-operated and concatenated to obtain the feature matrix.
[0023] According to a method for constructing an Alzheimer's disease prediction model provided by the present invention, the multi-head self-attention layer includes multiple self-attention mechanism layers, and the multiple tokens after residual connection and layer normalization are used to obtain different output matrices through the multi-head self-power layer, and the different output matrices are concat-operated and spliced to obtain a feature matrix, including:
[0024] According to the multiple tokens after residual connection and layer normalization, the correlation and similarity between the two-dimensional slices of each combination of multiple two-dimensional slices are calculated through multiple self-attention mechanism layers to obtain different output matrices.
[0025] According to a method for constructing an Alzheimer's disease prediction model provided by the present invention, the expression of the self-attention mechanism layer is:
[0026] Q=X e ·W Q ,
[0027] K=X e ·W K ,
[0028] V=X e ·W V ,
[0029]
[0030] In the expression of the self-attention mechanism layer, Q represents the query matrix, K represents the key matrix, V represents the value matrix, and W Q , W K , W V Represents different linear transformation matrices, X e represents token, attentive represents self-attention, d k Represents the vector dimension.
[0031] The present invention also provides an Alzheimer's disease auxiliary diagnosis system, comprising:
[0032] The data receiving module is used to: receive the MRI image of the subject;
[0033] A classification module is used to obtain a category result of the MRI image of the subject based on the MRI image of the subject by using an Alzheimer's disease prediction model obtained by the method for constructing an Alzheimer's disease prediction model described in any of the above items, wherein the category result of the MRI image of the subject is any of the following: an Alzheimer's disease patient group category, a cognitive impairment patient group category, and a normal population category.
[0034] An Alzheimer's disease auxiliary diagnosis system provided by the present invention also includes:
[0035] The determination module is used to determine the category of the subject to be tested according to the category result of the MRI image of the subject to be tested, wherein the category of the subject to be tested is any one of the following: Alzheimer's disease patients, cognitive impairment patients, and normal people.
[0036] The present invention also provides an electronic device, comprising a processor and a memory storing a computer program, characterized in that when the processor executes the computer program, it implements any of the above-mentioned methods for constructing an MRI image training set and / or a method for constructing an Alzheimer's disease prediction model.
[0037] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned methods for constructing an MRI image training set and / or a method for constructing an Alzheimer's disease prediction model.
[0038] The present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute any of the above-mentioned methods for constructing an MRI image training set and / or a method for constructing an Alzheimer's disease prediction model.
[0039] The present invention provides a method for constructing an MRI image training set and an Alzheimer's disease prediction model, which has at least the following beneficial effects:
[0040] In terms of constructing an MRI image training set, the present invention performs AC-PC origin correction, skull stripping, structural registration, smoothing, normalization, and downsampling on the MRI images to obtain a standard brain map, remove some information-free spaces in the MRI images, and effectively reduce the computational burden of the neural network of the Alzheimer's disease prediction model and improve the computational efficiency of the neural network; and, using the MONAI deep learning medical framework to perform data enhancement on the MRI images can effectively reduce the probability of overfitting of the Alzheimer's disease prediction model, and at the same time, as the number of iterations increases, the classification performance of the Alzheimer's disease prediction model can reach an ideal state.
[0041] In terms of constructing an Alzheimer's disease prediction model, the Alzheimer's disease prediction model constructed by the present invention does not require convolution and pooling operations, and only needs to undergo linear transformation to extract features from two-dimensional slices of MRI images, greatly reducing the amount of calculation and storage space; and the Alzheimer's disease prediction model can capture and deeply learn the long-range relationship between two-dimensional slices in MRI images, such as global features such as structural atrophy of the entire brain area, accompanied by loss of brain neurons and functional abnormalities of nerve fibers in the brain, and local features, such as abnormal protein deposition in specific brain areas, neuronal damage and other accompanying inflammatory reactions, effectively ensuring the prediction performance and accuracy of the Alzheimer's disease prediction model, and can be used to accurately assist in the diagnosis of Alzheimer's disease; in addition, the Alzheimer's disease prediction model can be pre-trained to improve the generalization ability of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic flow chart of a method for constructing an MRI image training set and an Alzheimer's disease prediction model provided by the present invention.
[0044] Figure 2 An example of an MRI image.
[0045] Figure 3 Schematic diagram of the pre-processing process.
[0046] Figure 4 Schematic diagram of the structure of the Alzheimer's disease prediction model.
[0047] Figure 5 The Loss curve, ACC curve, and AUC curve when the Alzheimer's disease prediction model is trained according to the present invention are shown.
[0048] Figure 6 The Loss curve, ACC curve, and AUC curve are shown when training the Alzheimer's disease prediction model in the ablation experiment.
[0049] Figure 7 This is a structural schematic diagram of an Alzheimer's disease auxiliary diagnosis system provided by the present invention.
[0050] Figure 8 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments, and they should not be understood as limitations on the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In the description of the present invention, it should be understood that the terms used are only for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0052] Combine the following Figure 1-Figure 8 The present invention describes the method for constructing an MRI image training set and an Alzheimer's disease prediction model.
[0053] Figure 1 The present invention provides a method for constructing an MRI image training set and an Alzheimer's disease prediction model, which includes constructing an MRI image training set, constructing an Alzheimer's disease prediction model, and using the Alzheimer's disease prediction model. Figure 1 The method for constructing the MRI image training set and the Alzheimer's disease prediction model provided by the present invention may include:
[0054] Step S110, obtaining an MRI image of a target group, wherein the target group includes an Alzheimer's disease patient group, a cognitive impairment patient group, and a normal population, and the MRI image carries an attribute label of the target group, and the MRI image includes a plurality of two-dimensional slices, and each of the plurality of two-dimensional slices carries the same attribute label as the MRI image to which it belongs. For example, step S110 may obtain an MRI image of the target group from an open source medical database, or may first perform an MRI test on the target group to obtain the MRI image.
[0055] Step S120, preprocessing the MRI images of the target group, wherein the preprocessing includes: AC-PC origin correction, skull stripping, structure registration, smoothing, normalization, and down sampling.
[0056] For details, see Figure 2 During the MRI scanning process, the target group may have slight brain movements and non-standard postures, and the subjects' brains may be of different sizes and have slight structural differences between tissues. On the other hand, the MRI image itself has some noise. Therefore, step S120 pre-processes the MRI image of the target group. Figure 3 A schematic diagram of a pre-processing process is shown.
[0057] Regarding the AC-PC origin correction, the line connecting the midpoint of the posterior edge of the anterior commissure (AC) and the midpoint of the anterior edge of the posterior commissure (PC) is called the AC-PC line. The AC-PC origin correction can be performed using the SPM12 toolkit of the MATLAB software, and the AC-PC line is used as the baseline for making relevant adjustments to obtain a standard brain map.
[0058] Regarding skull stripping, step S120 can use the CAT12 toolkit of MATLAB software to perform skull stripping. The registered structure image is stripped of non-brain tissues and segmented into gray matter, white matter and other brain tissues.
[0059] Regarding structure registration, smoothing, and normalization, step S120 may register the relevant structure image to the Montreal Neurological Institute (MNI) standard space, and then perform smoothing and normalization processing to obtain the whole brain volume.
[0060] Regarding downsampling, step S120 can resample the MRI structural image after the aforementioned preprocessing to remove part of the information-free space to reduce the computational burden of the neural network and improve the computational efficiency of the neural network.
[0061] Step S130: Use the MONAI deep learning medical framework to perform data enhancement on the preprocessed MRI images to obtain an MRI image training set, wherein the data enhancement includes flipping, translation, and rotation.
[0062] Using online data enhancement during model training can reduce the occurrence of overfitting, and at the same time, as the number of iterations increases, the model classification performance can reach an ideal level.
[0063] Step S140: Treat each two-dimensional slice of each MRI image in the MRI image training set as a single image block as a model input, and train an Alzheimer's disease prediction model based on the visual Transformer model framework.
[0064] In one embodiment, step S140 may include:
[0065] For each MRI image, the Patch Embedding Layer of the visual Transformer model framework is used to linearly transform and encode multiple two-dimensional slices to obtain multiple slice vectors.
[0066] Through the fully connected layer and position encoding layer (Position Embedding Layer) of the visual Transformer model framework, multiple slice vectors are connected and position encoding information is set for multiple slice vectors to obtain multiple tokens, where the tokens record the sequential semantic information and relative position relationship between multiple two-dimensional slices;
[0067] According to multiple tokens, the feature matrix of each MRI image is obtained through the Transformer Encoder Layer of the visual Transformer model framework based on the multi-head attention mechanism;
[0068] According to the feature matrix of each MRI image in the MRI image training set, the MLP head classification layer (a layer structure ultimately used for classification) of the visual Transformer model framework is used to capture the long-range relationship between multiple two-dimensional slices of each MRI image and learn the global and local features between MRI images of different groups in the target group, so as to train an Alzheimer's disease prediction model.
[0069] Among them, the Transformer encoding layer includes multiple stacked encoder modules (Encoder Block), each of the multiple encoder modules includes a multi-head self-attention layer, the multi-head self-attention layer includes multiple self-attention mechanism layers, and multiple encoder modules can be used to perform residual connection and layer normalization on multiple tokens. First, multiple tokens are input into the next layer according to different routes, combined with the superposition result of no operation and layer transformation, and then normalized. Then, according to the multiple tokens after residual connection and layer normalization, the correlation and similarity between the two-dimensional slices of each combination of multiple two-dimensional slices are calculated through the multiple self-attention mechanism layers of the multi-head autonomous layer to obtain different output matrices, and the different output matrices are Concat operated and spliced to obtain a feature matrix.
[0070] Among them, the expression of the self-attention mechanism layer is:
[0071] Q=X e ·W Q ,
[0072] K=X e ·W K ,
[0073] V=X e ·W V ,
[0074]
[0075] In the expression of the self-attention mechanism layer, Q represents the query matrix, K represents the key matrix, V represents the value matrix, and W Q , W K , W V Represents different linear transformation matrices, X e represents token, attentive represents self-attention, d k Represents the vector dimension.
[0076] Specifically, the structure of the Alzheimer's disease prediction model is as follows Figure 4As shown in the figure. The input of the embedding layer is a preprocessed MRI image with a size of 160×160×160, representing 160 two-dimensional slices of size 160×160. Each two-dimensional slice is input as a patch into the embedding layer. After linear transformation, the two-dimensional slice matrix is encoded into a vector D. Then the 160 vectors D are connected in the fully connected layer. When passing through the Position Embedding layer, position encoding information is added to the vector to obtain the tokens required for the input Transformer Encoder layer. These tokens retain the sequential semantic information between slices of Alzheimer's disease images, which records the relative position relationship between slices.
[0077] The Transformer Encoder layer is composed of multiple Encoder Block modules stacked together. In each EncoderBlock, the input MRI image slice vector is first fed into a multi-head self-attention layer. This layer is used to calculate the attention weight corresponding to each position in the input sequence to capture the relationship between different slices.
[0078] First, residual connection and layer normalization are performed in the Layer Normalization operation, and the input slice vector tokens are input to the next layer according to different routes. The superposition results of no operation and layer transformation are combined, and then layer normalization is performed. This helps alleviate the gradient vanishing problem of the data set during training and speeds up the training process.
[0079] The function of the multi-head attention structure is to calculate the correlation between the various regions of the image. Here, it focuses on the relationship between the slices of the MRI image. Multi-Head Attention contains multiple Self-Attention layers. Self-Attention introduces the concepts of Query, Key, and Value. The slice vector X = {x1, x2, x3, ...x n}Through the linear transformation matrix W Q , W K , W V Q, K, and V are calculated.
[0080] These three matrices are equally distributed to different head attention structures to calculate the correlation and similarity of each group between each slice. Each slice vector will be matrix multiplied according to the matrices Q and K, and finally combined with the vector dimension d and K T And softmax calculation, and finally multiply it with V to get Attention.
[0081] Passing the input X to different Self-Attentions of the multi-head attention structure can get different output matrices. These output matrices are then concatenated together after the Concat operation and passed to a fully connected layer to get the final output of the Multi-Head Attention.
[0082] After the calculation of the Transformer Enconder layer, the dimension of the output vector is the same as before entering the Transformer Enconder layer, and enters the MLP head classification layer. The MLP head classification layer consists of Layer Norm and linear layers. The class token vector is extracted from the input variable to obtain the classification result. The result represents the MRI image category predicted by the model, including Alzheimer's disease (AD), patients with cognitive impairment (MCI), and normal people (CN).
[0083] Furthermore, this embodiment uses the classification performance index accuracy (ACC) and area under the curve (AUC) as the performance evaluation indicators of the Alzheimer's disease prediction model of the present invention on the ADNI data set. The larger the values of the two, the better the performance of the classification method. In the classification task, the following concepts are included: TP represents the number of true positive samples, that is, the number of samples whose predicted values and true values are both positive; TN represents the number of true negative samples, that is, the number of samples whose predicted values and true values are both negative; FP represents the number of false positive samples, that is, the number of samples whose predicted values are positive but the true values are negative; FN represents the number of false negative samples, that is, the number of samples whose predicted values are negative but the true values are positive. The calculation formula for ACC is:
[0084]
[0085] In the positive and negative experimental sample sets, a sample is randomly selected respectively, and a random prediction is made for them. The probability of a positive sample being predicted as positive is P0, and the probability of a negative sample being predicted as positive is P1. There are a total of T*N sample pairs (where the number of positive samples and negative samples in the sample set is T, N respectively). In these sample pairs, the probability that the predicted probability P0 is greater than P1 is defined as AUC (area under the curve). Thus, the calculation formula for AUC is:
[0086] in
[0087] Experimental design and parameter setting
[0088] All experiments were conducted on the same computer, based on the Pytorch deep learning framework, the model training environment was python3.7, torch-1.7.1 and torchvision-0.8.2, the hardware configuration included 128g running memory, and an NVIDIA GTX 3090 GPU with 24GB of video memory was used for acceleration. The data set was randomly shuffled and divided into training and test sets in a ratio of 8:2. According to the grouping of the collected ADNI data set, a total of 4 groups of experiments were designed in this embodiment: ①AD vs CN group, ②AD vs MCI group, ③CN vs MCI group and ④AD vs CN vs MCI group.
[0089] Through multiple adjustments and tests, it is found that the use of online data enhancement in the model training process can reduce the occurrence of overfitting, and the model classification performance can reach an ideal level as the number of iterations increases. Therefore, the Alzheimer's disease prediction model of the present invention uses random flipping, translation, rotation and other methods to enhance the training data. For the setting of the optimizer and parameters, the experiment is also adjusted and tested many times, and the optimal training parameter settings are finally determined. This embodiment uses the Adam optimizer, and sets the learning rate to 0.00001, the weight decay (weight_decay) to 0.0001, the maximum number of iterations epoch to 3500, the batch size (batch_size) to 4, and the random number seed seed to 42. Each iteration of an epoch in the model training process calculates the A CC and AUC values on the test set once.
[0090] Experimental Results
[0091] The ACC and AUC values of the AD vs CN group and the AD vs MCI group are both 1, indicating that the LC-ViT method can effectively distinguish AD patients, normal cognitive control groups, and cognitive impairment patient groups. In the CN vs MCI group, the classification accuracy was 0.985 and the AUC was 0.987. For the AD vs CN vs MCI group, the classification accuracy and AUC were 0.948 and 0.986, respectively. These data show that the LC-ViT classification method has very high ACC and AUC values for different experimental groups. Therefore, the Alzheimer's disease prediction model of the present invention can not only effectively distinguish different patient groups, but also has good stability and reliability. In addition, by comparing the performance with ResNet-50, it can be found that the Alzheimer's disease prediction model of the present invention has a better effect on the classification of MRI images of Alzheimer's disease. This is because ViT has a stronger global characteristic and can highlight the correlation between the various parts of the image, that is, the connection between the slices of the MRI image.
[0092] Table 1 Comparison of ACC and AUC performance between LC-ViT and ResNet-50
[0093]
[0094] Figure 5 The Loss, ACC and AUC curves of the Alzheimer's disease prediction model of the present invention during the training process are shown. The training process uses 4 sets of pre-processed MRI image data sets. As shown in (a), the model classification loss decreases rapidly during the first 500 training times, and after the number of iterations reaches 3000, the model training loss tends to be flat. It can be found from (b) and (c) that after 500 training times, the ACC and AUC of the model classification have small fluctuations, but tend to be stable overall. Therefore, after 500 training times, the model has basically converged.
[0095] Ablation experiment
[0096] In order to demonstrate the effect of the data preprocessing process on the classification performance of the Alzheimer's disease prediction model of the present invention, this embodiment performs an ablation experiment on this step. The control group directly uses the original image of the ADNI data set as the input of the Alzheimer's disease prediction model of the present invention without any data preprocessing process. The experimental results are shown in Table 2. It can be seen from Table 2 that although the AUC value of the Alzheimer's disease prediction model of the present invention is slightly lower when classifying the AD vs CN vs MCI data group, it has better performance in other cases. This shows that the data preprocessing process has a positive effect on improving the performance of the Alzheimer's disease prediction model of the present invention.
[0097] Table 2 Ablation experiment
[0098]
[0099] In addition, this example also gives the Loss, ACC and AUC data obtained by training the model without data preprocessing. The results are as follows: Figure 6 As shown by the middle curve. Figure 6 It can be seen that when the original images of the ADNI data set are used to directly train the model, the model classification loss can still steadily decrease, and the classification effect gradually improves (ACC and AUC values increase), which indirectly proves the advantages of the Alzheimer's disease prediction model of the present invention. However, compared with the method of missing data preprocessing steps, the ACC and AUC values after the model is stabilized are lower. This shows that data preprocessing can play a certain role.
[0100] After the Alzheimer's disease prediction is obtained through training, the MRI image of the subject can be received in step S150, and the MRI image of the subject can be input into the Alzheimer's disease prediction model through step S160 to obtain the category result of the MRI image of the subject, wherein the category result of the MRI image of the subject is any one of the following: Alzheimer's disease patient group category, cognitive impairment patient group category, normal population category, and then step S170 is performed to determine the category of the subject according to the category result of the MRI image of the subject, wherein the category of the subject is any one of the following: Alzheimer's disease patient, cognitive impairment patient, normal person.
[0101] It should be noted that the execution subject of the MRI image training set and the method for constructing the Alzheimer's disease prediction model provided by the present invention can be any terminal-side device that meets the technical requirements, such as an Alzheimer's disease prediction device.
[0102] The present invention provides a method for constructing an MRI image training set and an Alzheimer's disease prediction model, which has at least the following beneficial effects:
[0103] In terms of constructing an MRI image training set, the present invention performs AC-PC origin correction, skull stripping, structural registration, smoothing, normalization, and downsampling on the MRI images to obtain a standard brain map, remove some information-free spaces in the MRI images, and effectively reduce the computational burden of the neural network of the Alzheimer's disease prediction model and improve the computational efficiency of the neural network; and, using the MONAI deep learning medical framework to perform data enhancement on the MRI images can effectively reduce the probability of overfitting of the Alzheimer's disease prediction model, and at the same time, as the number of iterations increases, the classification performance of the Alzheimer's disease prediction model can reach an ideal state.
[0104] In terms of constructing an Alzheimer's disease prediction model, the Alzheimer's disease prediction model constructed by the present invention does not require convolution and pooling operations, and only needs to undergo linear transformation to extract features from two-dimensional slices of MRI images, greatly reducing the amount of calculation and storage space; and the Alzheimer's disease prediction model can capture and deeply learn the long-range relationship between two-dimensional slices in MRI images, such as global features such as structural atrophy of the entire brain area, accompanied by loss of brain neurons and functional abnormalities of nerve fibers in the brain, and local features, such as abnormal protein deposition in specific brain areas, neuronal damage and other accompanying inflammatory reactions, effectively ensuring the prediction performance and accuracy of the Alzheimer's disease prediction model, and can be used to accurately assist in the diagnosis of Alzheimer's disease; in addition, the Alzheimer's disease prediction model can be pre-trained to improve the generalization ability of the model.
[0105] The Alzheimer's disease auxiliary diagnosis system provided by the present invention is described below.
[0106] Reference Figure 7 The present invention provides an auxiliary diagnosis system for Alzheimer's disease, which may include:
[0107] The data receiving module is used to: receive the MRI image of the subject;
[0108] A classification module is used to obtain a classification result of the MRI image of the subject according to the MRI image of the subject by using an Alzheimer's disease prediction model obtained by the method for constructing an Alzheimer's disease prediction model described in any of the above items, wherein the classification result of the MRI image of the subject is any of the following: a group category of Alzheimer's disease patients, a group category of cognitive impairment patients, and a group category of normal people;
[0109] The determination module is used to determine the category of the subject to be tested according to the category result of the MRI image of the subject to be tested, wherein the category of the subject to be tested is any one of the following: Alzheimer's disease patients, cognitive impairment patients, and normal people.
[0110] After the MRI test of the subject is performed and the MRI image is obtained, the MRI image of the subject can be directly input into the Alzheimer's disease auxiliary diagnosis system. The data receiving module receives the MRI image of the subject, and the classification module predicts the category result of the MRI image of the subject through the Alzheimer's disease prediction model. The judgment module then judges the category of the subject based on the category result of the MRI image of the subject. Finally, the Alzheimer's disease auxiliary diagnosis system outputs the category of the subject as an Alzheimer's disease patient, a cognitive impairment patient or a normal person, which can assist doctors in accurately diagnosing whether the subject has Alzheimer's disease and improve diagnostic efficiency.
[0111] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to perform the following steps:
[0112] Receiving an MRI image of a subject;
[0113] According to the MRI image of the subject, the Alzheimer's disease prediction model obtained by the Alzheimer's disease prediction model construction method according to any one of the above items is used to obtain the category result of the MRI image of the subject, wherein the category result of the MRI image of the subject is any one of the following: Alzheimer's disease patient group category, cognitive impairment patient group category, and normal population category;
[0114] The category of the subject to be tested is determined according to the category result of the MRI image of the subject to be tested, wherein the category of the subject to be tested is any one of the following: an Alzheimer's disease patient, a cognitive impairment patient, and a normal person.
[0115] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0116] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can perform the following steps:
[0117] Receiving an MRI image of a subject;
[0118] According to the MRI image of the subject, the Alzheimer's disease prediction model obtained by the Alzheimer's disease prediction model construction method according to any one of the above items is used to obtain the category result of the MRI image of the subject, wherein the category result of the MRI image of the subject is any one of the following: Alzheimer's disease patient group category, cognitive impairment patient group category, and normal population category;
[0119] The category of the subject to be tested is determined according to the category result of the MRI image of the subject to be tested, wherein the category of the subject to be tested is any one of the following: an Alzheimer's disease patient, a cognitive impairment patient, and a normal person.
[0120] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented to perform the following steps when executed by a processor:
[0121] Receiving an MRI image of a subject;
[0122] According to the MRI image of the subject, the Alzheimer's disease prediction model obtained by the Alzheimer's disease prediction model construction method according to any one of the above items is used to obtain the category result of the MRI image of the subject, wherein the category result of the MRI image of the subject is any one of the following: Alzheimer's disease patient group category, cognitive impairment patient group category, and normal population category;
[0123] The category of the subject to be tested is determined according to the category result of the MRI image of the subject to be tested, wherein the category of the subject to be tested is any one of the following: an Alzheimer's disease patient, a cognitive impairment patient, and a normal person.
[0124] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for constructing an MRI image training set, characterized in that: include: Acquire an MRI image of a target group, wherein the target group includes an Alzheimer's disease patient group, a cognitive impairment patient group, and a normal person, the MRI image carries an attribute label of the target group, and the MRI image includes a plurality of two-dimensional slices, each of the plurality of two-dimensional slices carries the same attribute label as the MRI image to which it belongs; Preprocessing the MRI images of the target group, wherein the preprocessing includes one or any combination of the following: AC-PC origin correction, skull stripping, structure registration, smoothing, normalization, and downsampling; The preprocessed MRI images are subjected to data enhancement to obtain an MRI image training set.
2. The method for constructing an MRI image training set according to claim 1, characterized in that: The data enhancement is performed on the preprocessed MRI images to obtain a training set, including: The preprocessed MRI images are data enhanced using the MONAI deep learning medical framework to obtain an MRI image training set, wherein the data enhancement includes any one of the following or any combination thereof: flipping, translation, and rotation.
3. A method for constructing an Alzheimer's disease prediction model, characterized in that: include: Obtaining an MRI image training set obtained by the method for constructing an MRI image training set according to claim 1 or 2; Each two-dimensional slice of each MRI image in the MRI image training set is regarded as a single image block as the model input, and an Alzheimer's disease prediction model is trained based on the visual Transformer model framework.
4. The method for constructing an Alzheimer's disease prediction model according to claim 3, characterized in that: The method regards each two-dimensional slice of each MRI image in the MRI image training set as a single image block as the model input, and trains an Alzheimer's disease prediction model based on the visual Transformer model framework, including: For each MRI image, multiple two-dimensional slices are linearly transformed and encoded through the image block embedding layer of the visual Transformer model framework to obtain multiple slice vectors; Through the fully connected layer and position encoding layer of the visual Transformer model framework, multiple slice vectors are connected and position encoding information is set for multiple slice vectors to obtain multiple tokens, where the tokens record the sequential semantic information and relative position relationship between multiple two-dimensional slices; According to multiple tokens, the feature matrix of each MRI image is obtained through the Transformer encoding layer of the visual Transformer model framework based on the multi-head attention mechanism; According to the feature matrix of each MRI image in the MRI image training set, the MLPhead classification layer of the visual Transformer model framework is used to capture the long-range relationship between multiple two-dimensional slices of each MRI image and learn the global and local features between MRI images of different groups in the target group, so as to train an Alzheimer's disease prediction model.
5. The method for constructing an Alzheimer's disease prediction model according to claim 4, characterized in that: The Transformer encoding layer includes multiple stacked encoder modules, wherein each of the multiple encoder modules includes a multi-head self-attention layer. According to the multiple tokens, through the Transformer encoding layer of the visual Transformer model framework, based on the multi-head attention mechanism, the feature matrix of each MRI image is obtained, including: Multiple tokens are residually connected and layer-normalized through multiple encoder modules, where multiple tokens are first input into the next layer along different routes, combined with the superposition results of no operation and layer transformation, and then normalized; According to the multiple tokens after residual connection and layer normalization, different output matrices are obtained through multiple autonomous layers, and the different output matrices are concat-operated and concatenated to obtain the feature matrix.
6. The method for constructing an Alzheimer's disease prediction model according to claim 5, characterized in that: The multi-head self-attention layer includes multiple self-attention mechanism layers. According to the multiple tokens after residual connection and layer normalization, different output matrices are obtained through the multi-head self-attention layer. Concat operations are performed on different output matrices and they are spliced to obtain feature matrices, including: According to the multiple tokens after residual connection and layer normalization, through multiple self-attention mechanism layers, the correlation and similarity between the two-dimensional slices of each combination of multiple two-dimensional slices are calculated to obtain different output matrices; and / or, The expression of the self-attention mechanism layer is: Q=X e ·W Q , K=X e ·W K , V=X e ·W V , Matrix, V represents the value matrix, W Q , W K , W V Represents different linear transformation matrices, X e represents token, attentive represents self-attention, d k Represents the vector dimension.
7. An Alzheimer's disease auxiliary diagnosis system, characterized in that: include: The data receiving module is used to: receive the MRI image of the subject; A classification module is used to: obtain the category result of the MRI image of the subject according to the MRI image of the subject by using the Alzheimer's disease prediction model obtained by the method for constructing the Alzheimer's disease prediction model according to any one of claims 3 to 6, wherein the category result of the MRI image of the subject is any one of the following: Alzheimer's disease patient group category, cognitive impairment patient group category, and normal population category.
8. The Alzheimer's disease auxiliary diagnosis system according to claim 7, characterized in that: Also includes: The determination module is used to determine the category of the subject to be tested according to the category result of the MRI image of the subject to be tested, wherein the category of the subject to be tested is any one of the following: Alzheimer's disease patients, cognitive impairment patients, and normal people.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor performs the following steps: Receiving an MRI image of a subject; According to the MRI image of the subject, the Alzheimer's disease prediction model is obtained by the method for constructing an Alzheimer's disease prediction model according to any one of claims 3 to 6, and the category result of the MRI image of the subject is obtained, wherein the category result of the MRI image of the subject is any one of the following: Alzheimer's disease patient group category, cognitive impairment patient group category, and normal population category.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by the processor to perform the following steps: Receiving an MRI image of a subject; According to the MRI image of the subject, the Alzheimer's disease prediction model is obtained by the method for constructing an Alzheimer's disease prediction model according to any one of claims 3 to 6, and the category result of the MRI image of the subject is obtained, wherein the category result of the MRI image of the subject is any one of the following: Alzheimer's disease patient group category, cognitive impairment patient group category, and normal population category.
Citation Information
Cited By
Lightweight rapid forecasting system and method for typhoon and storm surge
CN119805625A
