Text Classification
Transformers
Safetensors
English
bert
mental-health
stress-detection
explainable-ai
text-embeddings-inference
Run this model with HF Jobs
Run khalid2847/mindscan-bert-dreaddit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/khalid2847/mindscan-bert-dreaddit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/khalid2847/mindscan-bert-dreaddit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use khalid2847/mindscan-bert-dreaddit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khalid2847/mindscan-bert-dreaddit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="khalid2847/mindscan-bert-dreaddit")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("khalid2847/mindscan-bert-dreaddit") model = AutoModelForSequenceClassification.from_pretrained("khalid2847/mindscan-bert-dreaddit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839---language: enlicense: mitlibrary_name: transformerspipeline_tag: text-classificationbase_model: google-bert/bert-base-uncaseddatasets: - dreaddittags: - mental-health - stress-detection - explainable-ai---
# MindScan BERT — stress detection on Dreaddit
`bert-base-uncased` fine-tuned to classify whether a Reddit post expresses **psychological stress**(label 1) or not (label 0). Built for the student project **MindScan** (CSE 445, North South University).
## Evaluation (official Dreaddit test split, 715 posts, threshold 0.5)
| Accuracy | Precision | Recall | F1 | ROC-AUC | PR-AUC ||---|---|---|---|---|---|| 0.779 | 0.749 | 0.859 | 0.801 | 0.880 | 0.890 |
## Intended useEducation and research on explainable NLP. **Not** a diagnostic or clinical tool and not for monitoringindividuals. Labels reflect crowd-worker judgements of *stress*, not clinical conditions.
## LimitationsEnglish Reddit text only; max 128 tokens; accuracy varies by community (lowest on r/relationships).Crowd-sourced labels and Reddit demographics carry bias.
## How to use```pythonfrom transformers import pipelineclf = pipeline("text-classification", model="YOUR_HF_USERNAME/mindscan-bert-dreaddit")clf("I can't sleep, rent is due and I feel like I'm drowning.")```README.mdAdded+39