Abstract
TernausNetV2 is an evolution of the U-Net architecture designed to extract individual building footprints from high-resolution satellite imagery. By adding an auxiliary output channel to predict "touching borders" and utilizing a memory-efficient WideResNet-38 encoder, the model successfully performs instance segmentation on multispectral data, outperforming standard semantic segmentation approaches.
What Problem Does This Paper Address?
The authors tackle the challenge of instance segmentation in satellite imagery—specifically, identifying and delineating individual buildings.
Standard semantic segmentation models (like the original U-Net) are great at labeling pixels as "building" or "not building." However, in dense urban areas where buildings are packed closely together, these models often predict one giant, connected "blob" rather than individual structures. To be useful for urban planning or population monitoring, we need to know where one building ends and the next begins.
Furthermore, satellite imagery often contains multispectral data (infrared, etc.) beyond standard RGB. Most deep learning models are pre-trained on RGB images (like ImageNet), making it difficult to leverage these extra channels without losing the benefits of transfer learning.
Methods
TernausNetV2 builds upon the popular encoder-decoder (U-Net) framework with several key innovations:
- The "Touching Borders" Trick: Instead of a single output mask, the network predicts two channels:
- A binary mask of the building footprints.
-
A mask of the areas where buildings touch or are very close (contours). By subtracting the "touching borders" from the main mask, the authors create "seeds" for a watershed transform, which effectively splits the connected blobs into individual building instances.
-
WideResNet-38 Encoder: The authors replaced the standard VGG11 encoder with a more powerful WideResNet-38.
- In-place Activated Batch Normalization (ABN): To handle the high memory requirements of deep networks and high-resolution satellite tiles, they used In-place ABN. This technique merges batch normalization and activation layers, saving up to 50% of GPU memory and allowing for larger batch sizes or higher-resolution inputs.
- Multispectral Transfer Learning: To use 11-channel satellite data (RGB + 8 multispectral) while still using ImageNet pre-training, they modified the first convolutional layer. They copied the pre-trained RGB weights to the first three channels and initialized the remaining eight channels to zero, then used a two-stage training schedule to "warm up" the new weights.
Datasets
The model was trained and evaluated using the SpaceNet dataset, which features:
- High-resolution (30 cm) imagery from the WorldView-3 satellite.
- Data from four diverse cities: Las Vegas, Paris, Shanghai, and Khartoum.
- RGB, panchromatic, and 8-channel low-resolution multi-spectral images.
- Ground truth labels consisting of polygons describing building instances.
The authors also validated their approach on the DeepGlobe-CVPR 2018 building detection sub-challenge.
Key Insights and Ideas
Visualizing the instance segmentation pipeline: input imagery (left), predicted mask and touching borders (center), and final instance segmentation after watershed transform (right). Source, p. 2
- Simplicity over Complexity: While many instance segmentation tasks use complex two-stage networks (like Mask R-CNN), TernausNetV2 shows that a well-designed fully convolutional network with a simple post-processing step (watershed) can be highly effective for rigid objects like buildings.
- Memory is the Bottleneck: In satellite imagery, resolution matters. The use of In-place ABN highlights that architectural choices in this field are often driven by the need to fit large, high-resolution spatial contexts into GPU memory.
- Graceful Multispectral Integration: The paper provides a clear recipe for adapting RGB-trained models to multispectral data without "breaking" the pre-trained features, specifically through zero-initialization and a phased training schedule.
Key Results
- Performance: The model achieved a score of 0.74 on the DeepGlobe-CVPR 2018 public leaderboard, showing superior performance compared to other methods at the time.
- Efficiency: The end-to-end process (inference + watershed transform) is fast, processing 10 samples per second on a single NVIDIA GTX 1080 Ti.
- Generalization: The model performed well across diverse urban environments (from the dense blocks of Shanghai to the varied structures in Khartoum) without city-specific fine-tuning.
Limitations and Future Work
- Label Quality: The authors note that ground truth labels in high-density areas are often imperfect, which limits the theoretical maximum performance of the model.
- Post-processing Dependency: The success of the instance separation relies heavily on the quality of the "touching borders" prediction and the watershed transform. Errors in the border prediction can still lead to merged instances.
- Ensembling: The authors explicitly avoided common "tricks" like bagging, checkpoint averaging, or test-time augmentations to keep the solution simple. They suggest these could be used in the future to further boost scores.
Summary updated