--- 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 ```python 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.") ```