Case 02Data pipeline + ML
City Issue Breach Predictor
Flags Bangkok Traffy Fondue complaints that are likely to breach their SLA.
RoleData engineering & modelling
ContextChulalongkorn University · Project
PeriodUniversity project
Key result700K+ records processed
700K+
Complaint records processed
150K
Rows in the modelling dataset
5
Models trained and compared
Overview
An end-to-end data pipeline and prediction system for Bangkok's Traffy Fondue citizen-complaint platform. It predicts which issues are at risk of breaching their SLA and explains why, so the riskiest cases can be prioritised first.
The problem
Bangkok receives hundreds of thousands of citizen-reported issues a year, from road repairs to public safety, but there was no data-driven way to flag the cases most likely to miss their SLA.
Architecturedata flow →
01 Sources
Traffy Fondue
700K+ complaints
Weather
temp · humidity
02 Prepare
Pandas
clean · features
03 Model
LightGBM + 4 more
breach probability
04 Explain
TF-IDF rules
risk score + reason
05 Serve
Dashboards
completed · pending
What I built
- 01Cleaned and standardised 700,000+ complaint records, converted timestamps and extracted temporal features.
- 02Prepared a 150,000-row modelling dataset, merged with weather metrics (temperature, humidity, pressure).
- 03Engineered SLA-related and risk features for breach prediction and interpretation.
- 04Trained and compared Logistic Regression, Random Forest, XGBoost, LightGBM and HistGradientBoosting, with class-imbalance control and calibration.
- 05Built a rule-based reasoning layer: TF-IDF risk n-grams from complaint text feed a readable explanation, a numeric risk score and a low / medium / high level.
- 06Developed interactive dashboards for completed and pending complaints with risk scores, levels and human-readable explanations.
Stack
PythonPandasscikit-learnLightGBMXGBoostTF-IDFPower BI