StringJammer/patient-emotion-classifier
<div align="center">
๐ค Patient Emotion Classifier
Advanced AI-Powered Emotion Recognition for Healthcare Dialogues
Part of the Blended AI+X Initiative โ Bridging Artificial Intelligence and Healthcare
  ![Performance]()
</div>
๐ฌ Overview
We are thrilled to introduce Patient Emotion Classifier, a state-of-the-art NLP model engineered to understand emotional nuances in patient-doctor conversations.
This model represents our commitment to advancing AI for Healthcare (AI+X), leveraging cutting-edge transformer architectures to bridge the gap between artificial intelligence and compassionate care.
Key Capabilities
- Multiclass Emotion Recognition โ Identifies 6 distinct emotional states in clinical dialogues
- Healthcare-Optimized โ Specifically trained on medical conversation data
- Production-Ready โ Deployable via REST API for real-time inference
- Lightweight & Efficient โ Built on DistilBERT for fast inference
๐ฏ Emotion Categories
Our model classifies emotional states into 6 clinically-relevant categories:
๐ Model Performance
Overall Metrics
Per-Class Performance
Label Distribution
๐ Quick Start
1. Install Dependencies
pip install -r requirements.txt
### 2. Launch the Service
cd see python app.py
3. Access the Interface
http://localhost:8002
๐ Dataset
This model was trained on a meticulously curated subset of medical dialogues:
- Original Source: Chinese MedDialog Dataset โ Alibaba Cloud Tianchi
- Post-Processing: Carefully filtered, translated, and annotated for emotion classification
- Total Samples: 28,280 annotated dialogues
- Categories: 6 emotion labels
- Language: English
๐ References
- MedDialog Dataset Chinese Medical Dialogue Dataset. Alibaba Cloud Tianchi. https://tianchi.aliyun.com/dataset/92110
- DistilBERT Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108. https://arxiv.org/abs/1910.01108
๐๏ธ Technical Specifications
๐ Project Structure
patient-emotion-analysis/ โโโ best_model/ # Fine-tuned model weights โโโ see/ # Inference service โ โโโ app.py # Web application โ โโโ inference.py # Core inference logic โ โโโ templates/ # UI templates โโโ data/ # Training & evaluation data โโโ requirements.txt # Dependencies โโโ README.md # This file
<div align="center">
Blended AI+X Initiative โ Advancing Healthcare Through Intelligence
</div>
