CoolFace
Modelpublic

Kebinnuil/suicidal_detection_model

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
1likes30downloads
Model Card

Suicidal Detection System

This is a fine-tuned model based on a transformer architecture distilBERT for detecting suicidal intent or ideation in text. This model purpose is for text-classification in suicidal detection system.

Example output

Text InputLabelScore
"I want to jump off this bridge"Suicidal0.89

Example

python
from transformers import pipeline, DistilBertTokenizer, DistilBertForSequenceClassification

tokenizer = DistilBertTokenizer.from_pretrained("Kebinnuil/suicidal_detection_model")
model = pipeline("text-classification", model="Kebinnuil/suicidal_detection_model")

result = model("I want to jump off the bridge")
print(result)

Training Metrics

The dataset was split into 80/10/10 for train/validation/test set. Table below shows the result of the model's training metrics.

EpochTraining LossValidation LossAccuracyAUC
10.4428000.3480610.8380000.925000
20.3041000.3316310.8500000.935000
30.2616000.3297010.8510000.936000

Classification Report

ClassPrecisionRecallF1-scoreSupport
00.870.840.851211
10.840.870.861189

Accuracy: 0.86 Macro avg: Precision 0.86, Recall 0.86, F1-score 0.86 Weighted avg: Precision 0.86, Recall 0.86, F1-score 0.86 Total samples: 2400

Mapping Config

Please follow the config.json

image