Author
Listed:
- K. S. Naveen
- Dr
- D. Mohanapriya
- Dr
- S. Nithyanandh
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.
Suggested Citation
K. S. Naveen & Dr & D. Mohanapriya & Dr & S. Nithyanandh, 2026.
"Interrogation of Retrieval Augmented Generation-Based Intelligent System for Personalized Medication Identification, Safety Assessment, and Patient Advisory,"
International Journal of Scientific Research in Computer Science, Engineering and Information Technology, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 12(5), pages 643-655, September.
Handle:
RePEc:jbh:ijsrcs:v12:y2026:i5:id:2209
DOI: 10.5281/zenodo.23671451
Note: Article URL: https://ijsrcseit.com/home/article/view/CSEIT2612582
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jbh:ijsrcs:v12:y2026:i5:id:2209. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Pankaj Sharma (email available below). General contact details of provider: https://ijsrcseit.com/home .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.