Abstract

The growing availability of drug reviews from patients has paved the way for future patient-centric and data-enabled healthcare support; however, the majority of existing sentiment-based drug recommendation systems use overall sentiment (sentiment polarity) to generate drug recommendations. In this study, an aspect-aware and optimized deep-learning-based drug recommendation system is proposed using sentiment analysis. A combined Convolutional Neural Network and Bidirectional Long Short-Term Memory architecture is employed to leverage important local semantics as well as contextual and sequential dependencies from drug reviews. The model is extended into an explainable drug recommendation system that maps user-reported symptoms to patient-opinion-informed drug rankings. Sentiments are analyzed at the aspect level, focusing on effectiveness, side effects, dosage, safety, and cost. To achieve better results, the Whale Optimization Algorithm is used to assign optimal weights to each aspect, thereby ranking drugs according to data-driven aspect preferences learned from patient reviews. Experimental evaluation on the drug dataset, comprising patient reviews, demonstrates that the proposed hybrid sentiment classification model achieves 99.80% accuracy. It outperforms traditional machine learning and deep learning approaches. The proposed framework not only improves sentiment classification accuracy but also provides transparent and improved top-k drug recommendations, offering explainable patient-opinion-informed recommendation rankings derived from large-scale review data. The generated rankings are derived from patient-generated review data and should therefore be interpreted as opinion-aware recommendations rather than clinically validated treatment recommendations.

Keywords

Sentiment Analysis, Convolutional Neural Network (CNN)-BiLSTM, Deep Learning (DL), Drug Recommendation System (DRS), Whale Optimization Algorithm (WOA), Aspect-Based Sentiment Analysis (ABSA),

Downloads

Download data is not yet available.

References

  1. A.I. Stoumpos, F. Kitsios, M.A. Talias, Digital Transformation in Healthcare: Technology Acceptance and Its Applications. International Journal Environment Research and Public Health, 20(4), (2023) 3407. https://doi.org/10.3390/ijerph20043407
  2. B. Zhou, G. Yang, Z. Shi, S. Ma, Natural language processing for smart healthcare. IEEE Reviews in Biomedical Engineering, 17, (2025) 4-18. https://doi.org/10.1109/RBME.2022.3210270
  3. S. Eguia, C.L. Sánchez-Bocanegra, F. Vinciarelli, F. Alvarez-Lopez, Clinical decision support and natural language processing in medicine: A systematic literature review. Journal of Medical Internet Research, 26, (2024) e55315. https://doi.org/10.2196/55315
  4. S. ten Hoope, K. Welvaars, K. van Geijtenbeek, M. Klok-Everaars, S. van Schaik, F. Karapinar-Çarkit, Applying text-mining to clinical notes: the identification of patient characteristics from electronic health records (EHRs). BMC Medical Informatics and Decision Making, 25(1), (2025) 302. https://doi.org/10.1186/s12911-025-03137-x
  5. P. Nitiéma, Artificial intelligence in medicine: Text mining of healthcare workers opinions. Journal of Medical Internet Research, 25, (2023), e41138. https://doi.org/10.2196/41138
  6. K. Wisaeng, B. Muangmeesri, Deep learning for email threat intelligence: Feature importance and model performance in phishing detection. International Journal of Innovative Research and Scientific Studies, 8(5), (2025) 1853–1865. https://doi.org/10.53894/ijirss.v8i5.9302
  7. I. Aggarwal, S. Joseph, N. Jaganathan, A. Patel, V. Kumar, M. Devarapalli, Sentiment analysis in healthcare: A comparison of VADER, BERT, and Flair NLP models on patient reviews of pain management physicians. Cureus, 17(7), (2025) e88902. https://doi.org/10.7759/cureus.88902
  8. H. Liu, H. Qiao, X. Shi, M. Shang, (2022) Aspect-aware Asymmetric Representation Learning Network for Review-based Recommendation. International Joint Conference on Neural Networks (IJCNN), IEEE, Italy. https://doi.org/10.1109/IJCNN55064.2022.9892559
  9. S. Al-Hadhrami, T. Vinko, T. Al-Hadhrami, F. Saeed, S. Qasem, Deep learning-based method for sentiment analysis for patients’ drug reviews. PeerJ Computer Science, 10, (2024) e1976. https://doi.org/10.7717/peerj-cs.1976
  10. T.H. Kim, A. Aldrees, D.A. AlHammadi, M. Umer, T. Saidani, S. Alsubai, I. Ashraf, MediNet: ensemble transfer learning approach for classification of medical drugs-related text reviews using significant combined-embeddings. BioData Mining, 18(1), (2025) 71. https://doi.org/10.1186/s13040-025-00448-7
  11. S.V. Kumar, J.S. Chohan, K. Kalita, WhaleOptNB: A Method for Automated Biomedical Text Document Classification. Intelligent Computing and Optimization, (2025) 174–184. https://doi.org/10.1007/978-3-031-73324-6_18
  12. B. Srishailam, V.V. Lavanya, V. shivani, O. Ashok, R.S. Kiran, Integrating Sentiment Analysis and Machine Learning for Patient-Centric Drug Recommendation Systems. International Journal of Computer Engineering in Research Trends, 11(1s), (2024) 9–15. https://doi.org/10.22362/ijcert/2024/v11/i1/v11i1s02
  13. P. Sequeira, S. Begum, Ml-Powered Emergency Drug Assistance for Critical Healthcare Needs. Journal of Emerging Technologies and Innovative Research (JETIR), 12(7), (2025) 77-83. https://www.jetir.org/papers/JETIRGX06015.pdf
  14. Y. Wang, A. Liu, J. Yang, L. Wang, N. Xiong, Y. Cheng, Q. Wu, Clinical knowledge-guided deep reinforcement learning for sepsis antibiotic dosing recommendations. Artificial intelligence in medicine, 150, (2024) 102811. https://doi.org/10.1016/j.artmed.2024.102811
  15. J. Wang, B. Xu, Y. Zu, (2021) Deep learning for Aspect-based Sentiment Analysis. International Conference on Machine Learning and Intelligent Systems Engineering (MLISE), IEEE, China. https://doi.org/10.1109/MLISE54096.2021.00056
  16. J. Lin, M.K. Najafabadi, (2023) Aspect Level Sentiment Analysis with CNN Bi-LSTM and Attention Mechanism. 26th ACIS International Winter Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD-Winter), IEEE, China. https://doi.org/10.1109/SNPD-Winter57765.2023.10466355
  17. F. Di Martino, F. Delmastro, Explainable AI for clinical and remote health applications: a survey on tabular and time series data Artificial Intelligence Review, 56(6), (2023) 5261–5315. https://doi.org/10.1007/s10462-022-10304-3
  18. Y. He, (2023) BERT-CNN-BiLSTM: A Hybrid Deep Learning Model for Accurate Sentiment Analysis. IEEE 5th International Conference on Power, Intelligent Computing and Systems (ICPICS), IEEE, China. https://doi.org/10.1109/ICPICS58376.2023.10235335
  19. Q. Li, X. Li, B. Lee, J. K. Kim, A Hybrid CNN-Based Review Helpfulness Filtering Model for Improving E-Commerce Recommendation Service. Applied Sciences, 11, (2021) 8613. https://doi.org/10.3390/app11188613
  20. H. Vanam, MedRecommenderX: a scalable sentiment-aware framework for personalized drug recommendations. Network Modeling Analysis in Health Informatics and Bioinformatics, 14(1), (2025) 165. https://doi.org/10.1007/s13721-025-00664-5
  21. S. Garg, (2021) Drug Recommendation System based on Sentiment Analysis of Drug Reviews using Machine Learning. 11th International Conference on Cloud Computing, Data Science & Engineering (Confluence), IEEE, India. https://doi.org/10.1109/Confluence51648.2021.9377188
  22. S.K. Nayak, M. Garanayak, S.K. Swain, S.K. Panda, D. Godavarthi, an Intelligent Disease Prediction and Drug Recommendation Prototype by Using Multiple Approaches of Machine Learning Algorithms. IEEE Access, 11, (2023) 99304 – 99318. https://doi.org/10.1109/ACCESS.2023.3314332
  23. K. Zhang, H. Qian, Q. Liu, Z. Zhang, J. Zhou, J. Ma, E. Chen, (2021) Sifn: A sentiment-aware interactive fusion network for review-based item recommendation. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, 3627-3631. https://doi.org/10.1145/3459637.3482181
  24. B. Omarov, M. Baikuvekov, D. Sultan, N. Mukazhanov, M. Suleimenova, M. Zhekambayeva, Ensemble Approach Combining Deep Residual Networks and BiGRU with Attention Mechanism for Classification of Heart Arrhythmias. Computers, Materials and Continua, 80(1), (2024) 341–359. https://doi.org/10.32604/cmc.2024.052437
  25. Y. Ma, Q. Li, A weakly-supervised extractive framework for sentiment-preserving document summarization. World Wide Web, 22(4), (2019) 1401–1425. https://doi.org/10.1007/s11280-018-0591-0
  26. M. Kumar, T. Ali, J. Anguera, Suman Lata Tripathi (2025) Emerging Technologies in AI, Computation, Communication, and Cybersecurity. CRC Press, London. https://doi.org/10.1201/9781003739791
  27. L. Fu, P. Liang, Z. Rasheed, Z. Li, A. Tahir, X. Han, Potential Technical Debt and Its Resolution in Code Reviews: An Exploratory Study of the OpenStack and Qt Communities. International Symposium on Empirical Software Engineering and Measurement, IEEE Computer Society, (2022) 216 – 226. https://doi.org/10.1145/3544902.3546253
  28. P. Durga, D. Godavarthi, S. Kant, S.S. Basa, Aspect-based Drug Review Classification Through a Hybrid Model with Ant Colony Optimization Using Deep Learning. Discover Computing, 27(1), (2024). https://doi.org/10.1007/s10791-024-09441-w
  29. E. Hasan, C. Ding, (2023) Aspect-Aware Multi-Criteria Recommendation Model with Aspect Representation Learning. IEEE International Conference on Web Intelligence and Intelligent Agent Technology (WI-IAT), IEEE, Italy. https://doi.org/10.1109/WI-IAT59888.2023.00043
  30. Z. Li, W. Cheng, R. Kshetramade, J. Houser, H. Chen, W. Wang, (2021) Recommend for a Reason: Unlocking the Power of Unsupervised Aspect-Sentiment Co-Extraction. Findings of the Association for Computational Linguistics: EMNLP, 763–778. https://doi.org/10.18653/v1/2021.findings-emnlp.66
  31. V.S.K. Koppisetti, The Role of Explainable AI in Building Trustworthy Machine Learning Systems. ESP International Journal of Advancements in Science & Technology (ESP-IJAST), 2(2), (2024) 16-21.
  32. S.D.N. Hayath Ali, G.D. Kumar, S. Lakshmi, D.C. Subhashree, M.M. Harshitha, Smart Drug Recommendation System Using Sentiment Analysis of Drug Reviews. International Journal for Research in Applied Science Engineering Technologu, 13(9), (2025) 864–867. https://doi.org/10.22214/ijraset.2025.74004
  33. R. Eden, A. Burton-Jones, J. Grant, R. Collins, A. Staib, C. Sullivan, Digitising an Australian University Hospital: Qualitative Analysis of Staff-Reported Impacts. Australian Health Review, 44(5), (2020) 677–689. https://doi.org/10.1071/AH18218
  34. T. Sengodan, S. Misra, M. Murugappan, (2025) Advances in Electrical and Computer Technologies, CRC Press, London. https://doi.org/10.1201/9781003515470
  35. R.F. Meem, K.T. Hasan, (2023) Improving Sentiment Analysis in Online Course Reviews with BERT and Transformer Attention Mechanism. Research Square. https://doi.org/10.21203/rs.3.rs-3741963/v1
  36. M.M. Rahman, A.I. Shiplu, Y. Watanobe, M.A. Alam, RoBERTa-BiLSTM: A Context-Aware Hybrid Model for Sentiment Analysis. IEEE Transactions on Emerging Topics in Computational Intelligence, 9(6), (2025) 3788–3805. https://doi.org/10.1109/TETCI.2025.3572150
  37. A. Chaudhary, S. Pokhrel, S. Ganesan, P.B. Shah, N. Somasiri, (2025) Drug Review Sentiment Analysis: Applying Transformer-Based Models for Enhanced Healthcare. Journal of Data Science and Intelligent Systems. https://doi.org/10.47852/bonviewJDSIS52024468
  38. A.K. Patil, M.V Nikum, Drugs Review Sentiment Analysis. International Journal of Advanced Research in Computer and Communication Engineering, 14(10), (2025) 238-245.