Abstract
Automated white blood cell (WBC) classification is a critical diagnostic tool, yet models often fail to generalize across different laboratory settings. This paper establishes a reproducible benchmark to evaluate model robustness under "domain shift"—variations in imaging conditions such as lighting and staining. We identify a significant performance collapse in modern ResNet50 architectures compared to older VGG16 models when tested on out-of-distribution data. Our analysis pinpoints Batch Normalization (BN) as a primary driver of this fragility. We demonstrate that replacing BN with Group Normalization (GN) or freezing BN layers can substantially restore model robustness, bridging the generalization gap.
Introduction
The field of automated WBC classification currently faces a reproducibility crisis, with studies reporting inconsistent accuracies and often failing to release code. A more fundamental issue is the lack of evaluation under domain shift. While a model may achieve near-perfect accuracy on a specific dataset, changes in microscope hardware or chemical staining can lead to catastrophic failure in real-world clinical environments.
This study quantifies the impact of domain shift and investigates why modern architectures, despite their theoretical advantages, often generalize poorly compared to their predecessors.
Experimental Setup
The researchers evaluated two primary architectures: VGG16 (representing older designs without Batch Normalization) and ResNet50 (representing modern designs with heavy BN usage). To improve ResNet's robustness, several modifications were tested:
- Normalization Swap: Replacing Batch Normalization (BN) with Group Normalization (GN), which normalizes within a single image rather than across a batch, reducing sensitivity to training domain statistics.
- BN Freezing: Utilizing BN parameters pre-trained on ImageNet and keeping them static during training to prevent overfitting to lab-specific imaging quirks.
- Selective Finetuning: Training only the final 16 layers while freezing earlier layers to minimize domain-specific feature extraction.
The benchmark utilizes the RaabinWBC dataset (~16k images) for training and in-domain testing, and the LISC dataset for evaluating domain generalization.
Results and Analysis
The experiments revealed a "ResNet Paradox": while ResNet50 achieved an impressive 98.53% ± 0.18% accuracy on in-domain data (RaabinWBC), its performance plummeted to 23.11% when tested on the LISC dataset—barely exceeding random chance for a five-class problem. In contrast, the older VGG16 maintained a significantly higher cross-domain accuracy of 74.44%.
The performance collapse is attributed to Batch Normalization acting as a "domain anchor," baking training-specific statistics into the model. As shown in the results, replacing BN with Group Normalization (GN) allowed ResNet50 to match VGG16's performance, reaching 73.07% accuracy on the LISC dataset. Freezing BN layers and finetuning the final layers also provided a substantial boost, reaching 74.28%. The authors also noted that even changing a random seed can swing results by 1%, emphasizing the necessity of reporting error bars.
Conclusion
This work highlights the critical need for cross-domain benchmarking in medical imaging. While architectural modifications like Group Normalization significantly improve robustness, a ~74% cross-domain accuracy remains insufficient for clinical deployment. Future work must address persistent challenges such as class imbalance—particularly for rare cells like Basophils—and explore advanced data augmentation techniques to further narrow the generalization gap.
Summary updated