Leveraging Deep Learning with Multi-Head Attention for Accurate Extraction of Medicine from Handwritten Prescriptions

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ali, Usman, Ranmbail, Sahil, Nadeem, Muhammad, Ishfaq, Hamid, Ramzan, Muhammad Umer, Ali, Waqas
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910761514696704
author Ali, Usman
Ranmbail, Sahil
Nadeem, Muhammad
Ishfaq, Hamid
Ramzan, Muhammad Umer
Ali, Waqas
author_facet Ali, Usman
Ranmbail, Sahil
Nadeem, Muhammad
Ishfaq, Hamid
Ramzan, Muhammad Umer
Ali, Waqas
contents Extracting medication names from handwritten doctor prescriptions is challenging due to the wide variability in handwriting styles and prescription formats. This paper presents a robust method for extracting medicine names using a combination of Mask R-CNN and Transformer-based Optical Character Recognition (TrOCR) with Multi-Head Attention and Positional Embeddings. A novel dataset, featuring diverse handwritten prescriptions from various regions of Pakistan, was utilized to fine-tune the model on different handwriting styles. The Mask R-CNN model segments the prescription images to focus on the medicinal sections, while the TrOCR model, enhanced by Multi-Head Attention and Positional Embeddings, transcribes the isolated text. The transcribed text is then matched against a pre-existing database for accurate identification. The proposed approach achieved a character error rate (CER) of 1.4% on standard benchmarks, highlighting its potential as a reliable and efficient tool for automating medicine name extraction.
format Preprint
id arxiv_https___arxiv_org_abs_2412_18199
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Leveraging Deep Learning with Multi-Head Attention for Accurate Extraction of Medicine from Handwritten Prescriptions
Ali, Usman
Ranmbail, Sahil
Nadeem, Muhammad
Ishfaq, Hamid
Ramzan, Muhammad Umer
Ali, Waqas
Computer Vision and Pattern Recognition
Machine Learning
Image and Video Processing
Extracting medication names from handwritten doctor prescriptions is challenging due to the wide variability in handwriting styles and prescription formats. This paper presents a robust method for extracting medicine names using a combination of Mask R-CNN and Transformer-based Optical Character Recognition (TrOCR) with Multi-Head Attention and Positional Embeddings. A novel dataset, featuring diverse handwritten prescriptions from various regions of Pakistan, was utilized to fine-tune the model on different handwriting styles. The Mask R-CNN model segments the prescription images to focus on the medicinal sections, while the TrOCR model, enhanced by Multi-Head Attention and Positional Embeddings, transcribes the isolated text. The transcribed text is then matched against a pre-existing database for accurate identification. The proposed approach achieved a character error rate (CER) of 1.4% on standard benchmarks, highlighting its potential as a reliable and efficient tool for automating medicine name extraction.
title Leveraging Deep Learning with Multi-Head Attention for Accurate Extraction of Medicine from Handwritten Prescriptions
topic Computer Vision and Pattern Recognition
Machine Learning
Image and Video Processing
url https://arxiv.org/abs/2412.18199