Heart magnetic resonance image automatic diagnosis method and system based on semi-supervised learning
Through the automatic diagnosis method of cardiac magnetic resonance images based on semi-supervised learning, using semi-supervised segmentation network and double-layer integrated classifier, the problems of segmentation accuracy and computational complexity in automatic diagnosis of cardiac magnetic resonance images are solved, and high-precision automatic diagnosis is achieved. Diagnosis and disease prediction.
Patent Information
- Application Number
- CN202410865712.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-20
AI Technical Summary
Existing automatic diagnosis methods for cardiac magnetic resonance imaging have deficiencies in segmentation accuracy and dependence on unlabeled data, and have high computational complexity, making it difficult to effectively utilize a small amount of labeled data for high-precision diagnosis.
An automatic diagnosis method for cardiac magnetic resonance images based on semi-supervised learning is adopted. The semi-supervised segmentation network is combined with channel-first convolutional attention and complementary consistency decoders to generate pseudo labels for unsupervised loss calculation, and a two-layer ensemble classifier is used to classify diseases. Prediction, using a small amount of annotated data to achieve high-precision segmentation and diagnosis.
It realizes fully automatic cardiac image segmentation, clinical index calculation and disease prediction, improves the accuracy and efficiency of diagnosis, and overcomes the problems of lack of annotated samples and computational complexity.
Smart Images

Figure CN118675733A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of automatic diagnosis of cardiac magnetic resonance images, and specifically relates to an automatic diagnosis method and system of cardiac magnetic resonance images based on semi-supervised learning. Background Art
[0002] Globally, cardiovascular disease has become the leading cause of death, bringing a significant burden to the world's public health. In the diagnosis of cardiovascular disease, cardiac function analysis has always played a vital role. Cardiac magnetic resonance imaging provides high-resolution images without radiation. It has gradually become the most commonly used method for cardiac diagnosis and is known as the "gold standard" for heart disease diagnosis.
[0003] Among the traditional cardiac image segmentation methods, the main ones are based on prior knowledge. These methods require interaction with experts and have certain differences in segmentation results. Since the basic information of the heart (shape, etc.) needs to be specified, this type of method is prone to overfitting, and the segmentation effect is poor for data whose basic information does not fall within the specified range.
[0004] Deep learning-based algorithms have achieved satisfactory results in the automatic segmentation of cardiac images. However, such methods rely on a large amount of labeled data. To avoid this problem, cardiac image segmentation methods based on semi-supervised learning have become a new research direction. Semi-supervised learning combines the advantages of supervised learning and unsupervised learning, without the need for external interaction, and improves learning performance by automatically utilizing unlabeled data.
[0005] The self-attention mechanism enables the segmentation network to adaptively focus on important parts, effectively improving the performance of the network. However, this type of mechanism has a big problem in terms of computational complexity. To solve this problem, related studies have proposed a more efficient multi-scale convolutional attention to replace self-attention, which has achieved good results. However, these methods still only focus on important areas in space, and lack the attention to important objects in the channel dimension.
[0006] The method of automatic cardiac diagnosis based on cardiac images mainly classifies diseases after automatically calculating relevant clinical indicators based on images. However, these methods still have the problem of insufficient segmentation accuracy and excessive reliance on unlabeled data. Therefore, it is an important direction of current technology research and development to combine effective methods and design a reasonable semi-supervised segmentation architecture to overcome the problem of lack of labeled cardiac image samples to a certain extent, obtain reliable cardiac image segmentation results, and further perform automatic diagnosis. Summary of the invention
[0007] The purpose of the present invention is to provide an automatic diagnosis method for cardiac magnetic resonance imaging based on semi-supervised learning in order to solve the above problems, so as to realize fully automatic and high-precision cardiac image segmentation, clinical index calculation, classification feature extraction and disease prediction.
[0008] To achieve the above objectives, the technical solution adopted by the present invention is: a method for automatic diagnosis of cardiac magnetic resonance imaging based on semi-supervised learning, comprising the following steps:
[0009] Step 1: Acquire cardiac magnetic resonance imaging data, including image labels of two phases, end-diastole and end-systole, and some manually annotated labels, and perform standardization on the image labels and manually annotated labels;
[0010] Step 2: Divide the image data processed in step 1 into a training set and a test set and send them to a semi-supervised segmentation network; use the training set for network training and cross-validation, fine-tune the hyperparameters to the optimal model based on the validation results, and use the optimal model to perform segmentation reasoning on the test set to obtain labeled images;
[0011] Step 3: Send the segmentation reasoning results to the feature extraction module for case-by-case feature extraction, divide all features into training sets and test sets after standardization, and send them to the disease prediction classifier; use the training set data for classifier training and cross-validation, fine-tune the hyperparameters to the optimal model based on the validation results, use the optimal model to perform classification reasoning on the test set, and obtain the disease prediction results;
[0012] Step 4: Perform diagnostic evaluation based on the segmentation results obtained in step 2 and the feature extraction information and classification reasoning results in step 3 to achieve disease prediction.
[0013] In some possible embodiments, the semi-supervised segmentation network includes an encoder and a decoder, the decoder includes two complementary auxiliary decoders and a main decoder, and the two complementary auxiliary decoders and the main decoder share one encoder output;
[0014] When there are training image labels, the loss is calculated using the probability map generated by the main decoder and the two complementary auxiliary decoders and the manually annotated labels to perform supervision loss;
[0015] When there is no training image label, the probability map generated by the main decoder and the two complementary auxiliary decoders forms a pseudo label through a sharpening function;
[0016] The pseudo-labels generated by one of the three decoders are compared with the probability maps generated by the remaining two decoders to calculate the unsupervised loss;
[0017] In some possible embodiments, the first four encoding layers of the encoder are each followed by a channel-priority convolutional attention module.
[0018] In some possible embodiments, the supervised loss uses dice loss; and the unsupervised loss uses the mean square error between the pseudo label and the probability map.
[0019] In some possible embodiments, the cardiac structure classification features include volume features, design features, and additional features; the volume features include calculations of volume, mass, and ejection fraction;
[0020] The volume calculation formula is as follows:
[0021] V=∑ i ∑ j ∑ k n×s
[0022] Among them, n represents the number of voxel points in this layer, and s represents the spatial resolution;
[0023] The calculation formula of ventricular ejection fraction is as follows:
[0024]
[0025] Among them, V ED represents the end-diastolic ventricular volume, V ES represents the end-systolic ventricular volume;
[0026] The formula for calculating myocardial mass is as follows:
[0027] M myo =V myo ×ρ myo
[0028] Among them, V myo represents the myocardial volume, ρ myo Indicates myocardial density;
[0029] Additional features include the height, weight, and calculated body surface area of each patient provided by the dataset. The body surface area is calculated as:
[0030]
[0031] Among them, Height is the patient's height, and Weight is the patient's weight;
[0032] The designed features are features that describe the change of myocardial wall thickness. Assuming that i and e are the sets of pixels corresponding to the inner contour and the outer contour, respectively, the myocardial wall thickness is the set of the shortest Euclidean distances from a pixel in the inner contour i to any pixel in the outer contour e. The calculation formula of myocardial wall thickness in the short-axis SA slice is:
[0033]
[0034] Among them, MAT represents the myocardial wall thickness; SA represents the short axis, d represents the shortest Euclidean distance; i represents the inner contour, and e represents the outer contour.
[0035] In some possible embodiments, the volume characteristics of the cardiac structure include end-diastolic left ventricular volume, end-systolic left ventricular volume, end-diastolic right ventricular volume, end-systolic right ventricular volume, end-systolic myocardial volume and myocardial mass.
[0036] In some possible embodiments, the disease prediction classifier is a two-layer integrated classifier, including:
[0037] The first layer is a general classifier that uses all classification features to perform multi-class classification of the patient's heart disease;
[0038] The second-layer disease-specific classifier uses some classification features related to specific heart diseases to perform secondary classification of patients in specific categories after the first-layer classification;
[0039] The first-layer general classifier is an integration of a random forest classifier and a support vector machine classifier through a soft voting mechanism;
[0040] The second-layer disease-specific classifier is a multi-layer perceptron classifier, which is used to further classify dilated cardiomyopathy and old myocardial infarction.
[0041] The present invention also discloses a cardiac magnetic resonance imaging automatic diagnosis system based on semi-supervised learning, comprising:
[0042] Data acquisition module: acquire cardiac magnetic resonance imaging data, including image labels of the end-diastole and end-systole phases and some manually annotated labels, and perform standardization on the image labels and manually annotated labels;
[0043] Semi-supervised segmentation module: divides the standardized image data into training set and test set, and sends them to the semi-supervised segmentation network for training and reasoning;
[0044] Feature extraction module: The segmentation inference results are sent to this module for case-by-case feature extraction and feature standardization of all features;
[0045] Disease prediction module: The standardized features are divided into training sets and test sets, and sent to the disease prediction classifier for training and reasoning to obtain disease prediction results.
[0046] Evaluation module: Perform diagnostic evaluation based on the segmentation results obtained by the semi-supervised segmentation module, the feature extraction information in the feature extraction module, and the classification reasoning results in the disease prediction module to achieve disease prediction.
[0047] The present invention also discloses an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the above-mentioned method for automatic diagnosis of cardiac magnetic resonance imaging based on semi-supervised learning.
[0048] The present invention also discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the above-mentioned method for automatic diagnosis of cardiac magnetic resonance imaging based on semi-supervised learning.
[0049] Beneficial effects of the present invention: The present invention proposes a semi-supervised cardiac image automatic segmentation and auxiliary diagnosis model based on channel prior convolutional attention and complementary consistency-based semi-supervised segmentation structure. The model uses a small amount of labeled data to obtain high-quality segmentation results, and then reconstructs and evaluates the volume of the cardiac structure, thereby calculating clinical indicators suitable for disease identification, classification feature extraction and disease prediction. At the same time, the present invention uses machine learning classifiers to design a two-layer ensemble classifier, and uses classifier integration as a means of regularization and feature importance balance, and uses a two-layer classifier to further optimize the classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a schematic diagram of the semi-supervised automatic segmentation and auxiliary diagnosis process of the present invention.
[0051] Figure 2 Schematic diagram of the network structure of the semi-supervised cardiac image segmentation of the present invention.
[0052] Figure 3 This is a structural diagram of the double-layer integrated classifier of the present invention. DETAILED DESCRIPTION
[0053] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings. The description in this part is only exemplary and explanatory and should not have any limiting effect on the protection scope of the present invention.
[0054] like Figure 1 As shown, the present invention provides a method for automatic diagnosis of cardiac magnetic resonance imaging based on semi-supervised learning, comprising the following steps:
[0055] S100: Acquire cardiac magnetic resonance imaging data, including image labels of two phases, end-diastole and end-systole, and some manually annotated labels, and perform standardization processing on the image labels and manually annotated labels.
[0056] Among them, the process of obtaining cardiac magnetic resonance imaging data and standardizing the labels involves cardiac magnetic resonance imaging (CMR) technology, which is used here to capture images of the heart at different time points, that is, at the two main phases of the cardiac cycle - end-diastolic (End-Diastolic) and end-systolic (End-Systolic). These images will be labeled or annotated to determine the boundaries of cardiac structures, such as the left ventricle and the right ventricle. The image data obtained includes; end-diastolic images; magnetic resonance images at the end of myocardial diastole, where the state of the largest cardiac cavity volume can be observed; end-systolic images; magnetic resonance images at the end of myocardial contraction, when the cardiac cavity volume is the smallest, and the heart's ability to eject blood can be seen. In addition to the image labels automatically obtained by the imaging device, there are also some manually annotated labels, which are usually labeled by professional medical personnel based on clinical knowledge to ensure the medical accuracy of the data.
[0057] The steps to standardize the labels here usually include adjusting the size, brightness, contrast, etc. of the image data to meet the unified format of the network model input and ensure the consistency and accuracy of the manually annotated labels. The purpose of standardization is to reduce the differences within the data set and improve the generalization ability of the algorithm. The input needs to be standardized to eliminate the distribution differences between images, which helps the network converge quickly during training.
[0058] S200: Divide the image data processed in step S100 into a training set and a test set and send them into a semi-supervised segmentation network; use the training set for network training and cross-validation, fine-tune the hyperparameters to the optimal model according to the validation results, and use the optimal model to perform segmentation reasoning on the test set to obtain labeled images.
[0059] The processed image data is divided into two parts: one as a training set and the other as a test set. The training set contains data with known labels, which is used to teach the semi-supervised segmentation network how to correctly segment images. Semi-supervised learning is particularly suitable for situations where labeled data is scarce or expensive to obtain. The test set is a data set used to evaluate the performance of the trained model, which does not participate in the training process.
[0060] In semi-supervised learning, the model is usually first trained with a small amount of labeled data (i.e., training set). Through cross-validation, the model is trained and validated on different subsets of data, which can improve the generality and accuracy of the model. Each time, a different data is used as the validation set, and the rest is used as the training set, and the process is repeated. After each round of validation, the hyperparameters, which are high-level parameters that control the learning process, such as learning rate, number of network layers, etc., are adjusted or "fine-tuned" based on the performance of the model. The goal is to find the best parameter settings, that is, the optimal model, which can achieve the best segmentation performance on new data.
[0061] Finally, this optimal model will be applied to the test set, and the model will perform segmentation reasoning on the data, that is, predict the probability that each pixel belongs to a specific structure of the heart. Because the test set contains data that was not involved in the training, the performance of the model on this can tell us its ability to handle unknown data. The final output is a labeled magnetic resonance image. This means that the images in the test set have now been identified and labeled with different structures of the heart through the model, allowing for more accurate quantitative analysis, such as measuring the volume of each heart cavity or evaluating the quality of the myocardium.
[0062] refer to Figure 2 In one possible embodiment, a semi-supervised segmentation network is based on U-Net, including an encoder and a decoder, wherein the first four encoding layers of the encoder are each followed by a CPCA (channel-priority convolutional attention) module of corresponding size. The decoder includes two complementary auxiliary decoders and a main decoder, and the two complementary auxiliary decoders and the main decoder share an encoder output. The shared encoder is used to reduce the deviation caused by feature extraction and achieve efficient and accurate semi-supervised automatic segmentation. The encoder is responsible for extracting features from the input image; its output is a high-level abstract feature representation, which usually involves reducing the size of the image data and highly compressing the information. The decoder is responsible for reconstructing the target from the feature representation of the encoder, such as generating a probability map of the same size as the original image in the segmentation task, indicating the classification of each pixel in the image.
[0063] The decoder contains a main decoder and two auxiliary decoders. The complementary auxiliary decoders are responsible for processing different features of the encoder output or providing auxiliary information from different angles to improve the performance of the main decoder. The three decoders use a shared encoder to help reduce feature extraction bias that may occur in different decoding paths. Because all decoders are based on the same high-level features, it reduces the erroneous information that may be introduced in the feature extraction stage, which may improve the efficiency and accuracy of segmentation.
[0064] Wherein, when there are training image labels, the probability map generated by the main decoder and the two complementary auxiliary decoders is used to calculate the loss with the manually annotated labels to perform supervision loss.
[0065] That is, in the semi-supervised learning scenario, some image data has precise labels. When these labels exist, they can be used to calculate the difference between the network prediction (the probability map generated by the main decoder and the auxiliary decoder) and the actual annotation, that is, the loss. This calculation is used for supervised learning, guiding the neural network to optimize its weights according to the loss function during training, thereby improving the accuracy of the prediction results.
[0066] In a possible embodiment, the supervised loss here uses the Dice loss commonly used in segmentation. The supervised loss uses the Dice Loss commonly used in segmentation, which is based on the Dice Coefficient, also known as The coefficient, which is a statistical tool to measure the similarity between two samples, is widely used to evaluate model performance in medical image segmentation.
[0067] The Dice coefficient is a set similarity measure defined as twice the intersection divided by the total size of the two sets. The mathematical expression is as follows:
[0068]
[0069] Here |X∩Y| is the intersection of the predicted segmentation and the true label (i.e. the number of correctly predicted pixels), while |X| and |Y| are the total number of pixels in the predicted segmentation and the true label, respectively.
[0070] Dice loss is the complement of the dice coefficient, which allows us to optimize the dice coefficient. The calculation formula of dice loss is as follows:
[0071]
[0072] By minimizing the Dice loss, the model learns to better predict the contours of target structures during training, because this loss function directly encourages the model to increase the overlap area between the predicted segmentation and the true label.
[0073] In the above semi-supervised learning framework, when the true labels are available, the dice loss can be used as a supervised loss function to help the main decoder and auxiliary decoder optimize their outputs in order to generate more accurate probability maps, thereby improving the performance of heart region segmentation. Through the supervised loss (and possibly other unsupervised or weakly supervised losses), the model can be effectively trained in a semi-supervised setting.
[0074] When there is no training image label, the probability maps generated by the main decoder and the two complementary auxiliary decoders form pseudo labels through a sharpening function.
[0075] That is, when there are no manually annotated true image labels in the training data, the semi-supervised segmentation network adopts the so-called pseudo-label strategy. Here, the probability maps generated by the main decoder and two complementary auxiliary decoders are used to form pseudo-labels through a sharpening function; this allows the network to learn using its own predictions, even if these predictions are not completely reliable.
[0076] The sharpening function is used to enhance the prediction signal in the probability map, i.e., to make it easier to distinguish between the different predicted classes. For example, a simple sharpening function applied to a probability map could be to threshold the probability values so that probabilities above a certain threshold are set to 1 (meaning that the pixel belongs to a certain class), while probabilities below the threshold are set to 0 (meaning that the pixel does not belong to that class).
[0077] The process of generating pseudo labels: ① The main decoder and two auxiliary decoders first generate a probability map based on the unlabeled training data. ② This probability map is converted into a more deterministic form through a sharpening function to form a pseudo label. ③ The pseudo label is then used as a "label" in the training process to guide the network to self-learn and self-improve on unlabeled data. This realistic training mechanism allows the network to learn useful features and image patterns in the absence of a large amount of labeled data. By using pseudo labels, the network can expand its training data set, which helps improve its generalization ability in practical applications.
[0078] Finally, the pseudo-label generated by one of the three decoders is used to calculate the loss with the probability map generated by the remaining two decoders for unsupervised loss. That is, one of the three decoders (the main decoder and two complementary auxiliary decoders) is selected to generate a pseudo-label. The loss is calculated using these pseudo-labels and the probability map generated by the remaining two decoders, i.e., the unsupervised loss. This method allows the network to utilize unlabeled data and enhance learning through an internal consistency mechanism. The unsupervised loss here can help the network to self-adjust and optimize performance without additional supervisory information.
[0079] In some possible embodiments, the unsupervised loss uses the mean square error (MSE) between the pseudo-label and the probability map. The mean square error is a commonly used loss function that measures the average of the squares of the differences between the predicted values and the true values. When applied to pseudo-labels and probability maps, MSE can help the network learn from unlabeled data and improve the performance of the network in image segmentation tasks.
[0080] The pseudo-labels represent the predicted labels generated by one decoder, which have been sharpened, and the probability maps are the probability maps of the original outputs provided by the other two decoders.
[0081] The unsupervised loss is calculated as:
[0082]
[0083] Among them, P i is the predicted probability value, Y i is the pseudo label value, and N is the total number of pixels.
[0084] S300: Send the segmentation reasoning results to the feature extraction module for case-by-case feature extraction, divide all features into training sets and test sets after feature standardization, and send them to the disease prediction classifier; use the training set data for classifier training and cross-validation, fine-tune the hyperparameters to the optimal model based on the validation results, use the optimal model to perform classification reasoning on the test set to obtain disease prediction results.
[0085] Segmentation inference results usually come from the image segmentation stage, which aims to separate the region of interest in the image from the background. Subsequently, features are extracted from these segmentation results and normalized to eliminate the differences in dimensions and scales, making these features more suitable for processing by machine learning models.
[0086] The next step of cardiac image segmentation is to reconstruct the cardiac structure based on the segmentation results to quantitatively calculate relevant clinical indicators. Clinical indicators and their ratios can be used as features for heart disease classification. The features for heart disease classification used in this embodiment are composed of volume features, additional features, and design features.
[0087] Among them, volume features include calculation of volume, mass, and ejection fraction;
[0088] Among them, the volume features include the volume of the heart structure calculated directly and the features calculated from the volume. The left ventricular volume at end diastole, the left ventricular volume at end systole, the right ventricular volume at end diastole, the right ventricular volume at end systole, and the myocardial volume at end systole are obtained by calculating the product of the points of the voxels of the corresponding heart structure in all MRI slices of the patient and the spatial resolution. The formula is as follows:
[0089] V=∑ i Σ j h k n×s
[0090] Among them, n represents the number of voxel points in this layer, and s represents the spatial resolution;
[0091] The calculation formula of ventricular ejection fraction is as follows:
[0092]
[0093] Among them, V ED represents the end-diastolic ventricular volume, V ES Represents the ventricular volume at end-systole.
[0094] The formula for calculating myocardial mass is as follows:
[0095] M myo =V myo ×ρ myo
[0096] Among them, V myo represents the myocardial volume, ρ myo Represents myocardial density.
[0097] Additional features include the height, weight, and calculated body surface area of each patient provided by the dataset. The body surface area is calculated as:
[0098]
[0099] Among them, Height is the patient's height, and Weight is the patient's weight.
[0100] The designed features are features that describe the changes in myocardial wall thickness (MWT). The Canny edge detection algorithm is used to detect the inner and outer contours of the myocardial segmentation results. Assuming that I and E are the sets of pixels corresponding to the inner and outer contours, respectively, MWT is the set of the shortest Euclidean distance (d) from a pixel in the inner contour I to any pixel in the outer contour E. The calculation formula of MWT in the short-axis (SA) slice is:
[0101]
[0102] MAT denotes myocardial wall thickness; SA denotes minor axis, d denotes shortest Euclidean distance; I denotes inner contour, and E denotes outer contour.
[0103] The change in myocardial wall thickness can be estimated by calculating the mean or standard deviation of MWT for each short-axis slice and aggregating them in the long-axis (LA) direction. Therefore, there are 4 features describing the change in myocardial wall thickness at both end-diastole and end-systole.
[0104] refer to Figure 3 The disease prediction classifier in step S300 is a two-layer integrated classifier, including:
[0105] The first layer is a general classifier that uses all classification features to perform multi-class classification of the patient's heart disease;
[0106] The second-layer disease-specific classifier uses some classification features related to specific heart diseases to perform secondary classification of patients in specific categories after the first-layer classification;
[0107] The first-layer general classifier is an integration of random forest classifier and support vector machine classifier through a soft voting mechanism. That is, the first layer is a general classifier that uses all classification features to classify into 5 categories. The general classifier is composed of random forest and support vector machine (SVM) through a soft voting mechanism. Soft voting means that all sub-classifiers independently predict all categories, and the category probabilities of all sub-classifiers predicting samples are weighted and added, and the highest probability category is taken as the predicted category of the sample. Random forest is a classifier based on decision trees, and SVM can classify from high-dimensional features. The combination of two types of classifiers helps to improve the generalization ability of the model and increase the accuracy of prediction. Since both old myocardial infarction (MINF) and dilated cardiomyopathy (DCM) have symptoms of reduced myocardial contractile function, the general classifier still has some samples that are not accurately classified.
[0108] The second-layer disease-specific classifier is a multi-layer perceptron classifier, which is used to further classify dilated cardiomyopathy and old myocardial infarction. In order to improve the prediction accuracy of the classifier, this paper uses a multi-layer perceptron (MLP) in the second layer for secondary classification of these two diseases. There are two main differences between MINF and DCM: one is that the myocardial wall thickness of MINF is uneven during myocardial contraction, while the myocardial wall thickness of DCM is uniform; the other is that DCM is accompanied by left ventricular dilatation. The input features of the second-layer classifier are the features that mainly differ between MINF and DCM, not all features. At the same time, MLP can learn high-dimensional information of classification features using fully connected neural networks. This enables the MLP-based disease-specific classifier to further optimize the classification results of MINF and DCM. Reference Figure 3 Some possible classification results include normal; old myocardial infarction; dilated heart disease; hypertrophic heart disease; right ventricular abnormality, etc.
[0109] S400: Perform diagnostic evaluation based on the segmentation results, feature information, and classification reasoning results to achieve disease prediction.
[0110] Step S400 integrates the segmentation results, feature extraction information, and classification reasoning results obtained in the previous steps to perform a final diagnostic evaluation. The accuracy of the disease prediction results is judged through evaluation index analysis, and a diagnostic report is generated to provide diagnostic information to doctors, thereby improving diagnostic efficiency and accuracy, and assisting doctors in making more accurate diagnostic and treatment decisions. Specifically, step S400 integrates the segmentation evaluation results obtained in step S200, that is, the segmented image of the heart, and the feature information extracted in step S300, such as ventricular volume, myocardial thickness, etc., and the classification reasoning results, that is, the prediction results of the disease, for analysis. By establishing evaluation indicators, such as accuracy, sensitivity, specificity, etc., to measure the accuracy of the disease prediction results, and generating a diagnostic report, more effective diagnostic support is provided to doctors, thereby improving diagnostic efficiency and accuracy, and helping doctors make more accurate diagnostic and treatment decisions.
[0111] Another embodiment further provides a cardiac magnetic resonance imaging automatic diagnosis system based on semi-supervised learning, which specifically includes:
[0112] Data acquisition module: obtain cardiac magnetic resonance imaging data, including image labels of the end-diastole and end-systole phases and some manually annotated labels, and standardize the image labels and manually annotated labels.
[0113] Semi-supervised segmentation module: The standardized image data is divided into training set and test set, and sent to the semi-supervised segmentation network for training and reasoning.
[0114] Feature extraction module: The segmentation inference results are sent to this module for case-by-case feature extraction, and all features are normalized.
[0115] Disease prediction module: The standardized features are divided into training sets and test sets, and sent to the disease prediction classifier for training and reasoning to obtain disease prediction results.
[0116] Evaluation module: performs segmentation evaluation and diagnosis evaluation based on the segmentation reasoning results and classification reasoning results.
[0117] In another embodiment, an electronic device is disclosed, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the above-mentioned method for automatic diagnosis of cardiac magnetic resonance imaging based on semi-supervised learning.
[0118] In another embodiment, a computer-readable storage medium is disclosed, which stores a computer program. When the computer program is executed by a processor, the method for automatic diagnosis of cardiac magnetic resonance imaging based on semi-supervised learning is implemented.
[0119] It should be noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus.
[0120] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. The above is only a preferred implementation of the present invention. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make several improvements, modifications or changes without departing from the principles of the present invention, and can also combine the above technical features in an appropriate manner; these improvements, modifications, changes or combinations, or the direct application of the inventive concept and technical solution to other occasions without improvement, should be regarded as the protection scope of the present invention.
Claims
1. An automatic diagnosis method of cardiac magnetic resonance imaging based on semi-supervised learning, It is characterized in that The following steps are involved: Step 1: Acquire cardiac magnetic resonance imaging data, including image labels of two phases, end-diastole and end-systole, and some manually annotated labels, and perform standardization on the image labels and manually annotated labels; Step 2: Divide the image data processed in step 1 into a training set and a test set and send them into a semi-supervised segmentation network: use the training set for network training and cross-validation, fine-tune the hyperparameters to the optimal model based on the validation results, and use the optimal model to perform segmentation reasoning on the test set to obtain labeled images; Step 3: Send the segmentation reasoning results to the feature extraction module for case-by-case feature extraction. After standardization, all features are divided into training sets and test sets and sent to the disease prediction classifier; the training set data is used for classifier training and cross-validation, and the hyperparameters are fine-tuned to the optimal model based on the validation results. The optimal model is used to perform classification reasoning on the test set to obtain the disease prediction results; Step 4: Perform diagnostic evaluation based on the segmentation results obtained in step 2 and the feature extraction information and classification reasoning results in step 3 to achieve disease prediction.
2. The method for automatic diagnosis of cardiac magnetic resonance imaging according to claim 1, It is characterized in that The semi-supervised segmentation network in step 2 includes an encoder and a decoder, wherein the decoder includes two complementary auxiliary decoders and a main decoder, and the two complementary auxiliary decoders and the main decoder share one encoder output; When there are training image labels, the loss is calculated using the probability map generated by the main decoder and the two complementary auxiliary decoders and the manually annotated labels to perform supervision loss; When there is no training image label, the probability map generated by the main decoder and the two complementary auxiliary decoders forms a pseudo label through a sharpening function; The loss is calculated by mapping the pseudo-labels generated by one of the three decoders to the probability maps generated by the remaining two decoders for unsupervised loss.
3. The method for automatic diagnosis of cardiac magnetic resonance imaging according to claim 2, It is characterized in that The first four encoding layers of the encoder are each followed by a channel-priority convolutional attention module.
4. The method for automatic diagnosis of cardiac magnetic resonance imaging according to claim 2, It is characterized in that The supervised loss is calculated using dice loss.
5. The method for automatic diagnosis of cardiac magnetic resonance imaging according to claim 2, It is characterized in that The unsupervised loss is calculated using the mean squared error between the pseudo labels and the probability map.
6. The method for automatic diagnosis of cardiac magnetic resonance imaging according to claim 1, It is characterized in that The feature extraction in step 3 is a cardiac structure classification feature obtained by reconstructing the cardiac structure, wherein the cardiac structure classification feature includes a volume feature, a design feature, and an additional feature; The volume features include calculations of volume, ventricular ejection fraction, and myocardial mass; The volume calculation formula is as follows: V=∑ i ∑ j ∑ k n×s Among them, n represents the number of voxel points in this layer, and s represents the spatial resolution; The calculation formula of ventricular ejection fraction is as follows: Among them, V ED represents the end-diastolic ventricular volume, V ES represents the end-systolic ventricular volume; The formula for calculating myocardial mass is as follows: M myo =V myo ×ρ myo Among them, V myo represents the myocardial volume, ρ myo Indicates myocardial density; Additional features include the height, weight, and calculated body surface area of each patient provided by the dataset. The body surface area is calculated as: Among them, Height is the patient's height, and Weight is the patient's weight; The designed features are features that describe the change in myocardial wall thickness. Assume that i and e are the sets of pixels corresponding to the inner contour and the outer contour, respectively. The myocardial wall thickness is the set of the shortest Euclidean distances from a pixel in the inner contour i to any pixel in the outer contour e. The calculation formula for the change in myocardial wall thickness in the short-axis SA slice is: Among them, MAT represents the myocardial wall thickness; SA represents the short axis, d represents the shortest Euclidean distance; i represents the inner contour, and e represents the outer contour.
7. The method for automatic diagnosis of cardiac magnetic resonance imaging according to claim 1, It is characterized in that The disease prediction classifier in step 3 adopts a double-layer integrated classifier, and the double-layer integrated classifier includes: The first layer is a general classifier that uses all classification features to perform multi-class classification of the patient's heart disease; The second-layer disease-specific classifier uses some classification features related to specific heart diseases to perform secondary classification of patients in specific categories after the first-layer classification; The first-layer general classifier is an integration of a random forest classifier and a support vector machine classifier through a soft voting mechanism; The second-layer disease-specific classifier is a multi-layer perceptron classifier, which is used to further classify dilated cardiomyopathy and old myocardial infarction.
8. An automatic diagnosis system for cardiac magnetic resonance imaging based on semi-supervised learning. It is characterized in that include: Data acquisition module: acquire cardiac magnetic resonance imaging data, including image labels of the end-diastole and end-systole phases and some manually annotated labels, and perform standardization on the image labels and manually annotated labels; Semi-supervised segmentation module: divides the standardized image data into training set and test set, and sends them to the semi-supervised segmentation network for training and reasoning; Feature extraction module: The segmentation inference results are sent to this module for case-by-case feature extraction, and all features are normalized; Disease prediction module: divides the standardized features into training sets and test sets, and sends them to the disease prediction classifier for training and reasoning to obtain disease prediction results; Evaluation module: Perform diagnostic evaluation based on the segmentation results obtained by the semi-supervised segmentation module, the feature extraction information in the feature extraction module, and the classification reasoning results in the disease prediction module to achieve disease prediction.
Citation Information
Cited By
Method and system for constructing automatic risk assessment model for postoperative cerebellum silence based on AI (artificial intelligence)
CN120998525A
Construction method and system of an AI-based postoperative cerebellar mutism automatic risk assessment model
CN120998525B
