CONTEXT-AWARE SENTIMENT CLASSIFICATION OF SOCIAL MEDIA TEXT USING ATTENTION-BASED TRANSFORMER MODELS

Authors

  • Mr.M.N.Mallikarjuna Reddy Author

DOI:

https://doi.org/10.64751/ajaccm.2026.v6.n1.pp22-29

Keywords:

Sentiment Analysis; Transformer Models; Attention Mechanism; BERT; Context-Aware Classification; Social Media Analytics; Natural Language Processing; Deep Learning; Opinion Mining

Abstract

Sentiment analysis of social media text has become increasingly important for understanding public opinion, brand perception, and societal trends. However, social media content is often informal, contextdependent, and filled with slang, sarcasm, emojis, and short-text structures, making traditional machine learning approaches less effective. This paper proposes a Context-Aware Sentiment Classification Framework using attention-based transformer models to capture semantic relationships and contextual dependencies within social media text. The proposed system leverages pre-trained transformer architectures such as BERT and its variants, enhanced with attention mechanisms to focus on sentimentbearing words and contextual cues. The framework incorporates contextual embeddings, token-level attention scoring, and fine-tuning strategies to improve classification performance on noisy and short-text datasets. Experimental results demonstrate superior accuracy and robustness compared to conventional machine learning and recurrent neural network models. The proposed model effectively captures nuanced sentiment expressions, making it suitable for real-time social media monitoring and opinion mining applications. 

Downloads

Published

12-02-26

How to Cite

Mr.M.N.Mallikarjuna Reddy. (2026). CONTEXT-AWARE SENTIMENT CLASSIFICATION OF SOCIAL MEDIA TEXT USING ATTENTION-BASED TRANSFORMER MODELS . American Journal of AI Cyber Computing Management, 6(1), 22-29. https://doi.org/10.64751/ajaccm.2026.v6.n1.pp22-29