Clinical Chemistry

A-087 Development and Comparison of Vision Transformers for Detection of Blood Smears with Plasmodium falciparum

Paul Nagao, Rebecca Yee

Key points

From the paper's conclusion
  • Our study demonstrates that pretrained vision models contain transferable features that can be effectively customized and calibrated to local images through LoRA-based fine-tuning.

Abstract

Background As open-source artificial intelligence (AI) models become increasingly available, the barrier to clinical adoption is shifting from building models to domain-specific implementation and validation. In clinical microbiology, malaria blood smear interpretation remains a manual, laborious, and time-sensitive workflow. Vision models can be leveraged to generalize downstream visual classification tasks. However, developing these foundation-scale models from scratch requires access to large, standardized datasets and significant computing power for training and inference. Here, we aim to demonstrate that parameter-efficient low-rank adapter (LoRA) fine-tuning of a frozen vision transformer enables high-performance malaria detection using a locally curated dataset. We show as a proof-of-concept that this approach provides a more agile framework for integrating machine learning into diagnostic workflows. Methods A frozen vision transformer (ViT) backbone (DINOv2) was used for all experiments. Fine-tuning was performed on a dataset of 488 locally procured images derived from unique peripheral blood smears. All images were captured from de-identified clinical blood smears at 100x magnification and pre-processed into standardized 518 x 518 pixel tiles. Ground truth labels assigned through consensus of two qualified laboratory professionals as either positive (P. falciparum parasite present) or negative (no parasite). The dataset was exclusively assigned to each set: 70% for training, 15% for validation, and 15% for testing with an equal amount of positive and negative fields. A probability threshold of 0.5 was used to classify images as either positive or negative. Image augmentation was achieved by controlled variations in brightness, contrast, and rotation. Performance was evaluated for concordance, sensitivity, and specificity. Results DINOv2’s inherent ability to detect malaria was poor as baseline linear probe training achieved a concordance of 79%, and sensitivity and specificity of 97% and 59%, respectively. All false-positive calls were from fields of red blood cells with no discernable patterns or any interference with other human cells. Adapter-based fine tuning of the baseline model improved overall concordance to 93% while maintaining high sensitivity (95%) with increased specificity (91%). The performance of models trained with image augmentation depended on the backbone. Training with image augmentation on DINOv2’s baseline model did not significantly change performance from baseline (80% concordance, 97% sensitivity, 62% specificity). However, training with image augmentation on a previously adapter- trained model achieved the strongest balance of performance with 94% concordance, 92% sensitivity, and 97% specificity. Conclusion These findings indicate that lightweight adapter fine-tuning with image augmentation yields the greatest performance gain over baseline linear probe classification of smears with P. falciparum. Our study demonstrates that pretrained vision models contain transferable features that can be effectively customized and calibrated to local images through LoRA-based fine-tuning. This approach reduces the computational and data requirements for traditional foundational model development and lowers the barrier to integrating machine learning into pathology workflows.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers