Interrogation of Retrieval Augmented Generation-Based Intelligent System for Personalized Medication Identification, Safety Assessment, and Patient Advisory
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)…
Read the paper
Related studies
- Animal models of schizophrenia
- Retrieval Augmented Visual Question Answering with Outside Knowledge
- Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering
- Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation
- Retrieval-Augmented Embodied Agents
- Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
Go deeper in Evidence Hub
Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.