Transaction Anomaly Detection
We built a system that flags unusual activity in each merchant's SATIM payments: transaction surges and drops, rising decline rates, amount spikes and network outages. Only 31 anomaly days were labelled, so I wrote a synthetic-injection pipeline that clones real merchants and plants controlled anomalies, turning 24K real transactions into a 177K-row labelled training set without changing the official data. On top of the detection, we added four features for the operators:
- Incident Queue: merges related alerts into a short ranked list, so an outage across 15 merchants shows up as one incident instead of 15. Each incident names who should act, the first action to take, and whether it's recovering.
- Network Root Cause: detects when many merchants fail at once, points to the shared cause, such as the e-commerce channel or an acquiring bank, and writes a short brief for the bank.
- Ask the Dashboard: an on-premise question box in French, English or Darija. It answers only from the platform's computed data, cites its evidence and refuses out-of-scope questions.
- - Look Ahead: a 7-day forecast of each merchant's expected activity, so operators can see a deviation coming