Introduction: The Challenge of Rural Mapping
OpenStreetMap (OSM) is a vital resource for geospatial data, yet its quality varies significantly between urban and rural regions. While urban centers often feature high-quality, well-aligned building footprints, rural data is frequently plagued by noise. Accurate rural maps are essential for demographic studies, disaster response, and NGO planning, but current OSM data in these areas suffers from three primary flaws:
- Misalignment: Footprints are often shifted by up to 9 meters due to poorly registered satellite imagery used during manual tracing.
- False Positives: Annotations exist where buildings have been demolished or were never present.
- Missing Data: Many buildings visible in high-resolution imagery remain unannotated.
Standard machine learning models trained on such noisy data often yield poor results. Furthermore, typical semantic segmentation outputs "blobs" of pixels that are difficult to convert back into the clean vector polygons required by mapping platforms.
The Proposed Pipeline
To address these issues, this research introduces a three-stage pipeline built upon a Convolutional Neural Network (CNN) that generates pixel-level building probability maps from 30 cm resolution satellite imagery.
1. Alignment via Markov Random Fields (MRF)
Rather than aligning buildings individually, the system groups nearby structures. Using a Markov Random Field (MRF), it calculates a single shift vector for the entire group to maximize overlap with the CNN’s probability map. This approach leverages the fact that local clusters were likely annotated by the same volunteer using the same misaligned imagery, ensuring spatial consistency and reducing computational overhead.
2. Removal of Incorrect Annotations
After alignment, the system evaluates the average CNN probability score within each OSM polygon. If the score falls below a dynamically calculated threshold, the annotation is flagged as a false positive and removed.
3. Addition via Shape Priors
To identify missing buildings, a second CNN acts as an object detector searching for 18 predefined geometric shapes (circles, squares, and rectangles at various scales). By selecting from these priors rather than performing raw pixel classification, the system avoids merging adjacent buildings into single blobs and produces clean, vector-ready outputs.
Data and Evaluation
The model was trained on 3,134 manually verified OSM building annotations from Tanzania and fine-tuned with 559 annotations from Zimbabwe. Evaluation was conducted on two spatially independent validation sets: 1,094 annotations near Mugumu, Tanzania, and 811 in the Midlands region of Zimbabwe.
Key Results and Insights
The proposed method demonstrated significant improvements over standard techniques:
- Alignment Gains: In Tanzania, the pixel-level F-score rose from 0.111 (original OSM) to 0.657 after MRF alignment.
- Superior Segmentation: The full pipeline achieved an object-level F-score of 0.690 in Tanzania, significantly outperforming a state-of-the-art semantic segmentation baseline (0.518).
- Geometric Precision: The use of shape priors ensured that newly added buildings matched ground-truth structures more accurately than pixel-wise methods, effectively disentangling buildings with shared boundaries.
A key insight was the observation that probability scores for existing versus non-existing buildings form a bimodal distribution. This allowed for automated, confident thresholding for building removal without human intervention.
Limitations and Future Work
The primary limitation is the reliance on a fixed library of 18 shapes. While these cover most rural structures, the system may struggle with complex or unusually large buildings. Future research could combine CNN probability maps with graph-based segmentation to allow for more flexible building delineation while maintaining geometric regularity.
Summary updated