Сақ бол v3: scam detector for Kazakhstan (Kazakh and Russian)
Binary classifier (label 1 = scam) for SMS, messenger texts and single turns of a phone call, in Kazakh, Russian, mixed Kazakh-Russian, and Kazakh typed on a Russian keyboard. Fine-tuned from intfloat/multilingual-e5-large. Built for the Veritas AI International High School Hackathon 2026 (Finance track) by team tryHard. Code, data provenance and the full evaluation: https://github.com/itsaibarr/saq-bol
Prototype, not financial advice.
Use
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo = "itsaibarr/saq-bol-v3"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo).eval()
texts = ["Сәлеметсіз бе, банктің қауіпсіздік қызметінен хабарласып тұрмыз. SMS-кодты айтыңызшы."]
enc = tok(["query: " + t for t in texts], padding=True, truncation=True, max_length=96, return_tensors="pt")
with torch.no_grad():
p = torch.softmax(model(**enc).logits.float(), -1)[:, 1]
print(p, p >= 0.9980121861) # operating threshold set on dev
Inputs need the query: prefix and a maximum length of 96 tokens, as in training. The threshold 0.99801 flags at most 1% of everyday chat messages and at most 5% of real service SMS on the development set.
Evaluation
Test set C: real scam and legit texts copied word for word from 204 public pages that were never used in training, locked before this model's training data was built, scored once.
| Kazakhstan scams (151) | Russian (103) | Kazakh (48) | Russian outside Kazakhstan (76) | Everyday chat flagged | |
|---|---|---|---|---|---|
| This model | 90.1% [84, 94] | 91.3% [84, 95] | 87.5% [75, 94] | 88.2% [79, 94] | 0.25% (5/1,978) |
Known weaknesses: call openers with no scam signal are missed; some ordinary courier and bank-code messages are flagged; false alarms on real service SMS are not measured on fresh data (only 10 real SMS in test C).
Training data
About 84,000 rows: open scam corpora from Hugging Face, Kazakh machine translations (NLLB-200), synthetic Kazakhstan-specific messages written by Claude, 989 real Russian scam quotes from non-Kazakhstan publishers, real Kazakh/Russian Telegram chat lines and rule-based service notifications as negatives, and spent earlier test sets. Full list with licences: https://github.com/itsaibarr/saq-bol/blob/main/CREDITS.md
Licence
The weights are shared for research and non-commercial use (CC BY-NC-SA 4.0), because the training data includes CC BY-NC-SA 4.0 chat data (kurumikz/telegram-corpus-russian-kazakh) and CC BY-NC 4.0 machine translations (NLLB-200). Training also included 43 bank SMS formats from zenmoney/sms-formats, which states no licence (disclosed in the repository).
- Downloads last month
- 20
Model tree for itsaibarr/saq-bol-v3
Base model
intfloat/multilingual-e5-large