🤗 Hugging Face • 🔥 RoBERTa • 💬 Emotion AI • 🚀 Production Ready
EmotionSense is a RoBERTa-base model fine-tuned for emotion classification. The model predicts seven human emotions from English text using a cleaned and simplified version of the GoEmotions dataset.
Unlike the original GoEmotions dataset containing 28 fine-grained emotion labels, this work reorganizes emotions according to the Ekman Emotion Framework, improving interpretability while maintaining strong predictive performance.
✨ Highlights
🔥 Fine-tuned RoBERTa-base
🧠 Context-aware emotion recognition
📊 Class-balanced training using Weighted Cross Entropy Loss
⚡ Early stopping for improved generalization
🎯 Optimized using Weighted F1 Score
🤗 Compatible with Hugging Face Transformers Pipeline
🎯 Supported Emotion Classes
Label
Description
😀 Joy
Positive emotions, happiness, gratitude, love
😢 Sadness
Grief, disappointment, remorse
😡 Anger
Anger, annoyance, disapproval
😨 Fear
Fear and nervousness
🤢 Disgust
Disgust
😲 Surprise
Surprise, curiosity, realization
😐 Neutral
Emotionally neutral statements
📚 Dataset
The model was trained using a customized version of the GoEmotions dataset.
The original dataset contains approximately 58,000 Reddit comments annotated with 28 fine-grained emotion labels.
To improve annotation quality:
✔ Majority Voting was applied.
✔ Samples without annotator agreement were removed.
✔ Multi-label ambiguity was eliminated.
✔ Fine-grained emotions were mapped into Ekman's seven universal emotion categories.
Special thanks to the open-source AI community for providing exceptional tools and resources.
📖 Citation
If you use this model in your research, please cite both this repository and the GoEmotions dataset.
bibtex
1@inproceedings{demszky2020goemotions,
2 title={GoEmotions: A Dataset of Fine-Grained Emotions},
3 author={Demszky, Dorottya and others},
4 booktitle={Proceedings of ACL},
5 year={2020}
6}
⭐ If you find this model useful, consider giving it a Like on Hugging Face and sharing your feedback!