Blood Typing at the Edge: A Hybrid Deep Learning Pipeline for Point-of-Care Blood Type Classification
Blood typing remains a manual, subjective procedure when not reliant on centralized laboratory infrastructure. This study presents an automated blood typing system for point-of-care deployment, developed in collaboration with CRIAM, whose portable device captures reaction images for in vitro diagnostics. The system integrates computer vision and artificial intelligence to classify these reactions automatically. Fourteen classification pipelines were trained and evaluated with a 3090-image dataset, encompassing fine-tuned convolutional neural networks, raw pixel-based classifiers, and hybrid architectures pairing pretrained embeddings from DINOv2 and EfficientNet-B4 with lightweight classifiers. Embedding-based approaches consistently outperformed alternatives in accuracy and cross-fold stability. The best pipeline, in terms of performance and suitability for low-power devices, combined DINOv2-small embeddings with logistic regression, achieving 99.87 ± 0.12% mean accuracy. After 8-bit integers (INT8) quantization and retraining with data augmentation, accuracy improved to 99.97 ± 0.03%, surpassing the uncompressed baseline. All misclassifications were traced to borderline weak-positive Rh/D reactions, confirming errors are localized and explainable. Held-out validation on 856 images yielded 99.53% accuracy, with the single error attributed to a lighting artifact. While deployment on a legacy 32-bit CPU prototype processes four images in approximately 4.7 min, hardware benchmarking confirmed feasibility, from a Raspberry Pi Zero 2W to high-end mobile processors. These results establish quantized embedding-driven architectures as a solution for automated blood typing in point-of-care and resource-limited settings.
Authors
- Vı́tor Carvalho (ORCID: https://orcid.org/0000-0003-4658-5844)
- Bruno da Silva (ORCID: https://orcid.org/0000-0002-4877-9688)
- Enmanuel Abilheira
- Afonso Pinheiro
- Ljiljana Dukanovic
Institutions
- Universidade Politécnica do Cávado e do Ave (PT)
- Centre for Research in Anthropology (PT)
Publication Details
- Journal
- Applied Sciences
- Published
- 2026-06-16
- DOI
- https://doi.org/10.3390/app16126089
- Primary Topic
- Biosensors and Analytical Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Ministério da Ciência, Tecnologia e Ensino Superior
- Fundação para a Ciência e a Tecnologia