Introduction
Medical image classification is a critical yet challenging task in clinical diagnostics. Unlike natural images, medical scans—such as ultrasound, fundus, and dermatoscopic images—are often plagued by low contrast, hardware-induced noise, and blurry artifacts. Furthermore, the diagnostic features distinguishing healthy tissue from lesions are frequently subtle and fine-grained, requiring high-precision feature extraction.
While Denoising Diffusion Probabilistic Models (DDPMs) have set new benchmarks in image generation by learning to reverse stochastic noise, their potential for high-level semantic tasks like classification remains largely untapped. DiffMIC is the first diffusion-based framework specifically designed to harness the denoising power of diffusion models for robust medical image classification.
Methodology: Dual-Guidance Diffusion
The core innovation of DiffMIC lies in its ability to filter imaging noise while capturing fine-grained clinical details through a dual-granularity approach.
Dual-granularity Conditional Guidance (DCG)
DiffMIC mimics a radiologist's workflow by processing images through two distinct streams. Instead of relying solely on raw image input, the model generates two types of priors to guide the diffusion process:
- Global Prior: Provides a holistic view of the entire image structure.
- Local Prior: Focuses on specific Regions of Interest (ROIs) identified through saliency maps, ensuring that subtle lesions are not overlooked.
Condition-specific MMD Regularization
To ensure the latent representations are meaningful and stable, the authors introduce Maximum-Mean Discrepancy (MMD) regularization. This technique aligns the distributions of the sampled noise with the target Gaussian distribution for both global and local granularities. This alignment helps the network capture mutual information effectively, leading to more stable convergence during training.
The architecture utilizes a ResNet18 as the primary image encoder and a U-Net as the denoising network. During inference, the model begins with random noise and iteratively refines it into a classification prediction, conditioned on the dual-granularity features extracted from the input image.
Experimental Results
DiffMIC was evaluated across three diverse medical imaging datasets representing different modalities:
- PMG2000: Ultrasound images for placental maturity grading.
- HAM10000: Dermatoscopic images for skin lesion classification (highly imbalanced).
- APTOS2019: Fundus images for diabetic retinopathy grading (highly imbalanced).
Performance Comparison
DiffMIC consistently outperformed state-of-the-art (SOTA) CNN and Transformer architectures. On the PMG2000 dataset, it achieved an accuracy of 93.1%, surpassing the Pyramid Vision Transformer (PVT) at 90.7%. In the challenging HAM10000 skin lesion dataset, DiffMIC reached 90.6% accuracy, outperforming ProCo (88.7%), a leading method for long-tailed classification. Similarly, for APTOS2019, it achieved 85.8% accuracy, a significant improvement over the 83.7% baseline.
Feature Evolution and Efficiency
A key insight from the study is the role of the diffusion process in refining feature representations. As the denoising steps progress from initial noise ($t=T$) to the final prediction ($t=0$), the feature clusters for different classes become increasingly distinct.
Despite the iterative nature of diffusion, DiffMIC remains efficient for clinical use. By optimizing the number of diffusion steps ($T=60$ to $250$), the model achieves an average inference time of 0.056 seconds per image, making it viable for real-time diagnostic support.
Discussion and Future Work
DiffMIC demonstrates that the stochastic nature of diffusion models can act as a natural filter for the noise and perturbations inherent in medical imaging. By explicitly incorporating global and local guidance, the model retains the high-resolution features necessary for accurate diagnosis.
As the first framework of its kind, DiffMIC serves as a strong baseline for future research. Potential areas for improvement include optimizing the U-Net architecture specifically for classification tasks and automating the selection of diffusion steps ($T$) for different datasets. Furthermore, extending this dual-guidance approach to 3D medical volumes (e.g., CT or MRI) represents a promising frontier for the field.
Summary updated