TL;DR
The paper introduces Nacala-Roof-Material, an open-access drone dataset containing ~18,000 annotated buildings across informal settlements in Mozambique, designed to automate roof-type mapping for malaria risk profiling. The authors benchmark leading vision baselines (U-Net, YOLOv8, and DINOv2) and propose a lightweight, two-level Deep Ordinal Watershed (DOW) extension that resolves the tension between pixel-level mask accuracy and individual building separation.
What Problem Does This Paper Address?
In sub-Saharan Africa, housing construction materials directly correlate with malaria risk. For example, thatch roofs provide mosquito entry points and cooler daytime indoor temperatures that favor mosquito survival, whereas metal roofs generate indoor heat that suppresses mosquito activity. Identifying roof types from remote sensing data enables public health officials to locate high-risk areas when ground data is scarce.
However, existing satellite datasets (like Sentinel-2 at 10m/pixel) are too coarse to resolve individual structures in dense informal settlements. Moreover, dense settlements expose a common computer vision dilemma: models optimized for semantic segmentation (maximizing Intersection over Union, or IoU) frequently merge roofs that touch or nearly touch, making building counting and instance separation unreliable.
Methods
The authors benchmark three distinct model paradigms across both end-to-end (joint segmentation and roof classification) and two-stage pipelines (binary building delineation followed by building-level classification):
- Standard Baselines:
- U-Net: A ResNet-34 encoder with nearest-neighbor upsampling, trained using boundary-weighted cross-entropy loss with artificial inter-building gap margins ($n_{gap} = 7$ pixels).
- YOLOv8: A state-of-the-art instance segmentation model fine-tuned from COCO weights.
- DINOv2: A frozen, pre-trained self-supervised vision transformer (
ViT-B/14) coupled with a lightweight convolutional decoder. In the two-stage setting, masked and pooled DINOv2 patch features are classified via linear probing (logistic regression). -
Two-Level Deep Ordinal Watershed (DOW): Instead of predicting full distance elevation pyramids, the authors simplify deep ordinal watershed formulation to just two height levels ($n_{lev} = 2$):
-
The outer footprint of the building.
- The eroded interior core (10 pixels inset from borders).
During inference, topological watershed flooding expands from the predicted interior cores out to the outer boundary, preventing touching roofs from merging into single connected components.
Datasets
The study introduces the Nacala-Roof-Material dataset:
- Source: High-resolution orthomosaics ($\approx 4.4\text{ cm/pixel}$) collected via DJI Phantom 4 Pro over three informal settlements in Nacala, Mozambique.
- Scale & Annotations: 17,954 building footprints manually digitized on-site by local teams and double-verified by experts.
- Classes: 5 categories: metal sheet (9,776), thatch (6,428), asbestos (566), concrete (174), and no-roof (1,010).
- Splits: Settlements 1 and 2 are divided into spatially stratified $225\text{ m}$ grid cells for training ($D_{train}$, 10,930 buildings), validation ($D_{val}$, 2,956 buildings), and an in-distribution test set ($D_{test}$, 2,527 buildings). The third settlement serves as a completely held-out external test set ($D_{ext}$, 1,541 buildings) to assess cross-area generalization.
Key Insights and Ideas
- Separation vs. Delineation Trade-off: High semantic IoU does not guarantee accurate building counting. Standard U-Nets produce crisp segmentations but merge adjacent dwellings. Conversely, bounding-box detectors like YOLOv8 excel at instance separation but generate boundary artifacts and lower IoU.
- Two Elevation Levels Are Enough: While earlier deep ordinal watershed methods used 6 or more discrete height levels for tree canopy delineation, a minimal two-level representation (boundary + interior) achieves comparable performance without extra model complexity or hyperparameter tuning.
- Generic Applicability: The DOW head functions as an architectural drop-in. When attached to either U-Net or DINOv2, it significantly improves instance separation metrics across both test sets ($p < 0.001$, Wilcoxon rank-sum test) without sacrificing semantic IoU.
Key Results
- Detection vs. Segmentation Strengths: On the external test set ($D_{ext}$), YOLOv8 achieved top instance detection performance ($\text{AP}_{50} = 0.963$), while U-Net variants dominated pixel-level segmentation ($\text{IoU} = 0.909\text{--}0.911$).
- Impact of DOW: Adding DOW to DINOv2 boosted binary $\text{AP}_{50}$ from $0.881$ to $0.931$ on $D_{test}$, and from $0.922$ to $0.961$ on $D_{ext}$.
- Target Roof Performance: Thatch roofs—the most critical indicator for malaria vulnerability—were classified with consistently high accuracy ($\text{AP}_{50}$ of $0.94\text{--}0.95$). Minority classes like concrete and asbestos were the most challenging due to high visual similarity to bare ground and concrete yards.
- Computational Efficiency: End-to-end multi-class models ran roughly $2\times$ faster than two-stage setups. An end-to-end U-Net could map all 31,910 hectares of Nacala in approximately $6.36\text{ GPU hours}$ on a single AMD MI250X GPU.
Limitations and Future Work
- Geographic Scope: The dataset covers three settlements within a single coastal city in Mozambique. Evaluating transferability to other sub-Saharan architectural and environmental contexts remains an open challenge.
- Severe Class Imbalance: Extremely rare classes (e.g., concrete roofs accounted for under 1% of instances and were absent from $D_{ext}$) require targeted sampling or few-shot adaptation methods.
- Post-processing Bottlenecks: The watershed post-processing step currently runs on the CPU, causing DOW-enabled models to take 3–4× longer during deployment than standard forward passes. Porting the watershed algorithm directly to GPU kernels is noted as an immediate optimization path.
Summary updated