Downloads · 30 days
65
36% of all-time downloads
abdulmuksith/textthreat-distilbert-dreaddit
textthreat-distilbert-dreaddit 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
65
36% of all-time downloads
All-time downloads
180
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 combines AI harm detection with cybersecurity analytics by converting model outputs into SIEM-ready threat events for Splunk/OpenSearch dashboards and SOAR-lite alerting.
distilbert-base-uncasednon_stress, stressThis model is intended for the TextThreat proof-of-concept pipeline:
social media comment
-> stress probability
-> TextThreat digital_wellbeing event fields
-> Splunk/OpenSearch dashboard analytics
-> optional SOAR-lite alerting
It can be used in research demos where stress-related language is one signal in a broader harm and digital well-being analytics workflow.
This model is not a clinical mental-health diagnostic model. It must not be used for diagnosis, emergency triage, autonomous intervention, or high-stakes decisions. Human review and appropriate support pathways are required for real-world safety workflows.
The current uploaded artifact corresponds to the thesis proof-of-concept training run. Metrics are stored in the repository under experiments/results/dreaddit_metrics.json.
| Metric | Value |
|---|---|
| F1 | 0.7479 |
| ROC-AUC | 0.8237 |
| PR-AUC | 0.8259 |
| Eval loss | 0.6318 |
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_id = "abdulmuksith/textthreat-distilbert-dreaddit"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
text = "I feel stressed and overwhelmed"
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.softmax(logits, dim=0)
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.