JOURNAL ARTICLE

Automatic emotion recognition in healthcare data using supervised machine learning

Nazish AzamTauqir AhmadNazeef Ul Haq

Year: 2021 Journal:   PeerJ Computer Science Vol: 7 Pages: e751-e751   Publisher: PeerJ, Inc.

Abstract

Human feelings are fundamental to perceive the conduct and state of mind of an individual. A healthy emotional state is one significant highlight to improve personal satisfaction. On the other hand, bad emotional health can prompt social or psychological well-being issues. Recognizing or detecting feelings in online health care data gives important and helpful information regarding the emotional state of patients. To recognize or detection of patient’s emotion against a specific disease using text from online sources is a challenging task. In this paper, we propose a method for the automatic detection of patient’s emotions in healthcare data using supervised machine learning approaches. For this purpose, we created a new dataset named EmoHD, comprising of 4,202 text samples against eight disease classes and six emotion classes, gathered from different online resources. We used six different supervised machine learning models based on different feature engineering techniques. We also performed a detailed comparison of the chosen six machine learning algorithms using different feature vectors on our dataset. We achieved the highest 87% accuracy using MultiLayer Perceptron as compared to other state of the art models. Moreover, we use the emotional guidance scale to show that there is a link between negative emotion and psychological health issues. Our proposed work will be helpful to automatically detect a patient’s emotion during disease and to avoid extreme acts like suicide, mental disorders, or psychological health issues. The implementation details are made publicly available at the given link: https://bit.ly/2NQeGET .

Keywords:
Machine learning Computer science Artificial intelligence Feeling Feature engineering Health care Emotion classification Feature (linguistics) Support vector machine Mental health Supervised learning Task (project management) Multilayer perceptron Affective computing Artificial neural network Deep learning Psychology Social psychology Psychiatry

Metrics

29
Cited By
4.84
FWCI (Field Weighted Citation Impact)
62
Refs
0.94
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Mental Health via Writing
Social Sciences →  Psychology →  Social Psychology
Sentiment Analysis and Opinion Mining
Physical Sciences →  Computer Science →  Artificial Intelligence
Mental Health Treatment and Access
Social Sciences →  Psychology →  Social Psychology

Related Documents

© 2026 ScienceGate Book Chapters — All rights reserved.