Skip to main content
Log in

An Empirical Study on Sentimental Drug Review Analysis Using Lexicon and Machine Learning-Based Techniques

  • Original Research
  • Published:
SN Computer Science Aims and scope Submit manuscript

Abstract

In today's age of intense digital revolution, a considerable proportion of perceptions and judgments are conveyed regularly on commodities, such as drug-related products across consumer reviews and other social networking sites. Patients or the general public typically posts them and an excellent significant source for examining the emotions related to numerous drugs. This research aims to investigate the emotions through online medicinal comments and categorize them into positive, negative, and neutral. Sentiment analysis is conducted on testimonials of patients to anticipate the patient's aggregate level of satisfaction with pharmaceutical and medicinal drugs for being either favorable or adverse. The emotions were characterized using various vectorization methods and employing machine and ensemble learning classifiers. The SVC outperforms other algorithms and yields the best classification matrices. However, the Random Forest classifier, on the other hand, achieves the lowest classification matrices of all the classifiers implemented.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data Availability

The dataset is publicly available at the UCI Machine Learning Repository.

References

  1. Khan A, Younis U, Kundi AS, Asghar MZ, Ullah I, Aslam N, Ahmed I. "Sentiment classification of user reviews using supervised learning techniques with comparative opinion mining perspective. Sci Inf Conf. 2019;21:23.

    Google Scholar 

  2. Abbas G, Farooq U, Singh P, Khurana SS, Singh P. Feature engineering and ensemble learning-based classifcation of vpn and non-vpn-based network trafc over temporal features. SN Comput Sci. 2023;4(546):1–16.

    Google Scholar 

  3. Pang B, Lee L. Opinion mining and sentiment analysis foundations and trends. Inf Retr. 2008. https://doi.org/10.1561/9781601981516.

    Article  Google Scholar 

  4. Khader N, Lashier A, Yoon SW. Pharmacy robotic dispensing and planogram analysis using association rule mining with prescription data. Expert Syst Appl. 2016;57:296–310.

    Article  Google Scholar 

  5. Mahboob K, Hina S. Sentiment Analysis of Pharmaceutical Products Evaluation Based on Customer Review Mining. J Comput Sci Syst Biol. 2018;11(3):190–4.

    Google Scholar 

  6. Singh P, Singh P, Farooq U, Khurana SS, Verma JK, Kumar M. CottonLeafNet: cotton plant leaf disease detection using deep neural networks. Multimed Tools Appl. 2023;82:1–26.

    Article  Google Scholar 

  7. Denecke K, Deng Y. Sentiment analysis in medical settings: new opportunities. Artif Intell Med. 2015;64:17–27.

    Article  Google Scholar 

  8. Farooq U. Real Time Password Strength Analysis on a Web Application Using Multiple Machine Learning Approaches. Int J Eng Res Technol (IJERT). 2020;9(12):359–64.

    Google Scholar 

  9. T. N. Tekade and M. Emmanuel, "Probabilistic aspect mining approach for interpretation and evaluation of drug reviews.," in 2016 International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES)., Paralakhemundi., 2016.

  10. L. Goeuriot, J.-C. Na, W. Y. M. Kyaing, C. Khoo and Yun-Ke, "Sentiment Lexicons for Health-related Opinion Mining.," in 2Nd ACM SIGHIT International Health Informatics Symposium (IHI ’12)., New York, 2012.

  11. R. Leaman, LauraWojtulewicz, R. Sullivan, A. Skariah and J. Yang, "Towards Internet-age Pharmacovigilance: Extracting Adverse Drug Reactions from User Posts to Health-related Social Networks.," in Proceedings of the 2010 Workshop on Biomedical Natural Language Processing (BioNLP ’10)., USA, 2010.

  12. A. Nikfarjam and G. H. Gonzalez, "Pattern mining for extraction of mentions of Adverse Drug Reactions from user comments.," in AMIA Annual Symposium proceedings 2011., 2011.

  13. Korkontzelos I, Nikfarjam A, Shardlow M, Sarker A, Ananiadou S, Gonzalez GH. Analysis of the Effect of Sentiment Analysis on Extracting Adverse Drug Reactions from Tweets and Forum Posts. J Biomed Inf. 2016;62:148.

    Article  Google Scholar 

  14. Cavalcanti D, Prudêncio R. Aspect-Based Opinion Mining in Drug Reviews. Cham: Springer International Publishing; 2017.

    Book  Google Scholar 

  15. Severyn A, Moschitti A. Twitter sentiment analysis with deep convolutional neural networks. In: Proceedings of the 38th international ACM SIGIR conference on research and development in information retrieval (SIGIR '15). New York, NY, USA: Association for Computing Machinery; 2015. p. 959–62. https://doi.org/10.1145/2766462.2767830.

  16. Kouloumpis E, Wilson T, Moore J. Twitter sentiment analysis: the good the bad and the OMG. In: Proceedings of the international AAAI conference on web and social media, vol. 5, no. 1; 2021. p. 538–41. https://doi.org/10.1609/icwsm.v5i1.14185.

  17. Pak A, Paroubek P. Twitter as a corpus for sentiment analysis and opinion mining. In: Proceedings of the international conference on language resources and evaluation, LREC 2010, Valletta, Malta, 17–23 May 2010; 2010. p. 1320–6.

  18. F. Gräßer, S. Kallumadi, S. Kallumadi and S. Zaunseder, "Aspect-Based Sentiment Analysis of Drug Reviews Applying Cross-Domain and Cross-Data Learning," in DH’18: 2018 International Digital Health Conference, Lyon, France,, 2018.

  19. Y. Bao and X. Jiang, "An intelligent medicine recommender system framework.," in IEEE 11th Conference on Industrial Electronics and Applications (ICIEA)., Hefei, 2016.

  20. S. G and R.Chinnaiyan, Sentiment Analysis for Evaluating the Patient Medicine Satisfaction. Int J Comput Intell Control. 2021; 13(2):113–118

  21. T. Chen, P. Su, C. Shang, R. Hill, H. Zhang and Q. Shen, "Sentiment Classification of Drug Reviews Using Fuzzy-rough Feature Selection.," in 2019 IEEE International Conference on Fuzzy Systems (FUZZ-IEEE)., New Orleans, LA, USA, 2019.

  22. G. Gurdin, JA Vargas, B. S, LG Maffey, AL Olex, NA Lewinski, BT McInnes, Analysis of Inter-Domain and Cross-Domain Drug Review Polarity Classification. AMIA Jt Summits Transl Sci Proc 2020;2020:201–210

  23. Mishra S. Drug Review Sentiment Analysis using Boosting Algorithms. Int J Trend Sci Res Dev. 2021;5(4):2456–6470.

    Google Scholar 

  24. Hossain MD, Azam MS, Ali MJ, Sabit H. Drugs Rating Generation and Recommendation from Sentiment Analysis of Drug Reviews using Machine Learning. In: 2020 Emerging Technology in Computing. Bangladesh: Communication and Electronics (ETCCE); 2021. p. 1–6.

    Google Scholar 

  25. Suyal M, Goyal P. A New Classifier Model on Drug Reviews Dataset by VADER Sentiment Analyzer to Analyze Reviews of the Dataset are Real or Fake based on Machine Learning. Int J Eng Trends Technol. 2022;70(7):68–78.

    Article  Google Scholar 

  26. S. Vijayaraghavan and D. Basu, Sentiment Analysis in Drug Reviews using Supervised Machine Learning Algorithms. arXiv, pp. 1–9, 2020.

  27. S. M. Mohammad, S. Kiritchenko and X. Zhu, NRC-Canada: Building the State-of-the-Art in Sentiment Analysis of Tweets. arXiv, pp. 1–7, 2013.

  28. Go A, Bhayani R, Huang L. Twitter Sentiment Classification using Distant Supervision. Stanf Univ. 2009;1:2009.

    Google Scholar 

  29. S. Petrovi´, M. Osborne and V. Lavrenko, "The Edinburgh Twitter Corpus," in Proceedings of the NAACL HLT 2010 Workshop on Computational Linguistics in a World of Social Media,, Los Angeles, California, 2010.

  30. Powers DMW. Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlation. J Mach Learn Technol. 2011;2:2229–3981.

    Google Scholar 

  31. Farooq U. Ensemble Machine Learning Approaches for Detection of SQL Injection Attack. Technicki Glasnik. 2021;15(1):112–20.

    Article  Google Scholar 

  32. Karamibek M, Ghorbani A. Sentiment analysis of social issues. In: Proceedings of the 2012 ASE international conference on social informatics, SocialInformatics 2012. p. 215–21. https://doi.org/10.1109/SocialInformatics.2012.49.

Download references

Funding

The authors declare they did not receive any sort of funding to support this research.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Umar Farooq.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This article is part of the topical collection “Research Trends in Computational Intelligence” guest edited by Anshul Verma, Pradeepika Verma, Vivek Kumar Singh and S. Karthikeyan.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Alaie, A.I., Farooq, U., Bhat, W.A. et al. An Empirical Study on Sentimental Drug Review Analysis Using Lexicon and Machine Learning-Based Techniques. SN COMPUT. SCI. 5, 63 (2024). https://doi.org/10.1007/s42979-023-02384-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42979-023-02384-x

Keywords

Navigation