Work

Large-Scale Trajectory ML & Geospatial Systems

Engineering multi-year trajectory transition pipelines, spatial clustering across 400,000+ observations, and production ML endpoints for a regional super-app.

2024–2026 · Senior Data Scientist / Applied AI Engineer

Outcomes

  • Designed and owned a multi-year trajectory-transition data pipeline used for ETA modeling, parking-point derivation, and segment-level evaluation.
  • Developed a two-stage spatial clustering workflow deriving ~9,000 parking points across ~6,000 merchants from >400,000 trajectory observations.
  • Conducted an end-to-end parity study across 30M+ bookings comparing near-real-time and offline trajectory metrics.
  • Co-owned deployment and cloud-budget documentation for 4+ production ML-serving endpoints and maintained an internal library used by 5 production pipelines.

Stack

  • Python
  • Spatial clustering
  • Large-scale telemetry
  • Production ML serving
  • Parity evaluation
  • Cloud ML systems

In large-scale mobility and delivery operations, physical reality is messy. GPS signals bounce off high-rise towers, driver devices experience intermittent drops, and navigation maps often fail to capture where drivers actually park or walk when picking up orders at dense commercial centres.

At a regional super-app spanning mobility, delivery, maps, ETA, and operational decision-making, turning raw physical telemetry into reliable machine learning inputs was the central engineering challenge.

The Problem

Operating at scale across Southeast Asian metropolitan centres presents distinct spatial modeling hurdles:

  • Urban Multipath & Sensor Drift: Raw trajectory streams contain severe GPS jitter, signal loss in tunnels, and positioning drift in dense commercial hubs.
  • The “Last-100-Meter” Gap: Standard map pins point to the geometric centroid of a shopping mall or merchant block, whereas the driver’s real vehicle dropoff or parking point is situated hundreds of meters away down an alley or service ramp.
  • Offline vs. Online Parity: Features computed in batch pipelines for offline training must match streaming near-real-time production features without drift or latency degradation.

The Systems Architecture

The engineering work spanned data infrastructure, spatial modeling, and production ML serving:

[Raw Vehicle Trajectory Streams]
               │
               ▼
1. Trajectory-Transition Pipeline (Temporal cleaning, noise gating, map matching)
               │
               ▼
2. Two-Stage Spatial Clustering (400,000+ observations -> ~9,000 parking points)
               │
               ▼
3. Offline / NRT Parity Engine (30M+ bookings benchmarked for drift & latency)
               │
               ▼
4. Production ML Serving & Tooling (4+ endpoints, reusable library across 5 pipelines)

1. Multi-Year Trajectory-Transition Pipeline

Designed and maintained the foundational trajectory data pipeline that processed raw GPS feeds into clean segment transitions. The pipeline applied temporal velocity filters, dead-reckoning smoothing, and map-matching algorithms to produce high-signal inputs for downstream ETA modeling, parking-point derivation, and network segment evaluations.

2. Two-Stage Spatial Clustering for Merchant Parking Points

To bridge the last-100-meter delivery friction, built a two-stage spatial clustering engine:

  • Ingested over 400,000 trajectory observations surrounding dense merchant locations.
  • First-stage density clustering isolated stationary dwelling clusters from transit segments.
  • Second-stage geometric refinement derived approximately 9,000 precise parking and staging points across roughly 6,000 high-volume merchants.
  • Directly reduced driver search time and improved ETA accuracy for dispatch algorithms.

3. Parity Study Across 30M+ Bookings

Engineered an exhaustive parity evaluation comparing near-real-time streaming feature calculation with historical offline batch pipelines across 30M+ bookings. The audit identified edge-case divergence in timestamp windowing, establishing automated regression tests that prevented training-serving skew before deployment.

4. Production Serving & Internal Tooling

  • Co-owned the deployment, health monitoring, and cloud-budget documentation for 4+ production ML-serving endpoints.
  • Maintained a modular internal pipeline library adopted across 5 distinct production data engineering pipelines, standardizing spatial math and data validation across teams.

Evaluation Surfaces

The operational and ML systems were audited against rigorous production criteria:

SurfaceWhat it checks
Telemetry CleaningRejection of multipath reflections, speed anomalies, and corrupted GPS records.
Spatial ClusteringStability of parking point centroids and merchant association accuracy.
Feature ParityZero statistical drift between offline batch training sets and streaming serving tables.
Serving Latency & BudgetSub-second inference latency within predefined cloud infrastructure budgets.
Library PortabilityAPI stability and backward compatibility across 5 distinct production workstreams.

What This Proves

This work demonstrates hands-on ownership of large-scale ML and data systems where accuracy directly impacts real-world operational economics:

  • Turning physical noise into structured features: Designing spatial pipelines that make ambiguous real-world telemetry actionable.
  • Enforcing offline-online parity: Ensuring that models trained in notebooks behave identically when exposed to live production streams.
  • Production discipline: Pairing algorithmic innovation with cloud cost governance, documentation, and reusable internal tooling.

Current Limits

Dense indoor food courts and subterranean multi-level complexes remain difficult to resolve with satellite telemetry alone, requiring supplementary merchant-assisted location tagging and indoor beacon inputs.