Back to all projects

Lumos AI

Safety intelligence for walking: built at Hacklytics, now a route-safety engine being scaled across 13 U.S. cities, with a public preview that compares walking routes in Atlanta.

Context
Hacklytics 2026
Recognition
2nd place overall, Hacklytics 2026
My role
Team project at Hacklytics. I was the main contributor to the public repository, across the React client and the FastAPI and model pipeline.
  • Python
  • FastAPI
  • LightGBM
  • XGBoost
  • React
  • TypeScript
  • Cloud Run
  • Firebase
  • Mapbox GL

Try it: compare two walks in Lumos

Plan a walk across Atlanta and see how Lumos scores each route, stretch by stretch.

How it works · Methods and sources · Privacy

Know Before You Go

Compare the standard walking route with the Lumos Recommended Route. Each gets a Lumos Route Score from 0 to 100 for predicted reported incidents at that hour.

  1. Compare the routes
  2. See why
  3. Follow the directions

What’s happening

Pick one of two walks recorded from the production app (Saturday 7:11 PM, Atlanta) and press Compare routes. The app sends the two points to its FastAPI backend, which plans walking routes and scores every street segment for that hour.

Real responses from the production app, recorded 2026-11-28 at 19:11. Scores are model estimates of reported incidents, not a prediction of what will happen to anyone.

In use

The production app, recorded 26 Nov 2026 at 2 AM Atlanta time: Georgia Tech to Ponce City Market. The recommended route is 8 minutes longer and passes streets with 35% fewer predicted incidents at that hour. The scores are model estimates, as the app says.

The problem

Crime maps usually show old dots on a screen. They don’t answer the question a person actually has when they are about to walk somewhere: is it safe here, right now, for me?

At Hacklytics our team turned that question into a personalized safety score for any U.S. address, then went further: scoring a route, and helping in the moment something goes wrong.

The Lumos preview landing page: the headline “Know Before You Go” over a dark globe, with buttons to open recorded sample walks or explore a place, and a note that it is not an emergency service.
The public preview as of November 2026, running on recorded sample data.
Lumos “how it works” section: three steps (say where and when, compare two routes, read why) beside an illustrated map comparing a standard route and a recommended route.
How the preview explains a route comparison. Its map is labelled there as an illustration with example numbers.

How it works

React appsrc/lib/api.tsFastAPI routebackend/routes.pyRoute segmentsroutes.py: fetch_route_directionsParallel data fetchroutes.py: asyncio.gatherXGBoost + formulascoring.py: 60/40 blendGemini refinescoring.py: gemini_refine_scoreMinimum-aware scoreroutes.py: min-awareMap and scoressrc/componentsReact appsrc/lib/api.tsFastAPI routebackend/routes.pyRoute segments…es.py: fetch_route_directionsParallel data fetchroutes.py: asyncio.gatherXGBoost + formulascoring.py: 60/40 blendGemini refine…oring.py: gemini_refine_scoreMinimum-aware scoreroutes.py: min-awareMap and scoressrc/components
How a walking route is scored: every segment gets its own score, and the overall score can't hide a dangerous one. Steps: React app, then FastAPI route, then Route segments, then Parallel data fetch, then XGBoost + formula, then Gemini refine, then Minimum-aware score, then Map and scores.Source: github.com/hxxtsxxh/lumos.ai: backend/routes.py, backend/scoring.py, src/lib/api.ts

Constraints

  • Built in a hackathon window, so every data source had to be public and fast to integrate.
  • Scores have to respond to context, such as time of day and how someone is travelling, not just location.
  • An emergency feature has to work when the person can’t speak out loud.

Decisions

A trained model, not a lookup

At Hacklytics the score came from a 25-feature XGBoost model trained on more than 80 GB of FBI crime data from 12,000+ agencies, with Gemini used for context-aware reasoning on top.

One model per city, gated before it ships

The engine now models incidents street segment by street segment, with a LightGBM Poisson model for each city (113K+ segments in Atlanta alone). A city’s model ships only after it passes held-out skill, fairness and latency gates.

A grid index instead of whole-city scans

Planning a route used to scan the whole city. A 200 m grid index cut New York’s p95 latency 27×, from 4.9 s to 0.18 s, and returns byte-identical results on 1,360 recorded plans.

Fan out, then combine

The backend requests 11+ APIs in parallel and folds their answers into one score, so adding context doesn’t add waiting time one call at a time.

Routes judged in segments

Route safety is analysed segment by segment, so one bad stretch is visible instead of being averaged away. Real-time GPS tracking follows a walk as it happens.

A silent emergency operator

The Hacklytics version included an AI operator that could place a 911 call through VAPI and relay the situation with text-to-speech, so a person could get help without speaking. The current public preview leaves this out and says plainly that it is not an emergency service and does not place calls.

What broke

Where it stands

Placed 2nd overall at Hacklytics 2026, Georgia Tech’s data science hackathon. The code is public under AGPL-3.0.

Since then I’ve been scaling the route-safety engine across U.S. cities, 13 so far.

The public site is now an experimental preview (version 5.0.0 at the time of writing) that compares a standard walking route with a recommended one in Atlanta, explains its reasons and states its uncertainty. It runs on recorded sample data and is not an emergency service.

Sources: heettshahh.com project list (snapshot 420314e); Public résumé, September 2026; github.com/hxxtsxxh/lumos.ai README and repository description; lumos-safety.netlify.app public preview, viewed 25 November 2026; Résumé, November 2026.

How this works

The whole site is one night photograph made of light. Scroll to develop each exposure; the light follows your pointer.

Keyboard

J or K
Next or previous exposure (home page)
C
Camera settings: shutter, aperture, ISO, ND filter
P
Pause or play all motion
S
Sound on or off
⌘K, Ctrl K or /
Jump to a project, page or skill
?
This help

Everything here is also plain text: each project has its own page, and the résumé has a text version.