Introduction
Congenital brain malformations represent a significant challenge in prenatal care, typically screened during mid-trimester ultrasound examinations. While artificial intelligence offers the potential to assist clinicians in identifying these anomalies, traditional supervised learning approaches face substantial hurdles. These include the scarcity of labeled abnormal data—often characterized by a "long-tail" distribution of rare conditions—and the high variability of ultrasound imagery caused by fetal orientation and maternal tissue.
To address these challenges, this research introduces iNAAD (inpainting-based Noise Agnostic Anomaly Detection), an unsupervised framework that shifts the focus from learning specific malformations to modeling the distribution of healthy fetal brain anatomy. By utilizing Denoising Diffusion Probabilistic Models (DDPMs), the system identifies anomalies as out-of-distribution (OOD) samples, offering a scalable solution that does not require expert-labeled pathological datasets.
Methodology
The iNAAD Framework
The core of iNAAD is a DDPM trained exclusively on "normal" fetal brain scans. The inference pipeline follows a four-step process to identify deviations from the learned healthy distribution:
- Corruption: The input ultrasound image is subjected to varying levels of noise.
- Masking & Inpainting: To prevent the model from being distracted by non-brain structures (e.g., maternal tissue or shadows), a pre-trained segmentation tool masks the fetal head. The diffusion model then attempts to "inpaint" or reconstruct the brain area. Since the model is only familiar with healthy anatomy, it naturally attempts to "correct" any anomalies present in the input.
- Aggregation: Reconstructions from multiple noise levels are averaged. This step reduces stochastic noise and produces a stable, "healthy" synthetic version of the original scan.
- Anomaly Scoring: The original image is compared against the reconstructed version using the Structural Similarity Index (SSIM). High reconstruction error indicates a high probability of a malformation.
Noise and Similarity Metrics
The study evaluated three noise distributions—Gaussian, Simplex, and Pyramid—to determine which best captured the unique textures of ultrasound. Additionally, the researchers compared standard pixel-level metrics like SSIM against modern semantic metrics such as LPIPS (Learned Perceptual Image Patch Similarity).
Experimental Setup
Dataset
The framework was validated using a large-scale, real-world clinical dataset from the Danish national fetal ultrasound screening database. This included:
- In-Distribution (ID) Data: 13,568 healthy images for training and validation.
- Out-of-Distribution (OOD) Data: 492 images featuring malformations such as Hydrocephalus, Spina Bifida, and Agenesis of the Corpus Callosum (ACC).
Benchmarking
The unsupervised iNAAD model was benchmarked against a supervised ResNet-18 classifier trained to detect specific anomalies. Unlike many academic studies using curated datasets, this work utilized raw clinical data to simulate real-world diagnostic conditions.
Results and Analysis
Localized vs. Global Anomalies
The iNAAD-Gaussian model demonstrated exceptional performance for localized brain defects. It achieved an AUROC of 0.76 for ACC and 0.74 for Ventriculomegaly, notably outperforming the supervised baseline, which scored 0.63 and 0.71, respectively. This suggests that for specific structural absences or enlargements, unsupervised reconstruction is highly effective.
However, the supervised baseline maintained a slight edge in overall performance (0.67 AUROC vs. 0.62 for iNAAD). This discrepancy is largely attributed to "global" anomalies like Microcephaly (abnormally small head size). Because the model focuses on internal brain reconstruction, it may reconstruct a "small healthy brain" rather than flagging the overall size as an anomaly.
Technical Insights
- Noise Selection: Contrary to findings in MRI research where Simplex noise is often preferred, standard Gaussian noise proved most effective for ultrasound. This indicates that the "speckle" noise characteristic of ultrasound requires specific diffusion strategies.
- Metric Performance: Pixel-based SSIM outperformed semantic metrics. In medical imaging, subtle structural shifts are often more diagnostic than high-level stylistic features.
- Explainability: A key advantage of iNAAD is its inherent explainability. By comparing the original and reconstructed images, the system generates heatmaps that pinpoint the exact location of suspected anomalies, serving as a visual aid for clinicians.
Conclusion and Future Work
This research demonstrates that unsupervised diffusion models can rival or exceed supervised systems in detecting localized fetal brain anomalies. By eliminating the need for exhaustive pathological labeling, iNAAD provides a viable path for detecting rare malformations in clinical settings.
Future work will focus on improving the detection of global anomalies and exploring noise processes tailored to the specific physics of ultrasound, such as anisotropic noise patterns, to further refine reconstruction fidelity and diagnostic accuracy.
Summary updated