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
Download README.md from khalid2847/mindscan-bert-dreaddit: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/khalid2847/mindscan-bert-dreaddit/resolve/main/README.md
- Command line
-
hf download hf://khalid2847/mindscan-bert-dreaddit/README.md
-
curl -L -o README.md https://huggingface.co/khalid2847/mindscan-bert-dreaddit/resolve/main/README.md
language: en
license: mit
library_name: transformers
pipeline_tag: text-classification
base_model: google-bert/bert-base-uncased
datasets:
- dreaddit
tags:
- 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 use
Education and research on explainable NLP. Not a diagnostic or clinical tool and not for monitoring individuals. Labels reflect crowd-worker judgements of stress, not clinical conditions.
Limitations
English 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
from transformers import pipeline
clf = 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.")