PT - JOURNAL ARTICLE AU - Wu, Cheng-Ching AU - Cheng, Chi-Yung AU - Chen, Huang-Chung AU - Hung, Chun-Huei AU - Chen, Tien-Yu AU - Lin, Chun-Hung Richard AU - Chiu, I-Min TI - Development and validation of an end-to-end deep learning pipeline to measure pericardial effusion in echocardiography AID - 10.1101/2022.08.13.22278732 DP - 2022 Jan 01 TA - medRxiv PG - 2022.08.13.22278732 4099 - http://medrxiv.org/content/early/2022/08/16/2022.08.13.22278732.short 4100 - http://medrxiv.org/content/early/2022/08/16/2022.08.13.22278732.full AB - Introduction Cardiac tamponade, caused by pericardial effusion (PE), is a life-threatening condition that can be resolved by timely pericardiocentesis. Nevertheless, PE measurement remains operator-dependent and may be difficult in some circumstances. Our study aimed to develop a deep-learning pipeline that measures the amount of PE based on raw echocardiography clips.Methods Echocardiographic examination data were collected from one medical center in southern Taiwan from 2010–2018. Four commonly used cardiac windows, including the parasternal long-axis, parasternal short-axis, apical four-chamber, and subcostal views from included ultrasound examinations, were used for analysis. We proposed a deep learning pipeline consisting of three steps: moving window view selection, automated segmentation, and width calculation from a segmented mask. The pipeline was then prospectively validated from 2019–2020 using a dataset from the same hospital, and externally validated using data from another medical center in Taiwan. Model performance was evaluated using mean absolute error, intraclass correlation coefficient (ICC), and R-squared value between the ground truth and predictions.Results In this study, 995 echocardiographic examinations were included. Among these, 155 were used for internal validation and 258 were used for external validation. The proposed pipeline had a predictive performance of ICC=0.867 for internal validation and ICC=0.801 for external validation. It accurately detected PE with an area under the receiving operating characteristic curve (AUC) of 0.926 (0.902–0.951) for internal validation and 0.842 (0.794–0.889) for external validation. Regarding the recognition of moderate PE or worse, the AUC values improved to 0.941 (0.923–-0.960) and 0.907 (0.876–0.943) for internal and external validation, respectively. Of all the selected cardiac windows, our model had the best prediction in the parasternal long-axis and apical four-chamber views.Conclusions The machine-learning pipeline could automatically calculate the width of the 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.Competing Interest StatementThe authors have declared no competing interest.Funding StatementThe study was funded by grants EDCHM109001 and EDCHP110001 from E-Da Cancer Hospital and grants CMRPG8M0181 from the Chang Gung Medical Foundation.Author DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.YesThe details of the IRB/oversight body that provided approval or exemption for the research described are given below:Ethics committee/IRB of E-Da Hospital (no: EMRP24110N) gave ethical approval for this work. Ethics committee/IRB of Kaohsiung Chang Gung Memorial Hospital (no: 20211889B0 and 202101662B0) gave ethical approval for this work.I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.YesI understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).YesI have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.YesData sharing is not applicable to this article.A4Capical four-chamberAIartificial intelligenceAUCarea under the receiver operating characteristics curveCGMHChang Gung Memorial HospitalCNNconvolutional neural networkDICOMDigital Imaging and Communications in MedicineEDHE-Da HospitalGPUgraphics processing unitICCintraclass correlation coefficientMWVSmoving window view selectionPEpleural effusionPLAXparasternal long-axisPSAXparasternal short-axisSCsubcosta