Skip to content
Data Science · Urban safety · GovTech

ATLAS SENTINEL

Crime risk in Buenos Aires by area and time of day, and what to do about it: where to patrol, where to place cameras and which corridors to control.

https://dashboard-two-sepia-39.vercel.app1/2
ATLAS SENTINEL — inicio (screenshot 1 of 2)
+23.6 pts

Of risk coverage with the same 75 patrols

58.5%

Of crime happens in 30% of the area

0.290 vs 0.296

Model error versus repeating the past

Context

The City of Buenos Aires recorded 130,418 crimes in 2025, one every four minutes. Police stations, patrols and cameras are placed by history and administrative decision, not by where and when risk concentrates.

The Challenge

The data to decide better exists, but it's spread across more than 20 open datasets on the City's portal that never get combined: crime 2016-2025, buses, subway, bike share, LED street lighting, road accidents, cameras, police stations and the census, each with its own geometry and time breakdown.

My Role

Personal project end to end: ingesting and normalising the sources, spatio-temporal unification, modelling, validation, the three optimisation modules, the fairness audit and the Next.js web dashboard.

Approach

Four layers: (0) every source unified on an H3 resolution-8 hexagonal grid, by time of day; (1) a core model counting crimes per hexagon and shift; (2) three decision modules — patrols by maximal coverage, new cameras on the road network and checkpoints on access corridors; (3) validation with SHAP, backtesting and spatial holdout, plus a fairness audit measuring which population each plan covers.

Stack — why each technology

Python + GeoPandas + H3An equal-area hexagon grid lets sources with different geometries be combined and areas compared without each neighbourhood's size bias
LightGBM (Poisson objective)The target is crime counts, which can't be negative and whose variance grows with the mean: Poisson respects that shape
SHAP + conformal predictionExplain what drives each area's risk and give honest uncertainty intervals, not a bare number
PuLP (integer programming)The patrol module is a maximal covering location problem (MCLP): where to place k posts to cover as much risk as possible
Prophet with regimesA 2026 forecast that treats the pandemic and the 2025 drop as separate steps, chosen by backtesting over 84 cutoffs
Next.js + LeafletA dashboard filtered by shift, crime type and district, with a full-screen map and a 3D view, deployed on Vercel

Key Decisions

H3 hexagons instead of neighbourhoods

The 48 neighbourhoods vary widely in size and population, and a neighbourhood average hides what happens inside. The 401 equal-area hexagons put crime, bus stops, street lights and accidents on the same unit.

Measure against repeating the past, and say so

Before celebrating the model I compared it with the naive baseline. It barely beats it: an error of 0.290 versus 0.296. Crime in Buenos Aires is highly persistent. That shifted the project's focus from predicting better to deciding better.

Optimise with the resources that already exist

Asking for more patrols is easy. Module A answers a different question: with the same 75, how much risk is covered if they're relocated? The answer, 58.7% versus 35.1% today, is a management case that needs no new budget.

Audit who each plan covers

Maximising the risk covered can leave out the most vulnerable neighbourhoods. Each plan is also measured by the population it covers, including households with unmet basic needs and people over 65, so efficiency doesn't hide equity.

Results

With the same 75 patrols relocated by risk, coverage rises from 35.1% to 58.7%, and 22 of the proposed posts reuse existing police stations. 58.5% of crime happens in 30% of the area. Thirty well-placed new cameras would cover 86.4 km of the road network. The 2026 forecast is 131,911 crimes, 1.1% more than in 2025.

What I Learned

A model that barely beats the baseline isn't a failure if it's told well: it says the problem is one of decisions, not prediction. And in public safety, efficiency without an equity lens can reproduce the very inequalities it's meant to fix.

A project like this for your organization?

Tell me the problem and we'll work out how to solve it with data.

Let's talk

Next case

Phantom AI →

View case