1pip install -r requirements.txt
2
3### 2. Launch the Service
4
5```bash
6cd see
7python app.py
8
9### 3. Access the Interface
10
11http://localhost:8002
12
13## 📚 Dataset
14
15This model was trained on a meticulously curated subset of medical dialogues:
16
17- **Original Source**: [Chinese MedDialog Dataset](https://tianchi.aliyun.com/dataset/92110) — Alibaba Cloud Tianchi
18- **Post-Processing**: Carefully filtered, translated, and annotated for emotion classification
19- **Total Samples**: 28,280 annotated dialogues
20- **Categories**: 6 emotion labels
21- **Language**: English
22
23## 📚 References
24
251. **MedDialog Dataset**
26 Chinese Medical Dialogue Dataset. Alibaba Cloud Tianchi.
27 https://tianchi.aliyun.com/dataset/92110
28
292. **DistilBERT**
30 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.
31 https://arxiv.org/abs/1910.01108
32
33## 🏗️ Technical Specifications
34
35| Component | Details |
36|-----------|---------|
37| **Base Architecture** | [DistilBERT](https://huggingface.co/distilbert/distilbert-base-uncased) |
38| **Task Type** | 6-class emotion classification |
39| **Max Sequence Length** | 512 tokens |
40| **Framework** | PyTorch + Transformers |
41
42## 📁 Project Structure
43
44patient-emotion-analysis/
45├── best_model/ # Fine-tuned model weights
46├── see/ # Inference service
47│ ├── app.py # Web application
48│ ├── inference.py # Core inference logic
49│ └── templates/ # UI templates
50├── data/ # Training & evaluation data
51├── requirements.txt # Dependencies
52└── README.md # This file
53
54---
55
56<div align="center">
57
58**Blended AI+X Initiative** — *Advancing Healthcare Through Intelligence*
59
60</div>