Physics-Guided Fair Graph Sampling for Water Temperature Prediction in River Networks

Erhu He, Declan Kutscher, Yiqun Xie, Jacob Zwart, Zhe Jiang, Huaxiu Yao, Xiaowei Jia

Abstract

Graph Neural Networks (GNNs) are powerful tools for modeling interconnected environmental systems like river networks. However, they often inherit and propagate spatial biases, leading to performance disparities across different socioeconomic regions. This paper introduces Physics-Guided Fair Graph (PGFG), a framework that integrates physical laws of heat transfer into the GNN sampling process. By balancing physical influence across sensitive groups, PGFG achieves equitable water temperature predictions without compromising overall accuracy.

Introduction

Predicting stream water temperature is a critical task for aquatic habitat management and water resource planning. While GNNs effectively capture spatial dependencies in river networks, standard models often exhibit significant performance gaps in low-income and low-education areas. This spatial bias arises because GNNs aggregate information from neighboring nodes, which in many river basins are socioeconomically clustered. Consequently, biased neighborhoods lead to biased predictions, potentially resulting in "environmental injustice" where policy decisions—such as water releases from reservoirs—are informed by inaccurate data for marginalized communities.

Methodology: Physics-Guided Fair Graph (PGFG)

The PGFG framework moves beyond purely data-driven fairness by incorporating domain-specific physical knowledge into the graph structure.

Quantifying Physical Influence

Rather than relying on learned weights, PGFG utilizes Partial Differential Equations (PDEs) governing heat transfer. Specifically, the advective heat flux—representing heat movement with water flow—is used to calculate a theoretical influence score between upstream and downstream segments.

Fair Edge Sampling and Architecture

The model employs an "edge modifier" that adjusts connectivity by sampling, injecting, or removing edges. This ensures that the total physical influence received by any node is balanced across different sensitive groups. For continuous attributes like education level, a density-based approach is used to maintain a balanced distribution of influence.

Overview of the PGFG architecture and the edge modification process for discrete and continuous attributes.

The system utilizes a hybrid architecture: an LSTM layer captures temporal weather patterns, while GNN layers model spatial interactions. The physics-guided modifier refines the GNN's aggregation process to break the correlation between socioeconomic status and prediction error.

Experimental Setup

The study was conducted on the Delaware River Basin (DRB), encompassing 456 stream segments across five states.

  • Data Sources: 40 years of daily water temperature and streamflow data (1980–2020).
  • Simulations: The PRMS-SNTemp model provided simulated values where real streamflow data was unavailable.
  • Socioeconomic Indicators: Median annual household income and college education levels were sourced from U.S. Census data at the subcounty level.

Results and Discussion

PGFG was evaluated against several baselines, including standard GraphSAGE and specialized fairness models like FairGNN.

Superior Fairness and Accuracy

PGFG demonstrated the lowest fairness disparity across income groups while maintaining high predictive accuracy. Unlike many fairness-preserving methods that suffer from an accuracy-equity trade-off, PGFG matched the RMSE (1.774) of unconstrained base models.

Comparison of deviation across income groups for various models, demonstrating PGFG's superior fairness.

Key Insights

  • Influence vs. Connectivity: In physical systems, the magnitude of influence (e.g., water flow volume) is more critical for fairness than the simple count of edges.
  • Physics as a Stabilizer: Physical laws provide a stable "ground truth" for interactions, which is especially beneficial in data-sparse regions often found in marginalized areas.

Conclusion

The PGFG framework successfully mitigates spatial bias in environmental modeling by leveraging physical constraints. While the current implementation relies on some simulated data, the approach shows great promise for generalization to other domains like climate modeling and power grid management. Future work will explore intersectional fairness and further refine the integration of complex physical simulations.

Summary updated

BibTeX
@inproceedings{he2025physics,
  author = {Erhu He and Declan Kutscher and Yiqun Xie and Jacob Zwart and Zhe Jiang and Huaxiu Yao and Xiaowei Jia},
  title = {{Physics-Guided Fair Graph Sampling for Water Temperature Prediction in River Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i27.35025},
}
Figure