Interrogation of Retrieval Augmented Generation-Based Intelligent System for Personalized Medication Identification, Safety Assessment, and Patient Advisory

Wrong prescriptions are among the most common causes of patient harm that could have been avoided with medication AI assisting the interpretation of possible ambiguous drug names, dosages, frequencies, routes of administration etc. Unclear handwritten prescriptions represent a significant portion of the cases. Standard OCR can digitize prescription images, but cannot verify medication nor return clinically safe interpretations by itself. We introduce MedGuard AI, an RAG-powered AI system to personalize drug identification and patient safety alerts/notifications. The system transforms prescription text to normalized medication identities which are mapped to structured clinical data to power a patient safety use case. An entity extraction model fine-tuned on token classification tasks locates medication mentions. Dictionary-based normalization and fuzzy matching of known brand, generic, and canonical names follow. This process outputs medication candidates that the user must confirm before safety calculations can begin. Allergy, drug-drug interaction, contraindication and other medication checks are processed by deterministic rule-based engines using structured drug knowledge references. A TF-IDF based retriever operating locally augments generated explanations with extracted supporting evidence, limiting hallucinations and improving traceback. The extraction pipeline model was fine-tuned on 1,500 labeled prescriptions, resulting in an F1-score of 0.86 (macro), 0.97(weighted) and 0.98(micro) with a token accuracy of 0.98. The prototype is made of a FastAPI server, ReactJS 19 web frontend, the local retrieval database, constrained LLM deployed for explanation generation with deterministic offline fallback, PDF rendering for export of results, and 17-unit test cases. Separating deterministic parts from generative parts allows higher trust and clinical defensibility.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-26
DOI
https://doi.org/10.5281/zenodo.23671450
Primary Topic
Artificial Intelligence in Healthcare and Education
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Interrogation of Retrieval Augmented Generation-Based Intelligent System for Personalized Medication Identification, Safety Assessment, and Patient Advisory

S., D. Mohanapriya, K. S. Naveen
1 links
Zenodo (CERN European Organization for Nuclear Research)
Artificial Intelligence in Healthcare and Education
article

Interrogation of Retrieval Augmented Generation-Based Intelligent System for Personalized Medication Identification, Safety Assessment, and Patient Advisory

S., D. Mohanapriya, K. S. Naveen
article en

Abstract

Wrong prescriptions are among the most common causes of patient harm that could have been avoided with medication AI assisting the interpretation of possible ambiguous drug names, dosages, frequencies, routes of administration etc. Unclear handwritten prescriptions represent a significant portion of the cases. Standard OCR can digitize prescription images, but cannot verify medication nor return clinically safe interpretations by itself. We introduce MedGuard AI, an RAG-powered AI system to personalize drug identification and patient safety alerts/notifications. The system transforms prescription text to normalized medication identities which are mapped to structured clinical data to power a patient safety use case. An entity extraction model fine-tuned on token classification tasks locates medication mentions. Dictionary-based normalization and fuzzy matching of known brand, generic, and canonical names follow. This process outputs medication candidates that the user must confirm before safety calculations can begin. Allergy, drug-drug interaction, contraindication and other medication checks are processed by deterministic rule-based engines using structured drug knowledge references. A TF-IDF based retriever operating locally augments generated explanations with extracted supporting evidence, limiting hallucinations and improving traceback. The extraction pipeline model was fine-tuned on 1,500 labeled prescriptions, resulting in an F1-score of 0.86 (macro), 0.97(weighted) and 0.98(micro) with a token accuracy of 0.98. The prototype is made of a FastAPI server, ReactJS 19 web frontend, the local retrieval database, constrained LLM deployed for explanation generation with deterministic offline fallback, PDF rendering for export of results, and 17-unit test cases. Separating deterministic parts from generative parts allows higher trust and clinical defensibility.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 19%
Artificial Intelligence in Healthcare and Education
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Interrogation of Retrieval Augmented Generation-Based Intelligent System for Personalized Medication Identification, Safety Assessment, and Patient Advisory — S., D. Mohanapriya, et al. · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS