Downloads · 30 days
15
13% of all-time downloads
Keshav0av/HinSpam-spam-detection
HinSpam-spam-detection is a text classification model from Keshav0av. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
HinSpam is a binary text classifier trained to detect spam messages in Hinglish — the code-mixed Hindi-English variety dominant across Indian SMS, WhatsApp, and online messaging platforms. It distinguishes between spa…
Downloads · 30 days
15
13% of all-time downloads
All-time downloads
118
Public
Parameters
125M
499 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
HinSpam is a binary text classifier trained to detect spam messages in Hinglish — the code-mixed Hindi-English variety dominant across Indian SMS, WhatsApp, and online messaging platforms. It distinguishes between spam (unsolicited promotional, scam, or phishing messages) and ham (genuine, organic conversation), with strong performance on the kinds of deceptive, urgent-language spam that targets Indian mobile users.
| Property | Details |
|---|---|
| Task | Binary Text Classification |
| Label 0 | ham — legitimate, non-spam message |
| Label 1 | spam — unsolicited, scam, or phishing message |
| Language | Hinglish (Hindi-English code-mixed, Roman script) |
| Domain | SMS, WhatsApp, online messaging |
Most spam classifiers are trained on English or pure Hindi corpora and fail on the code-mixed reality of Indian messaging. HinSpam is trained natively on Hinglish, capturing the mixed-language patterns used both by real users and by scammers targeting Indian audiences.
The model is specifically tuned to catch common Indian spam tropes:
Everyday Hinglish conversation — complaints, plans, banter — is often informal and noisy. HinSpam maintains high precision on ham, avoiding the over-flagging that plagues generic spam filters on non-English text.
Evaluated on a held-out test set of Hinglish messages:
| Metric | Score |
|---|---|
| Accuracy | 0.9530 |
| F1 Score | 0.9490 |
| Precision | 0.9340 |
| Recall | 0.9650 |
| MCC (Matthews Correlation Coefficient) | 0.9060 |
Recall = 0.9650 — The model catches the vast majority of spam, making it effective as a first-pass filter in messaging pipelines.
MCC = 0.9060 — A strong balanced metric confirming reliable classification across both classes, even under mild label imbalance.
HinSpam is designed for:
The model was trained on a curated dataset of Hinglish messages covering a wide range of spam and ham examples:
"Tera naya job kaisa chal raha hai boss kaisa hai wahan ka theek hai na.", ham
"Aapke account mein scratch winner se jeete hue 50000 rupey credit krene ke liye apna otp diye gaye number par forward kre", spam
"Bhai tu kab sudhrega hamesha late aane ki aadat hai teri toh pakki.", ham
"500000 jitne ke liye is link par click kre: www.maha-winner-india.in", spam
"Aaj bahut bore ho raha hu yaar kuch karne ka plan bata theek sa.", ham
"Aapke account mein lottery se jeete hue 100000 rupey credit krene ke liye apna otp manager ko forward kre aur claim karein", spam
If you use HinSpam in your research or product, please cite:
@misc{hinspam-spam-detection2026,
title = {HinSpam: Hinglish Spam Detection for Code-Mixed Indian Messaging},
year = {2026},
note = {HuggingFace Model Hub},
url = {https://huggingface.co/Keshav0av/HinSpam-spam-detection}
}
For questions, feedback, or collaboration, open an issue on the model repository or reach out via HuggingFace.