Modular Deep Active Learning Framework for Image Annotation: A Technical Report for the Ophthalmo-AI Project

Md Abdul Kadir, Hasan Md Tusfiqur Alam, Pascale Maul, Hans-Jürgen Profitlich, Moritz Wolf, Daniel SonntagarXiv 2024 · DOI

Introduction

In medical AI, the scarcity of high-quality annotated data remains a significant hurdle. Training robust models for diagnosing conditions like age-related macular degeneration (AMD) requires thousands of precisely segmented Optical Coherence Tomography (OCT) scans. Manual segmentation—delineating retinal layers and fluid pockets—is a labor-intensive task requiring specialized expertise from ophthalmologists.

While Deep Learning (DL) offers automation potential, it is notoriously data-hungry. Active Learning (AL) addresses this by enabling models to selectively query labels for the most "informative" or "uncertain" samples. However, existing AL tools often lack integration, requiring manual coordination between databases, annotation interfaces, and training backends. This report introduces MedDeepCycleAL, a unified, modular framework designed to streamline this process.

System Architecture

The MedDeepCycleAL framework is built on a decentralized, modular architecture consisting of four primary components:

  1. Annotation Tool (AT): A web-based interface (forked from the HUMAN framework) where experts perform segmentation. It features "pre-segmentation" suggestions to accelerate the labeling process.
  2. Controller: A Flask-based central hub that coordinates data flow between the human expert and the machine learning backend.
  3. Data Manager: An independent module responsible for secure data retrieval from platforms like "XplOit," processing raw Volume (.VOL) files, and managing the pool of labeled and unlabeled data.
  4. Active Learning Backend: Built using PyTorch, VISSL, and modAL, this backend supports semantic segmentation architectures like U-Net and Y-Net.
The modular infrastructure of the MedDeepCycleAL framework.

The Active Learning Cycle

The framework operates in an iterative loop, referred to as the "AI Cycle." This cycle ensures that expert effort is focused on the most valuable data points.

The iterative AI Cycle for active learning and annotation.

The workflow proceeds as follows:

  1. Annotation: Samples are annotated by experts using the Annotation Tool.
  2. Update: The Server (Controller) updates the database via the Data Manager.
  3. Trigger: The Server triggers a new AL iteration in the backend.
  4. Training & Querying: The AL Backend trains the model, evaluates uncertainty, and queries the most informative new samples.
  5. Request: The Server sends a request for new annotations to the tool.
  6. Preparation: The Annotation Tool prepares the new samples for the next round of expert review.

Key Insights and Methodology

A core innovation of this framework is the implementation of EdgeAL, a sampling strategy that prioritizes uncertainty at semantic region boundaries. This approach proved significantly more effective than standard random sampling or entropy-based measures.

Furthermore, the system utilizes YAML-based configuration files, allowing researchers to easily swap model architectures (e.g., U-Net to Y-Net) or sampling strategies without modifying the core codebase. The framework also supports a "partial labeling" hypothesis, where experts might only be asked to label complex regions of an image, further optimizing time.

Evaluation and Results

The framework was benchmarked using the AROI (Annotated Retinal OCT Images) and Duke datasets. Key findings include:

  • Efficiency: On the Duke dataset, the EdgeAL strategy achieved 99% of peak performance (Mean Dice score of 0.82 vs. 0.83) using only 12% of the total dataset.
  • Performance: The Y-Net architecture demonstrated exceptional accuracy on specific retinal layers, such as the Inner Limiting Membrane (ILM).
  • Sampling Superiority: Advanced strategies like EdgeAL and MAXRPR consistently outperformed traditional methods like MC Dropout and Core-set selection.

Conclusion and Future Directions

MedDeepCycleAL demonstrates that a modular, active learning-driven approach can drastically reduce the annotation burden in medical imaging. Future work will focus on deeper integration of Self-Supervised Learning (SSL) to further decrease the required amount of labeled data and exploring methods to mitigate inter-annotator variability.

Summary updated

BibTeX
@misc{kadir2024modular,
  author = {Md Abdul Kadir and Hasan Md Tusfiqur Alam and Pascale Maul and Hans-Jürgen Profitlich and Moritz Wolf and Daniel Sonntag},
  title = {{Modular Deep Active Learning Framework for Image Annotation: A Technical Report for the Ophthalmo-AI Project}},
  year = {2024},
  eprint = {2403.15143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.15143},
}
Figure