Unveiling the capabilities of vision transformers in sperm morphology analysis: a comparative evaluation
PeerJ Computer Science · 10.09.2025 · 11 · e3173
DOI: 10.7717/peerj-cs.3173 ↗Kurz gefasst
Fachartikel in der Zeitschrift PeerJ Computer Science, online erschienen am 10.09.2025. Verfasst von Abdulsamet Aktas und 2 weiteren Autor:innen. Beteiligte Einrichtung: Department of Computer Engineering Faculty of Technology, Marmara University Istanbul, Istanbul, Turkey. Die Arbeit wurde bisher 7-mal zitiert (Crossref) und nennt 59 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Turkey Health Institutes Presidency, Scientific and Technological Research Council of Turkey (TUBITAK) ARDEB 1001.
Abstract (Originalsprache)
Traditional sperm morphology assessment relies on manual visual inspection or semi-automated computer-aided sperm analysis (CASA) systems, which often require labor-intensive pre-processing steps. While recent machine learning approaches, particularly convolutional neural networks (CNNs), have improved feature extraction from sperm images, achieving a fully automated and highly accurate system remains challenging due to the complexity of sperm morphology and the need for specialized image adjustments. This study presents a novel, end-to-end automated sperm morphology analysis framework based on vision transformers (ViTs), which processes raw sperm images from two benchmark datasets-Human Sperm Head Morphology (HuSHeM) and Sperm Morphology Image Data Set (SMIDS)-without manual pre-processing. We conducted an extensive hyperparameter optimization study across eight ViT variants, evaluating learning rates, optimization algorithms, and data augmentation scales. Our experiments demonstrated that data augmentation significantly enhances ViT performance by improving generalization, particularly in limited-data scenarios. A comparative analysis of CNNs, hybrid models, and pure ViTs revealed that transformer-based architectures consistently outperform traditional methods. The BEiT_Base model achieved state-of-the-art accuracies of 92.5% (SMIDS) and 93.52% (HuSHeM), surpassing prior CNN-based approaches by 1.63% and 1.42%, respectively. Statistical significance ( p < 0.05, t -test) confirmed these improvements. Visualization techniques (Attention Maps, Grad-CAM) further validated ViTs’ superior ability to capture long-range spatial dependencies and discriminative morphological features, such as head shape and tail integrity. Our work bridges a critical gap in reproductive medicine by delivering a scalable, fully automated solution that eliminates manual intervention while improving diagnostic accuracy. These findings underscore the potential of transformer-based models in clinical andrology, with implications for broader applications in biomedical image analysis.
Schlagwörter
Stichwörter der Autor:innen
Autor:innen und Institutionen
- Department of Computer Engineering Faculty of Technology, Marmara University Istanbul, Istanbul, Turkey.
- Department of Computer Engineering Faculty of Electrical and Electronics, Yildiz Technical University, İstanbul, Turkey.
- Department of Biomedical Engineering Faculty of Electrical and Electronics, Yildiz Technical University, İstanbul, Turkey.
ORCID-Profile: Abdulsamet Aktas, Gorkem Serbes, Hamza Osman Ilhan
Förderung
- Turkey Health Institutes Presidency
- Scientific and Technological Research Council of Turkey (TUBITAK) ARDEB 1001
Zitieren
APA
Aktas, A., Serbes, G., & Ilhan, H. O. (2025). Unveiling the capabilities of vision transformers in sperm morphology analysis: a comparative evaluation. PeerJ Computer Science, 11, e3173. https://doi.org/10.7717/peerj-cs.3173
Vancouver
Aktas A, Serbes G, Ilhan HO. Unveiling the capabilities of vision transformers in sperm morphology analysis: a comparative evaluation. PeerJ Computer Science. 2025;11:e3173. doi:10.7717/peerj-cs.3173
BibTeX
@article{Aktas2025,
author = {Aktas, Abdulsamet and Serbes, Gorkem and Ilhan, Hamza Osman},
title = {Unveiling the capabilities of vision transformers in sperm morphology analysis: a comparative evaluation},
journal = {PeerJ Computer Science},
year = {2025},
volume = {11},
pages = {e3173},
doi = {10.7717/peerj-cs.3173}
}
EUVIMED