Case Study

How Space42 Creates Urban Height Maps from SAR Imagery with NVIDIA Earth-2

Space42 logo

About Space42: Space42, part of the technology group G42 based in the United Arab Emirates, is an AI-powered SpaceTech company that integrates satellite communications, geospatial analytics, and AI. Through its Space Services and Smart Solutions businesses, it delivers connectivity and geospatial intelligence to customers worldwide.


Challenge

What Space42 needed to do

Space42 set out to generate a digital surface model (DSM) from a single synthetic aperture radar (SAR) image acquired by their satellites. Unlike optical imagery, SAR can operate through clouds, dust, rain, and low-light conditions, making it valuable for rapid urban assessment. However, its side-looking geometry creates layover and shadows, making building height difficult to infer. 

Space42 needed to recover useful height estimates despite this ambiguity while identifying areas where analysts should treat the predictions with caution. Existing regression approaches produced overly smooth results and failed to preserve building boundaries in dense areas.

Constraints

  • Timeliness: Emergency mapping and rapid urban assessment required generating a DSM from a single SAR view when multi-view or multi-temporal data were unavailable.

  • Uncertainty quantification: Dense urban areas with tall buildings, layover, façades, and heavy shadowing required the model to communicate where its estimates couldn’t be trusted.

  • Learning from limited data: The model had to learn from seven geographically separated SAR acquisitions paired with a LiDAR-derived reference DSM while preventing spatial leakage between training and evaluation data.


System architecture

Space42 developed SARDiff4Height, a two-stage system that estimates surface height and uncertainty from a single SAR image. A regression U-Net first predicts the mean DSM. A diffusion model then learns the residual between that prediction and the reference DSM and generates multiple plausible refinements. The pixel-wise spread across those outputs forms an uncertainty map that helps identify less reliable predictions.

Two-step CorrDiff network architecture for regression and diffusion training and inference
Figure 1. Architecture of the Literature agent within Kosmos
Geometry Context Block with depthwise filters and squeeze-excitation gating
Figure 2. Geometry Context Block design: depthwise 3×3, 1×5, and 5×1 filters extract directional and isotropic context, a 1×1 mixing layer combines them, and squeeze-excitation gating reweights the most informative feature channels.

Architecture overview:

Regression stage
A geometry-aware U-Net predicts the mean DSM from the SAR input, capturing the principal terrain and building-height structure.

Diffusion stage
A diffusion model learns the residual between the mean prediction and the reference DSM, enabling it to recover finer local structure.

Uncertainty output
During inference, the model generates multiple residual samples. Their pixel-wise spread produces an uncertainty map that highlights areas where predictions vary.


Integration details

Key design decisions

Space42 made two key changes to adapt the regression model to SAR geometry and improve its performance in dense urban scenes:

  • Edge-aware regression loss: A plain U-Net with standard MSE smooths building edges and misses sharp urban transitions. The final objective combines height accuracy with gradient consistency: ||ŷ − y||²₂ + λ||∇ŷ − ∇y||₁. Edge-aware supervision preserves boundaries but must be paired with regularization because, by itself, it can overfit training edges.

  • Geometry Context Block: At the bottleneck of the regression U-Net, depthwise branches capture local, range-oriented, and azimuth-oriented structure. A shared mixer combines their responses, and a squeeze-excitation gate reweights the most informative channels. Bottleneck self-attention, spatial dropout, and DropPath further stabilize training and improve generalization.

How PhysicsNeMo was integrated

The open-source code for training NVIDIA Earth-2 models is found in the NVIDIA PhysicsNeMo package. Space42 used the PhysicsNeMo regional diffusion models recipe as the foundation for CorrDiff training and inference, adapting it for SAR data and geometry-aware modeling.

  • Data preparation and configuration: Space42 projected the LiDAR-derived DSM into radar geometry and filtered invalid or weakly supported pixels before training. The training recipe uses Hydra YAML files to control the dataset, model, loss, and training configuration.

  • Staged training: The regression model first learned the broad height structure using the edge-aware loss and Geometry Context Block. The diffusion model was then trained on the residual around that mean prediction.

What didn’t work initially

A plain U-Net with mean squared error produced unstable training and overly smooth predictions. Edge-aware loss improved building boundaries, but overfitting remained a problem. Adding geometry-aware context, attention, spatial dropout, and DropPath stabilized the mean predictor, giving diffusion a stronger foundation for residual refinement.

Unstable baseline regression training loss curve showing no consistent downward trend
Figure 3. Baseline regression training loss was unstable and did not show a consistent downward trend, indicating that the model was not learning a stable mapping from SAR geometry to height.

Results

Measured outcomes:

On held-out test data, the final model achieved an RMSE of 3.04 m, MAE of 1.68 m, R² of 0.8467, and relative error of 2.85%. Errors and predictive variance were higher around building edges, dense high-rise areas, and regions affected by SAR layover and shadowing.

Comparison of Digital Surface Models

SAR intensity, ground-truth DSM, height prediction, and uncertainty map comparison on test data
Figure 4. Qualitative comparison on held-out test data showing SAR intensity, ground-truth DSM, prediction, and uncertainty map.

Before and after comparisons:

Diffusion improved results only after the regression model produced a meaningful mean prediction:

  • Weak baseline: The initial regression model had a test R² near zero, and diffusion improved R² by only about 0.01.

  • Enhanced model: Across the 126-patch evaluation subset, regression achieved an R² of 0.923, and diffusion improved it to 0.970. For the displayed patch, R² increased from 0.692 to 0.804.

Abu Dhabi stitched-scene uncertainty analysis

Abu Dhabi stitched-scene predictive variance map showing lower uncertainty over water and low-rise areas
Figure 5. Across a stitched Abu Dhabi scene, predictive variance was lower over water-dominated and low-rise areas and higher in dense urban regions, helping focus analyst review.

Out-of-distribution behavior

Dubai airport scene showing elevated model uncertainty over unfamiliar roofs and open areas
Figure 6. In a Dubai airport scene excluded from training, the model produced higher uncertainty around unfamiliar roofs and open areas, flagging those regions for analyst review.

Lessons Learned

Strategies for success

  • Build the mean predictor first: Establish a stable mean DSM predictor before training the residual diffusion model. Geometry-aware context and regularization gave diffusion a meaningful prediction to refine.

  • Avoid geometry misalignment: Misalignment teaches the model an incorrect relationship between SAR features and surface height. Instead, train against a reference DSM that has been projected into radar geometry.

  • Test beyond the training geography: Use geographically distinct scenes to evaluate uncertainty under difficult or unfamiliar conditions. This helps reveal whether the uncertainty signal remains useful beyond the training locations.


Acknowledgements

Many thanks to Younes Abid, Pavan Muguda Sanjeevamurthy, Naseema B Shyju, Emmanuel Fall, Vincent Markiet, Lucas Gaspare Traina, Artur Jach, Yuliya Tarabalka, Prashanth Reddy Marpu, and Javier Marin at Space42, as well as Jussi Leinonen and Farah Hariri at NVIDIA, for their contributions to the research and development at Space42 and the writing of this case study.