A thriving coral reef and a bustling London neighborhood might seem worlds apart, but researchers studying urban life have discovered they work by remarkably similar rules. Federico Botta and colleagues have published a new framework in PNAS Nexus that treats cities like living ecosystems, measuring urban vibrancy by counting not just how many people live in a space, but what they actually do there—and how intensely they do it.

For decades, city planners have relied on straightforward metrics: population density, land-use classifications, zoning designations. These tools tell you where people are allowed to be, but they miss something essential—the actual pulse of neighborhood life. A street lined with apartments and shops looks the same on paper whether it's buzzing with activity or hollowed out. The researchers argue that this gap between what a city is supposed to be and what it actually becomes is where real understanding begins.

The new framework draws directly from ecology, where scientists measure ecosystem health by tracking species diversity and population abundance. Urban neighborhoods, the researchers propose, work the same way. Instead of species, they count human activities: working, socializing, playing, learning, eating, shopping, and eight other categories for a total of 13 distinct activity types. Rather than measuring "how much biodiversity," they measure how many different things people do in a space and how many people participate in each activity. A vibrant neighborhood isn't just dense—it's diverse and participatory.

What makes this approach genuinely innovative is how it moves beyond what spaces were designed to be. Traditional urban planning starts with a zoning map. This framework starts with what people actually do. A park designed for recreation might become a workspace when someone sets up a laptop on a bench. A street corner intended for commerce becomes a meeting point. By observing real human behavior rather than intended use, the framework captures the organic life that makes neighborhoods feel alive.

The researchers also borrow another ecological concept: carrying capacity. In nature, every habitat has a limit to how many organisms it can support before the ecosystem collapses. Cities work the same way. When neighborhoods become so crowded that different activities start competing for space—when a bar and a quiet café can't coexist peacefully—vibrancy paradoxically decreases. The framework provides language and tools to understand these tensions before they damage neighborhood character.

Implementing this framework will require new technology: mobile data tracking movement patterns, street-level imagery captured by cameras or AI systems, and machine learning to detect and classify activities in real time. The researchers acknowledge the ethical weight of this work, calling explicitly for attention to privacy and inclusivity. They're not proposing to survey people directly, but the line between observing public behavior and surveillance is worth treading carefully.

For now, this remains a theoretical framework with illustrative London examples. But the authors are calling for something bigger: pilot studies across cities worldwide, bringing together computer scientists, ecologists, geographers, and urban policy experts to test and refine the model. If it works, cities could finally have a shared language for measuring what makes neighborhoods feel alive—and the data to protect that vitality.