Related Experiment Video
Updated: Jun 11, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Sentiment analysis in medication adherence: using ruled-based and artificial intelligence-driven algorithms to
Wallace Entringer Bottacin1, Alexandre Luquetta2, Luiz Gomes-Jr2
1Postgraduate Program in Pharmaceutical Services and Policies, Federal University of Paraná, Avenida Prefeito Lothário Meissner, 632 - Jardim Botânico, Curitiba, CEP 80210-170, PR, Brazil. wallace.bottacin@gmail.com.
Background:
Studies are exploring ways to improve medication adherence, with sentiment analysis (SA) being an underutilized innovation in pharmacy. This technique uses artificial intelligence (AI) and natural language processing to assess text for underlying feelings and emotions.
Aim:
This study aimed to evaluate the use of two SA models, Valence Aware Dictionary for Sentiment Reasoning (VADER) and Emotion English DistilRoBERTa-base (DistilRoBERTa), for the identification of patients' sentiments and emotions towards their pharmacotherapy.
Method:
A dataset containing 320,095 anonymized patients' reports of experiences with their medication was used. VADER assessed sentiment polarity on a scale from - 1 (negative) to + 1 (positive). DistilRoBERTa classified emotions into seven categories: anger, disgust, fear, joy, neutral, sadness, and surprise. Performance metrics for the models were obtained using the sklearn.metrics module of scikit-learn in Python.
Results:
VADER demonstrated an overall accuracy of 0.70. For negative sentiments, it achieved a precision of 0.68, recall of 0.80, and an F1-score of 0.73, while for positive sentiments, it had a precision of 0.73, recall of 0.59, and an F1-score of 0.65. The AUC for the ROC curve was 0.90. DistilRoBERTa analysis showed that higher ratings for medication effectiveness, ease of use, and satisfaction corresponded with more positive emotional responses. These results were consistent with VADER's sentiment analysis, confirming the reliability of both models.
Conclusion:
VADER and DistilRoBERTa effectively analyzed patients' sentiments towards pharmacotherapy, providing valuable information. These findings encourage studies of SA in clinical pharmacy practice, paving the way for more personalized and effective patient care strategies.
Related Concept Videos
Drug Therapy
Antianxiety Medications
Issues And Trends In Healthcare Delivery System
Cost Containment
Payment for healthcare services has historically promoted adoption of costly and often unnecessary or inefficient...
Structure-Activity Relationships and Drug Design
SAR studies the intricate relationship between a drug's chemical structure and biological activity. It focuses on understanding how modifications to a drug's structure can influence...
Dosage Regimen: Fixed Dose
Fixed-dose regimens can be used for various routes of administration, including intravenous (IV) injections and oral medications. For IV administration, a predetermined amount of the drug is...
Stereotype Content Model
Pharmacovigilance
This process, termed pharmacovigilance, aims to detect, evaluate, and minimize harmful effects related to medication use. The data collection for pharmacovigilance depends on spontaneous reporting systems, where healthcare professionals or patients voluntarily report suspected ADRs.
In some cases, there...

