Left ventricular ejection fraction evaluation method based on graph neural network
Through a graph neural network-based method, using the self-attention mechanism and the double-layer routing attention mechanism, the interpretability and accuracy issues of left ventricular ejection fraction estimation in echocardiography videos are solved, and efficient and automatic ejection prediction is achieved. Blood fraction assessment significantly improves the performance and computational efficiency of the model.
Patent Information
- Application Number
- CN202410851599.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-25
AI Technical Summary
Existing techniques for automated left ventricular ejection fraction estimation in echocardiography videos lack reliable interpretability and accuracy and fail to effectively capture local and global features of cardiac structures, especially when processing video sequences.
Using a method based on graph neural network, data preprocessing and graph neural network model training are performed through the EchoNet-Dynamic data set, using the self-attention mechanism and the double-layer routing attention mechanism, combined with the Dice loss function and the cross-entropy loss function, to achieve the left Efficient, automated assessment of ventricular ejection fraction.
It improves the accuracy and reliability of ejection fraction estimation, provides interpretable evaluation results, and significantly improves the computational efficiency and accuracy of the model.
Smart Images

Figure CN118840329A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and specifically designs a left ventricular ejection fraction evaluation method based on a graph neural network. Background Art
[0002] Echocardiography is a non-invasive diagnostic tool that allows for detailed observation of all cardiac structures, capturing dynamic information about cardiac motion and function. This method is safe, cost-effective, and an important means of analyzing cardiac morphology and function. Accurate segmentation of cardiac structures (e.g., left ventricle, right ventricle, left atrium, and right atrium) is essential for determining key cardiac function parameters such as ejection fraction (EF) and myocardial strain. These parameters help physicians identify heart diseases, develop treatment plans, and monitor treatment progress. Therefore, it is of great significance to develop automatic structural segmentation methods for echocardiography videos.
[0003] Ejection fraction (EF) is an important measure of the efficiency of the heart's pumping and a potential indicator of heart failure. EF is calculated based on the difference in blood volume between the left ventricle (LV) at the end-systole (ES) and end-diastole (ED) of the cardiac cycle, i.e., ESV and EDV. These volumes are estimated using echocardiographic video (i.e., echocardiogram) and require the detection of frames corresponding to the ES and ED and the delineation of LV regions. Manual detection of the correct frames and accurate delineation of LV regions are prone to human error. Automated EF estimation techniques assist professionals by adding a layer of validation. In addition, with the advent of portable ultrasound devices (POCUS), which are often used by less experienced users, there is a further need for automated clinical measurements. The widespread use of POCUS devices highlights the need to develop reliable and interpretable automated EF estimation tools to effectively monitor cardiac health in primary care settings. However, for widespread adoption, these automated techniques must be interpretable to detect when human intervention is required. Currently, multiple machine learning (ML) architectures have been proposed to perform automatic EF estimation, but most lack reliable interpretability mechanisms. Some of these models fail to provide confidence in their predictions or suffer from low accuracy due to unrealistic data augmentation during training and over-reliance on true labels.
[0004] Machine learning analysis of biomedical images has made significant progress recently. In contrast, medical videos have been relatively understudied, despite their frequent use in many clinical settings. A major bottleneck in this regard is the lack of publicly available and well-annotated medical video datasets. The field of computer vision has facilitated collaboration, comparison, and the creation of task-specific architectures through open databases. The EchoNet-Dynamic dataset contains 10,030 echocardiography videos covering typical echocardiography laboratory imaging acquisition conditions, as well as corresponding labeled measurements, including ejection fraction, left ventricular volumes at end-systole and end-diastole, and expert annotation of left ventricular regions, providing an important tool for machine learning methods to study cardiac function.
[0005] Existing methods mainly focus on aligning the global representation between the source and target domains, while ignoring local information (such as left ventricle, right ventricle, left atrium, and right atrium). Most existing methods are mainly designed for 2D or 3D images, without considering the cyclic nature of video sequences and cardiac cycles. Given that heartbeat is a periodically repetitive process, it is essential to ensure that the extracted features are cycle-consistent.
[0006] To address the above limitations, we proposed a graph neural network-based left ventricular ejection fraction estimation method for echocardiographic video segmentation. By leveraging graph neural networks, we are able to not only capture the global and local characteristics of cardiac structures, but also better process the temporal and spatial information of video sequences, thereby improving the accuracy and reliability of EF estimation. Summary of the invention
[0007] In response to the above needs, the present invention designs a left ventricular ejection fraction assessment method based on graph neural network. The method realizes interpretable ejection fraction estimation through graph learning of graph neural network, and can efficiently and automatically perform echocardiography video segmentation and ejection fraction assessment.
[0008] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0009] A left ventricular ejection fraction evaluation method based on graph neural network includes the following steps
[0010] Step 1: Obtain data from the EchoNet-Dynamic dataset. This dataset contains 10,030 apical four-chamber echocardiogram videos from individuals who received imaging as part of routine clinical care at Stanford University Hospital between 2016 and 2018. Each video was cropped and masked to remove text and information outside the scanned sector to ensure data purity and privacy. Subsequently, the images were downsampled to standardized 112x112 pixel videos using cubic interpolation techniques for subsequent processing.
[0011] Step 2 preprocesses the video data, including normalization with a mean of 0 and a variance of 1, to eliminate the dimensional differences between the data. Then, the data is divided into a training set and a validation set, and the training data is augmented by data such as rotation, translation, and scaling, so that the data volume is increased by 5 times to improve the generalization ability and robustness of the model.
[0012] Step 3: In the model building phase, an advanced graph neural network architecture is used. The model uses the Adam optimizer and dynamic learning rate, with the initial learning rate set to 0.001, the batch size set to 8, the training cycle (epoch) set to 500, and the early stopping mode set to prevent overfitting. The loss function uses the multi-category Dice loss function and the cross entropy loss function to optimize the segmentation performance and accuracy of the model.
[0013] Step 4: In the inference phase, only the left ventricular endocardium label is retained, and the morphological maximum connected domain analysis is used to obtain the final result. This step aims to accurately locate the boundary of the left ventricular endocardium and lay the foundation for the subsequent ejection fraction calculation.
[0014] Step 5: Calculate the left ventricular ejection fraction (EF) by using the segmentation results of the left ventricular endocardium of the echocardiogram. The ejection fraction is calculated by comparing the volume changes of the left ventricle during cardiac contraction and diastole. This index can intuitively reflect the pumping function and health status of the heart. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a schematic diagram of the flow of the left ventricular ejection fraction evaluation method based on graph neural network of the present invention.
[0016] Figure 2 This is a network structure diagram of the left ventricular ejection fraction evaluation method based on graph neural network of the present invention.
[0017] Figure 3 This is a partial detail diagram of the left ventricular ejection fraction evaluation method based on graph neural network of the present invention. DETAILED DESCRIPTION
[0018] The present invention will be further described below in conjunction with the accompanying drawings and embodiments, but the present invention is not limited thereto.
[0019] In order to more clearly illustrate the objectives, technical solutions and advantages of the present invention, the present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings.
[0020] Figure 1 The implementation process of the present invention is shown, which includes the following steps:
[0021] All relevant video data were downloaded from the EchoNet-Dynamic database, which reflects the cardiac condition of patients at different time periods. Each video was cropped and masked to remove text and redundant information outside the scan sector, ensuring that the video content only contains necessary cardiac structure information. The generated images were downsampled to standardized 112x112 pixel videos using cubic interpolation technology. This step ensures that all videos have uniform resolution, which is helpful for subsequent data processing and model training.
[0022] After preprocessing is completed, each video is quality checked to ensure that all videos meet standardization requirements, the images are clear, and the heart structure is recognizable. Any videos with obvious artifacts or processing errors are excluded to ensure the overall quality of the data set. The processed standardized video data is stored in a unified format to facilitate subsequent data segmentation and model training. Each video is numbered and the corresponding metadata is recorded for easy traceability and analysis. Through the above specific implementation methods, the obtained EchoNet-Dynamic data set is ensured to be high-quality and standardized, laying a solid foundation for subsequent graph neural network model training and left ventricular ejection fraction evaluation.
[0023] Next, the processed data set is randomly divided into a training set and a test set according to a set ratio, with 80% of the images assigned to the training set and 20% to the test set. This division ensures that the model can fully learn the diversity of the data during the training process and perform effective evaluation during the testing phase.
[0024] We select GNN (graph neural network) under the PyTorch framework as the benchmark network, and propose a graph neural network model combined with the self-attention mechanism in combination with the design concept of Transformer. This model can make full use of the advantages of graph structure data and self-attention mechanism to improve the model's expression ability and segmentation accuracy. Specifically, the self-attention mechanism can capture global information, enhance the model's attention to important features, and further improve the accuracy of segmentation results.
[0025] During the model training process, the Adam optimizer and dynamic learning rate are used. The initial learning rate is set to 0.001, the batch size is set to 8, the training cycle (epoch) is set to 500, and the early stopping mode is set to prevent overfitting. The loss function uses the multi-category Dice loss function and the cross entropy loss function to optimize the segmentation performance and accuracy of the model.
[0026] In the inference stage, for each echocardiogram video, the model only retains the left ventricular endocardium label and uses the morphological maximum connected domain analysis method to obtain the final segmentation result. Based on the segmentation result, the left ventricular ejection fraction (EF) is further calculated. The ejection fraction is calculated by comparing the volume change of the left ventricle during heart contraction and diastole. This indicator can intuitively reflect the heart's pumping function and health status.
[0027] Figure 2 The graph neural network structure diagram EchoGNet constructed in the present invention is shown, in which the model is verified by calculating R 2 ,MAE (mean absolute error), F1 score, evaluates the segmentation effect of the model and the accuracy of ejection fraction assessment.
[0028] R 2 It represents the proportion of variance explained by the model, and the calculation formula is as follows, where y i is the true value, is the predicted value, is the mean of the true value, and n is the number of samples:
[0029]
[0030] MAE represents the average absolute error between the predicted value and the true value, and the calculation formula is as follows: i is the true value, is the predicted value, and n is the number of samples:
[0031]
[0032] The F1 score is the harmonic mean of precision and recall, calculated as follows: Recall is TP is true positive, FP is false positive, and FN is false negative:
[0033]
[0034] Figure 3 The EchoGNet partial detail diagram shown shows a video encoder that can significantly improve model performance and computational efficiency. Based on graph learning, EchoGNet introduces a two-layer routing attention mechanism to implement a dynamic, content-based sparse attention mechanism, thereby allocating computing resources more flexibly and efficiently.
[0035] This two-layer routing attention mechanism includes region-to-region routing and token-to-token attention. Specifically, by first constructing and pruning a region-level association graph, EchoGNet determines which regions are relevant and should be further processed. This step exploits the inter-regional relationships to effectively screen out key regions that require in-depth analysis, avoiding redundant calculations for all regions. Next, a fine-grained token-to-token attention mechanism is applied to these selected regions. Each query interacts with only a few of the most relevant key-value pairs, rather than calculating paired token interactions at all spatial locations. This approach allows the model to dynamically focus on the parts of the image that are most relevant to a specific query, significantly reducing computational complexity and memory usage.
[0036] Through this two-layer routing attention mechanism, EchoGNet not only improves the computational efficiency of the model, but also enhances its flexibility and accuracy. The region-to-region routing ensures the effectiveness of global correlation analysis, while the token-to-token fine-grained attention further refines the capture of local features, enabling the model to more accurately identify and process important information in the image.
[0037] In summary, EchoGNet significantly reduces computational overhead while improving model performance by introducing a dual-layer routing attention mechanism. This innovative design not only improves the efficiency and accuracy of the model in processing echocardiography videos, but also provides new ideas and methods for other complex image processing tasks. In the future, this technology is expected to be widely used in more image analysis and processing applications, further promoting the development of artificial intelligence in the field of medical image analysis.
Claims
1. A left ventricular ejection fraction evaluation method based on graph neural network, characterized in that: The following steps are involved: (1) Obtain and preprocess the publicly available echocardiography EchoNet-Dynamic dataset. Data preprocessing includes image normalization, denoising, image enhancement, and other operations to ensure data quality and model robustness; (2) Divide the processed data set into a training set and a test set according to the set ratio. The training set is used for model training, the validation set is used to adjust the model hyperparameters, and the test set is used to finally evaluate the model performance; (3) Establish a left ventricular ejection fraction model based on an advanced graph neural network architecture. Graph neural networks can effectively capture the spatial structure information in images, thereby improving the prediction accuracy of ejection fraction; (4) The training set in the preprocessed EchoNet-Dynamic dataset is input into the established graph neural network-based left ventricular ejection fraction model for training. During the training process, the loss function combines the Dice loss function and the cross entropy loss function to optimize the segmentation and classification performance of the model. (5) The test set in the EchoNet-Dynamic dataset is input into the trained left ventricular ejection fraction model to calculate the ejection fraction. Then, the model performance is evaluated through a variety of evaluation indicators to ensure the reliability and accuracy of the model in practical applications.
2. A left ventricular ejection fraction evaluation method based on graph neural network according to claim 1, characterized in that In step (1), the specific method of obtaining the echocardiogram EchoNet-Dynamic dataset and preprocessing it is as follows: First, the video data is preprocessed. Specifically, the data is normalized to a mean of 0 and a variance of 1 to eliminate the dimensional differences between different data and ensure the consistency and stability of data input. In order to improve the generalization and robustness of the model, a variety of data enhancement operations are performed on the training data, including rotation, translation, scaling, etc. These enhancement operations can effectively increase the diversity of the data and expand the data volume to 5 times the original data, thereby helping the model to better learn the features in different situations.
3. A left ventricular ejection fraction evaluation method based on graph neural network according to claim 1, characterized in that In step (2), the processed data set is divided into a training set and a test set according to a set ratio. The specific method is as follows: Divide the training set and the test set. The processed data set is randomly divided into two mutually exclusive sets according to the set ratio, where 80% of the images are assigned to the training set and 20% of the images are assigned to the test set.
4. A left ventricular ejection fraction evaluation method based on graph neural network according to claim 1, characterized in that In step (3), a left ventricular ejection fraction model based on an advanced graph neural network architecture is established: In the model construction stage, an advanced graph neural network architecture is adopted. In order to optimize the performance of the model, the Adam optimizer and dynamic learning rate strategy are used, and the initial learning rate is set to 0.
001. In order to effectively utilize computing resources, a smaller batch size of 8 is set, and 500 training cycles are trained. At the same time, an early stopping strategy is introduced to avoid overfitting of the model and ensure the generalization ability of the model. In terms of loss function, a multi-category Dice loss function and a cross entropy loss function are combined. The combination of the two helps to optimize the segmentation performance and accuracy of the model, especially when dealing with medical image segmentation tasks. In terms of model selection, based on the PyTorch framework, a graph neural network model combined with a self-attention mechanism is adopted. This model integrates the design concept of Transformer and effectively captures the global dependencies in graph structured data through the self-attention mechanism. This design improves the expressiveness and segmentation accuracy of the model, enabling it to more accurately predict left ventricular ejection fraction.
5. A left ventricular ejection fraction evaluation method based on graph neural network according to claim 1, characterized in that In step (4): For each echocardiogram video, the model first retains only the label information of the left ventricular endocardium from the image. This step is to accurately segment the left ventricular region through the graph neural network model and extract the endocardial boundary for further analysis. Next, the morphological maximum connected domain analysis method is used to extract the largest connected area from the segmented left ventricular endocardial label. This step helps to remove possible small noise or errors and retain the main endocardial area, thereby obtaining a more accurate segmentation result. Based on the optimized segmentation results, the left ventricular ejection fraction (EF) is further calculated. The ejection fraction is calculated by comparing the volume change of the left ventricle during heart contraction and diastole, and is an important indicator for evaluating the heart's pumping function and health status. This process ensures that the information extracted by the model from the image can intuitively reflect the heart's pumping ability and is reliable and practical in clinical applications.
6. A left ventricular ejection fraction evaluation method based on graph neural network according to claim 1, characterized in that Step (5) includes: During the validation phase, multiple evaluation indicators were calculated to evaluate the segmentation effect of the model and the accuracy of ejection fraction assessment. The main evaluation indicators used include: Mean absolute error (MAE), which is used to measure the average absolute difference between the ejection fraction predicted by the model and the true ejection fraction. The smaller the MAE, the higher the accuracy of the model in predicting the ejection fraction. The F1 score is the harmonic mean of precision and recall. In the segmentation task, the F1 score is used to evaluate the accuracy and comprehensiveness of the model in identifying the left ventricular endocardial region. The higher the F1 score, the better the model performs in the segmentation task. 2 , which represents the proportion of the variance of the target variable explained by the model. In ejection fraction assessment, the explained variance can help evaluate the model's ability to explain changes in the true ejection fraction. An explained variance close to 1 indicates that the model can well explain changes in the target variable. Through these evaluation indicators, the performance of the graph neural network model in left ventricular ejection fraction prediction can be comprehensively evaluated. These indicators can not only verify whether the segmentation effect of the model is accurate, but also determine whether the ejection fraction predicted by the model is consistent with the actual situation. Such an evaluation process ensures the reliability and practicality of the model in medical image analysis and clinical applications.
Citation Information
Patent Citations
Full-automatic cardiac function analysis method and device based on CT images, computer equipment and storage medium
CN111768391A
Echocardiogram left ventricular wall six-segment segmentation method and system and storage medium
CN112215839A
Magnetic resonance image heart segmentation method based on coarse-grained weak annotation
CN116563549A
Technique for determining a cardiac metric from CMR images
US20220082647A1
Cited By
Left ventricular ejection fraction prediction method and system based on echocardiography
CN119055278A
Heart function auxiliary analysis system based on neural network
CN119564260A
A Cardiac Function Auxiliary Analysis System Based on Neural Network
CN119564260B
