arXiv:2611.05164cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05164

Basin2Vec: Learning Basin-Centric Embeddings for Scalable Hydrological Modeling

Muhammad Talha, Xiaofeng Liu, Yuan Yang, Pang-Ning Tan, A. Pouyan Nejadhashemi

Abstract

Reliable streamflow prediction across time and in ungauged basins requires representations that capture hydrologically relevant basin characteristics. Existing methods rely on either fixed handcrafted attributes or general-purpose Earth observation embeddings not tailored to basin structure. We introduce Basin2Vec, a self-supervised framework that learns compact basin representations from hydroclimatic and physiographic data without observed streamflow. Basin2Vec organizes representation learning around basin scale and relationships across space and time. Across multiple forecasting architectures, it consistently outperforms predefined attributes and general-purpose geospatial embeddings in temporal generalization and zero-shot spatial transfer. Basin2Vec provides average relative gains of up to 8.3% temporally and achieves 3.5× the median predictive performance of the strongest baselines on unseen basins. These results demonstrate the effectiveness of basin-centric pretraining for transferable hydrologic prediction. Code is available at https://github.com/Muhammad-Talha-MT/basin2vec.

1 Introduction

Streamflow, or river discharge, is the volume of water passing through a river cross-section per unit time. Accurate streamflow prediction is critical for flood forecasting, drought monitoring, and water resources planning. However, streamflow observations are available at only a limited and unevenly distributed network of gauging stations [6, 30, 35]. Therefore, hydrological models must generalize in two ways: temporal generalization, in which they predict future streamflow in basins seen during training, and spatial generalization, in which they predict streamflow in basins that were not used for training [10, 18]. Accurate prediction in both settings requires a robust basin representation. In particular, the representation must capture the dynamic meteorological inputs, such as precipitation and temperature, along with a static basin descriptor that distinguishes characteristics of the target basin from others. Such a descriptor must summarize the factors governing how a basin converts weather into streamflow, including climate, terrain, soils, land cover, subsurface properties, and drainage area [1, 8, 24, 34]. An informative basin representation is particularly important for spatial generalization because it enables the model to identify similarities and differences between observed and previously unseen basins.

Regional streamflow models commonly represent each basin as a fixed-length feature vector derived from datasets such as CAMELS and GAGES-II [1, 8, 9, 19]. While these compact attributes may summarize the spatial characteristics of the basin using statistics such as mean elevation or forest fraction, they do not capture the spatial variation of these characteristics within the basin, causing the downstream models to be oblivious to their spatial heterogeneity. Gridded datasets such as CAMELS-SPAT preserve this information but introduce high-dimensional spatial inputs [17]. This motivates learning compact representations directly from basin-aligned geospatial data.

Table 1: Comparison of basin representations across three design requirements. Scores indicate High, Moderate, or Low support.

ApproachBasin-indexedSpatial & scale-awareHydrologic relation-aware
CAMELS Attr. [1]●●●●●●●●●
AlphaEarth [5]●●●●●●●●
TESSERA [11]●●●●●●●●●
SatCLIP [16]●●●●●●●●●
Basin2Vec (Ours)●●●●●●●●●

●●● High ●●● Moderate ●●● Low

General-purpose Earth observation (EO) embeddings provide reusable representations of satellite observations and geographic locations [5, 11, 16]. However, they are pretrained on pixels, image patches, or coordinates rather than drainage basins, requiring post hoc aggregation to construct basin descriptors. Moreover, their pretraining objectives do not explicitly encode physical basin scale or hydrologically meaningful relationships among basins.

Together, these limitations motivate three design requirements for basin-centric representation, as summarized in Table 1. First, the representation should be basin-indexed, meaning that its entities correspond to drainage basins rather than individual pixels or coordinates. Second, the learned embeddings must be spatial- and scale-aware, meaning that it learns from within-basin spatial inputs while retaining information about physical basin scale. Finally, it should be hydrologic relation-aware, meaning that the learned embedding geometry reflects the hydrological and physiographic relations among the basins.

To meet these requirements, we introduce Basin2Vec. Our contributions are threefold. (1) We formulate basin-centric self-supervision around a basin-year entity, producing reusable descriptors from gridded hydroclimatic and physiographic data without observed streamflow. (2) We propose a scale-aware encoder that preserves spatial and physical-scale information, together with a relation-aware contrastive objective that models temporal, overlapping, and nested basin relationships. (3) We evaluate the resulting descriptors with five forecasting architectures under temporal generalization and zero-shot spatial transfer. Basin2Vec consistently outperforms predefined attributes and general-purpose EO embeddings, with average relative temporal gains of up to 8.3% and 3.5×3.5\times the median predictive performance of the strongest alternative on unseen basins.

References (36)