Downloads · 30 days
11
1% of all-time downloads
margotwagner/roberta-psychotherapy-eval
roberta-psychotherapy-eval is a text classification model from margotwagner. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Pretrained model on English language for text classification. Model trained from tweetemotioneval (roberta-base fine-tuned on emotion task of tweeteval dataset) on psychotherapy text transcripts.
Downloads · 30 days
11
1% of all-time downloads
All-time downloads
1K
Public
Repo size
2 GB
Likes
1
Public
Click a slice to open those files.
.pt997 MB · 67%
From the Hugging Face model README
Pretrained model on English language for text classification. Model trained from tweet_emotion_eval (roberta-base fine-tuned on emotion task of tweet_eval dataset) on psychotherapy text transcripts.
Given a sentence, this model provides a binary classification as either symptomatic or non-symptomatic where symptomatic means the sentence displays signs of anxiety and/or depression.
This model is intended to be used to assess the mental health status using sentence-level text data. Specifically, it looks for symptoms related to anxiety and depression.
Use the code below to get started with the model.
from transformers import pipeline
classifier = pipeline(task="text-classification", model="margotwagner/roberta-psychotherapy-eval")
sentences = ["I am not having a great day"]
model_outputs = classifier(sentences)
print(model_outputs[0])
# produces a list of dicts for each of the labels
This model was fine-tuned using English sentence-level data in a supervised manner where symptomatic labels were obtained from expert clinicians. Sentences were required to be independent in nature. Back-translation was utilized to increase the size of the training dataset.
Weighted cross-entropy loss function was employed to address class imbalance. Model accuracy in the form of F1 was used for model selection.
F1 score was used as the model accuracy metric, as it maintains a balance between precision and recall with particular importance given to positive examples.