Knowledge distillation for efficient standard scanplane detection of fetal ultrasound

Jacopo Dapueto, Luca Zini, Francesca OdoneMedical Biol. Eng. Comput 2024 · DOI

Introduction

Obstetric ultrasound examinations are fundamental for monitoring fetal development and identifying potential health risks. A critical component of these exams is the identification of "standard planes" (SPs)—specific cross-sectional views of anatomical structures such as the fetal brain, abdomen, and femur. However, the accuracy of SP detection is highly dependent on the sonographer's expertise, leading to significant diagnostic variability, particularly in resource-limited settings.

While deep learning offers a solution for automated SP detection, deploying state-of-the-art models on portable ultrasound devices presents a significant challenge. These devices are designed for mobility and cost-effectiveness but lack the computational resources required to execute heavy convolutional neural networks (CNNs) in real-time. This paper presents a Knowledge Distillation (KD) framework designed to compress high-performance diagnostic capabilities into a lightweight model suitable for edge deployment.

Methodology

The authors employ a Teacher-Student distillation strategy to bridge the gap between accuracy and efficiency. The "Teacher" model is a high-capacity DenseNet169, while the "Student" is a SmallNet32—a compact architecture from the SonoNet family optimized for ultrasound tasks by removing fully connected layers.

Knowledge Distillation Strategy

The core of the approach is a custom loss function that integrates both response-based and feature-based distillation. Beyond mimicking the final classification logits, the student is trained to replicate the intermediate representations of the teacher.

The proposed Knowledge Distillation framework, illustrating the manual mapping and feature map alignment between the student and teacher models.

A key innovation is the use of hand-crafted layer association. Rather than relying on automated attention mechanisms, which often require extensive data to converge, the authors manually mapped three specific convolutional layers from the teacher to the student. To align the differing dimensions of these feature maps, they utilized a combination of average pooling and 1x1/3x3 convolutions (projections), ensuring the student captures the semantic richness of the teacher's deeper layers.

Dataset and Evaluation

The models were validated using the FETAL_PLANE_DB, the first publicly available dataset for fetal ultrasound scanplanes. This dataset comprises over 12,400 images from 1,792 patients, spanning six categories: fetal abdomen, brain, femur, thorax, maternal cervix, and a diverse "Other" class representing non-standard or low-quality images.

Results and Discussion

The distilled SmallNet32 achieved a balanced test accuracy of 93.02%, representing a 1.73% improvement over a student model trained from scratch. More importantly, the model achieved a 21x reduction in inference time and a 22x reduction in parameters compared to the DenseNet169 teacher. With a processing time of 9.4 ms per frame, the model is well-suited for real-time integration into portable firmware.

Holistic Feature Learning

Analysis of the model's focus revealed that distillation encourages "holistic" vision. While a baseline small model might fixate on a single prominent feature, the distilled student learns to identify multiple anatomical landmarks simultaneously, mimicking the teacher's comprehensive understanding of fetal anatomy.

Identification of multiple anatomical structures within a fetal ultrasound scanplane, illustrating the model's ability to recognize complex spatial relationships.

The distillation process also significantly improved performance on the "Other" class. By inheriting robust feature extraction capabilities from the teacher, the student became more adept at distinguishing true standard planes from the visually similar but non-diagnostic images that populate the "Other" category.

Conclusion

This work demonstrates that manual architectural mapping in Knowledge Distillation can outperform automated methods for specialized medical imaging tasks. By successfully compressing a heavy diagnostic model into a lightweight student, the authors provide a viable path for bringing high-quality AI guidance to portable ultrasound devices, potentially improving maternal and fetal healthcare in underserved regions. Future work will explore the integration of expert eye-tracking data to further refine the model's focus.

Summary updated

BibTeX
@article{dapueto2024knowledge,
  author = {Jacopo Dapueto and Luca Zini and Francesca Odone},
  title = {{Knowledge distillation for efficient standard scanplane detection of fetal ultrasound}},
  journal = {Medical Biol. Eng. Comput.},
  year = {2024},
  doi = {10.1007/s11517-023-02881-4},
}
Figure