Knowledge-based anomaly detection for identifying network-induced shape artifacts

Rucha Deshpande, Tahsin Rahman, Miguel A. Lago, Adarsh Subbaswamy, Jana G. Delfino, Ghada Zamzmi, Yee Lam Elim Thompson, Aldo Badano, Seyed Kahaki

Abstract

Synthetic data offers a promising solution to data scarcity and privacy concerns in medical imaging, yet generative models often introduce unrealistic "hallucinations" or shape artifacts. We propose a knowledge-based framework to detect these structural glitches by analyzing the geometric properties of anatomical boundaries. Using an isolation forest trained exclusively on real patient data, our method identifies synthetic mammograms that deviate from biological constraints. The approach achieves an Area Under the Curve (AUC) of up to 0.97, providing a granular assessment tool for ensuring the safety and reliability of synthetic medical datasets.

Introduction

While synthetic data generated by GANs or Diffusion models can augment training sets, it remains a "double-edged sword." Standard evaluation metrics like Fréchet Inception Distance (FID) assess global dataset quality but often overlook individual, low-prevalence artifacts, such as jagged breast boundaries or misplaced anatomical features. These "network-induced shape artifacts" can introduce systematic biases if used in downstream diagnostic models. There is a critical need for interpretable, granular assessment tools that evaluate individual images based on established anatomical rules.

Methods

The researchers developed a two-stage, model-agnostic framework to identify these anomalies:

  1. Feature Extraction: Instead of relying on black-box neural networks, the framework extracts the breast boundary and calculates angle gradients along the curve. These gradients are binned into a 64-dimension feature vector that captures local curvature and global context. This representation is size-agnostic, ensuring consistency across different breast sizes.
  2. Anomaly Detection: An Isolation Forest is trained on real patient data to define "normal" anatomy. Synthetic images are then scored; those with highly negative scores are flagged as outliers that violate learned biological constraints.
Overview of the proposed two-stage framework for network-induced artifact detection.

Datasets

The study utilized four primary datasets:

  • Real Data: CSAW-M and VinDr-Mammo were used to establish the baseline for normal anatomy.
  • Synthetic Data: CSAW-syn (100,000 images from a Latent Diffusion Model) and VMLO-syn (~10,000 images from StyleGAN2) were used to test the detection framework.

Results and Discussion

The proposed method demonstrated high efficacy in identifying artifacts across different generative architectures.

  • Detection Accuracy: The framework achieved an AUC of 0.97 for Diffusion-based data and 0.91 for GAN-based data.
  • Human-Algorithm Agreement: In a reader study, images in the top 1% of anomalous scores were flagged by human experts 66-68% of the time—significantly higher than the agreement rate for non-anomalous images.
  • Identifying Bias: The tool revealed that synthetic models often "extrapolate" beyond real data, creating breast shapes larger or more distorted than those found in the training sets.
Examples of synthetic mammograms with identified shape artifacts and boundary irregularities highlighted in red.

Conclusion

This knowledge-based approach provides a robust mechanism for concentrating human auditing efforts on the most problematic synthetic images. While the current method is dependent on successful boundary segmentation and does not yet analyze internal tissue texture, it establishes a foundation for geometric-based quality control in medical AI. Future work will explore the extension of this framework to other organs and assess the direct impact of these artifacts on diagnostic performance.

Summary updated

BibTeX
@misc{deshpande2025knowledge,
  author = {Rucha Deshpande and Tahsin Rahman and Miguel A. Lago and Adarsh Subbaswamy and Jana G. Delfino and Ghada Zamzmi and Yee Lam Elim Thompson and Aldo Badano and Seyed Kahaki},
  title = {{Knowledge-based anomaly detection for identifying network-induced shape artifacts}},
  year = {2025},
  eprint = {2511.04729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.04729},
}
Figure