Drug Prescribing System Using Patient Reviews Based on Sentimental Analysis

Main Article Content

P. Sivakumar
N. Nanthini
S. Suruthi
T. Veronica


The Drug Recommendation System based on Sentiment Analysis of Drug Reviews using Random Forest is a novel approach aimed at assisting healthcare professionals in making informed decisions regarding drug prescriptions. This system leverages the power of sentiment analysis to analyze and extract valuable insights from large volumes of user-generated drug reviews. Sentiment analysis plays a crucial role in understanding the opinions, emotions, and experiences expressed by patients in their reviews. By classifying these sentiments as positive, negative, or neutral, the system provides a quantitative measure of the overall sentiment associated with a particular drug. This information can then be utilized to generate personalized drug recommendations tailored to individual patients' needs and preferences. The proposed system employs the Random Forest algorithm, a powerful machine learning technique, to perform sentiment analysis on drug reviews. Random Forest utilizes an ensemble of decision trees to classify sentiments based on a variety of features extracted from the reviews, such as keyword frequencies, sentence structures, and context. By aggregating the results of multiple decision trees, Random Forest achieves high accuracy and robustness in sentiment classification. To build the Drug Recommendation System, a comprehensive dataset of drug reviews is collected from various online sources. The dataset is pre-processed to remove noise, perform text normalization, and extract relevant features. Then, the Random Forest algorithm is trained on this processed dataset, using labelled reviews as input and their corresponding sentiments as output. The trained model is subsequently used to analyse new, unseen drug reviews and predict their sentiments. Once the sentiment analysis is performed, the system combines the sentiment scores with additional factors, such as drug efficacy, safety, side effects, and patient demographics, to generate personalized drug recommendations. These recommendations are based on a similarity measure that matches patients with similar profiles and preferences to those who have reported positive experiences with certain drugs.

Article Details

How to Cite
P. Sivakumar, N. Nanthini, S. Suruthi, & T. Veronica. (2023). Drug Prescribing System Using Patient Reviews Based on Sentimental Analysis . Journal of Coastal Life Medicine, 11(2), 1548–1555. Retrieved from https://jclmm.com/index.php/journal/article/view/1199


Y. Bao and X. Jiang, “An intelligent medicine recommender system framework,” in Proceedings of the 2016 IEEE 11th Conference on Industrial Electronics and Applications, ICIEA 2016, Oct. 2016, pp. 1383–1388, doi: 10.1109/ICIEA.2016.7603801

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

D. Anil, A. Vembar, S. Hiriyannaiah, S. G.M. and K. G. Srinivasa, "Performance Analysis of Deep Learning Architectures for Recommendation Systems," 2018 IEEE 25th International Conference on High Performance Computing Workshops (HiPCW), Bengaluru, India, 2018, pp. 129-136.

R. C. Chen, Y. H. Huang, C. T. Bau, and S. M. Chen, “A recommendation system based on domain ontology and SWRL for anti-diabetic drugs selection,” Expert Syst. Appl., vol. 39, no. 4, pp. 3995–4006, Mar. 2012, doi: 10.1016/j.eswa.2011.09.061.

J.-C. Na and W. Y. M. Kyaing, “Sentiment Analysis of User-Generated Content on Drug Review Websites,” J. Inf. Sci. Theory Pract., vol. 3, no. 1, pp. 6–23, Mar. 2015, doi: 10.1633/jistap.2015.3.1.1.

Soni J, Ansari U, Sharma D, et al. Predictive data mining for medical diagnosis: An overview of heart disease prediction[J]. International Journal of Computer Applications, 2011, 17(8): 43-48.

Bartlett JG, Dowell SF, Mandell LA, File TM Jr, Musher DM, Fine MJ. Practice guidelines for the management of community-acquired pneumonia in adults. Infectious Diseases Society of America. Clin Infect Dis. 2000 Aug;31(2):347-82.

T. Venkat Narayana Rao, Anjum Unnisa, Kotha Sren International Journal Of Scientific & Technology Research Volume 9, Issue 02, February 2020 Issn 2277-8616

Doulaverakis, C., Nikolaidis, G., Kleontas, A. et al. GalenOWL: Ontology-based drug recommendations discovery. J Biomed Sema

Wittich CM, Burkle CM, Lanier WL. Medication errors: an overview for clinicians. Mayo Clin Proc. 2014 Aug;89(8):1116-25.