File size: 1,608 Bytes
3e889ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | Fine-tuned DistilBERT for binary depression classification from
social media text (Twitter + Reddit).
Trained as part of the ExplainDepression Pipeline β a research
system for explainable and fair depression detection using SHAP
attributions, Depression Explanation Score (DES), and Explanation
Consistency Index across Demographics (ECID).
βββββββββββββββββββββββββββ
PERFORMANCE
Accuracy β 96.17%
F1 Score β 0.9617
AUC-ROC β 0.9937
ECID β 0.2063 (bias detected in 3 clinical categories)
βββββββββββββββββββββββββββ
TRAINING DETAILS
Base Model β distilbert-base-uncased
Epochs β 3
Batch Size β 64
Learning Rate β 3e-5
Max Length β 96 tokens
Train Size β 11,200 posts
Platform β Kaggle GPU T4
βββββββββββββββββββββββββββ
LABELS
LABEL_0 β Not Depressed
LABEL_1 β Depressed
βββββββββββββββββββββββββββ
HOW TO USE
from transformers import pipeline
clf = pipeline(
"text-classification",
model="mdsajjadullah/explainDepression-distilbert",
return_all_scores=True
)
result = clf("I feel hopeless and completely alone.")
# LABEL_1 score = depression probability
βββββββββββββββββββββββββββ
INTENDED FOR RESEARCH ONLY.
Not for clinical diagnosis or deployment without
professional mental health oversight. |