Margin-Consistent Deep Subtyping of Invasive Lung Adenocarcinoma via Perturbation Fidelity in Whole-Slide Image Analysis
Organizations: Vincent · Department of Pathology, SUNY Upstate Medical University, Syracuse, NY, 13210, USA. · Columbia University, New York, NY, 10027, USA.
Abstract
Whole-slide image classification for invasive lung adenocarcinoma subtyping remains vulnerable to real-world imaging perturbations that undermine model reliability at the decision boundary. We propose a margin consistency framework evaluated on 203,226 patches from 143 whole-slide images spanning five adenocarcinoma subtypes in the BMIRDS-LUAD dataset. By combining attention-weighted patch aggregation with margin-aware training, our approach achieves robust feature-logit space alignment measured by Kendall correlations of 0.88 during training and 0.64 during validation. Contrastive regularization, while effective at improving class separation, tends to over-cluster features and suppress fine-grained morphological variation; to counteract this, we introduce Perturbation Fidelity (PF) scoring, which imposes structured perturbations through Bayesian-optimized parameters. Vision Transformer-Large achieves 95.20 +/- 4.65% accuracy, representing a 40% error reduction from the 92.00 +/- 5.36% baseline, while ResNet101 with an attention mechanism reaches 95.89 +/- 5.37% from 91.73 +/- 9.23%, a 50% error reduction. All five subtypes exceed an area under the receiver operating characteristic curve (AUC) of 0.99. On the WSSS4LUAD external benchmark, ResNet50 with an attention mechanism attains 80.1% accuracy, demonstrating cross-institutional generalizability despite approximately 15-20% domain-shift-related degradation and identifying opportunities for future adaptation research.
Figures & tables
| Model | |||
|---|---|---|---|
| ResNet50+Attn | 90.63 9.36 | 92.54 6.90** | 94.80 6.12 *** |
| [87.3, 93.9] | [89.8, 95.3] | [91.8, 97.8] | |
| ViT-L | 92.00 5.36 | 93.78 4.98* | 95.20 4.65 *** |
| [89.1, 94.9] | [91.2, 96.4] | [92.6, 97.8] | |
| ResNet101+Attn | 91.73 9.23 | 93.18 4.51** | 95.89 5.37 *** |
| [88.4, 95.0] | [90.5, 95.9] | [93.3, 98.5] |
| Method | Accuracy (%) | 95% CI | -value |
|---|---|---|---|
| DeepSlide Wei et al. (2019) † | 90.4 | [87.1, 93.7] | 0.001*** |
| Independent ResNet101 † | 79.5 | [75.2, 83.8] | 0.001*** |
| Unsupervised Sheikh et al. (2022) † | 94.6 | [91.8, 97.4] | 0.042* |
| Proposed (Ours) | 95.89 | [93.3, 98.5] | — |
| † Re-implemented and evaluated on our dataset using identical protocols. | |||
| Architecture | Accuracy (%) | 95% CI | vs Internal | Domain Shift |
|---|---|---|---|---|
| ResNet50+Attn | 80.1 11.5 | [74.2, 86.0] | 14.7% | Moderate |
| ResNet101+Attn | 78.7 8.3 | [73.9, 83.5] | 17.2% | Moderate |
| ViT-L | 73.1 10.1 | [67.4, 78.8] | 22.1% | Substantial |
| Architecture | Baseline (%) | Our Method (%) | Improv. (%) |
|---|---|---|---|
| ResNet50+Attn | 90.63±9.36 | 94.80±6.12 | +4.17 |
| ViT-L | 92.00±5.36 | 95.20±4.65 | +3.20 |
| ResNet101+Attn | 91.73±9.23 | 95.89±5.37 | +4.16 |
| Comparison | McNemar’s | -value | Cohen’s | Effect Size |
|---|---|---|---|---|
| CE vs. CE+CON+PF (Full Method) | ||||
| ResNet50+Attn | 14.23 | 0.001*** | 0.53 | Medium |
| ViT-L | 11.87 | 0.001*** | 0.64 | Medium |
| ResNet101+Attn | 16.42 | 0.001*** | 0.55 | Medium |
| CE+CON vs. CE+CON+PF (PF Contribution) | ||||
| ResNet50+Attn | 5.12 | 0.024* | 0.31 | Small |
| Subtype | Sensitivity | Specificity | PPV | NPV | AUC | Fisher’s |
|---|---|---|---|---|---|---|
| Solid | 0.988 | 0.992 | 0.981 | 0.995 | 0.9996 | 0.001*** |
| Lepidic | 0.964 | 0.997 | 0.986 | 0.992 | 0.9983 | 0.001*** |
| Acinar | 0.989 | 0.988 | 0.982 | 0.993 | 0.9988 | 0.001*** |
| Papillary | 0.979 | 0.996 | 0.989 | 0.993 | 0.9998 | 0.001*** |
| Note: Micropapillary merged with Papillary due to limited samples ( ). | ||||||
| Architecture | Baseline CI | Our Method CI | Var. Red. | Levene’s |
|---|---|---|---|---|
| ResNet50+Attn | [87.3, 93.9] | [91.8, 97.8] | 57.2% | 0.003** |
| ViT-L | [89.1, 94.9] | [92.6, 97.8] | 24.7% | 0.041* |
| ResNet101+Attn | [88.4, 95.0] | [93.3, 98.5] | 66.2% | 0.001*** |
| Architecture | Mean Accuracy (%) | Min-Max Range | CV (%) |
|---|---|---|---|
| ResNet50+Attention | 94.80 | [91.7, 97.9] | 6.46 |
| ViT-L | 95.20 | [92.6, 97.8] | 4.88 |
| ResNet101+Attention | 95.89 | [93.0, 98.8] | 5.60 |
| Architecture Type | Baseline | Our Method | (%) |
|---|---|---|---|
| CNN (ResNet) | 90.63-91.73 | 94.80-95.89 | 4.16-4.17 |
| Transformer (ViT) | 92.00 | 95.20 | 3.20 |
| Overall Range | 90.63-92.00 | 94.80-95.89 | 3.20-4.17 |
Histopathology Image Classification
Histopathology image classification uses computational models to identify tissue types, tumors, grades, and biomarkers from stained pathology images.
See all 139 papers