A CNN-transformer framework for emotion recognition in code-mixed English–Hindi data

Social media is an open platform for users to express their views and thoughts through emotions about a particular topic in natural language, leading to the generation of a vast amount of emotional data on micro-blogging sites. This data needs to be processed to extract meaningful insights and analyze emotions from text, enhancing various Natural Language Processing (NLP) applications. While humans can easily infer emotions due to their commonsense knowledge, machines lack this perception and must be trained to understand and detect emotions, making it a highly researched task in NLP. The challenge intensifies in Indian contexts where users often switch between two or more languages (code-mixing) to express opinions. The lack of annotated datasets for such multilingual data makes this a promising and underexplored area of research. To address this, we propose a hybrid deep learning framework using a CNN-Transformer model trained on Hindi–English code-mixed tweets, categorized into Happy, Sad, Anger, and Neutral emotions. Unlike previous approaches that rely solely on monolingual models or pre-trained transformers, our method combines local feature extraction via CNNs with global contextual modeling through Transformers specifically designed for code-mixed structures. We also utilize pre-trained word embedding fine-tuned on the dataset to improve semantic representation. Our proposed model achieves superior performance, with an F1-score of 0.82 and outperforming both CNN-only and Transformer-only baselines, and demonstrates robust emotion classification in code-mixed social media text.

Authors

Institutions

Publication Details

Journal
Discover Artificial Intelligence
Published
2025-07-18
DOI
https://doi.org/10.1007/s44163-025-00400-y
Citations
2
Primary Topic
Emotion and Mood Recognition
Type
article
Field-Weighted Citation Impact
4.24
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A CNN-transformer framework for emotion recognition in code-mixed English–Hindi data

Madhura Phadke, Shreya Patankar
2 citations
Discover Artificial Intelligence
Emotion and Mood Recognition
4.24
article

A CNN-transformer framework for emotion recognition in code-mixed English–Hindi data

Madhura Phadke, Shreya Patankar
article en
2 citations

Abstract

Social media is an open platform for users to express their views and thoughts through emotions about a particular topic in natural language, leading to the generation of a vast amount of emotional data on micro-blogging sites. This data needs to be processed to extract meaningful insights and analyze emotions from text, enhancing various Natural Language Processing (NLP) applications. While humans can easily infer emotions due to their commonsense knowledge, machines lack this perception and must be trained to understand and detect emotions, making it a highly researched task in NLP. The challenge intensifies in Indian contexts where users often switch between two or more languages (code-mixing) to express opinions. The lack of annotated datasets for such multilingual data makes this a promising and underexplored area of research. To address this, we propose a hybrid deep learning framework using a CNN-Transformer model trained on Hindi–English code-mixed tweets, categorized into Happy, Sad, Anger, and Neutral emotions. Unlike previous approaches that rely solely on monolingual models or pre-trained transformers, our method combines local feature extraction via CNNs with global contextual modeling through Transformers specifically designed for code-mixed structures. We also utilize pre-trained word embedding fine-tuned on the dataset to improve semantic representation. Our proposed model achieves superior performance, with an F1-score of 0.82 and outperforming both CNN-only and Transformer-only baselines, and demonstrates robust emotion classification in code-mixed social media text.

Discover Artificial IntelligenceVol. 5(1)
K J Somaiya Medical College (IN)
Reduced inequalities
Openalex Percentile: Top 6%
Emotion and Mood Recognition
4.24
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.