Prashobnarendran commited on
Commit
aa2d60e
·
verified ·
1 Parent(s): 4aa0fdf

queue classifier, macro-F1 0.494

Browse files
Files changed (8) hide show
  1. README.md +40 -0
  2. config.json +63 -0
  3. label_map.json +14 -0
  4. metrics.json +203 -0
  5. model.safetensors +3 -0
  6. tokenizer.json +0 -0
  7. tokenizer_config.json +24 -0
  8. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ base_model: microsoft/deberta-v3-base
4
+ datasets: [Tobi-Bueck/customer-support-tickets]
5
+ language: [en]
6
+ pipeline_tag: text-classification
7
+ ---
8
+ # Service-desk queue classifier (Group 60, AIMLZG549)
9
+
10
+ Fine-tuned `microsoft/deberta-v3-base` that assigns a customer-support ticket to a **queue**.
11
+ Input format: `subject + "\n\n" + body`, max 128 tokens.
12
+
13
+ ## Data
14
+ English tickets from Tobi-Bueck/customer-support-tickets (CC BY-NC 4.0), deduplicated and split 80/10/10
15
+ stratified by queue (seed 42). Train 18,997 · validation 2,375 · test 2,375.
16
+
17
+ ## Training
18
+ learning rate 5e-05 · batch size 32 · up to 8 epochs · warm-up 10% · weight decay 0.01 ·
19
+ class-weighted cross-entropy · early stopping (patience 2) on validation macro-F1 · fp16=True ·
20
+ seed 42 · training time 30.9 min.
21
+
22
+ ## Test results
23
+ Accuracy **0.434** · macro-F1 **0.494** · weighted-F1 0.426
24
+
25
+ | Class | Precision | Recall | F1 | Support |
26
+ |---|---|---|---|---|
27
+ | Billing and Payments | 0.625 | 0.798 | 0.701 | 242 |
28
+ | Customer Service | 0.382 | 0.345 | 0.362 | 357 |
29
+ | General Inquiry | 0.469 | 0.441 | 0.455 | 34 |
30
+ | Human Resources | 0.525 | 0.674 | 0.590 | 46 |
31
+ | IT Support | 0.290 | 0.528 | 0.375 | 284 |
32
+ | Product Support | 0.410 | 0.327 | 0.364 | 443 |
33
+ | Returns and Exchanges | 0.398 | 0.581 | 0.472 | 117 |
34
+ | Sales and Pre-Sales | 0.556 | 0.685 | 0.613 | 73 |
35
+ | Service Outages and Maintenance | 0.646 | 0.667 | 0.656 | 93 |
36
+ | Technical Support | 0.459 | 0.284 | 0.351 | 686 |
37
+
38
+ ## Intended use and limits
39
+ Suggests a queue to a human agent; predictions below 0.5 confidence are flagged for manual routing.
40
+ Trained on synthetic-style tickets in English; accuracy on a real organisation's tickets must be re-measured.
config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DebertaV2ForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 1,
7
+ "dtype": "float32",
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Billing and Payments",
14
+ "1": "Customer Service",
15
+ "2": "General Inquiry",
16
+ "3": "Human Resources",
17
+ "4": "IT Support",
18
+ "5": "Product Support",
19
+ "6": "Returns and Exchanges",
20
+ "7": "Sales and Pre-Sales",
21
+ "8": "Service Outages and Maintenance",
22
+ "9": "Technical Support"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "Billing and Payments": 0,
28
+ "Customer Service": 1,
29
+ "General Inquiry": 2,
30
+ "Human Resources": 3,
31
+ "IT Support": 4,
32
+ "Product Support": 5,
33
+ "Returns and Exchanges": 6,
34
+ "Sales and Pre-Sales": 7,
35
+ "Service Outages and Maintenance": 8,
36
+ "Technical Support": 9
37
+ },
38
+ "layer_norm_eps": 1e-07,
39
+ "legacy": true,
40
+ "max_position_embeddings": 512,
41
+ "max_relative_positions": -1,
42
+ "model_type": "deberta-v2",
43
+ "norm_rel_ebd": "layer_norm",
44
+ "num_attention_heads": 12,
45
+ "num_hidden_layers": 12,
46
+ "pad_token_id": 0,
47
+ "pooler_dropout": 0.0,
48
+ "pooler_hidden_act": "gelu",
49
+ "pooler_hidden_size": 768,
50
+ "pos_att_type": [
51
+ "p2c",
52
+ "c2p"
53
+ ],
54
+ "position_biased_input": false,
55
+ "position_buckets": 256,
56
+ "relative_attention": true,
57
+ "share_att_key": true,
58
+ "tie_word_embeddings": true,
59
+ "transformers_version": "5.22.1",
60
+ "type_vocab_size": 0,
61
+ "use_cache": false,
62
+ "vocab_size": 128100
63
+ }
label_map.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels": [
3
+ "Billing and Payments",
4
+ "Customer Service",
5
+ "General Inquiry",
6
+ "Human Resources",
7
+ "IT Support",
8
+ "Product Support",
9
+ "Returns and Exchanges",
10
+ "Sales and Pre-Sales",
11
+ "Service Outages and Maintenance",
12
+ "Technical Support"
13
+ ]
14
+ }
metrics.json ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "fine-tuned microsoft/deberta-v3-base",
3
+ "label": "queue",
4
+ "output_dir": "models/queue-classifier",
5
+ "mlflow_run_id": "6a960e208d12496b85f6aa7f79f3cab9",
6
+ "train_minutes": 30.9,
7
+ "best_checkpoint": "checkpoints/queue/checkpoint-4752",
8
+ "epochs_run": 8.0,
9
+ "test": {
10
+ "n": 2375,
11
+ "accuracy": 0.4345,
12
+ "macro_f1": 0.4939,
13
+ "weighted_f1": 0.4256,
14
+ "per_class": {
15
+ "Billing and Payments": {
16
+ "precision": 0.6245954692556634,
17
+ "recall": 0.7975206611570248,
18
+ "f1-score": 0.7005444646098004,
19
+ "support": 242.0
20
+ },
21
+ "Customer Service": {
22
+ "precision": 0.38198757763975155,
23
+ "recall": 0.3445378151260504,
24
+ "f1-score": 0.36229749631811486,
25
+ "support": 357.0
26
+ },
27
+ "General Inquiry": {
28
+ "precision": 0.46875,
29
+ "recall": 0.4411764705882353,
30
+ "f1-score": 0.45454545454545453,
31
+ "support": 34.0
32
+ },
33
+ "Human Resources": {
34
+ "precision": 0.5254237288135594,
35
+ "recall": 0.6739130434782609,
36
+ "f1-score": 0.5904761904761905,
37
+ "support": 46.0
38
+ },
39
+ "IT Support": {
40
+ "precision": 0.2901353965183752,
41
+ "recall": 0.528169014084507,
42
+ "f1-score": 0.37453183520599254,
43
+ "support": 284.0
44
+ },
45
+ "Product Support": {
46
+ "precision": 0.4096045197740113,
47
+ "recall": 0.327313769751693,
48
+ "f1-score": 0.36386449184441655,
49
+ "support": 443.0
50
+ },
51
+ "Returns and Exchanges": {
52
+ "precision": 0.39766081871345027,
53
+ "recall": 0.5811965811965812,
54
+ "f1-score": 0.4722222222222222,
55
+ "support": 117.0
56
+ },
57
+ "Sales and Pre-Sales": {
58
+ "precision": 0.5555555555555556,
59
+ "recall": 0.684931506849315,
60
+ "f1-score": 0.6134969325153374,
61
+ "support": 73.0
62
+ },
63
+ "Service Outages and Maintenance": {
64
+ "precision": 0.6458333333333334,
65
+ "recall": 0.6666666666666666,
66
+ "f1-score": 0.656084656084656,
67
+ "support": 93.0
68
+ },
69
+ "Technical Support": {
70
+ "precision": 0.4588235294117647,
71
+ "recall": 0.28425655976676384,
72
+ "f1-score": 0.35103510351035105,
73
+ "support": 686.0
74
+ },
75
+ "accuracy": 0.4345263157894737,
76
+ "macro avg": {
77
+ "precision": 0.47583699290154646,
78
+ "recall": 0.5329682088665099,
79
+ "f1-score": 0.49390988473325353,
80
+ "support": 2375.0
81
+ },
82
+ "weighted avg": {
83
+ "precision": 0.44352809587170144,
84
+ "recall": 0.4345263157894737,
85
+ "f1-score": 0.4256457507455835,
86
+ "support": 2375.0
87
+ }
88
+ }
89
+ },
90
+ "test_sample300": {
91
+ "n": 300,
92
+ "accuracy": 0.4167,
93
+ "macro_f1": 0.491,
94
+ "weighted_f1": 0.4069,
95
+ "per_class": {
96
+ "Billing and Payments": {
97
+ "precision": 0.5581395348837209,
98
+ "recall": 0.8,
99
+ "f1-score": 0.6575342465753424,
100
+ "support": 30.0
101
+ },
102
+ "Customer Service": {
103
+ "precision": 0.4375,
104
+ "recall": 0.3111111111111111,
105
+ "f1-score": 0.36363636363636365,
106
+ "support": 45.0
107
+ },
108
+ "General Inquiry": {
109
+ "precision": 0.75,
110
+ "recall": 0.75,
111
+ "f1-score": 0.75,
112
+ "support": 4.0
113
+ },
114
+ "Human Resources": {
115
+ "precision": 0.5,
116
+ "recall": 0.3333333333333333,
117
+ "f1-score": 0.4,
118
+ "support": 6.0
119
+ },
120
+ "IT Support": {
121
+ "precision": 0.25757575757575757,
122
+ "recall": 0.4722222222222222,
123
+ "f1-score": 0.3333333333333333,
124
+ "support": 36.0
125
+ },
126
+ "Product Support": {
127
+ "precision": 0.36363636363636365,
128
+ "recall": 0.2857142857142857,
129
+ "f1-score": 0.32,
130
+ "support": 56.0
131
+ },
132
+ "Returns and Exchanges": {
133
+ "precision": 0.3888888888888889,
134
+ "recall": 0.4666666666666667,
135
+ "f1-score": 0.42424242424242425,
136
+ "support": 15.0
137
+ },
138
+ "Sales and Pre-Sales": {
139
+ "precision": 0.5833333333333334,
140
+ "recall": 0.7777777777777778,
141
+ "f1-score": 0.6666666666666666,
142
+ "support": 9.0
143
+ },
144
+ "Service Outages and Maintenance": {
145
+ "precision": 0.5625,
146
+ "recall": 0.75,
147
+ "f1-score": 0.6428571428571429,
148
+ "support": 12.0
149
+ },
150
+ "Technical Support": {
151
+ "precision": 0.4262295081967213,
152
+ "recall": 0.2988505747126437,
153
+ "f1-score": 0.35135135135135137,
154
+ "support": 87.0
155
+ },
156
+ "accuracy": 0.4166666666666667,
157
+ "macro avg": {
158
+ "precision": 0.48278033865147857,
159
+ "recall": 0.5245675971538041,
160
+ "f1-score": 0.49096215286626255,
161
+ "support": 300.0
162
+ },
163
+ "weighted avg": {
164
+ "precision": 0.4232778340977445,
165
+ "recall": 0.4166666666666667,
166
+ "f1-score": 0.4068505113546209,
167
+ "support": 300.0
168
+ }
169
+ }
170
+ },
171
+ "top_confusions": [
172
+ {
173
+ "true": "Technical Support",
174
+ "predicted": "IT Support",
175
+ "count": 252,
176
+ "examples": [
177
+ "Dear Customer Support, several users have reported crashes in the project management SaaS. The issue might be related to recent updates to the backend systems. Steps taken to isolate the problem, such as rolling back updates and restarting ",
178
+ "Problems with Touch Screen We have been encountering display issues with the touchscreen monitors, which are impacting the performance of our analytics software. This problem might be related to recent software updates. After restarting the",
179
+ "Dear Customer Support, we are facing connectivity issues with our digital tools at the agency, which may be due to recent software updates conflicting with hardware settings. Despite rebooting the router and devices, the issue still persist"
180
+ ]
181
+ },
182
+ {
183
+ "true": "Technical Support",
184
+ "predicted": "Product Support",
185
+ "count": 91,
186
+ "examples": [
187
+ "Problem with Financial Data Synchronization in Analytics Tools The firm's data analytics tools have been experiencing issues with synchronizing investment data. Efforts to resolve the problem, such as restarting the systems and checking fir",
188
+ "Cybersecurity Incident Support I am writing to draw attention to an urgent security concern involving the healthcare provider's system. Recently, there have been unauthorized access attempts that have compromised medical data and threatened",
189
+ "SaaS Application Experienced Unexpected Failure Greetings Customer Support Team, <br>I hope this message finds you well. I am contacting you to report a recent issue with the SaaS application. It unexpectedly crashed, and I am uncertain abo"
190
+ ]
191
+ },
192
+ {
193
+ "true": "Product Support",
194
+ "predicted": "Technical Support",
195
+ "count": 89,
196
+ "examples": [
197
+ "Assistance Needed with Product Integration Difficulties Currently facing multiple simultaneous failures in product integrations, which are disrupting workflows and causing data synchronization errors. The problem might be related to recent ",
198
+ "Concerning Incident Involving Data Compromise Underwent a data breach impacting medical records.",
199
+ "Support for Integration Difficulties I am contacting you to bring to your attention integration problems I am encountering with various tools, which are leading to project delays. These tools are malfunctioning, synchronization is failing, "
200
+ ]
201
+ }
202
+ ]
203
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94ba4949776d2d656c6826e910f001ceeb180361e4d99c7f04c53d33a0b00e9a
3
+ size 737743888
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "[CLS]",
5
+ "cls_token": "[CLS]",
6
+ "do_lower_case": false,
7
+ "eos_token": "[SEP]",
8
+ "extra_special_tokens": [
9
+ "[PAD]",
10
+ "[CLS]",
11
+ "[SEP]"
12
+ ],
13
+ "is_local": false,
14
+ "local_files_only": false,
15
+ "mask_token": "[MASK]",
16
+ "model_max_length": 1000000000000000019884624838656,
17
+ "pad_token": "[PAD]",
18
+ "sep_token": "[SEP]",
19
+ "split_by_punct": false,
20
+ "tokenizer_class": "DebertaV2Tokenizer",
21
+ "unk_id": 3,
22
+ "unk_token": "[UNK]",
23
+ "vocab_type": "spm"
24
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e00a602d8411d409248cb479f64282450a01c099aa3cd2331c7b4931269bb09
3
+ size 5265