--- license: cc-by-4.0 language: - ru pretty_name: MBank ATM Dataset (Bishkek 2024–2025) tags: - finance - atm - time-series - anomaly-detection - rfm - kyrgyzstan task_categories: - time-series-forecasting - tabular-classification - tabular-regression size_categories: - 10M ⚠️ `fact_transactions` is 12M rows (~727 MB). Don't load it whole — read the > columns you need and filter by the `year=/month=` partitions. --- ## Folder layout ``` dataset/ ├── README.md ← this file ├── DATA_DICTIONARY.md ← full field dictionary (types, values) ├── MANIFEST.md ← auto-inventory: tables, row counts, sizes ├── dimensions/ ← reference tables (star schema) │ ├── dim_district.parquet (+csv) 16 zones of Bishkek │ ├── dim_calendar.parquet (+csv) 731 days: holidays, weather, FX rate │ ├── dim_atm.parquet (+csv) 120 ATMs (passport) │ ├── dim_customer.parquet 550k customers │ └── dim_card.parquet 700k cards (on-us) ├── facts/ │ ├── fact_transactions/ 12M transactions, partitioned year=/month= │ ├── fact_cash_ops.parquet 8.8k cash replenishments │ └── fact_atm_status.parquet 9.8k status/downtime intervals ├── labels/ ← anomaly ground truth │ ├── fraud.parquet skimming + geo-impossibility │ ├── cash_events.parquet depletions (out_of_cash) │ ├── faults.parquet network faults / stuck terminals │ ├── cold_start.parquet new ATMs (truncated history) │ ├── events.parquet network-wide surges (FX shocks) │ └── drift_spec.parquet year-2 concept-drift parameters └── external/ ← external real-world inputs (reference) ├── weather_daily.parquet Open-Meteo ERA5 weather ├── fx_usd_kgs.parquet NBKR exchange rate └── atm_locations.parquet OSM coordinates ``` --- ## Star schema (table relationships) ``` ┌──────────────┐ │ dim_calendar │ date └──────┬───────┘ │ date ┌────────────┐ ┌──────┴────────────┐ ┌──────────────┐ │ dim_district│──│ fact_transactions │──│ dim_atm │ └────────────┘ │ (12M) │ └──────────────┘ district_id └──────┬─────┬──────┘ atm_id card_id│ │customer_id ┌─────┴──┐ ┌┴───────────┐ │dim_card│ │dim_customer│ └────────┘ └────────────┘ ``` **Keys and relationships (JOIN):** | From | Field | To | Note | |---|---|---|---| | fact_transactions | `atm_id` | dim_atm | ATM | | fact_transactions | `district_id` | dim_district | zone (denormalized) | | fact_transactions | `date` | dim_calendar | day (weekday/holiday/weather/FX) | | fact_transactions | `card_id` | dim_card | card (on-us only; off-us → `OFFUS-*`, not in dim_card) | | fact_transactions | `customer_id` | dim_customer | customer (null for off-us) | | dim_card | `customer_id` | dim_customer | cardholder | | fact_cash_ops / fact_atm_status | `atm_id` | dim_atm | ATM | > **on-us vs off-us:** `is_on_us=True` — MBank card (present in `dim_card`/`dim_customer`). > `is_on_us=False` — other bank / tourist: `card_id` like `OFFUS-*`, empty `customer_id`, > an interchange `fee_amount` is charged. --- ## Anomaly ground truth (`labels/`) Every anomaly is parameterized and logged — each task has a checkable answer. | File | Anomaly | What to look for | Method | |---|---|---|---| | `cash_events` | Depletion 7.1 | withdrawal drop + `99` spike | rules, DBSCAN over day-ATM | | `faults` | Network fault 7.2 / stuck 7.8 | `91/92/96` runs, flatlined telemetry | downtime detection, variance | | `events` | Surge 7.3 | network-wide day anomaly (FX shock) | collective outlier | | `cold_start` | New ATM 7.4 | truncated history | model robustness | | `drift_spec` | Concept drift 7.6 | year-1 model degrades on year-2 | drift monitoring | | `fraud` | Skimming 7.7 / geo 7.10 | night off-us runs, card at far ATMs | IsolationForest, velocity rules | `fraud`/`cash_events` reference concrete `txn_id`/`atm_id`+interval in the fact table, so labels can be matched exactly to transactions. --- ## External inputs (`external/`) The dataset is grounded in real-world context of Kyrgyzstan — these series **actually drive** behavior: | File | Source | Effect in the data | |---|---|---| | `weather_daily` | Open-Meteo ERA5 (CC BY 4.0) | frost/snow → drop at street ATMs | | `fx_usd_kgs` | National Bank of the KR | rate jump → cash run | | `atm_locations` | OpenStreetMap (ODbL) | ATM coordinates (placement skeleton) | Verified: frost on 16–17 Feb 2024 → street ATMs −22%; FX shock on 20 Mar 2025 (−1.41 KGS) → volume ×3. Full field descriptions — in [DATA_DICTIONARY.md](DATA_DICTIONARY.md).