Downloads · 30 days
4
10% of all-time downloads
Shauriya24/voiceshield-xlmr
voiceshield-xlmr is a text classification model from Shauriya24. Use it when you need a label for a piece of text. The card lists the license as mit.
Fine-tuned XLM-RoBERTa model for detecting social engineering and suspicious text patterns in voice call transcriptions across multiple languages.
Downloads · 30 days
4
10% of all-time downloads
All-time downloads
39
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
Fine-tuned XLM-RoBERTa model for detecting social engineering and suspicious text patterns in voice call transcriptions across multiple languages.
| Property | Value |
|---|---|
| Base Model | xlm-roberta-base (Meta AI) |
| License | MIT |
| Task | Text Classification (3 classes) |
| Input | Text (max 128 tokens) |
| Output | Normal, Suspicious, or Social Engineering |
| Parameters | ~278M |
| Label ID | Class | Description |
|---|---|---|
| 0 | Normal | Safe, non-threatening conversation |
| 1 | Suspicious | Potentially manipulative language |
| 2 | Social Engineering | Active social engineering attempt (phishing, vishing, impersonation) |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_id = "Shauriya24/voiceshield-xlmr"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
model.eval()
text = "I am calling from your bank. Please share your OTP to verify your account."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1)[0]
labels = ["Normal", "Suspicious", "Social Engineering"]
pred = labels[probs.argmax()]
print(f"Prediction: {pred} ({probs.max():.2%})")
Evaluated with Accuracy and Weighted F1 Score on the validation set.
@article{conneau2020xlmr,
title={Unsupervised Cross-lingual Representation Learning at Scale},
author={Conneau, Alexis and others},
journal={ACL},
year={2020}
}