Skip to content
Back to projects
November 2026

PI-SwinIR: Hydrology-Aware Terrain Refinement

A physics-informed Swin Transformer refines digital elevation models on a fixed 10 m grid using terrain and Earth observation data.

PyTorchSwin TransformerHydrologyEarth Observation
Sydney terrain hillshades comparing stream lines derived from PI-SwinIR in blue and LiDAR in green, from Figure 7 of the paper
On this page

Refining elevations on a fixed grid

Small elevation errors can affect where a terrain model places ridges, valleys, and flow paths. PI-SwinIR estimates elevation corrections on an existing 10 m analysis grid. It combines a Swin Transformer V2 backbone with a gated residual head and uses 11 channels derived from elevation, radar, optical imagery, roads, and spectral indices.

Training for terrain structure

The training objective combines elevation reconstruction with supervised slope, curvature, and local-flow terms. Airborne LiDAR provides the reference elevations. The local-flow objective supports terrain refinement at the patch scale.

Results and interpretation

In San Francisco, held out throughout model development, elevation RMSE was 7.2% lower than FABDEM. Signed elevation bias changed from −0.148 m to −0.566 m. The paper reports drainage agreement separately from elevation accuracy, using streams extracted from the refined and LiDAR terrain surfaces. The project image shows the Sydney comparison from Figure 7 of the CC BY 4.0 paper.

Use the project materials

Case study updated .

Interested in collaborating or have questions about this project?

Get in Touch