A hybrid deep learning-based OCR model for handwritten medical prescriptions.
Omar Z Ameer, Mahmood Hameed Majeed, Safa L Kailan, Saif Mohamed Baraa Alsabti, Ali M Elhenidy
College of Pharmacy, Alfaisal University, Riyadh, Saudi Arabia. · Department of Biomedical Engineering, College of Engineering, Al-Nahrain University, Baghdad, Iraq.
Key points
From the paper's conclusion- The findings verify that the combination of lightweight classifiers and multi-OCR decision routing and multi-LLM-aided comparative benchmarking offers a scalable and robust solution to real-world medical prescriptions digitization, which adds to better automation, accuracy, and safety in healthcare information processing.
Abstract
The current trend involving the use of paper-based medical prescriptions and the exchange of such by the social media is a major problem in automated and accurate text extraction in healthcare processes. This paper suggests a complete smart pipeline to digitize the images of medical prescriptions with lightweight deep learning-based classification, specialized Optical Character Recognition (OCR) engines, and comparative benchmarking of results using a large language model (LLM). The web scraped images of medical prescriptions are initially processed through a GhostNetV2 classifier to differentiate between handwritten and digital medical prescriptions. According to this choice, digital images are sent to PaddleOCR, and handwritten images are considered in Tesseract OCR so that each image could be processed by the best suitable recognition engine. The OCR outputs from both branches are benchmarked against GPT-4o (OpenAI) as an independent baseline to assess competitive performance and provide error-rate context. Experimental analysis shows that the suggested adaptive routing strategy is characterized by the fact that it has a high classification rate and the character and word error rates are significantly lower than those single-OCR techniques. The system is competitive with, though does not exceed, the raw accuracy of a state-of-the-art LLM-based OCR baseline (GPT-4o), while offering practical advantages in cost, transparency, and on-premises deployability that the black-box, per-call LLM baseline does not. The findings verify that the combination of lightweight classifiers and multi-OCR decision routing and multi-LLM-aided comparative benchmarking offers a scalable and robust solution to real-world medical prescriptions digitization, which adds to better automation, accuracy, and safety in healthcare information processing.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An intelligent OCR-LLM prescription review system for inpatient narcotic and psychotropic drugs: Development and retrospective validation.Medicine · 2026
- Where Does an On-Device Prescription Reader Lose Medications? A Frozen-Replay Study, from a 270M Language Model to a 2B Vision-Language ModelarXiv · 2026
- A hybrid framework for pill identification using convolutional neural networks and optical character recognitionDiscover Artificial Intelligence · 2026
- Enhanced LLM-supported instructions for medication use through retrieval-augmented generationComputers in Biology and Medicine · 2025
- Extraction of clinical information from faxed medical records using a small local large language model pipeline on consumer hardwaremedRxiv · 2026
- Developing a scalable pipeline for data extraction from clinical letters through resource-efficient prompt engineering.NPJ digital medicine · 2026