Sentiment analysis in medication adherence: using ruled-based and artificial intelligence-driven algorithms to understand patient medication experiences.
Wallace Entringer Bottacin, Alexandre Luquetta, Luiz Gomes-Jr, Thais Teles de Souza, Walleri Christini Torelli Reis, Ana Carolina Melchiors
{"title":"Sentiment analysis in medication adherence: using ruled-based and artificial intelligence-driven algorithms to understand patient medication experiences.","authors":"Wallace Entringer Bottacin, Alexandre Luquetta, Luiz Gomes-Jr, Thais Teles de Souza, Walleri Christini Torelli Reis, Ana Carolina Melchiors","doi":"10.1007/s11096-024-01803-0","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>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.</p><p><strong>Aim: </strong>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.</p><p><strong>Method: </strong>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.</p><p><strong>Results: </strong>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.</p><p><strong>Conclusion: </strong>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.</p>","PeriodicalId":13828,"journal":{"name":"International Journal of Clinical Pharmacy","volume":" ","pages":""},"PeriodicalIF":2.6000,"publicationDate":"2024-10-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Clinical Pharmacy","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1007/s11096-024-01803-0","RegionNum":4,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"PHARMACOLOGY & PHARMACY","Score":null,"Total":0}
引用次数: 0
Abstract
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.
期刊介绍:
The International Journal of Clinical Pharmacy (IJCP) offers a platform for articles on research in Clinical Pharmacy, Pharmaceutical Care and related practice-oriented subjects in the pharmaceutical sciences.
IJCP is a bi-monthly, international, peer-reviewed journal that publishes original research data, new ideas and discussions on pharmacotherapy and outcome research, clinical pharmacy, pharmacoepidemiology, pharmacoeconomics, the clinical use of medicines, medical devices and laboratory tests, information on medicines and medical devices information, pharmacy services research, medication management, other clinical aspects of pharmacy.
IJCP publishes original Research articles, Review articles , Short research reports, Commentaries, book reviews, and Letters to the Editor.
International Journal of Clinical Pharmacy is affiliated with the European Society of Clinical Pharmacy (ESCP). ESCP promotes practice and research in Clinical Pharmacy, especially in Europe. The general aim of the society is to advance education, practice and research in Clinical Pharmacy .
Until 2010 the journal was called Pharmacy World & Science.