Authors: Le Zhang; Tyra Lagerberg; Qi Chen; Laura Ghirardi; Brian M D'Onofrio; Henrik Larsson; Alexander Viktorin; Zheng Chang · Research
Can Machine Learning Help Predict Medication Dosage from Prescription Notes?
A new algorithm uses machine learning to accurately predict medication dosages from doctor's prescription notes
Source: Zhang, L., Lagerberg, T., Chen, Q., Ghirardi, L., D'Onofrio, B. M., Larsson, H., Viktorin, A., & Chang, Z. (2021). Prediction of treatment dosage and duration from free-text prescriptions: an application to ADHD medications in the Swedish prescribed drug register. Evidence Based Mental Health, 24(4), 146-152. doi:10.1136/ebmental-2020-300231
What you need to know
- A new machine learning algorithm can accurately predict medication dosages from doctors’ handwritten prescription notes with 96.8% accuracy
- The algorithm revealed that young adults are most likely to discontinue ADHD medication treatment compared to other age groups
- Higher doses of ADHD medications tend to be prescribed as patients get older
The Challenge of Understanding Prescriptions
Have you ever looked at a doctor’s prescription note and struggled to understand the dosage instructions? You’re not alone. Even pharmacists and healthcare databases face challenges in consistently interpreting prescription notes, which are often written in an unstructured way. This creates problems for researchers trying to study medication use patterns and effectiveness across large populations.
A Smart Solution Using Machine Learning
Researchers developed an innovative algorithm that can “read” and interpret free-text prescription notes using artificial intelligence. The system works similarly to how a human would process the information - it learns to recognize important patterns in the text that indicate dosage instructions, even when written in different ways.
How Well Does It Work?
The algorithm proved remarkably accurate in testing. When evaluated on 1,000 real prescription notes that it had never seen before:
- It correctly identified whether prescriptions contained adequate dosage information 99.2% of the time
- It accurately predicted the daily dosage 96.3% of the time
- The overall accuracy for predicting dosage was 96.8%
This level of accuracy makes it a reliable tool for researchers and healthcare systems to better understand medication use patterns.
Revealing ADHD Medication Patterns
By applying this algorithm to analyze ADHD medication prescriptions in Sweden, researchers uncovered several important patterns:
- Young adults (ages 18-29) were most likely to stop taking their medications, with only about 38% continuing treatment after one year
- Children (ages 6-12) were most likely to stay on their medications, with about 73% continuing treatment after one year
- Doctors tend to prescribe higher doses of medications like methylphenidate as patients get older
- By older adulthood, about 55% of men and 41% of women were on high doses
What This Means for You
Whether you’re taking ADHD medications or other prescriptions, this research has several practical implications:
- If you’re a young adult taking ADHD medications, be aware that this is a high-risk period for discontinuing treatment. Talk openly with your doctor about any challenges you’re experiencing
- Expect that your medication dosage may need adjustment as you age
- Don’t hesitate to ask your doctor or pharmacist to clarify prescription instructions if they’re unclear
- Keep track of your prescriptions and discuss any concerns about dosage changes with your healthcare provider
Conclusions
- Machine learning can now accurately interpret prescription notes, helping researchers better understand medication use patterns
- Treatment adherence varies significantly by age, with young adults being at highest risk for discontinuing ADHD medications
- Medication dosages often increase with age, highlighting the importance of personalized treatment approaches