[Paper Review] Extracting Daily Dosage from Medication Instructions in EHRs: An Automated Approach and Lessons Learned
This paper presents a hybrid NLP system that automatically extracts daily medication dosage from free-text EHR prescriptions across all medications, combining deep learning for entity recognition with rule-based normalization and regex matching. It achieves 0.95 recall and 0.98 precision on a 1,000-sample expert-annotated dataset, marking the first general-purpose approach to daily dosage calculation in EHRs.
Medication timelines have been shown to be effective in helping physicians visualize complex patient medication information. A key feature in many such designs is a longitudinal representation of a medication's daily dosage and its changes over time. However, daily dosage as a discrete value is generally not provided and needs to be derived from free text instructions (Sig). Existing works in daily dosage extraction are narrow in scope, targeting dosage extraction for a single drug from clinical notes. Here, we present an automated approach to calculate daily dosage for all medications, combining deep learning-based named entity extractor with lexicon dictionaries and regular expressions, achieving 0.98 precision and 0.95 recall on an expert-generated dataset of 1,000 Sigs. We also analyze our expert-generated dataset, discuss the challenges in understanding the complex information contained in Sigs, and provide insights to guide future work in the general-purpose daily dosage calculation task.
Motivation & Objective
- To address the lack of automated, general-purpose daily dosage extraction from EHR medication instructions (Sig fields) across all medications.
- To reduce clinical cognitive burden by enabling accurate longitudinal medication timeline visualizations for complex polypharmacy cases.
- To identify and categorize challenges in interpreting free-text Sig fields, including ambiguity, inconsistency, and missing constraints.
- To develop a system that returns null when confidence is low and flags problematic Sigs for clinician review.
- To guide future research by analyzing Sig language patterns and identifying limitations in current rule-based normalization approaches.
Proposed method
- A deep learning-based named entity recognizer identifies key components in Sig text, including dose, frequency, and route.
- A lexicon-based normalization module maps natural language terms (e.g., 'twice daily') to standardized dosage units and frequencies.
- Regular expressions are used to detect and extract dosage expressions, including complex patterns like 'Mon-Wed-Thurs-Sat' or 'alternate days'.
- Daily dosage is calculated by summing individual administration dosages, with confidence thresholds applied to avoid low-quality outputs.
- The system flags ambiguous, conflicting, or incomplete Sigs by comparing parsed components against expert-defined categories.
- A rule-based pipeline ensures robustness and interpretability, with plans to explore end-to-end sequence-to-sequence models in future work.
Experimental results
Research questions
- RQ1Can a general-purpose system accurately extract daily dosage from free-text medication instructions across all medications in EHRs?
- RQ2What are the main linguistic and structural challenges in Sig fields that hinder accurate dosage extraction?
- RQ3How do variations in Sig language (e.g., typos, PRN use, max limits) affect the reliability of automated dosage calculation?
- RQ4What are the most common error patterns in current rule-based systems, and how can they be mitigated?
- RQ5Can expert-annotated categories of ambiguous or invalid Sigs be used to improve system transparency and clinical safety?
Key findings
- The system achieved 0.95 recall and 0.98 precision on a 1,000-sample expert-annotated dataset, demonstrating high accuracy in daily dosage extraction.
- The most frequent error category was 'new expressions' involving novel or non-standard phrasing such as 'alternate' or 'Mon-Wed-Thurs-Sat'.
- A significant number of errors arose from ignoring maximum daily limits or PRN exceptions, leading to overestimated dosages when extra constraints were not parsed.
- The system correctly identified and returned null for conflicting Sigs in most cases, but missed two instances where it used only the first expression, leading to incorrect dosages.
- Typos such as 'talbet' were not recognized, highlighting limitations in current normalization heuristics.
- The analysis revealed shared linguistic patterns among medications with similar routes or formulations, suggesting opportunities for medication-specific modeling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.