Hope Speech Detection in code-mixed Roman Urdu tweets: A Positive Turn in Natural Language Processing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ahmad, Muhammad, Waqas, Muhammad, Hamza, Ameer, Batyrshin, Ildar, Sidorov, Grigori
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908880591650816
author Ahmad, Muhammad
Waqas, Muhammad
Hamza, Ameer
Batyrshin, Ildar
Sidorov, Grigori
author_facet Ahmad, Muhammad
Waqas, Muhammad
Hamza, Ameer
Batyrshin, Ildar
Sidorov, Grigori
contents Hope is a positive emotional state involving the expectation of favorable future outcomes, while hope speech refers to communication that promotes optimism, resilience, and support, particularly in adverse contexts. Although hope speech detection has gained attention in Natural Language Processing (NLP), existing research mainly focuses on high-resource languages and standardized scripts, often overlooking informal and underrepresented forms such as Roman Urdu. To the best of our knowledge, this is the first study to address hope speech detection in code-mixed Roman Urdu by introducing a carefully annotated dataset, thereby filling a critical gap in inclusive NLP research for low-resource, informal language varieties. This study makes four key contributions: (1) it introduces the first multi-class annotated dataset for Roman Urdu hope speech, comprising Generalized Hope, Realistic Hope, Unrealistic Hope, and Not Hope categories; (2) it explores the psychological foundations of hope and analyzes its linguistic patterns in code-mixed Roman Urdu to inform dataset development; (3) it proposes a custom attention-based transformer model optimized for the syntactic and semantic variability of Roman Urdu, evaluated using 5-fold cross-validation; and (4) it verifies the statistical significance of performance gains using a t-test. The proposed model, XLM-R, achieves the best performance with a cross-validation score of 0.78, outperforming the baseline SVM (0.75) and BiLSTM (0.76), with gains of 4% and 2.63% respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2506_21583
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Hope Speech Detection in code-mixed Roman Urdu tweets: A Positive Turn in Natural Language Processing
Ahmad, Muhammad
Waqas, Muhammad
Hamza, Ameer
Batyrshin, Ildar
Sidorov, Grigori
Computation and Language
Artificial Intelligence
Hope is a positive emotional state involving the expectation of favorable future outcomes, while hope speech refers to communication that promotes optimism, resilience, and support, particularly in adverse contexts. Although hope speech detection has gained attention in Natural Language Processing (NLP), existing research mainly focuses on high-resource languages and standardized scripts, often overlooking informal and underrepresented forms such as Roman Urdu. To the best of our knowledge, this is the first study to address hope speech detection in code-mixed Roman Urdu by introducing a carefully annotated dataset, thereby filling a critical gap in inclusive NLP research for low-resource, informal language varieties. This study makes four key contributions: (1) it introduces the first multi-class annotated dataset for Roman Urdu hope speech, comprising Generalized Hope, Realistic Hope, Unrealistic Hope, and Not Hope categories; (2) it explores the psychological foundations of hope and analyzes its linguistic patterns in code-mixed Roman Urdu to inform dataset development; (3) it proposes a custom attention-based transformer model optimized for the syntactic and semantic variability of Roman Urdu, evaluated using 5-fold cross-validation; and (4) it verifies the statistical significance of performance gains using a t-test. The proposed model, XLM-R, achieves the best performance with a cross-validation score of 0.78, outperforming the baseline SVM (0.75) and BiLSTM (0.76), with gains of 4% and 2.63% respectively.
title Hope Speech Detection in code-mixed Roman Urdu tweets: A Positive Turn in Natural Language Processing
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.21583