Development and validation of a deep learning pipeline to measure pericardial effusion in echocardiography

Front Cardiovasc Med. 2023 Aug 4:10:1195235. doi: 10.3389/fcvm.2023.1195235. eCollection 2023.

Abstract

Objectives: The aim of this study was to develop a deep-learning pipeline for the measurement of pericardial effusion (PE) based on raw echocardiography clips, as current methods for PE measurement can be operator-dependent and present challenges in certain situations.

Methods: The proposed pipeline consisted of three distinct steps: moving window view selection (MWVS), automated segmentation, and width calculation from a segmented mask. The MWVS model utilized the ResNet architecture to classify each frame of the extracted raw echocardiography files into selected view types. The automated segmentation step then generated a mask for the PE area from the extracted echocardiography clip, and a computer vision technique was used to calculate the largest width of the PE from the segmented mask. The pipeline was applied to a total of 995 echocardiographic examinations.

Results: The proposed deep-learning pipeline exhibited high performance, as evidenced by intraclass correlation coefficient (ICC) values of 0.867 for internal validation and 0.801 for external validation. The pipeline demonstrated a high level of accuracy in detecting PE, with an area under the receiving operating characteristic curve (AUC) of 0.926 (95% CI: 0.902-0.951) for internal validation and 0.842 (95% CI: 0.794-0.889) for external validation.

Conclusion: The machine-learning pipeline developed in this study can automatically calculate the width of PE from raw ultrasound clips. The novel concepts of moving window view selection for image quality control and computer vision techniques for maximal PE width calculation seem useful in the field of ultrasound. This pipeline could potentially provide a standardized and objective approach to the measurement of PE, reducing operator-dependency and improving accuracy.

Keywords: automated segmentation; deep learning—artificial intelligence; echocardiography; moving window (MW); pericardial effusion (PE); width measurements.

Grants and funding

The study was supported by grants EDCHM109001 and EDCHP110001 from E-Da Cancer Hospital and grant CMRPG8M0181 from the Chang Gung Medical Foundation.