AI4ALL Ignite · DesertMap · Machine learning and fairness audit

19 million Americans
live in food deserts

We trained a model to predict which neighborhoods are food deserts. It learned the map of 1930s redlining without ever seeing it.

… census tracts analyzed
… are USDA food deserts
…x more likely to be flagged in redlined areas

Context

What is a food desert?

The USDA definition

A census tract where residents have low income and low access to a grocery store: the nearest supermarket is more than 1 mile away in an urban area, or more than 10 miles in a rural one.

Food deserts are linked to higher rates of obesity, type 2 diabetes and cardiovascular disease. They cluster in communities that faced decades of disinvestment and discrimination.

We trained a model to predict which tracts qualify, then audited it for racial bias four ways.

19M Americans live in food deserts, about 1 in 16
… census tracts, covering the whole U.S.

The model

What we built

We trained a Random Forest classifier on the USDA Food Access Research Atlas 2019, which covers every census tract in the U.S.

The 9 features

Median Family Income Poverty Rate % Black Population % Hispanic Population % White Population % No Vehicle % SNAP Enrolled Population (2010) Urban / Rural

No redlining data, ZIP codes or neighborhood names. The model sees only modern socioeconomic and demographic statistics.

Random Forest

200 decision trees each vote on “food desert or not,” and the majority wins. It handles non-linear patterns and shrugs off outliers.

SHAP

SHAP (SHapley Additive exPlanations) scores how hard each feature pushed each prediction: how far did poverty rate move this tract toward “food desert”? That makes every prediction auditable, tract by tract.

80/20 train/test split

58,024 tracts trained the model. The other 14,507 stayed hidden until testing, so scores on them show how it does on data it has never seen.

Results

Model performance

The Random Forest beats a logistic regression baseline on F1, precision and ROC-AUC. The baseline finds more food deserts (higher recall) by raising far more false alarms. F1 balances precision (not crying wolf) against recall (not missing real food deserts), which makes it the number to watch with a roughly 7:1 class imbalance.

Test-set scores for both models
Model F1 Precision Recall ROC-AUC
Logistic Regression … … … …
Random Forest Best … … … …

What drives predictions overall?

Total SHAP importance across all … mapped tracts. Longer bar, stronger driver.

Median family income and poverty rate dominate. Racial composition ranks lower overall; the audit below measures how much it still moves predictions.

Explore

Explore the map

Each dot is one of … census tracts, colored from blue (low predicted probability) to red (high). Every finding on this page also appears in the charts and tables.

p ≥ 0.00

Map loads as you scroll

Tap or click a dot to see why the model decided.

The finding

The model remembered something it was never shown

AI trained on present data inherits past policy. An audit is how you catch it.

Between 1935 and 1940, the federal Home Owners' Loan Corporation (HOLC) graded neighborhoods in more than 200 U.S. cities. Grade A (“Best”) went to mostly white, affluent areas. Grade D (“Hazardous”) went almost entirely to Black and immigrant neighborhoods, which then lost access to mortgages and investment for decades.

Those grades shaped where grocery stores opened, where roads went and which communities got public money. Our model trained on modern data and never saw a single HOLC grade. Then we laid its predictions over the 1930s maps.

Redlining disparity

…x

Tracts graded C or D are …x more likely to be predicted food deserts than tracts graded A or B (… vs …). Held-out tracts alone: …x. Actual food desert rates: …x, so the model tracks a real gap.

Unequal mistakes

…x

The model wrongly flags tracts with the most Black residents at …x the rate of tracts with the fewest. (False positive rate, top vs bottom quartile.)

Change race, change the answer

…

Set all three race shares (% Black, % Hispanic, % White) to the held-out median, hold everything else fixed, and … of food desert predictions flip to “not a food desert.” (Counterfactual probe.)

Race carries its own signal

-… pts

Dropping all three race shares cuts F1 by … points (… to …), so race predicts beyond income and poverty. (F1 ablation.)

Impact

What auditing changes

An F1 of … looks fine in aggregate. The audit shows what that number hides: the errors cluster, and the communities that most need an accurate answer get the wrong one most often.

Without auditing

  • The …x false positive gap stays invisible
  • Nobody sees the HOLC pattern
  • Racial composition steers predictions unnoticed
  • Deployment turns historical discrimination into policy

With auditing

  • The …x false positive gap is found and documented
  • C and D tracts are …x more likely to be flagged than A and B tracts
  • SHAP explains every single prediction
  • Mitigations identified: equalized-odds calibration, adversarial debiasing
  • The model serves as evidence of the problem
Methodology
Data
USDA Food Access Research Atlas 2019: … census tracts, national scope.
Target
LILATracts_1And10, the federal food desert definition: low income and low access at 1 mile (urban) or 10 miles (rural).
Split
80% training (58,024 tracts), 20% holdout (14,507 tracts), stratified by target, random seed 42.
Model
Random Forest tuned by 3-fold grid search on F1: 200 trees, max depth 20, min split 5, class-balanced weights for the roughly 7:1 imbalance.
SHAP
TreeSHAP (path-dependent) on every tract. Each tract's values plus the base rate add up to its predicted probability.
HOLC crosswalk
Mapping Inequality v3 (Nelson et al., 2023), spatially joined to 2010 tract boundaries. Used only to group predictions afterwards, never as a training feature.
Fairness audit
(1) race-removed model delta, (2) false positive rates by quartile, (3) counterfactual racial composition probe, (4) HOLC overlay after prediction. All four use the same tuned model.

Read the full model card (PDF, 2 pages).

Limitations

The confounding objection

Redlined areas became low-income areas, and low-income areas have poor food access. So the HOLC overlap might reflect income alone.

The counterfactual test checks exactly that. For every held-out tract the model flags as a food desert, we set all three race shares to their held-out median and kept income, poverty rate and every other feature fixed. … of those predictions flipped. If the pattern were only income geography, removing race shouldn't move individual predictions.

Even if the pattern is income geography, that geography lines up with 90-year-old federal grading maps, and the explanation for that match is the redlining story.

What we can and can't claim

This is observational work; it doesn't establish causation. What it shows: the pattern holds across four tests, racial composition carries signal beyond income and poverty, and that is reason enough to audit before any deployment that affects food access. Responsible deployment calls for disclosing the disparity, whether or not the causal question is settled.