Anonymise
Choose geographic masking or hexagonal binning to reduce the risk of revealing sensitive locations. The following sections describe both mechanisms and their privacy–utility trade-offs.
What is geographic masking?
Geographic masks are a set of techniques that alter the location of points in a map to protect privacy without overly affecting any spatial patterns. In other words, geographic masks allow researchers to publish useful maps of approximate locations, while aiming to reduce exposure of sensitive data. Of course, this is a trade-off: with more masking comes more privacy, but this privacy may come at the cost of information loss. If we apply too much masking to our data, the end result may not resemble the original data whatsoever. While the balance between privacy and information loss can be tricky, it is best to err on the side of privacy.
MapSafe uses the Maskmy.XYZ tool for masking. The tool performs donut masking, which is a funny term for a simple concept: moving each point randomly between a minimum and maximum distance. A more comprehensive explanation about the masking feature can be found on this document.
Use donut masking
In the Anonymise step, set the minimum and maximum masking distances in metres. Select Calculate Mask! to generate the masked dataset. Use Download Masked Data to save the result if required.
Choose displacement distances
The minimum distance determines the lower bound of displacement and the maximum determines its upper bound. The permitted positions form an annular region around the original point. Short distances can leave points near sensitive sites; large distances can distort meaningful patterns or move observations into unsuitable geographic contexts.
The current interface exposes minimum distances of 10–500 metres and maximum distances of 100–5,000 metres, initially 30 and 300 metres respectively. These are control ranges, not validated privacy thresholds. Choose a minimum smaller than the maximum and inspect the actual output.
- Select masking and set the displacement bounds.
- Enable Calculate Privacy Rating if the diagnostic is required.
- Select Calculate Mask! and compare the original and masked maps.
- Adjust the parameters or stop if the result is unsuitable. Save the intended output with Download Masked Data if needed.
Privacy rating
The application offers an optional Calculate Privacy Rating control. The displayed rating represents the percentage of masked points that are closer to another original sensitive point than to their corresponding parent point, as described in the application tooltip. It is a diagnostic measure, not a guarantee against re-identification.
See the referenced paper on Spruill's measure.
Interpret the masking privacy rating
The inverted Spruill diagnostic reports the proportion of masked points that are closer to another original point than to their corresponding parent under the stated nearest-point test. A higher value is favourable according to this specific criterion, but is not a probability of anonymity against an arbitrary attacker.
Density and spatial structure influence the result, so identical distances can yield different ratings across datasets. Repeated random releases may also expose additional information. Review auxiliary geographic knowledge and identifying attributes before deciding whether the representation can be released.
What is hexagonal binning?
Hexagonal binning (hexbinning) is the other option for anonymising geospatial datasets in MapSafe. Geographic points are aggregated into hexagonal cells using Uber's h3-js library Users can choose the spatial resolution (i.e., the Uber H3 spatial indexing level) along with the buffer radius for encoding. The buffer radius (in KM) allows specification of how far the coverage of the binning should span.
Depending on the area depicted in the dataset, a suitable spatial resolution level will need to be chosen to balance privacy and utility. Large hexagons (lower resolution) would result in many distant locations shown in the same cell, while small hexagons (higher resolutions) may present results that are too sparse to cover the entire area. Therefore, a resolution size needs to be chosen that covers the entire area (i.e., dense representations) and contains a small cell size (i.e., preserving location details) to better balance the trade-off between spatial coverage and location details than other H3 indexing levels.
(Image acquired from https://www.kontur.io/blog/why-we-use-h3/)
Understand H3 resolution and buffer radius
H3 uses hierarchical spatial indexing: a lower resolution produces larger cells and a higher resolution produces smaller cells. Larger cells generally conceal more local detail, whereas smaller cells can preserve patterns but may disclose information about sparse observations.
The current browser controls offer resolutions 6–10, initially 7, and a buffer radius of 0–1 kilometre in 0.2-kilometre increments. The coarse-layer code reduces the H3 resolution by one. These parameters affect the representation and coverage, not a formal minimum anonymity threshold.
Use hexagonal binning
Select the binning option and set the H3 resolution and buffer radius (kilometres). Use Download Binned Data to save the resulting dataset if required. Choose parameters with care: aggregation may still reveal sensitive information in sparsely populated cells.
Compare the two methods
| Consideration | Donut masking | Hexagonal binning |
|---|---|---|
| Output | Displaced point locations | Aggregated cells |
| Main controls | Minimum and maximum distance | H3 resolution and buffer radius |
| Suitable use | Approximate point patterns | Distributions and density |
| Disclosure concern | Spatial linkage and background knowledge | Sparse cells and counts |
Choose according to the recipient's analytical purpose. Neither method is a guarantee of anonymity, and spatial anonymisation does not automatically eliminate identifying attribute information. Proceed to Encrypt when the desired representation has been reviewed.
