Mental health becomes civic infrastructure
By Futurist Thomas Frey
Every city on Earth has spent the last century building the same basic stack: roads to move bodies, pipes to move water, wires to move power, and fiber to move information. We measure a city’s greatness by how well these systems function. A pothole becomes a scandal. A blackout becomes a crisis. We have entire departments, budgets, and bond measures dedicated to keeping these invisible systems humming.
Yet the thing that actually determines whether people in that city are thriving — their emotional state, their sense of connection, their reason to get out of bed — has almost none of that infrastructure behind it. We built systems for moving electrons and gallons. We never built systems for moving belonging.
That’s about to change. Welcome to the age of emotional infrastructure.
Mental Health Was Never Meant to Be a Private Problem
For most of modern history, we treated emotional wellbeing the way we once treated sewage — as something each household handled on its own, quietly, behind closed doors. If you were lonely, that was your problem. If you were grieving, you found your own way through it. Cities built roads to your therapist’s office, but never asked whether the city itself was making you need one.
That framing is starting to look as outdated as private wells were before municipal water systems. Researchers have found that urban living itself raises the risk of mood disorders, and that the built environment — how walkable a neighborhood is, whether public spaces invite people to linger, whether housing towers isolate or connect their residents — has a measurable effect on how lonely and anxious people feel. A recent survey of mayors across more than 120 American cities found something striking: mental health, not potholes or crime, ranked as the top shared priority.
In other words, city leaders already sense what’s coming. They just don’t have the infrastructure yet to act on it.

The Five Systems of Emotional Infrastructure
If a city is going to treat emotional wellbeing the way it treats water and electricity, it needs delivery systems — not slogans. Here’s what those systems start to look like.
Loneliness prevention networks. Just as we monitor air quality block by block, cities will begin monitoring social isolation the same way — using anonymized data on foot traffic, community participation, and public space usage to identify “loneliness deserts” the way we now identify food deserts. Urban designers are already reframing the question from “how do we help lonely people connect?” to “how do we build environments where connection happens naturally?” Expect zoning codes that require a certain density of benches, third places, and sightlines that make lingering comfortable — not as amenities, but as public health requirements.
Friendship systems. Dating apps taught an entire generation that algorithms can engineer romantic connection. The next logical step is algorithmic matchmaking for friendship and community — city-run or city-endorsed platforms that connect new residents, aging neighbors, and isolated parents based on shared rhythms and interests, then nudge them toward a real-world meeting at a real-world place the city has designed for exactly that purpose.
Grief support grids. Right now, grief support is scattered across private therapists, church basements, and the occasional nonprofit hotline. Emotional infrastructure means grief becomes a service the city plans for — rapid-response support networks that activate automatically after a mass tragedy, a factory closure, or even the slow grief of a shrinking small town, the same way emergency services mobilize after a flood.
Happiness optimization systems. This is the most contested piece, and rightly so — nobody wants a city government deciding what happiness means for them. But at a civic level, “happiness optimization” is less about mandating joy and more about removing the friction that blocks it: shortening commutes proven to erode wellbeing, designing green space proven to lower stress, and tracking wellbeing metrics with the same seriousness cities currently track GDP or crime rates.
Purpose networks. Perhaps the most futuristic piece of all — civic systems that connect people’s skills and time to problems that need solving, from mentoring a struggling student to restoring a neglected park. Purpose, it turns out, may be as protective for mental health as any therapy session, and cities are uniquely positioned to manufacture opportunities for it at scale.
Why This Is Happening Now, Not Ten Years Ago
Three forces are converging to make emotional infrastructure possible for the first time.
First, we finally have the data. Cities can now sense loneliness and disconnection the way they sense traffic congestion — through aggregated, privacy-conscious signals about how public space gets used.
Second, AI has made personalized emotional support scalable. A single human counselor can only see so many people a week. An AI-assisted grief network, or a friendship-matching system, can serve an entire city simultaneously, at a fraction of the cost of adding more clinicians.
Third, and most importantly, the evidence has become impossible to ignore. Researchers examining crowded, poorly designed housing have found it produces social withdrawal rather than connection — the opposite of what density was supposed to deliver. Planners are already redesigning apartment buildings and public housing specifically to counteract this, adding shared kitchens, courtyards, and sightlines that invite neighbors to actually see each other. That’s emotional infrastructure being built today, one building code at a time — it just doesn’t have the name yet.

The Risks Worth Naming
I’m an optimist about most technology trends, but this one deserves a clear-eyed look at its dangers, because the failure modes are serious.
Emotional infrastructure built without consent becomes emotional surveillance. A city that tracks loneliness to help people is one policy change away from becoming a city that tracks loneliness to control them. Any system that scores your social connectedness or “purpose score” needs the same rigorous oversight we now demand of policing algorithms — otherwise the cure becomes another form of the disease.
There’s also a real risk of outsourcing something deeply human to a dashboard. Friendship engineered by an algorithm, grief support delivered by an AI system, purpose manufactured by a city program — these can be scaffolding for real human connection, or they can become a hollow substitute for it. The difference lies entirely in whether the infrastructure is designed to launch people into real relationships, or designed to keep them engaged with the platform instead.
The City of the Future Feels Different, Not Just Looks Different
For two centuries, the story of urban progress has been a story of things we can point to: taller buildings, faster trains, brighter lights. The next chapter of that story will be much harder to photograph. The most advanced city of 2040 might not be the one with the tallest skyline — it might be the one where residents report the lowest rates of loneliness, the fastest access to grief support after a loss, and the clearest sense that their daily life has a purpose attached to it.
We already fought and won the argument that clean water is a public right, not a private luxury. The argument we’re about to have — quietly, city council by city council — is whether belonging deserves the same status.
My bet: it will. And the mayors who build the pipes first will be remembered the way we remember the ones who first brought electricity to their towns.
Related Articles
- Nature — Making cities mental health friendly for adolescents and young adults
- Greater Good Magazine (UC Berkeley) — Seven Ways to Make Cities Better for Mental Health
- MRSC — Building Belonging: Urban Strategies to Combat America’s Loneliness Crisis
