Downloads · 30 days
10
31% of all-time downloads
Utkarsh64/mental-health-logistic-regression
mental-health-logistic-regression is a text classification model from Utkarsh64. Use it when you need a label for a piece of text. The card lists the license as mit.
This model performs multi-label emotion classification for mental health applications, detecting 28 different emotions from text input.
Downloads · 30 days
10
31% of all-time downloads
All-time downloads
32
Public
Repo size
6.1 MB
Likes
0
Public
Click a slice to open those files.
.pkl6.1 MB · 100%
From the Hugging Face model README
This model performs multi-label emotion classification for mental health applications, detecting 28 different emotions from text input.
| Metric | Score |
|---|---|
| F1-Score | 0.298 |
| Precision | 0.219 |
| Recall | 0.508 |
| Accuracy | 90.1% |
The model can detect 28 emotions: admiration, amusement, anger, annoyance, approval, caring, confusion, curiosity, desire, disappointment, disapproval, disgust, embarrassment, excitement, fear, gratitude, grief, joy, love, nervousness, optimism, pride, realization, relief, remorse, sadness, surprise, neutral.
import pickle
import requests
# Using HuggingFace Inference API
API_URL = "https://api-inference.huggingface.co/models/YOUR_USERNAME/mental-health-logistic-regression"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
# Example usage
result = query({"inputs": "I'm feeling really anxious about tomorrow"})
print(result)
This model is designed for mental health applications, chatbots, and emotion-aware systems. It provides high recall for detecting emotional states that might require support or intervention.
If you use this model, please cite:
@misc{mental-health-emotion-logistic,
title={Mental Health Emotion Detection - Logistic Regression},
author={Your Name},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/YOUR_USERNAME/mental-health-logistic-regression}
}