Introduction
While the legal framework of apartheid was repealed in South Africa in 1991, its "spatial" legacy remains deeply etched into the country's landscape. Wealthy, green, gated communities often sit directly adjacent to densely populated, resource-constrained townships. This enduring geographic segregation is known as spatial apartheid.
Existing computer vision tools for land-cover classification generally fail to capture this socio-economic nuance. Most datasets categorize all built-up areas simply as "urban," ignoring the stark disparities that define South African cities. Furthermore, creating high-quality labeled datasets for the Global South is often prohibitively expensive; comparable projects in the US have cost over $1 million. To address this gap, researchers have developed the first publicly available satellite imagery dataset covering all nine provinces of South Africa, specifically designed to track the evolution of spatial apartheid using highly constrained resources.
Methodology: A Human-in-the-Loop Approach
The research team employed an iterative, "human-in-the-loop" process over two years to refine their labels, combining automated techniques with local expertise.
Data Fusion A critical technical hurdle was creating accurate ground-truth masks. Using only government-provided Enumerator Areas (EAs)—polygons used for census data—led to poor model performance (a Kappa score of just 0.0151). The breakthrough came from fusing these polygons with a geo-referenced buildings dataset containing over 12 million points. By creating "buffered" masks around the building points, the model was forced to focus on the structures themselves rather than the empty land within a polygon.
Local Expertise and Iterative Refinement Government data often lumped townships and wealthy suburbs together under a single "formal residential" tag. To correct this, the team recruited 10 graduate students from across South Africa to verify and correct labels. They also used a U-Net semantic segmentation model as a diagnostic tool. By training on early versions of the data, they identified where the model struggled (e.g., confusing farms with vacant land) and adjusted their labeling strategy accordingly.
Ultimately, to improve model reliability, they collapsed 12 initial land-use categories into four visually and socio-economically distinct classes: Wealthy (W), Non-Wealthy (NW), Non-Residential (NR), and Background (B).
The Dataset
The resulting dataset utilizes high-resolution (10m/pixel) imagery from the SPOT sensor, covering the entire country from 2006 to 2017. It comprises 6,768 images in total, with 550 images from 2011 fully labeled at the pixel level. Despite being created with limited resources, this dataset is roughly seven times larger than comparable high-cost land-cover datasets like the Chesapeake Bay project.
Key Insights and Results
- The Wealth Gap is Visible from Space: Wealthy areas are characterized by lower density and more greenery, while townships are densely packed with a rigid grid-like structure. These distinct visual signatures make automated socio-economic classification highly feasible.
- Strong Generalization: Despite the vast geographic and ecological diversity of South Africa, a model trained on eight provinces generalized remarkably well to the ninth, unseen province. This suggests that the visual markers of spatial apartheid are consistent nationwide.
- High Performance: The final U-Net model achieved a 96.14% accuracy and a Cohen’s Kappa of 0.7578 on the 4-class segmentation task.
- Tracking Temporal Change: In a pilot study of Gauteng province comparing 2011 to 2017, the authors found that while 40% of neighborhoods remained unchanged, roughly 60% of developed vacant land was converted into wealthy residential areas, highlighting ongoing, unequal trends in land use.
Limitations and Future Work
The authors acknowledge several limitations. At 10m per pixel, very small or irregular informal settlements can still be difficult for the model to distinguish from the background. Additionally, because the ground-truth labels are tied to 2011 census data, quantifying year-over-year changes across the entire 2006–2017 timeline carries some uncertainty.
Crucially, the team recognizes the ethical risks of this technology. Datasets capable of identifying vulnerable neighborhoods could be misused for surveillance or further marginalization. To mitigate this, the dataset is available only upon request for approved research purposes.
In the future, the researchers plan to integrate census data to study how demographic shifts correlate with these spatial changes and to investigate the impact of new commercial developments on surrounding neighborhood wealth.
Summary updated