Judge Like a Real Doctor: Dual Teacher Sample Consistency Framework for Semi-Supervised Medical Image Classification

Qixiang Zhang, Yuxiang Yang, Chen Zu, Jianjia Zhang, Xi Wu, Jiliu Zhou, Yan Wang

TL;DR

Researchers have developed a new semi-supervised learning framework, DT-SC, that mimics how doctors diagnose patients by comparing new cases to known references. By combining "Absolute Location" consistency with a novel "Relative Location" consistency and a "Sample Scatter" phase, the model achieves state-of-the-art accuracy in medical image classification while requiring significantly fewer manual annotations.

What Problem Does This Paper Address?

In medical imaging, data is plentiful, but labeled data is incredibly expensive and time-consuming to produce, requiring hours of expert radiologist or pathologist time. Semi-supervised learning (SSL) aims to solve this by training models on a small set of labeled data and a much larger set of unlabeled data.

Most current SSL methods rely on Absolute Location consistency (AL-c). Essentially, if you show the AI two slightly different "views" of the same chest X-ray (e.g., rotated or cropped differently), the AI should give the same prediction for both.

However, the authors argue this is a limited perspective. When a real doctor looks at a difficult case, they don't just look at that one image in a vacuum; they compare it to "trustworthy" reference cases they’ve seen before. Furthermore, medical images are often very similar (e.g., every chest X-ray has a heart and lungs in roughly the same place), which makes the "feature space" very crowded. In this crowded space, even tiny amounts of noise can lead to misclassification.

Methods

The authors introduce the Dual Teacher Sample Consistency (DT-SC) framework, which employs two specialized "teacher" models to guide a "student" model:

  1. Sample Consistency Mean Teacher (SCMT): This module handles the core logic of "judging like a doctor." It maintains a Reference Sample Pool (RSP). In addition to standard consistency (AL-c), it enforces Relative Location consistency (RL-c). It calculates the "angle" (cosine similarity) between the current sample and the reference samples. The student is forced to ensure that different views of the same sample maintain the same relative "distance" to these references.
  2. Sample Scatter Mean Teacher (SSMT): To solve the "crowded feature space" problem, this module uses contrastive learning. Before the main consistency training begins, the SSMT pushes features from different samples away from each other while pulling different views of the same sample together. This "sparsifies" the distribution, making the relative locations much more robust to noise.

The training happens in two phases: first, a Sample Scatter Phase to organize the feature space, followed by a Sample Consistency Phase to refine the classification using the dual-teacher guidance.

Datasets

The framework was evaluated on three distinct and challenging benchmarks:

  • Pneumonia Chest X-ray: 5,856 images (Bacterial, Viral, or Normal).
  • ISIC Challenge 2019: A highly imbalanced dataset of 25,331 skin lesion dermoscopy images across 8 categories.
  • Alzheimer’s Dataset: 6,400 3D MRI images categorized by the stage of the disease.

Key Insights and Ideas

  • Inter-sample Relationships Matter: Moving beyond looking at a single image to looking at how an image relates to a population of images provides a much richer semantic signal for the AI.
  • The "Crowding" Constraint: The paper identifies that medical images are uniquely susceptible to "feature collapse" because the underlying anatomy is so consistent. Explicitly "scattering" the samples in the feature space is a necessary prerequisite for effective relative comparison.
  • Asymmetric Architecture: In the SSMT module, the authors used an asymmetric structure (adding a predictor head to the student but not the teacher). This prevents the student from simply "copying" the teacher and falling into a trivial solution (model collapse).

Key Results

The DT-SC framework consistently outperformed state-of-the-art (SOTA) methods like FixMatch, MixMatch, and SRC-MT across all metrics (Accuracy, AUC, F1-score).

  • Pneumonia Dataset: Achieved 90.58% accuracy with only 20% labeled data, outperforming the next best method (ACPL) and significantly beating the supervised baseline (87.66%).
  • ISIC 2019 (Skin Cancer): The model showed massive gains in "low-profile" (rare) categories. For example, it improved the AUC for Squamous cell carcinoma (SCC) by +9.64% compared to the baseline.
  • Stability: The method showed lower variance across multiple runs compared to other SOTA methods, suggesting it is more reliable for clinical applications.

Limitations and Future Work

While the results are impressive, the authors note a few areas for improvement:

  • Reference Selection: Currently, the strategy for choosing which samples go into the "Reference Sample Pool" could be more sophisticated. A more "active" selection of the most informative cases might boost performance further.
  • Task Expansion: This paper focused on classification. The authors acknowledge that "dense prediction" tasks—like semantic segmentation (outlining a tumor)—are a major part of medical AI and represent the next frontier for this dual-teacher framework.
  • Computational Overhead: Maintaining two teachers and a memory bank increases memory usage, though the authors optimized this to fit on standard high-end GPUs (RTX 3090s).

Summary updated

BibTeX
@article{zhang2025judge,
  author = {Qixiang Zhang and Yuxiang Yang and Chen Zu and Jianjia Zhang and Xi Wu and Jiliu Zhou and Yan Wang},
  title = {{Judge Like a Real Doctor: Dual Teacher Sample Consistency Framework for Semi-Supervised Medical Image Classification}},
  journal = {IEEE Trans. Emerg. Top. Comput. Intell},
  year = {2025},
  doi = {10.1109/tetci.2025.3526498},
}

Loading related content...

Figure