Evaluating Foundation Models for Automated Ki67 Cell Detection in Digital Pathology
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 28 HE credits
Student thesis
Abstract [en]
Cell counting and classification in pathological samples is a labor-intensive task with substantial potential for automation. In recent years, the use of foundation models in an early stage of a deep learning framework has been utilized to improve results while cutting training time, computation requirements, and data needs. This master’s thesis, conducted at Sectra Medical, evaluated different feature-extracting foundation models when used as the backbone in a deep learning framework to count and localize Ki67-positive and Ki67-negative cells on a tile from a whole slide image (WSI). Eight foundation models, seven of which were trained using pathological data, were selected because of their different archi-tectures, training methods, dataset size, data origin, and parameter count. They were evaluated when used as the backbone in a point-to-point (P2P) network on publicly available datasets. An ablation study examining the effects of changing parts of the framework and fine-tuning using low-rank adaptation (LoRA) was also conducted. Results were analyzed to find the best architecture composition for a final model. This model was trained on all available training data, evaluated, and finally compared against an existing cell counting tool at Sectra.The results revealed that the vision transformer models with the highest parameter count and largest datasets trained using DINOv2, UNI2-h, and Virchow2 consistently showed the highest performance. The best F1-score on Ki67+ cells was 0.829, which wasachieved on the BCData dataset using Virchow2, while the best F1-score for Ki67 cells was 0.803, obtained on the Patherea GNET dataset. Although these pathology-specific foundation models achieved the highest scores overall, they did not substantially outperform the foundation model pre-trained on non-pathological, general-domain data. Fine-tuning on Ki67-specific data improved the F1-score by up to 0.05 for transformer-based models, and up to 0.09 for CNN-based models, but did not make a significant difference overall. The final model, using Virchow2 with LoRA fine-tuning as the backbone together with non-maximum suppression, outperformed the existing cell counting tool in most cases.
Place, publisher, year, edition, pages
2026. , p. 63
Keywords [en]
Cell counting, Ki67, Foundation models, Deep learning, Computer vision, Medical imaging
National Category
Computer Vision and Learning Systems Medical Imaging
Identifiers
URN: urn:nbn:se:liu:diva-224516ISRN: LiTH-ISY-EX--26/5826--SEOAI: oai:DiVA.org:liu-224516DiVA, id: diva2:2067246
External cooperation
Sectra Medical
Subject / course
Computer Engineering
Presentation
2026-05-28, Systemet, Linköping universitet, 581 83 Linköping, Linköping, 13:15 (English)
Supervisors
Examiners
2026-06-082026-06-072026-06-08Bibliographically approved