Downloads · 30 days
7
6% of all-time downloads
abdulmuksith/textthreat-distilbert-jigsaw
textthreat-distilbert-jigsaw is a text classification model from abdulmuksith. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model is part of TextThreat - AI-Powered Detection of Digital Well-Being Risks with Cybersecurity Analytics, an MSc thesis proof-of-concept by Abdul Muksith Rizvi at the University of Doha for Science and Technol…
Downloads · 30 days
7
6% of all-time downloads
All-time downloads
121
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is part of TextThreat - AI-Powered Detection of Digital Well-Being Risks with Cybersecurity Analytics, an MSc thesis proof-of-concept by Abdul Muksith Rizvi at the University of Doha for Science and Technology.
TextThreat detects digital well-being risk signals in social-media text and exports schema-valid cybersecurity-style events for SIEM analytics, with a Splunk-first hosted demo path.
distilbert-base-uncasedtoxic, severe_toxic, obscene, threat, insult, identity_hateThis model is intended for the TextThreat proof-of-concept pipeline:
social media comment
-> DistilBERT harm scoring
-> TextThreat JSON event schema
-> NDJSON / Splunk HEC export
-> SIEM dashboard and optional SOAR-lite alert
The model can be used to generate per-label harm probabilities for research demonstrations and thesis artifact reproduction.
This model is not intended for autonomous moderation, clinical risk assessment, law-enforcement decision-making, employment screening, or other high-stakes decisions. It should not be used as the only basis for action against a person.
The current uploaded artifact corresponds to the thesis proof-of-concept training run. Metrics are stored in the repository under experiments/results/distilbert_metrics.json.
| Metric | Value |
|---|---|
| Micro F1 | 0.7363 |
| Macro F1 | 0.4206 |
| Macro ROC-AUC | 0.9780 |
| Macro PR-AUC | 0.5324 |
| Expected Calibration Error | 0.0032 |
| Eval loss | 0.0471 |
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_id = "abdulmuksith/textthreat-distilbert-jigsaw"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
text = "I will kill you"
inputs = tokenizer(text, return_tensors="pt", truncation=True)
inputs = {k: v for k, v in inputs.items() if k in model.forward.__code__.co_varnames}
with torch.no_grad():
logits = model(**inputs).logits[0]
scores = torch.sigmoid(logits)
print({model.config.id2label[i]: float(scores[i]) for i in range(len(scores))})
If referencing this model, cite the thesis project:
Rizvi, A. M. (2026). TextThreat: AI-Powered Detection of Digital Well-Being Risks with Cybersecurity Analytics. MSc thesis, University of Doha for Science and Technology.