File size: 5,241 Bytes
c1de2d9
 
 
 
 
 
 
 
 
2157b7a
 
c1de2d9
2157b7a
c1de2d9
2157b7a
c1de2d9
2157b7a
c1de2d9
2157b7a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1de2d9
2157b7a
c1de2d9
2157b7a
c1de2d9
2157b7a
 
 
c1de2d9
2157b7a
c1de2d9
2157b7a
 
 
c1de2d9
2157b7a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1de2d9
 
 
 
 
 
 
 
 
 
 
 
 
 
2157b7a
c1de2d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
---
library_name: transformers
license: apache-2.0
base_model: distilbert-base-uncased
tags:
- generated_from_trainer
model-index:
- name: help-classifier-v2
  results: []
datasets:
- King-8/help-request-messages-v2
---
# ๐Ÿค– Help Classifier Model (v2)

## ๐Ÿง  Overview

The **Help Classifier Model (v2)** is a fine-tuned NLP model designed to classify student help requests into meaningful categories within a collaborative learning environment.

This model is part of a larger AI system built for the **Coding in Color (CIC)** ecosystem, supporting students working across domains such as AI development, game development, 2D/3D art, and robotics.

Its primary purpose is to:

* Interpret real student messages
* Identify intent behind help requests
* Route inputs to appropriate downstream systems (e.g., generators, agents)

---

## ๐Ÿš€ Version Update (v1 โ†’ v2)

### ๐Ÿ”น v1

* Trained on ~100 examples
* Limited generalization
* Struggled with messy or informal input

### ๐Ÿ”น v2 (Current)

* Trained on **1,000 examples**
* Balanced dataset across all categories
* Strong performance on:

  * informal/slang input
  * mixed tone messages
  * ambiguous phrasing
  * real CIC-style check-ins

๐Ÿ‘‰ v2 significantly improves **accuracy, stability, and real-world usability**

---

## ๐Ÿงฉ Task Definition

**Task Type:** Text Classification

**Input:** Student message
**Output:** One of 5 help categories

---

## ๐Ÿท๏ธ Labels

| Label              | Description                                         |
| ------------------ | --------------------------------------------------- |
| `learning_help`    | User is trying to understand a concept or skill     |
| `project_help`     | User needs direction or next steps in a project     |
| `technical_issue`  | Something is broken or not working                  |
| `attendance_issue` | User missed a meeting or needs to catch up          |
| `general_guidance` | User expresses uncertainty, stress, or needs advice |

---

## ๐Ÿ—๏ธ Model Architecture

* Base Model: distilbert-base-uncased
* Fine-tuned for sequence classification
* Number of labels: 5

---

## โš™๏ธ Training Configuration

* Epochs: 4
* Learning Rate: 2e-5
* Batch Size: 8
* Weight Decay: 0.01
* Train/Validation Split: 80/10/10

---

## ๐Ÿ“Š Training Results

| Epoch | Training Loss | Validation Loss |
| ----- | ------------- | --------------- |
| 1     | 0.552         | 0.512           |
| 2     | 0.111         | 0.122           |
| 3     | 0.032         | 0.077           |
| 4     | 0.025         | 0.064           |

---

## ๐Ÿ“ˆ Performance Summary

* **Low validation loss (~0.06)**
* Strong generalization across unseen inputs
* Stable convergence during training
* Handles:

  * messy/slang text
  * indirect requests
  * multi-layered inputs

---

## ๐Ÿงช Example Predictions

**Input:**

```
i missed the meeting and now idk what weโ€™re doing
```

**Output:**

```
attendance_issue
```

---

**Input:**

```
my model works but the predictions are weird and I donโ€™t know why
```

**Output:**

```
technical_issue
```

---

**Input:**

```
I feel like Iโ€™m behind and donโ€™t know what to focus on
```

**Output:**

```
general_guidance
```

---

## ๐Ÿ”— System Integration

This model is integrated into an MCP (Model Context Protocol) system where it acts as:

> **Entry-point classifier for routing student inputs**

Pipeline example:

```
User Input โ†’ Help Classifier โ†’ (Future: Generator / Summarizer)
```

---

## ๐ŸŽฏ Use Cases

* Help request classification
* Slack/Discord message routing
* Educational AI assistants
* CIC ecosystem tools
* AI agent pipelines

---

## โš ๏ธ Limitations

* Single-label classification (some messages may contain multiple intents)
* Edge cases may still overlap between categories
* Domain-specific (focused on student tech environments)

---

## ๐Ÿ”ฎ Future Improvements

* Multi-label classification
* Larger dataset (2,000+ examples)
* Confidence scoring
* Integration with response generation models
* Continuous retraining with real user data

---

## ๐Ÿ‘ค Author

Created by Kingston Lewis as part of the Coding in Color program for the AI Dev team.

---

# help-classifier-v2

This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the King-8/help-request-messages-v2 dataset.
It achieves the following results on the evaluation set:
- Loss: 0.0643


### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 4
- mixed_precision_training: Native AMP


### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 0.5524        | 1.0   | 88   | 0.5124          |
| 0.1114        | 2.0   | 176  | 0.1221          |
| 0.0324        | 3.0   | 264  | 0.0771          |
| 0.0249        | 4.0   | 352  | 0.0643          |


### Framework versions

- Transformers 5.0.0
- Pytorch 2.10.0+cpu
- Datasets 4.0.0
- Tokenizers 0.22.2