Patient Emotion and Sentiment Analysis Using Deep Learning
PDF
PDF

How to Cite

Rastogi, Ajay, Ravendra Singh, Mohammad Zubair Khan, Ibrahim Aljubayri, and Fahad M Ghabban. 2025. “Patient Emotion and Sentiment Analysis Using Deep Learning”. Journal of Innovative Image Processing 7 (3): 582-601. https://doi.org/10.36548/jiip.2025.3.001.

Keywords

  • Analysis
  • Deep Learning
  • Whale Optimization Algorithm
  • Healthcare services
  • Natural Language Processing
  • Adaptive Feature Weighting
  • Contextual Sentiment Refinement

Abstract

With the advancement in information technology and social media, there is a need for a patient sentiment-based healthcare system (HCS) to gauge its actual performance. Mining patient sentiment can provide valuable information about the strengths and weaknesses of these HCS and also help in their improvement. Sentiment analysis can help transform existing HCS into better and more efficient systems. Traditional sentiment analysis models are inefficient at capturing contextual information and high-dimensional data. This study aims to develop a classification model that allows the administration to evaluate the effectiveness of the healthcare system. This article proposes a hybrid deep neural network model, DeepCLNet, using the whale optimization technique (WOT) to enhance sentiment classification accuracy and fine-grain emotion analysis of patients. This model incorporates an adaptive feature weighting strategy that dynamically adjusts the weights and provides contextual sentiment refinement to deal with medical text. Furthermore, to enhance the capabilities of the model, this study proposes another hybrid model, BEDeepCLNet, by replacing the DeepCLNet embedding layer with BERT embeddings. The proposed models achieved state-of-the-art accuracies of 96% and 98%, respectively. During the experiments, it was observed that the proposed model performed better than other existing deep learning models applied in this domain. We also compared the proposed model's performance with the best NLP transformers like BERT, RoBERTa, XLNet, and SWIN, etc. The proposed model utilizes fewer computing resources while offering better performance than the transformers.

References

Htet, Hein, Soe Soe Khaing, and Yi Yi Myint. "Tweets sentiment analysis for healthcare on big data processing and IoT architecture using maximum entropy classifier." In International Conference on Big Data Analysis and Deep Learning Applications, Singapore: Springer Singapore, 2018, 28-38.

Alsaeedi, Abdullah, and Mohammad Zubair Khan. "A study on sentiment analysis techniques of Twitter data." International Journal of Advanced Computer Science and Applications 10, no. 2 (2019).

RamyaSri, V. I. S., Ch Niharika, K. Maneesh, and Mohammed Ismail. "Sentiment analysis of patients’ opinions in healthcare using lexicon-based method." International Journal of Engineering and Advanced Technology 9, no. 1 (2019): 6977-6981.

Clark, Eric M., Ted James, Chris A. Jones, Amulya Alapati, Promise Ukandu, Christopher M. Danforth, and Peter Sheridan Dodds. "A sentiment analysis of breast cancer treatment experiences and healthcare perceptions across twitter." arXiv preprint arXiv:1805.09959 (2018).

Saranya, S., and G. Usha. "A Machine Learning-Based Technique with IntelligentWordNet Lemmatize for Twitter Sentiment Analysis." Intelligent Automation & Soft Computing 36, no. 1 (2023).

Sureja, Nitesh, Nandini Chaudhari, Priyanka Patel, Jalpa Bhatt, Tushar Desai, and Vruti Parikh. "Hyper-tuned Swarm Intelligence Machine Learning-based Sentiment Analysis of Social Media." Engineering, Technology & Applied Science Research 14, no. 4 (2024): 15415-15421.

Grisstte, Hanane, and ELhabib Nfaoui. "Daily life patients sentiment analysis model based on well-encoded embedding vocabulary for related-medication text." In Proceedings of the 2019 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining, 2019, 921-928.

Abedin, Afia Fairoose, Amirul Islam Al Mamun, Rownak Jahan Nowrin, Amitabha Chakrabarty, Moin Mostakim, and Sudip Kumar Naskar. "A deep learning approach to integrate human-level understanding in a chatbot." arXiv preprint arXiv:2201.02735 (2021).

Irwansyah, Edy, Alexander AS Gunawan, Hady Pranoto, Fabian Surya Pramudya, and Lucky Fakhriadi. "Deep Learning with Semantic Segmentation Approach for Building Rooftop Mapping in Urban Irregular Housing Complexes." Engineering, Technology & Applied Science Research 15, no. 2 (2025): 20580-20587.

Devlin, Jacob, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. "Bert: Pre-training of deep bidirectional transformers for language understanding." In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), 2019, 4171-4186.

Liu, Yinhan, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. "Roberta: A robustly optimized bert pretraining approach." arXiv preprint arXiv:1907.11692 (2019).

Dogra, Varun, Aman Singh, Sahil Verma, Kavita, N. Z. Jhanjhi, and M. N. Talib. "Analyzing distilbert for sentiment classification of banking financial news." In Intelligent Computing and Innovation on Data Science: Proceedings of ICTIDS 2021, Singapore: Springer Nature Singapore, 2021, 501-510.

Yang, Zhilin, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R. Salakhutdinov, and Quoc V. Le. "Xlnet: Generalized autoregressive pretraining for language understanding." Advances in neural information processing systems 32 (2019).

Agilandeeswari, Loganathan, and S. Divya Meena. "SWIN transformer based contrastive self-supervised learning for animal detection and classification." Multimedia Tools and Applications 82, no. 7 (2023): 10445-10470.

Phan, Huyen Trang, Van Cuong Tran, Ngoc Thanh Nguyen, and Dosam Hwang. "Improving the performance of sentiment analysis of tweets containing fuzzy sentiment using the feature ensemble model." Ieee Access 8 (2020): 14630-14641.

Rahab, Hichem, Hichem Haouassi, and Abdelkader Laouid. "Rule-based Arabic sentiment analysis using binary equilibrium optimization algorithm." Arabian Journal for Science and Engineering 48, no. 2 (2023): 2359-2374.

Ruelens, Anna. "Analyzing user-generated content using natural language processing: a case study of public satisfaction with healthcare systems." Journal of computational social science 5, no. 1 (2022): 731-749.

Khurana, Diksha, Aditya Koli, Kiran Khatter, and Sukhdev Singh. "Natural language processing: state of the art, current trends and challenges." Multimedia tools and applications 82, no. 3 (2023): 3713-3744.

Barve, Yashoda, and Jatinderkumar R. Saini. "Detecting and classifying online health misinformation with ‘Content Similarity Measure (CSM)’algorithm: an automated fact-checking-based approach." The Journal of Supercomputing 79, no. 8 (2023): 9127-9156.

Ahmad, Pir Noman, Yuanchao Liu, Gauhar Ali, Mudasir Ahmad Wani, and Mohammed ElAffendi. "Robust benchmark for propagandist text detection and mining high-quality data." Mathematics 11, no. 12 (2023): 2668.

Kumar, Sanjeev, Ravendra Singh, Mohammad Zubair Khan, and Abdulfattah Noorwali. "Design of adaptive ensemble classifier for online sentiment analysis and opinion mining." PeerJ Computer Science 7 (2021): e660.

Ghosh, Anay, Saiyed Umer, Muhammad Khurram Khan, Ranjeet Kumar Rout, and Bibhas Chandra Dhara. "Smart sentiment analysis system for pain detection using cutting edge techniques in a smart healthcare framework." Cluster Computing 26, no. 1 (2023): 119-135.

Bansal, Ankita, and Niranjan Kumar. "Aspect-based sentiment analysis using attribute extraction of hospital reviews." New Generation Computing 40, no. 4 (2022): 941-960.

Onan, Aytuğ. "Sentiment analysis on product reviews based on weighted word embeddings and deep neural networks." Concurrency and computation: Practice and experience 33, no. 23 (2021): e5909.

Zhang, Lei, Shuai Wang, and Bing Liu. "Deep learning for sentiment analysis: A survey." Wiley interdisciplinary reviews: data mining and knowledge discovery 8, no. 4 (2018): e1253.

“Healthcare_Dataset.”[Online]. Available: https://www.kaggle.com/datasets/devkiagarwal/healthcare-dataset#

Lorla dan Steven, “TextBlob Documentation Release 0.16.0,” TextBlob, 2020,[Online]. Available: https://textblob.readthedocs.io/en/dev/

Husnain, Mujtaba, Malik Muhammad Saad Missen, Nadeem Akhtar, Mickaël Coustaty, Shahzad Mumtaz, and VB Surya Prasath. "A systematic study on the role of SentiWordNet in opinion mining." Frontiers of Computer Science 15, no. 4 (2021): 154614.

Marutho, Dhendra, and Supriadi Rustad. "Sentiment Analysis Optimization Using Vader Lexicon on Machine Learning Approach." In 2022 international Seminar on intelligent Technology and its applications (ISITIA), IEEE, 2022, 98-103.

Okwu, Modestus O., and Lagouge K. Tartibu. "Whale optimization algorithm (woa)." In Metaheuristic optimization: nature-inspired algorithms swarm and computational intelligence, theory and applications, Cham: Springer International Publishing, 2020, 53-60.