Skip to content

Privacy and preparation

Dataset location generalization: how much location detail does the AI task need?

By SourceX Editorial · Reviewed by Noah Loul ·

10 sections

Short answer

Find the coarsest location level at which the AI task still works, then review privacy at that level rather than on raw coordinates. Build copies of the dataset at several granularities, such as exact point, census tract, three-digit ZIP, grid cell and county, run the same task on each, and keep the level where performance stops improving. Then check that level in combination with time, other fields and attached media.

Redaction

Dataset location

This page covers dataset location generalization: how much location detail does the AI task need.Illustrative

Key takeaways

  • Most AI tasks built on business records need something derived from location, such as travel time or region, not the exact point.
  • A location granularity ablation runs the same task at several levels and keeps the coarsest one within a tolerance set in advance.
  • Holding out whole regions shows whether the model also generalizes to places it has not seen.
  • Location becomes identifying again through time sequences, small populations, free text, images and linkage, so review combinations at the chosen level.
  • Generalizing location reduces privacy risk but does not settle ownership or the contractual right to license.

How much location detail does an AI task actually need?

Usually less than the source system stores. Find the coarsest location level at which the AI task still performs, then do the privacy review at that level rather than on raw coordinates. In practice that means building copies of the dataset at several granularities, from exact point through census tract, three-digit ZIP and county to region, running the same task on each, and keeping the level where performance stops improving. The privacy review then checks that level in combination with timestamps, other fields and attached media.

Most business records carry far more location than any model needs. A field service system stores the customer's street address and the technician's GPS trail; a logistics platform stores pickup and drop-off coordinates; a retail system stores store and delivery addresses. The AI task built on those records usually depends on something derived from location, such as travel time, regional demand, climate zone or distance to a depot, not on the point itself.

Dataset location generalization has two meanings, and both matter here. One is generalizing location values, replacing a point with a larger area so it identifies fewer people. The other is whether a model trained on some places generalizes to places it never saw. The test below measures both at once.

Why location resists de-identification more than most fields

Location is hard to de-identify because a few points tied to a person are often unique. De Montjoye and colleagues, studying fifteen months of mobile phone data for 1.5 million people, found that four spatio-temporal points at the resolution of carrier antennas and hourly timestamps were enough to single out 95% of individuals, and that uniqueness fell only slowly as resolution was coarsened. Coarsening alone may not be enough for traces.

Static location is identifying too, especially combined with other fields. Latanya Sweeney's analysis of 1990 census data estimated that about 87% of the U.S. population was likely unique on five-digit ZIP code, gender and date of birth. HHS guidance notes that year of birth, sex and three-digit ZIP code together are unique for roughly 0.04% of U.S. residents, which shows how much a coarser area and a coarser date reduce uniqueness.

Some places are sensitive in themselves. In its 2025 order against Gravy Analytics and Venntel, the FTC required a program to handle sensitive locations including medical facilities, religious organizations, correctional facilities and labor union offices. And NIST's survey of de-identification techniques cautions that suppressing or generalizing fields cannot deliver absolute privacy protection, so every level chosen still needs a residual-risk review.

A granularity ladder to test, from coordinates to region

Test a ladder of levels rather than a single cut, and record for each level both the area and the population it typically covers. Area matters for tasks; population matters for privacy. A hexagon of a few square kilometers is a crowd in a city and a handful of households in farmland.

Census units and grid cells answer different needs. Census tracts and block groups follow population, so their sizes are already expressed in people and they line up with published demographic tables a buyer might join. Grid systems such as H3 keep cell area roughly constant within a resolution, which suits tasks built on distance, coverage or travel. ZIP prefixes are convenient because most business systems already store ZIP codes, but their boundaries follow mail delivery rather than population or area. Include at least one level from each family when the task could plausibly depend on either.

A granularity ladder to test, from coordinates to region
LevelTypical unitSize anchorTasks it usually keeps
Exact point or street addressCoordinates or full addressOne building or personRouting, geospatial imagery, site-level studies
H3 resolution 9 cellHexagonal grid cellAbout 0.105 square km average areaNeighborhood demand, short-trip travel time
Census block groupStatistical division of a tractGenerally 600 to 3,000 peopleLocal demographics and demand patterns
Census tractStable statistical areaGenerally 1,200 to 8,000 peopleArea-level demand, service mix
Three-digit ZIP areaZIP prefixAbove 20,000 people to keep under HIPAA Safe HarborRegional pricing context, coverage areas
H3 resolution 7 cellHexagonal grid cellAbout 5.16 square km average areaMetro-level travel and coverage
County, state or regionAdministrative areaVaries widelySeasonality, climate, regional regulation effects

Running the location granularity ablation step by step

The ablation is a controlled comparison: the same task, model, training budget and evaluation, with only location granularity changing. Write the stopping rule down before running it, for example keeping the coarsest level whose score is within a stated tolerance of the exact-location score.

Choose the tolerance with the buyer's use in mind. A small loss in a planning model may be acceptable; the same loss in a model that sets customer appointment windows may not. Setting the number before seeing results prevents the common drift toward whichever level looked best, which is usually the finest one. If even the coarsest level is within tolerance, that is a useful finding in itself: the task may not need location at all, and the field can be dropped.

The procedure:

Checklist · 6 items

  1. Name the task and the metric, such as job duration error or delivery-window accuracy, and the tolerance you will accept relative to the finest level.
  2. Compute any location-derived features the task needs, such as travel time or distance to depot, from exact location inside the source environment first, then decide separately whether those derived values are themselves identifying.
  3. Build one copy of the dataset per ladder level, replacing location fields with the coarser unit and removing free-text address mentions consistently across copies.
  4. Hold out whole regions as well as random records. The WILDS benchmark treats location as a domain for its camera-trap dataset; holding out regions in the same way shows whether the model works in places it never saw, which matters for a buyer serving new markets.
  5. Train and evaluate on each copy with the same budget, and repeat runs so the noise band is known.
  6. Plot score against level, pick the coarsest level within tolerance, and only then start the privacy review on that copy.

0 of 6 ticked. Tick each item as you go.

What identifying combination can survive the chosen level?

The chosen level is only the start of the review. Location becomes identifying again through combinations, sequences and other modalities, so check each pathway below on the actual prepared copy.

Note the trade-off between levels and time. A coarser area with exact timestamps can be more identifying than a finer area with dates rounded to the week, because sequences of area and time behave like traces. Review the two together, not one after the other.

Run the checks on a sample large enough to include the rare cases, such as rural customers, one-off jobs and records with attachments, because residual risk concentrates there. Record who ran each check and what was found, and agree an incident process before release: who is told if a record is later found to be identifying, how it is withdrawn from the delivered set and how the buyer is asked to delete it.

What identifying combination can survive the chosen level?
Residual pathwayExample in business recordsCheckTypical treatment
Sequences over timeA customer's repeated visits by area and hourCount records unique on area plus time patternCoarsen time, sample visits, drop sequence order
Home and work pairsJob origin and destination for one personLook for repeated area pairs per entityRemove one end or aggregate trips
Small populationsA tract or cell with few customersCount entities per unit and suppress small cellsMerge into larger units
Free textTechnician notes naming a street or landmarkScan text fields for address and place namesRedact or replace with the generalized unit
Images and filesPhotos with GPS metadata or visible house numbersInspect file metadata and image contentStrip metadata, blur or exclude images
Sensitive placesVisits near clinics or places of worshipMatch areas against sensitive-site categoriesSuppress or aggregate those records
LinkagePublic property or business listingsAttempt matches on area plus other fieldsCoarsen further or remove linking fields

Some precision levels carry legal weight regardless of what the task needs. Under the California Consumer Privacy Act, precise geolocation means data derived from a device used to locate a consumer within a circle with a radius of 1,850 feet, and it is listed as sensitive personal information. A technician trail or a delivery driver's phone location at that precision triggers additional obligations.

For health records covered by HIPAA, the Safe Harbor method requires removing geographic subdivisions smaller than a state, except that the first three digits of a ZIP code may stay when the combined area for that prefix contains more than 20,000 people under current census data. Other regimes use risk-based standards with no fixed level.

Keep four questions distinct: whether the company can access and export the location data, whether privacy law permits the planned use at the chosen level, who owns the records and whether contracts with customers or drivers allow licensing. Generalizing location narrows the privacy question but does not create a right to license. This is general information, not legal advice; counsel should review the specific records, notices and contracts.

Contracts can set a ceiling too. Customer agreements, driver or technician policies and platform terms sometimes limit how location collected for service delivery may be reused. Those limits apply even when a privacy statute would allow the use, so read them before choosing the level rather than after.

Illustrative case: dispatch records from a home services company

The following case is illustrative; the company, levels chosen and percentages are invented to show how the ablation reads, not results from any study. A home services company considers licensing several years of dispatch records for a model that predicts job duration. The records hold customer street addresses, technician GPS pings and free-text notes.

The team computes drive time from exact addresses inside its own systems, then builds copies at street address, H3 resolution 9, census tract, three-digit ZIP and county. On a held-out set of whole service regions, the duration error at tract level stays within the pre-set tolerance of the exact-address error, while three-digit ZIP and county lose noticeably more. The team keeps tract plus the precomputed drive time.

The privacy review then finds two problems at tract level. Rural tracts with few customers make some households distinguishable, so those are merged into larger units. Technician notes mention street names, so they are redacted. GPS pings are dropped entirely, because the task never needed them. The exception worth noting: drive time computed from exact points is itself a fine-grained fact, so it is rounded before release and reviewed as a potential linking field.

Tasks where precise location is the point

Some tasks need precise location because location is the subject: route optimization, geospatial imagery, property-level risk models and site selection. For those, the ablation will show performance falling off as soon as location is coarsened, and the decision shifts from how much to generalize to how to separate place from person.

Options include keeping precise locations for fixed assets such as stores, depots and equipment while removing customer and worker links, aggregating to counts per location and period, or limiting the data to commercial sites. Each option should go back through the same ablation, because aggregation or removing person links can change what the model learns as much as coarsening does. When none of these preserves the task, stop or narrow the scope. Bring in a privacy specialist and security reviewer before licensing any precise location tied to individuals, any device-derived trail, or any record near sensitive sites.

Recording the decision so a buyer and reviewer can check it

Write the decision down so a buyer and an independent reviewer can check it without rerunning everything. The record should let someone see which level was chosen, why, and what risk was accepted.

At a glance

Recording the decision so a buyer and reviewer can check it

Buyers increasingly ask for this kind of record during diligence, because it answers two of their own questions at once: whether the data will still support their task, and whether the supplier understood what it was releasing. A record written at the time of the decision is also far easier to defend than one reconstructed after a question is raised.

Include at least:

  • Task, metric, tolerance and the stopping rule set before the ablation
  • Ladder levels tested, with area and population anchors for each
  • Scores per level, with the noise band from repeated runs and the held-out-region result
  • Derived features computed from exact location, and how each was rounded or reviewed
  • Residual pathways checked, small-cell thresholds applied and fields removed
  • Applicable legal thresholds identified by counsel, and the date of the review
  • What would trigger a new review: new fields, new linkable datasets, new media or an incident

Offering location-bearing records for licensing

Companies thinking about licensing records that carry addresses, service areas or GPS can raise the location question at the start rather than at preparation. When they do, SourceX handles the rights review, contracting, data preparation and delivery that turn selected operational records into a licensed dataset.

Whether a company qualifies is settled by a brief assessment that needs no records up front. SourceX de-identifies through approved processing routes, and the company signs and approves scope and terms before delivery; fixing the location level the buyer's task needs is part of agreeing that scope.

Frequently asked questions

What is dataset location generalization?

It usually means replacing precise locations such as coordinates or street addresses with larger areas, such as census tracts, ZIP prefixes or grid cells, so records identify fewer people. In machine learning it can also mean a model's ability to work in locations it was not trained on. A good test measures both.

Is a three-digit ZIP code enough to de-identify location?

Not on its own. It removes a lot of precision, but combined with dates, sequences, free text or images it can still single people out, and HIPAA Safe Harbor allows it only for prefixes covering more than 20,000 people. Review it in combination with the other fields.

How do you choose between census tracts and grid cells like H3?

Census units follow population and come with population counts, which helps privacy review. Grid cells have consistent area, which helps tasks based on distance or travel. Test both in the ablation if the task is sensitive to either.

Can GPS traces ever be licensed for AI training?

Sometimes, but traces tied to people are among the hardest data to de-identify because a few points can identify most individuals. Common approaches are aggregating, removing person links or limiting to fixed assets, with specialist privacy and legal review first.

Does generalizing location remove the need for consent or a license?

No. It reduces privacy risk but says nothing about ownership or contractual rights to license the records. Those questions are answered separately, from the company's notices and contracts.

Sources

  • HHS guidance on HIPAA Safe Harbor allows the first three ZIP digits only where the combined area contains more than 20,000 people, and notes year of birth, sex and three-digit ZIP are unique for about 0.04% of U.S. residents. Source
  • De Montjoye and colleagues found that four spatio-temporal points at antenna and hourly resolution uniquely identified 95% of individuals, with uniqueness decaying slowly as resolution is coarsened. Source
  • Sweeney's analysis estimated that about 87% of the U.S. population was likely unique based on five-digit ZIP, gender and date of birth. Source
  • The Census Bureau glossary says census tracts generally contain 1,200 to 8,000 people and block groups generally 600 to 3,000. Source
  • H3's resolution tables give an average hexagon area of about 0.105 square kilometers at resolution 9 and about 5.16 square kilometers at resolution 7. Source
  • The CCPA defines precise geolocation as device-derived data locating a consumer within a circle of 1,850-foot radius and lists it as sensitive personal information. Source
  • The FTC's finalized order against Gravy Analytics and Venntel requires a sensitive location program covering places such as medical facilities, religious organizations, correctional facilities and labor union offices. Source
  • NIST's de-identification survey states that approaches based on suppressing or generalizing fields cannot provide absolute privacy protection. Source
  • The WILDS benchmark uses location as the domain for its iWildCam camera-trap dataset, grouping data by location for domain-aware evaluation. Source

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies