🎉 Giảm 20% cho đơn hàng đầu tiên!✦🚚 Miễn phí vận chuyển cho đơn trên 500.000₫✦⚡ Flash Sale — Số lượng có hạn!✦🎁 Quà tặng kèm cho đơn từ 1.000.000₫✦🎉 Giảm 20% cho đơn hàng đầu tiên!✦🚚 Miễn phí vận chuyển cho đơn trên 500.000₫✦⚡ Flash Sale — Số lượng có hạn!✦🎁 Quà tặng kèm cho đơn từ 1.000.000₫✦
This Is How Google's AI Guesses the Salary of Everyone on Your Street
Quay lại Blog

This Is How Google's AI Guesses the Salary of Everyone on Your Street

26 tháng 11, 202611 phút đọcVũ Khôi
English
#English#AI tạo sinh#Dữ liệu & Database
Vũ Khôi

Vũ Khôi

Tác giả tại Wotech Electronics Blog

Maps of the San Francisco Bay Area and New York with colored grid cells, illustrating Google's S2Vec

This Is How Google's AI Guesses the Salary of Everyone on Your Street

Google has just trained an AI that can guess the salary of the people in your neighborhood simply by counting the coffee shops, bus stops and high-rise buildings on the map. The strange part is that nobody taught it what "salary" means. The AI is called S2Vec. Imagine turning an entire neighborhood into a picture, where each coffee shop, road or building is a colored dot, and the AI "looks" at that picture the way a person looks at a photograph to understand what a neighborhood looks like.

Quick answer: S2Vec is a self-supervised framework developed by Google Research under the Earth AI initiative, designed to learn general-purpose embeddings (compact numerical summaries) of the built environment — buildings, roads, shops, infrastructure — for every area. It learns like a guessing game: the AI is shown a neighborhood with a few places hidden, and must guess what is in the hidden spots — repeated millions of times all over the world, until it gradually understands the "habits" of cities, which areas usually contain what, and where, without anyone telling it "this is a rich area" or "this is a poor area". Once trained, the AI creates a numerical "fingerprint" for each area, and from it predicts population density, median income, housing prices, even carbon emissions — including for places it has never seen. In Google's evaluations, S2Vec competes on equal footing with satellite-image models on socioeconomic tasks, and is usually the best individual model when predicting for entirely new geographic regions (zero-shot); combined with satellite imagery it does better still. Another advantage is that it uses map data rather than satellite images: maps update faster, cost less, and reveal things satellites cannot see — a satellite only sees rooftops, while S2Vec knows that under a given roof there are three coffee shops, a pharmacy and a bus stop. Together with PDFM (which understands population) and RS-MaMMUT (which reads satellite imagery), S2Vec is one of Google's three geospatial AI "brains" — and combined, they form a system that can "understand" a neighborhood almost like someone who lives there, including the money side of things.

An embedding is a short sequence of numbers summarizing the features of something — here, a mathematical "fingerprint" of an area: from that sequence, a machine can infer whether the area is densely populated or rich or poor, without storing the entire map. Self-supervised learning is a way of training AI without humans labeling the data: instead of telling the machine "this is a rich area", you give it a task that generates itself — such as guessing a hidden part — and the machine learns the patterns while doing that task.

Turning an entire neighborhood into a picture

S2Vec's central idea is small and obvious in retrospect — exactly the trait good ideas tend to have. Take a large geographic area (in the experiments, the continental United States) and divide it using Google's S2 Geometry library — a system that carves the Earth into equal-area cells at different resolutions. The team used level-12 cells (about 5 km² each) as the fine unit, and level-8 cells (about 1,300 km²) as the coarse frame.

Inside every level-12 cell, they built a 116-dimensional feature vector: the first 115 entries are counts of each point-of-interest (POI) category on Google Maps — shops, restaurants, gas stations, beauty services, the whole ontology — and the last entry is the count of roads. Three coffee shops and one park in a grid cell become pixel values. The AI reads that "picture" the way a computer-vision model reads a photograph.

The old way S2Vec
Every task rebuilt from scratch: predicting air quality means building one toolset, predicting house prices means building another Learn once, use for many tasks: the same embedding predicts population density, income, house prices, carbon emissions
Needs humans to label each region (rich/poor area) — impossible for the whole planet Self-supervised learning: no labels needed for income, air quality or population
Uses satellite images: only sees rooftops, updates slowly, costs more Uses map data: updates faster, costs less, knows what is under each roof
Specialized models, hard to transfer to new regions General-purpose embeddings, transfer well to unseen geographic regions

The guessing game: hide a few spots, make the AI guess what is there

S2Vec learns through masked autoencoding — a powerful self-supervised technique. The process shows the model a "patch" of the built environment while hiding (masking) certain parts of it, then makes it reconstruct the missing pieces based solely on the surrounding context: show it a high-rise apartment block next to a metro station, hide one corner, and it guesses "there is probably a grocery store here".

Repeated millions of times — over a dataset of about 12,000 such grid images — the AI gradually learns the "spatial grammar" of cities: which areas usually contain what, where, and what tends to go with what. Nobody tells it "this is a rich area" or "this is a poor area"; it figures it out on its own. And because no manual labels are needed, the approach unlocks global insights — labeling the entire planet is an impossible task.

The result is a general-purpose embedding: a unique mathematical shorthand capturing the signature of a location. Feed that embedding into a prediction task, and S2Vec can estimate population density, median income and carbon emissions for regions it has never seen before.

How good is it — and where is it strong, where weak?

Google compared S2Vec against several geospatial and image-based embedding approaches — SATCLIP, GEOCLIP, RS-MaMMUT, Hex2vec, GeoVeX — on regression tasks: US-wide population density, median income, California housing prices, carbon emissions, tree cover and elevation.

The results need careful reading, because the original post presents them a little more simply than they are:

  • Strongest on socioeconomic tasks in new regions: S2Vec was typically the best individual model when predicting median income or population density for regions entirely absent from the training data (zero-shot geographic adaptation) — exactly the point the post emphasizes.
  • Competitive, not always winning: on California housing prices, S2Vec was comparable to SATCLIP but below GEOCLIP and RS-MaMMUT — satellite imagery still sometimes wins.
  • Weaker on environmental tasks: for tree cover and elevation, S2Vec showed a clear need for improvement — things satellite imagery captures better, because building counts say nothing about trees or terrain.
  • Combined is best: pairing S2Vec embeddings with satellite-image embeddings usually beat either model alone — because the two data sources complement each other: maps know what is under the roof, satellites know the trees, water and terrain.

In other words: S2Vec does not replace satellite imagery; it is the missing piece alongside it — which is precisely why Google built all three "brains" at once.

Google's three geospatial AI "brains": population, satellite, map

Google now has three geospatial foundation models working in parallel under the Earth AI initiative:

  • PDFM: understands population — where people live, how dense they are, and how population changes over time.
  • RS-MaMMUT: reads satellite imagery — seeing houses, roads, trees, water and other surface features from above.
  • S2Vec: reads maps and the built environment — knowing where the coffee shops, schools, hospitals, bus stops and high-rise buildings are, not just seeing rooftops.

Combined, they form a system that can "understand" a neighborhood almost like someone who lives there, including the money side of things. The original scientific paper on S2Vec ("S2Vec: Self-Supervised Geospatial Embeddings") was first posted to arXiv in April 2025.

Why this matters — and where to worry

For IT and data people, S2Vec matters because it shows a larger pattern: the same self-supervised technique that transformed language and computer vision — hide a part, guess the hidden part — is now unlocking geographic data, where manually labeling the whole planet is impossible. One embedding learned once, used for many tasks, replacing a stack of specialized models rebuilt from scratch.

But the other side should be stated plainly too: an AI that can guess the income of an entire neighborhood from public maps alone is also an extremely powerful social-analysis tool — and the question of who gets to use it, and for what (pricing real estate, allocating public services, or discriminating by area), will be the next question, not Google's alone.

Apply it now: learn to read a neighborhood like S2Vec

  1. Count what can be counted: to understand an area, don't rely on gut feeling — count: how many coffee shops, schools, hospitals, bus stops, high-rise buildings within 1 km. Raw numbers already say a lot about a place.
  2. Learn by "hiding and guessing": when learning a new system (a codebase, infrastructure, a process), try hiding one part and guessing the rest — the fastest way to test whether you really understand its structure or are just skimming.
  3. One good representation serves many tasks: when designing data or APIs, aim for a shared "embedding" — a compact, information-rich representation many different tasks can use — instead of building a separate toolset for each task.
  4. Combine data sources that complement each other: maps do not replace satellites, and vice versa. When one data source has a blind spot, find a second source that fills exactly that blind spot instead of forcing the first one to do a job it is bad at.
  5. Ask "what else can be inferred from this data": the same public map dataset can reveal a whole neighborhood's income — before sharing or collecting data, think about what others could infer from it that you have not thought of.

1. What is S2Vec, and whose is it? S2Vec is a self-supervised framework developed by Google Research under the Earth AI initiative, learning general-purpose embeddings of the built environment (buildings, roads, shops, infrastructure) for each area. The original paper ("S2Vec: Self-Supervised Geospatial Embeddings") first appeared on arXiv in April 2025.

2. How does it guess salaries when nobody taught it what "salary" is? Through self-supervised learning with masked autoencoding: the AI is shown a neighborhood with a few places hidden and must guess what is in the hidden spots — repeated millions of times, it learns the pattern of "which areas usually contain what" on its own. Afterwards, each area's embedding is fed into prediction tasks for median income, population density, housing prices or carbon emissions.

3. Does it beat satellite-image models? It depends on the task. S2Vec was typically the best individual model when predicting for entirely new geographic regions (zero-shot) on socioeconomic tasks like income and population density. But on California housing prices it only matched SATCLIP and trailed GEOCLIP and RS-MaMMUT; and on tree cover and elevation it is weaker than satellite imagery. Combining both data sources usually gives the best results.

4. Why are maps sometimes better than satellite images? Maps update faster, cost less, and reveal things satellites cannot see: a satellite only sees rooftops, while S2Vec knows that under a given roof there are three coffee shops, a pharmacy and a bus stop — and from that infers how much money the people living around there make.

5. What are Google's three geospatial AI "brains"? PDFM (understands population), RS-MaMMUT (reads satellite imagery) and S2Vec (reads maps and the built environment). Combined, they form a system that can "understand" a neighborhood almost like someone who lives there, including the money side of things.

Sources: the post by Kan Kan (AI Artworks VN group, November 25, 2026), originally from yohaniddawela; content was additionally cross-checked against Google Research's official blog ("Mapping the modern world: How S2Vec learns the language of our cities") and summaries by Techlist, Medium and the cklau blog.