Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Lyft Engineering 7 min read Case study easyNovice

Smooth Cruiser at Lyft: Built for Safety and Transparency

Smooth Cruiser scores Lyft Drivers on braking, steering, speed and mounted-phone use relative to what is typical for the same road segment, time of day, day of week and season, rather than against fixed universal thresholds. Drivers are ranked within k-means clusters of markets with similar event-rate characteristics, using a rolling window of their last 100 rides over 12 months (minimum 20 rides) to balance stability against responsiveness. ML models detect harsh events from up to ~135 GB/hour of phone telemetry, a daily Airflow-managed ETL enriches rides with location-based expected-risk maps and calibrates scores, and results are served from DynamoDB. Per-signal detail pages let Drivers trace score changes back to specific rides.

Related posts

  • Predicting Rider Conversion in Sparse Data Environments with Bayesian Trees

    Lyft Engineering mediumAdept

    Lyft predicts whether a rider will request a ride after seeing price and ETA using "Bayesian trees": a hierarchy of contexts such as city region, time of day and supply-demand balance, where every node holds the same simple parametric model. Training runs top-down, and each child's parameters carry an L2 penalty toward its parent's (a Gaussian prior). Sparse leaves therefore fall back to the broader parent's behavior, and nodes with more data can specialize. The regularization strength is tuned to the relative data sizes of parent and child. Keeping per-node models simple, such as logistic regression with sign-constrained weights, enforces monotonic, explainable relationships while keeping inference low-latency compared with gradient boosted trees that overfit sparse slices or heavier neural models.

  • Refreshing the Travel-Time Map Behind Lyft’s Marketplace: Rebuilding Neighborhood Reachability…

    Lyft Engineering mediumAdept

    Lyft rebuilt its Neighborhood Reachability Signals, precomputed geohash-6 travel-time matrices that define the graph its pricing engine optimizes over. Much of the data dated from 2018–2019, underestimated ETAs and dropped matchable pairs. The redesign filters cells against drivable geohashes derived from road-segment interpolation, which removes cells over water. It also uses gentler session-based pruning, with new regions starting from the full drivable set, and adds consumer-facing fields such as rider-session density, so teams no longer need their own allowlists and denylists. ETAs blend historical trips with routing simulation for sparse pairs. A two-week time-split pricing test showed fewer phantom nearby drivers and more genuine medium-range matches. Next steps are a six-month refresh cadence and nine time-of-week ETA files per region, prefetched to keep read latency flat at the cost of extra memory.

  • Hard-braking events as indicators of road segment crash risk

    Google Research mediumAdept

    Hard-braking events (forward deceleration beyond -3 m/s²) collected from Android Auto correlate significantly with police-reported crash rates on road segments in California and Virginia, making them a usable leading indicator of crash risk. HBEs appear on 18x more segments than reported crashes, which fills gaps left by sparse, lagging collision data. Negative binomial regression controlling for traffic volume, segment length, road type, slope, turning angle, ramps and lane changes confirmed the association across road types and showed that ramps raise crash risk. A Highway 101/880 merge with a 70x above-average HBE rate ranked in the top 1% of segments, and the datasets are being offered to transportation agencies through Google Maps Platform's Roads Management Insights.

  • Transforming fleet analytics for Novus Hi-Tech through agentic AI

    AWS Architecture Blog mediumAdept

    Novus Hi-Tech and AWS built FleetGPT, a multi-agent system on Strands Agents that replaces fixed fleet dashboards with natural-language querying and automates driver safety interventions. A Claude Sonnet supervisor routes requests to a plan-and-execute Text-to-SQL agent grounded by a YAML schema file and to a Claude Haiku agent that generates and runs Python for statistical work. Aurora PostgreSQL holds aggregates and pgvector embeddings for policy RAG, while DynamoDB uses warning_code+datetime sort keys and a fleet_id GSI for tenant-scoped event queries. DynamoDB Streams feed real-time alerts and multilingual two-way voice calls to drivers with human approval. Reported results are a 46% drop in road-behavior violations and a 55% drop in drowsiness alerts per 1,000 km.

  • Recommend API

    Slack Engineering mediumAdept

    Slack built a unified Recommend API so product teams can bootstrap new ML recommenders from reusable components (fetchers, filters, feature augmentation via a Feature Store, model scoring and rerankers) instead of building bespoke systems. Server-side feature logs and client-side interaction logs are joined in Airflow to produce training data, and models such as logistic regression and XGBoost are trained as Kubernetes Jobs and monitored with Prometheus, online CTR/DCG and feature-drift metrics. Hand-tuned heuristic models solve cold start until enough data exists, and privacy is preserved by using de-identified usage metadata and only cosine similarity from an external embedding model. A/B tests showed CTR gains such as +38.86% for Composer DMs and +123.57% for Slackbot leave suggestions after moving from hand-tuned to learned models.

The quest for software engineering knowledge.

Look:
Layout: