A multi-task learning approach for consumer sentiment classification and emotion detection via behavioral data
Abstract
Sentiment analysis captures overall opinion polarity, but it often fails to reveal the key emotions that drive consumer behavior. The recognition of both sentiment and emotions provides crucial information to uncover underlying drivers of consumers behavior and brand loyalty. These important insights enable businesses to detect emerging issues, refine products and services, and personalize consumer experiences. This study proposes a multi-task approach that performs sentiment classification and emotion detection tasks based on consumer reviews and corresponding ratings. To this end, we propose Consumer Sentiment and Emotion Modeling (COSMO-MT), a deep learning-based multi-task model for sentiment classification and emotion detection. It begins with an input layer followed by embedding layers that provide sentiment-specific, emotion-specific, and shared embeddings from the input text. Each embedding is processed through shared layers consisting of CNN, BiLSTM, and attention mechanisms. Moreover, several auxiliary features are incorporated into the shared layers to provide explicit linguistic information. The outputs of the shared layers are then passed to task-specific layers for sentiment classification and emotion detection. Finally, corresponding dense and output layers generate predictions for both tasks. We evaluate the efficacy of the proposed COSMO-MT model on two publicly available datasets. It significantly outperforms existing studies and baseline methods.
Related
- A deep learning-based silhouette gait detection framework for fall risk classification in Parkinson’s disease
- Deep learning based edge segmentation and classification for plasterboard defect detection
- Hybrid deep learning–driven explainable AI framework for fault detection and classification in smart power grids
- A deep-learning based gait classification and anomaly detection framework for healthcare surveillance
- Deep Learning for Real-Time Image Interpretation in Arthroscopy: A Systematic Review of Classification, Segmentation, and Detection Tasks
BibTeX
@article{alam2026multitask,
title = {{A multi-task learning approach for consumer sentiment classification and emotion detection via behavioral data}},
author = {Farhan Alam and Ashraf Kamal and Mohammad Meraj and Mohd Fazil and Ahmad Kamal and Shakir Khan and Shama Faridi and Vineet Kumar Sejwal and Saqib Qamar and Riyad Almakki},
journal = {Scientific Reports},
year = {2026},
month = oct,
doi = {10.1038/s41598-026-72542-7},
url = {https://www.nature.com/articles/s41598-026-72542-7},
note = {CC BY-NC-ND 4.0},
}
RIS
TY - JOUR
TI - A multi-task learning approach for consumer sentiment classification and emotion detection via behavioral data
AU - Farhan Alam
AU - Ashraf Kamal
AU - Mohammad Meraj
AU - Mohd Fazil
AU - Ahmad Kamal
AU - Shakir Khan
AU - Shama Faridi
AU - Vineet Kumar Sejwal
AU - Saqib Qamar
AU - Riyad Almakki
PY - 2026
DA - 2026/10/22
JO - Scientific Reports
DO - 10.1038/s41598-026-72542-7
UR - https://www.nature.com/articles/s41598-026-72542-7
AB - Sentiment analysis captures overall opinion polarity, but it often fails to reveal the key emotions that drive consumer behavior. The recognition of both sentiment and emotions provides crucial information to uncover underlying drivers of consumers behavior and brand loyalty. These important insights enable businesses to detect emerging issues, refine products and services, and personalize consumer experiences. This study proposes a multi-task approach that performs sentiment classification and emotion detection tasks based on consumer reviews and corresponding ratings. To this end, we propose Consumer Sentiment and Emotion Modeling (COSMO-MT), a deep learning-based multi-task model for sentiment classification and emotion detection. It begins with an input layer followed by embedding layers that provide sentiment-specific, emotion-specific, and shared embeddings from the input text. Each embedding is processed through shared layers consisting of CNN, BiLSTM, and attention mechanisms. Moreover, several auxiliary features are incorporated into the shared layers to provide explicit linguistic information. The outputs of the shared layers are then passed to task-specific layers for sentiment classification and emotion detection. Finally, corresponding dense and output layers generate predictions for both tasks. We evaluate the efficacy of the proposed COSMO-MT model on two publicly available datasets. It significantly outperforms existing studies and baseline methods.
SN - 2045-2322
ER -