Fine-tuned bert-base-uncased that classifies SAP enterprise support tickets
into the correct SAP functional module. Built by Arinous AI.
Release → Arinous-0.2 (Hub revision v0.2)
Live Demo → IntelliRoute on Hugging Face Spaces
Model ID → HeisenbergLupenix/sap-ticket-classifier-bert
| ID | Label | SAP Module | Scope |
|---|---|---|---|
| 0 | FI | Finance | GL, AP, AR, asset accounting, bank reconciliation |
| 1 | MM | Materials Management | Purchasing, inventory, MRP, WM, batch management |
| 2 | SD | Sales & Distribution | Orders, delivery, billing, pricing, rebates |
| 3 | HR | Human Resources | Payroll, time management, org management, ESS/MSS |
| 4 | ABAP | ABAP / Custom Dev | Custom reports, BAPIs, user exits, SmartForms, BDC |
| 5 | BASIS | SAP Basis | System admin, transports, jobs, users, kernel, ICM |
| 6 | INTEGRATION | Integration / CPI | SAP CPI iFlows, OData, IDocs, RFC, SFTP adapters |
| 7 | OTHERS | Others / Unclassified | General SAP UI, authorisations, printing, misc |
| 8 | UNKNOWN | Unknown | Unrecognised or non-SAP tickets |
Evaluated on a held-out 20% validation split (114 samples).
Release: Arinous-0.2 (v0.2) · Source: retrain · Trained: 2026-07-14 10:23 UTC
| Metric | Score |
|---|---|
| Accuracy | 96.5% |
| F1 (weighted) | 96.3% |
| Precision (weighted) | 97.1% |
| Recall (weighted) | 96.5% |
| Module | Precision | Recall | F1 |
|---|---|---|---|
| FI | 93.3% | 100.0% | 96.5% |
| MM | 100.0% | 100.0% | 100.0% |
| SD | 100.0% | 100.0% | 100.0% |
| HR | 100.0% | 100.0% | 100.0% |
| ABAP | 100.0% | 100.0% | 100.0% |
| BASIS | 100.0% | 100.0% | 100.0% |
| INTEGRATION | 100.0% | 100.0% | 100.0% |
| OTHERS | 100.0% | 66.7% | 80.0% |
| UNKNOWN | 78.6% | 100.0% | 88.0% |
Train samples: 456 · Validation samples: 114 · Trained: 2026-07-14 10:23 UTC
from transformers import pipeline
clf = pipeline(
"text-classification",
model="HeisenbergLupenix/sap-ticket-classifier-bert",
revision="v0.2",
top_k=None,
)
result = clf("Vendor invoice not posted due to GR/IR account mismatch")
# [{'label': 'FI', 'score': 0.93}, {'label': 'MM', 'score': 0.03}, ...]
top = max(result[0], key=lambda x: x['score'])
print(top["label"], top["score"]) # FI 0.93
| Setting | Value |
|---|---|
| Base model | bert-base-uncased |
| Architecture | BertForSequenceClassification — [CLS] pooled → Linear(768 → 9) |
| Max sequence length | 128 |
| Epochs | 10 (early stopping, patience 3) |
| Batch size | 8 |
| Learning rate | 3e-5 with linear warmup (10%) |
| Optimizer | AdamW, weight decay 0.01 |
| Train / val split | 80% / 20% |
| Selection metric | Weighted F1 on validation set |
| Dataset balancing | Random oversampling to equal class counts |
| Class weighting | Inverse-frequency weighted loss |
| Model version | Arinous-0.2 (v0.2) |
Seed dataset of labelled SAP support ticket examples across 9 classes
(data/sample_tickets.csv). Human corrections from the feedback UI are
accumulated and used for warm-start retraining via scripts/retrain.py.
Route incoming SAP support tickets automatically to the correct functional team without manual triaging. Designed for enterprise SAP environments generating high volumes of support requests across Finance, Logistics, HR, Technical, and Integration workstreams.
LABELS in
src/config.py, add labelled examples, and retrain.The live demo collects human corrections via the feedback panel. Corrections are stored in a private HF Dataset repo and merged with the original training set for warm-start retraining with double-weighted corrections.
# Retrain locally with accumulated feedback
python scripts/retrain.py --push
Built by Arinous AI · Intelligence. Innovation. Impact.