Support Ticket Routing Classifier (BERT)

bert-base-uncased fine-tuned to route English customer support tickets to one of 10 queues.

Intended use

Suggesting the destination queue for an incoming support ticket (subject + body), ideally as a top-3 suggestion for a human triage agent. Not intended for automated decisions on real customers without retraining and evaluation on in-house data.

Labels

Billing and Payments, Customer Service, General Inquiry, Human Resources, IT Support, Product Support, Returns and Exchanges, Sales and Pre-Sales, Service Outages and Maintenance, Technical Support.

Training data

English subset of Tobi-Bueck/customer-support-tickets (synthetic). 23,745 tickets after cleaning and de-duplication; stratified 80/10/10 split with seed 42 (18,996 / 2,374 / 2,375).

Training procedure

  • Max sequence length 256, learning rate 3e-5, 700 warmup steps, weight decay 0.01
  • Batch size 16, 6 epochs, fp16, Google Colab T4 GPU (about 19 minutes)
  • Cross-entropy loss with inverse-frequency class weights
  • Best epoch selected by validation macro-F1

Evaluation (held-out test set, 2,375 tickets)

Model Accuracy Macro-F1 Weighted-F1
TF-IDF + LogReg baseline 0.504 0.507 0.505
This model 0.514 0.565 0.514

Strongest queues: Billing and Payments (F1 0.803), Service Outages and Maintenance (0.683). Weakest: Product Support (0.417), Customer Service (0.442).

Run-to-run variation: an earlier training run with identical settings and seed scored 0.579 macro-F1 (the run documented in the GitHub repo). GPU non-determinism causes differences of about one point between runs.

Limitations

  • Trained on synthetic tickets; performance on real tickets is unknown.
  • Technical Support, IT Support and Product Support overlap heavily and are frequently confused with each other.
  • English only. Scores vary by about one macro-F1 point between training runs.

How to use

from transformers import pipeline

clf = pipeline("text-classification", model="preshanth09/support-ticket-classifier", top_k=3)
clf("I was charged twice for my subscription this month and need a refund.")
Downloads last month
65
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for preshanth09/support-ticket-classifier

Quantized
(51)
this model

Dataset used to train preshanth09/support-ticket-classifier

Space using preshanth09/support-ticket-classifier 1