Manuscript Offprint

arXiv:2609.31376

Towards Whole-Study Screening for Congenital Heart Disease in Fetal Ultrasound Using Multiple Instance Learning

Mohamed Azzam, Ruobing Liu, Esther C. Ugwueke, Ziyang Xu, Shibiao Wan, Alex Foy, Abraham Zabih, Jason Christensen, Neil Hamill, Ling Li, Jieqiong Wang

Mohamed Azzam, Ruobing Liu, Esther C. Ugwueke, Ziyang Xu, Shibiao Wan, Alex Foy, Abraham Zabih, Jason Christensen, Neil Hamill, Ling Li, and Jieqiong Wang

Abstract—Congenital heart disease (CHD) is the most common birth defect, yet a large fraction of cases remain undetected on prenatal ultrasound, in part because current artificial-intelligence methods assume that the key diagnostic frames have already been isolated from a study, by a clinician or by a view classifier. We remove that assumption and address CHD screening directly at the level of the whole ultrasound study. We propose a two-stage framework that first learns transferable frame representations by self-supervised masked-autoencoder pretraining on unlabeled fetal ultrasound, then identifies cardiac frames with a disease-robust module and aggregates them with a transformer-based multiple instance learning (MIL) model that produces a case-level diagnosis from study-level labels alone. The model further returns its highest-scoring frames for clinician review, and a hierarchical head separates critical from non-critical CHD. On the internal test set of our multi-source development cohort (FUSE), the proposed cardiac-gated MIL model reaches an area under the curve (AUC) of 0.985 with a specificity of 0.990, outperforming the reproduced NATMED ensemble (AUC 0.861, specificity 0.600) and the FetalCLIP foundation model (AUC 0.867, specificity 0.710). On an independent external cohort, all models initially perform near chance, but label-free CORAL adaptation raises the proposed model from an AUC of 0.513 to 0.944, whereas whole-study and view-dependent baselines do not recover. These results indicate that whole-study MIL with disease-robust cardiac-frame identification is an accurate and deployable route to prenatal CHD screening.

Index Terms—Congenital heart disease, fetal ultrasound, multiple instance learning, prenatal screening, domain adaptation, self-supervised learning.

I. INTRODUCTION

(Corresponding author: Jieqiong Wang.)

M. Azzam, R. Liu, E. C. Ugwueke, Z. Xu, and J. Wang are with the Department of Neurological Sciences, University of Nebraska Medical Center, Omaha, NE 68198 USA (e-mail: jiwang@unmc.edu).

S. Wan is with the Department of Genetics, Cell Biology and Anatomy, University of Nebraska Medical Center, Omaha, NE 68198 USA.

A. Foy, A. Zabih, J. Christensen, and L. Li are with the Department of Pediatrics, University of Nebraska Medical Center, Omaha, NE 68198 USA.

N. Hamill is with the Department of Obstetrics and Gynecology, University of Nebraska Medical Center, Omaha, NE 68198 USA.

Retrospective, de-identified imaging was analyzed under approved UNMC IRB protocol 0342-24-EP.

CONGENITAL heart disease (CHD) affects approximately one in one hundred births and is the most common birth defect and a leading cause of infant mortality [1], [2]. In 2017, CHD caused more than 260,000 deaths worldwide, with the majority are infants [2]. Critical forms, which require intervention in the first days of life, occur in roughly two to three per one thousand births. Therefore, effective prenatal screening and diagnosis are essential for identifying affected pregnancies, enabling referral to specialized fetal-cardiology care, facilitating delivery at appropriately equipped centers, and supporting timely postnatal intervention [3]. To improve prenatal detection, international guidelines specify the cardiac views that should be obtained during a screening examination [4]. In practice, however, prenatal detection of CHD remains below fifty percent and varies widely across institutions [5], [6]. The detection rate is even worse in rural and underserved areas, where limited access to specialized expertise and adequate resources can further constrain prenatal CHD screening [7]–[9]. Closing this detection gap is the motivation for our work.

Ultrasound is widely used for fetal screening due to several practical advantages: it provides real-time imaging, is free of ionizing radiation, is relatively inexpensive, and is already integrated into routine obstetric care [3], [4]. Yet it remains challenging for automated analysis. A screening study typically contains hundreds to thousands of frames, but only a small fraction depict the fetal heart. Also, image quality varies with fetal position and operator expertise. Furthermore, the image appearance can shift across sites, scanners, and acquisition protocols. Therefore, any method intended for real-world CHD screening must analyze the entire study rather than rely on a small set of pre-selected cardiac images.

Artificial intelligence (AI), and deep learning in particular, has advanced rapidly across medical imaging, demonstrating strong performance in a wide range of image-analysis tasks [10]. Similar advances in fetal ultrasound show that clinically relevant anatomical and diagnostic information can be learned directly from ultrasound images [11], [12]. These developments motivate AI-assisted prenatal CHD screening. However, translating image-level performance to real-world screening requires models that can operate on complete studies, identify the informative cardiac frames, and produce reliable subject-level predictions.

Current AI pipelines do not fully satisfy these requirements. Existing approaches [13], [14] commonly assume that diagnostically relevant cardiac frames have already been isolated, either manually or through a cardiac-plane identification step [12], [13]. Fig. 1(a) and (b) illustrate these two prevailing designs. In the first, a clinician manually selects representative cardiac images that are subsequently analyzed by a CHD classifier. Although effective on curated images, this approach requires expert intervention and is labor intensive. The second design automates frame selection using a plane classifier to identify standard cardiac views before applying the CHD classifier. However, standard-plane classifiers are designed to recognize expected cardiac structures and are predominantly trained on normal anatomy. Structural abnormalities in CHD may therefore alter the anatomical patterns used for view recognition, causing diagnostically important abnormal cardiac frames to be discarded before they reach the CHD classifier [15]. Both designs also operate at the image level, producing separate predictions for individual frames that must subsequently be combined into a subject-level diagnosis. These limitations become particularly important in practical screening, where the relevant cardiac frames are not known in advance. In addition, severity classification for clinical triage remains limited, with only small studies reported [14], and cross-site validation under differences in populations, disease prevalence, equipment, and acquisition protocols remains largely unexplored. A practical screening system should instead analyze the whole ultrasound study, identify informative cardiac frames without relying on normal standard-plane anatomy, aggregate information across those frames into a subject-level prediction, and remain reliable when transferred to a new clinical site.

Multiple instance learning (MIL) is a natural fit for this setting. MIL treats a study as a bag of instances (frames) with a single bag-level label, and learns both the bag prediction and the per-instance contributions without frame-level supervision [16], [17]. Attention-based MIL makes the per-instance weights explicit [18], and MIL has become the standard tool for weakly supervised whole-slide pathology [10], [19]. These properties are what let a model trained only on study-level diagnoses nonetheless surface the individual frames that drive its decision, which is the behavior clinical review requires. Figure 1(c) shows the resulting design: the whole study enters at the subject level, a learned cardiac gate replaces manual or view-based frame selection, and the MIL aggregator returns a single case-level prediction together with the ranked key diagnostic frames on which that prediction rests.

A screening tool must also generalize. Because ultrasound appearance shifts across scanners and clinics, a model trained at one site can degrade sharply at another. We therefore treat cross-site transfer as a first-class problem and study transfer to an independent external cohort, CARDIUM [20], which was collected at a different institution and, unlike our development data, contributes curated cardiac frames rather than full sweeps, so it also tests whether a whole-study model accepts pre-selected input. To recover performance without target labels we use Deep CORAL [21], an unsupervised domain adaptation method based on correlation alignment

(a) Expert-selected Images

Figure

(b) Two stages: Plane Identification then Diagnosis

(c) Proposed: Whole Study Multi-instance Learning

Fig. 1. Three designs for AI-based prenatal CHD screening. (a) Expert-selected images: a clinician manually selects representative frames, each is scored by a CHD classifier, and the per-image predictions must still be combined into a diagnosis. (b) Two-stage design: a plane classifier first identifies standard cardiac views before diagnosis. Because these classifiers are designed to recognize standard cardiac structures and are predominantly trained on normal anatomy, they may discard abnormal cardiac frames. Aggregation is again required as the design produces per-image predictions. (c) Proposed whole-study design: the entire study enters at subject level. The frame encoder embeds every frame, a disease-robust cardiac-frame identifier gates which frames enter the bag, and a MIL aggregator produces one subject-level prediction while surfacing the key diagnostic frames that support it.

(CORAL) that matches the second-order statistics of source and target features. This lets a deployed model be tuned to a new population from unlabeled studies alone, without additional annotation.

Prior AI work on fetal CHD has largely operated within the pre-selected-frame setting [11]. A prominent example is the ensemble of neural networks reported by Arnaout et al., hereafter referred to as NATMED, which detects complex CHD from standard cardiac views at expert level [13]. Other approaches include two-stage transfer-learning screens for duct-dependent lesions [22], routine-screening detectors [14], and disease-specific models for lesions such as hypoplastic left heart syndrome [23]. FetalCLIP and related foundation models have further advanced representation learning for fetal ultrasound [24], [25]. Despite these advances, existing methods largely rely on curated cardiac views rather than screening directly from the whole ultrasound study.

In this paper, we address whole-study CHD screening from fetal ultrasound. We propose a two-stage framework that pairs self-supervised representation learning with a disease-robust cardiac-frame identifier and a transformer-based MIL aggregator, train and test it on our multi-source development cohort (FUSE), and characterize its transfer to the independent external cohort CARDIUM [20] under label-free CORAL adaptation [21]. The main contributions of this work are as follows.

  1. We formulate CHD screening as a whole-study MIL problem and show that a transformer-based aggregator, applied to automatically identified cardiac frames, produces accurate case-level diagnoses from study-level labels alone while returning interpretable supporting frames.

  2. We introduce a disease-robust cardiac-frame identification module that remains reliable on abnormal hearts, and we show that gating to identified cardiac frames is decisive for both accuracy and transfer.

  3. We add a hierarchical severity head that separates critical from non-critical CHD, improving sensitivity to the under-represented non-critical class over a flat classifier.

  4. We evaluate cross-site generalization on the independent external CARDIUM cohort [20] and show that label-free CORAL adaptation [21] raises the transfer area under the receiver operating characteristic curve (AUC) of the proposed model from 0.513 to 0.944.

The rest of this paper is organized as follows. Section II reviews related work. Section III presents the proposed framework. Section IV reports the experimental setup and results. Section V concludes.

References (66)

  • The incidence of congenital heart disease
  • Global, regional, and national burden of congenital heart disease, 1990-2017: a systematic analysis for the global burden of disease study 2017
  • Diagnosis and treatment of fetal cardiac disease: a scientific statement from the American Heart Association
  • ISUOG practice guidelines (updated): sonographic screening examination of the fetal heart
  • Why are congenital heart defects being missed?
  • Variation in prenatal diagnosis of congenital heart disease in infants
  • Impact of socioeconomic status, race and ethnicity, and geography on prenatal detection of hypoplastic left heart syndrome and transposition of the great arteries
  • Barriers to prenatal detection of congenital heart disease: a population-based study
  • Addressing disparities in pediatric congenital heart disease: a call for equitable health care
  • Clinical-grade computational pathology using weakly supervised deep learning on whole slide images
  • Machine learning in fetal cardiology: what to expect
  • SonoNet: real-time detection and localisation of fetal standard scan planes in freehand ultrasound
  • An ensemble of neural networks provides expert-level prenatal detection of complex congenital heart disease
  • Deep learning for improving the effectiveness of routine prenatal screening for major congenital heart diseases
  • Automated detection of congenital heart disease in fetal ultrasound screening
  • Solving the multiple instance problem with axis-parallel rectangles
  • A framework for multiple-instance learning
  • Attention-based deep multiple instance learning
  • Data-efficient and weakly supervised computational pathology on whole-slide images
  • CARDIUM: congenital anomaly recognition with diagnostic images and unified medical records
  • Deep CORAL: correlation alignment for deep domain adaptation
  • A multicenter study on two-stage transfer learning model for duct-dependent CHDs screening in fetal echocardiography
  • Prenatal diagnosis of hypoplastic left heart syndrome on ultrasound using artificial intelligence: How does performance compare to a current screening programme?
  • FetalCLIP: a visual-language foundation model for fetal ultrasound image analysis
  • A visually grounded language model for fetal ultrasound understanding
  • DW-Net: A cascaded convolutional neural network for apical four-chamber view segmentation in fetal echocardiography
  • Classification of normal and abnormal fetal heart ultrasound images and identification of ventricular septal defects based on deep learning
  • Fetal congenital heart disease echocardiogram screening based on DGACNN: Adversarial one-class classification combined with video transfer learning
  • HFSCCD: A hybrid neural network for fetal standard cardiac cycle detection in ultrasound videos
  • Video clip extraction from fetal ultrasound scans using artificial intelligence to allow remote second expert review for congenital heart disease
  • Deep-learning model for prenatal congenital heart disease screening generalizes to community setting and outperforms clinical detection
  • Fetal-Net: enhancing maternal-fetal ultrasound interpretation through multi-scale convolutional neural networks and transformers
  • Advances in the application of artificial intelligence in fetal echocardiography
  • Artificial intelligence in fetal and pediatric echocardiography
  • A review on deep-learning algorithms for fetal ultrasound-image analysis
  • Revisiting multiple instance neural networks
  • Dual-stream multiple instance learning network for whole slide image classification with self-supervised contrastive learning
  • TransMIL: Transformer based correlated multiple instance learning for whole slide image classification
  • DGMIL: Distribution guided multiple instance learning for whole slide image classification
  • Additive MIL: Intrinsically interpretable multiple instance learning for pathology
  • A novel multiple instance learning framework for COVID-19 severity assessment via data augmentation and self-supervised learning
  • Ordinal multiple-instance learning for ulcerative colitis severity estimation with selective aggregated transformer
  • Medical-knowledge driven multiple instance learning for classifying severe abdominal anomalies on prenatal ultrasound
  • Semi-supervised multimodal multi-instance learning for aortic stenosis diagnosis
  • Robust multi-instance learning with stable instances
  • QG-MIL: A gated transformer aggregator for domain-agnostic multiple instance learning in medical imaging
  • A kernel method for the two-sample-problem
  • Unsupervised domain adaptation by backpropagation
  • Unsupervised domain adaptation via cluster alignment with maximum classifier discrepancy
  • Generalisability of fetal ultrasound deep learning models to low-resource imaging settings in five African countries
  • A multicentre benchmark dataset for comprehensive landmark-based fetal ultrasound biometry
  • Uncovering ethical biases in publicly available fetal ultrasound datasets
  • An image is worth $16 \times 16$ words: Transformers for image recognition at scale
  • Masked autoencoders are scalable vision learners
  • Gaussian Error Linear Units (GELUs)
  • On calibration of modern neural networks
  • Attention is all you need
  • Focal loss for dense object detection
  • Evaluation of deep convolutional neural networks for automatic classification of common maternal fetal ultrasound planes
  • Fetal abdominal structures segmentation dataset using ultrasonic images (opens the publisher in a new tab)
  • Detection of novel pathogenic variants in two families with recurrent fetal congenital heart defects
  • Shortcut learning in medical image segmentation
  • Decoupled weight decay regularization
  • SGDR: Stochastic gradient descent with warm restarts
  • Index for rating diagnostic tests
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction