Home > Published Issues > 2026 > Volume 17, No. 8, 2026 >
JAIT 2026 Vol.17(8): 1610-1627
doi: 10.12720/jait.17.8.1610-1627

A Comparative Evaluation of Text Detection and Recognition Models for Cross-hospital Generalization of Thai Pharmaceutical Label OCR under Limited Data Conditions

Wongpanya S. Nuankaew 1, Pathapol Jomsawan 2, Kuljira S. Nuankaew 3, Kaewpanya S. Nuankaew 3, and Pratya Nuankaew 1,*
1. School of Information and Communication Technology, University of Phayao, Phayao, Thailand
2. Faculty of Science, Chiang Mai University, Chiang Mai, Thailand
3. Phayao Pittayakhom School, Phayao, Thailand
Email: wongpanya.nu@up.ac.th (W.S.N.); pathapon_j@cmu.ac.th (P.J.); nuankaew.kj@gmail.com (Ku.S.N.); nuankaew.kp@gmail.com (Ka.S.N.); pratya.nu@up.ac.th (P.N.)
*Corresponding author

Manuscript received January 7, 2026; revised February 20, 2026; accepted April 10, 2026; published August 26, 2026.

Abstract—Digitizing pharmaceutical labels using Optical Character Recognition (OCR) can improve medication safety and hospital workflow efficiency, but cross-hospital deployment remains challenging due to variations in label templates, printing formats, and limited labeled medical data. This study evaluates text detection and recognition models for Thai pharmaceutical label OCR under cross-hospital conditions using a three-tier evaluation protocol: source-hospital data, mixed-hospital data, and unseen hospitals. The results show clear architectural differences in cross-hospital robustness. The PaddleOCR recognition model achieves the best cross-hospital performance with 80.47% accuracy on unseen hospitals, while Transformer-based TrOCR variants degrade substantially under domain shift, achieving only 30–52% accuracy. Text detection shows relatively stable transfer across hospitals with a moderate drop of −10.68%, whereas recognition performance varies notably across architectures and training strategies. Conservative fine-tuning improves recognition accuracy by 14.85% over the base model while preserving cross-hospital generalization. These findings suggest that pre-training diversity and architectural inductive biases are more important than model scale for OCR deployment in limited-data medical settings.
 
Keywords—cross-hospital generalization, medical document processing, optical character recognition, pre-training quality, Thai script
 
Cite: Wongpanya S. Nuankaew, Pathapol Jomsawan, Kuljira S. Nuankaew, Kaewpanya S. Nuankaew, and Pratya Nuankaew, "A Comparative Evaluation of Text Detection and Recognition Models for Cross-hospital Generalization of Thai Pharmaceutical Label OCR under Limited Data Conditions," Journal of Advances in Information Technology, Vol. 17, No. 8, pp. 1610-1627, 2026. doi: 10.12720/jait.17.8.1610-1627

Copyright © 2026 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions