Abstract
Author profiling involves identifying demographic traits such as age and gender from text. While well-established for major European languages, it remains challenging for South Asian languages due to frequent multilingual code-switching and non-standard scripts. This paper presents a machine learning pipeline designed for the noisy SMS environment of South Asia. By combining a bilingual dictionary for translation with a Naive Bayes classifier, the system achieved competitive rankings in the FIRE 2018 Author Profiling task, notably placing 2nd in age classification.
Introduction
South Asian digital communication is characterized by a unique linguistic phenomenon: the mixing of English with local languages like Hindi or Urdu, often written in the Roman script. These messages are typically short, informal, and "noisy," containing slang and varied spellings. Accurately categorizing an author's gender (Male/Female) and age group (15-19, 20-24, or 25+) from such data has significant implications for cyber forensics, identity verification, and targeted marketing. This research aims to bridge the gap in author profiling for these complex, short-form multilingual messages.
Methodology
The proposed system follows a four-stage pipeline to process and classify SMS data.
- Preprocessing: Initial steps involve tokenization using NLTK, followed by the removal of stopwords and punctuation, and case folding to ensure consistency.
- Translation: To address code-switching, a bilingual dictionary of 7,189 common Hindi and Urdu words was used to translate Romanized terms into English, standardizing the feature space.
- Feature Extraction: The researchers compared TF-IDF and Count Vectorizer methods. The Count Vectorizer was selected as it performed better, suggesting that simple word presence is a more reliable demographic indicator in short texts than relative term frequency.
- Classification: Several supervised learning models were evaluated, including Support Vector Machines (SVM), Random Forest, and Logistic Regression.
As shown in the comparison, the Naive Bayes classifier emerged as the most effective model for this task, particularly due to its robustness against overfitting in small, noisy datasets.
Datasets
The study utilized the official dataset from the FIRE 2018 Author Profiling task. The training set consisted of 350 text files containing SMS messages in Roman Urdu or English, while the testing set included 150 files. Labels were provided for Gender (Male/Female) and three Age Groups (15-19, 20-24, and 25+).
Results and Discussion
The Naive Bayes approach demonstrated strong performance, particularly in its ability to generalize. While it showed signs of overfitting on gender during training (87% accuracy vs. 75% on test), it generalized exceptionally well for age classification, achieving 64% accuracy on unseen test data compared to 60% during training.
| Task | Test Accuracy |
|---|---|
| Gender | 0.75 |
| Age | 0.64 |
| Joint (Both) | 0.47 |
The system's joint accuracy of 0.47 significantly outperformed the competition's baseline of 0.32. Overall, the team ranked 4th out of 9 globally and 2nd specifically for age classification. These results highlight that simple models like Naive Bayes can be highly effective for small, noisy datasets where the independence assumption acts as a form of regularization.
Conclusion
This research demonstrates that a relatively simple pipeline—standardizing multilingual text via a dictionary and employing a Naive Bayes classifier—can effectively profile authors in noisy SMS environments. Future work will focus on reducing dependency on static dictionaries, handling informal "text-speak" variations more robustly, and expanding support to a broader range of South Asian languages.
Summary updated