The paper can be accessed over at: https://arxiv.org/abs/2511.12269
- Authors
- Paper Abstract
- Overview
- Clinical Motivation
- Method
- Components
- Results
- Qualitative Visualization
- Dataset
- Rupam Mukherjee †, School of Medical Science & Technology, IIT Kharagpur.
- Rajkumar Daniel †, School of Medical Science & Technology, IIT Kharagpur.
- Soujanya Hazra †, Department of Electrical Engineering, IIT Kharagpur.
- Dr. Shirin Dasgupta, Dr. B.C. Roy Multispeciality Medical Research Centre, IIT Kharagpur.
- Dr. Subhamoy Mandal, School of Medical Science & Technology, IIT Kharagpur.
† Equal contribution
Cytology is a valuable tool for early detection of oral squamous cell carcinoma (OSCC). However, manual examination of cytology whole slide images (WSIs) is slow, subjective, and depends heavily on expert pathologists. To address this, we introduce the first weakly supervised deep learning framework for patient-level diagnosis of oral cytology whole slide images, leveraging the newly released Oral Cytology Dataset, which provides annotated cytology WSIs from ten medical centres across India. Each patient case is represented as a bag of cytology patches and assigned a diagnosis label (Healthy, Benign, Oral Potentially Malignant Disorders (OPMD), OSCC) by an in-house expert pathologist. These patient-level weak labels form a new extension to the dataset. We evaluate a baseline multiple-instance learning (MIL) model and a proposed Region-Affinity Attention MIL (RAA-MIL) that models spatial relationships between regions within each slide. The RAA-MIL achieves an average accuracy of 72.7%, weighted F1-score of 0.69 on an unseen test set, outperforming the baseline. This study establishes the first patient-level weakly supervised benchmark for oral cytology and moves toward reliable AI-assisted digital pathology.
This repository contains the official implementation of RAA-MIL, a weakly supervised, patient-level deep learning framework for oral cytology whole slide image (WSI) classification. RAA-MIL is the first patient-level MIL benchmark for oral cytology, designed to reflect real clinical workflows where only a single diagnosis per patient is available, while fine-grained patch-level labels are absent. The framework introduces Region-Affinity Attention (RAA) to explicitly model local spatial relationships between cytological regions, improving diagnostic reliability under weak supervision.
- Oral Squamous Cell Carcinoma (OSCC) is often diagnosed late despite being highly preventable.
- Manual cytology screening is:
- Time-consuming
- Subjective
- Dependent on expert availability
- Real-world cytology diagnosis is patient-centric, not patch-centric.
RAA-MIL bridges this gap by enabling robust patient-level predictions using only weak labels.
Each patient is treated as a bag of cytology patches, following a Multiple Instance Learning (MIL) formulation.
-
Frozen Self-Supervised ViT Tokenization
- DINO-pretrained ViT-S/16 (pathology SSL benchmark)
- Encoder remains fully frozen
- Tokens cached for deterministic training
-
Region-Affinity Attention (RAA) ⭐
- Operates on the ViT token grid (14×14)
- Learns affinity between spatially neighboring regions
- Uses:
- Distance-based affinity
- Lightweight MLP
- Residual gated refinement
This enables context-aware cytological representation learning.
-
Gated Attention MIL Pooling
- Based on Ilse et al. (ICML 2018)
- Learns instance importance under weak supervision
- Aggregates all refined tokens into a single patient embedding
-
Prediction-Averaging Ensemble
- 5-fold stratified cross-validation
- Final predictions obtained via fold-wise probability averaging
- Reduces MIL-induced variance
-
Hold-out test (ensemble prediction averaging):
Model Accuracy F1 (Weighted) PR-AUC (Weighted) Vanilla MIL 0.6970 0.6749 0.7389 RAA-MIL 0.7273 0.6970 0.7969 -
Per-class PR-AUC (test set):
Class Vanilla MIL RAA-MIL Benign 0.1879 0.1772 Healthy 0.9193 0.9441 OPMD 0.6937 0.7594 OSCC 0.5437 0.7667
RAA-MIL attention maps demonstrate:
- Suppression of background artifacts
- Focused activation on diagnostically relevant cell clusters
- Distinct patterns across Healthy, OPMD, and OSCC cases
This work builds upon the Oral Cytology Dataset by Jain et al. (2025), consisting of:
- 368 PAP & MGG stained WSIs
- 10 medical centers across India
- 40× magnification
- Expert-curated representative regions
The following will be released:
- Full training & evaluation pipeline
- RAA module implementation
- MIL pooling code
- Preprocessing and token caching scripts
@article{mukherjee2025raa,
title={RAA-MIL: A Novel Framework for Classification of Oral Cytology},
author={Mukherjee, Rupam and Daniel, Rajkumar and Hazra, Soujanya and Dasgupta, Shirin and Mandal, Subhamoy},
journal={arXiv preprint arXiv:2511.12269},
year={2025},
url= {https://arxiv.org/abs/2511.12269}
}

