Virtual Smart Metering in District Heating Networks via Heterogeneous Spatial-Temporal Graph Neural Networks
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: I'm Tom, and with me are Jane, Lu, senior AI researcher at Tsinghua, Meng, lead engineer at a mysterious AI startup and Lalam, the in-house Large Language Model.
Jane: Today's paper: "Virtual Smart Metering in District Heating Networks via Heterogeneous Spatial-Temporal Graph Neural Networks".
Tom: The gist: A heterogeneous spatial-temporal graph neural network (HSTGNN) is proposed to construct virtual smart heat meters by incorporating functional relationships and dedicated branches for flow, temperature,
Jane: First, who's behind it and why it matters.
Title and authors: Tom: Moving into how they got there, we’re looking at the title "Virtual Smart Metering in District Heating Networks via Heterogeneous Spatial-Temporal Graph Neural Networks". It really tells you this is a system designed to create smart meters where the data isn't perfect.
Jane: So, it’s not about replacing every single sensor with a perfect one; it’s about using AI to fill in the gaps and reconstruct what those meters are showing, based on the overall network behavior.
Lu: The heterogeneity part is key because they aren't treating flow, temperature, and pressure all the same way; they give each one its own specialized processing pipeline within that graph neural network setup.
Meng: That specialization implies that the dynamics of pressure changes are fundamentally different from how temperature fluctuates over time in this system. How does the architecture actually enforce that distinction?
Lalam: It seems they use separate Gated Recurrent Units, or GRUs, for each sensor type to capture those distinct temporal dynamics before everything merges into a single spatial graph interaction.
Tom: Right, so we have these specialized time models first, and then they feed that into a larger structure where cross-variable interactions happen. That’s how they tackle the complexity of the system's physics.
The paper's summary: Jane: The paper summarizes that because district heating systems are often sparsely instrumented and measurements can be asynchronous or noisy, existing data-driven methods struggle because they usually expect dense, perfectly synchronized data.
Tom: That’s the problem they set out to solve. They propose this HSTGNN framework as a way to achieve sufficient observability without needing every single sensor to report data at the exact same moment.
Lu: The summary emphasizes that virtual sensing offers a cost-effective path to enhance observability, which is important because deploying extensive new hardware in these networks can be very expensive and difficult.
Meng: So the paper suggests this approach is a way to get better operational understanding economically by modeling the system intelligently rather than just relying on dense sensor coverage.
Lalam: It really shows how AI can bridge that gap between limited physical sensing and the need for high-fidelity state estimation in critical infrastructure like heating networks.
Tom: So, essentially, they are taking sparse data and using a sophisticated spatial-temporal graph model to estimate the true state of every point in the network. That’s a heavy lift.
The paper's improvements: Jane: The authors highlight that their main improvement is explicitly accounting for functional relationships inherent in district heating networks, which means they aren't just treating inputs and outputs as isolated numbers.
Tom: They also point out the strength of their cross-type interaction mechanism, where they use a self-attention layer across the unified graph to let sensors look at each other’s information directly.
Lu: That self-attention is what allows them to learn those specific dependencies, like how a pressure change directly relates to flow variation, which goes beyond just looking at neighbors in a fixed map.
Meng: And they also show that they can learn the graph structure itself from the data by associating edges with learnable scores, which means the model isn't stuck with an assumed physical layout of the pipes.
Lalam: That flexibility—learning both temporal dynamics and spatial relationships while allowing those interactions to be learned dynamically—is what makes this method so adaptable to real-world scenarios.
Conclusion: Tom: So, wrapping up the discussion on "Virtual Smart Metering in District Heating Networks via Heterogeneous Spatial-Temporal Graph Neural Networks," the paper shows a way to handle sensor sparsity and heterogeneity by using a specialized three-branch model that learns how different measurements interact across time and space.
Jane: It moves beyond just looking at single variables by modeling the whole system, which is crucial for improving energy efficiency and reliability in these complex heating systems.
Lu: The controlled laboratory dataset they used helps ground the theoretical framework with real, synchronized data under varied operating conditions, which is a big step for validation.
Meng: What this means practically is that we can potentially gain better predictive control over network states even when we can't monitor every single component constantly.
Lalam: This work demonstrates how AI can handle the messy reality of physical systems by building models that are robust to incomplete and inconsistent sensor information, which could improve many industrial monitoring applications.
Intelligent Maintenance and Operations Systems Lab. · Department of Electronic Systems, Aalborg University · Grundfos Holding A/S
cs.LG, cs.AI, cs.SY, eess.SY
Submitted: 2026-04-11
Updated: 2026-10-08
Comments: Accepted to Energy and Buildings
DOI: 10.1016/j.enbuild.2026.118351
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
Importance score: 87/100
The gist: The gist: A heterogeneous spatial-temporal graph neural network (HSTGNN) is proposed to construct virtual smart heat meters by incorporating functional relationships and dedicated branches for flow,
Key concepts
- Heterogeneous Spatial-Temporal Graph Neural Network (HSTGNN)
- This is a specialized neural network designed to handle data from different types of sensors (heterogeneous) that change over time (temporal) across a network structure. It learns how measurements at different points in the network relate to each other both spatially and chronologically, allowing it to model complex system behaviors.
- Three-Branch Architecture
- The model uses three distinct processing paths, one dedicated branch for flow sensors, one for temperature sensors, and one for pressure sensors. Each branch learns the specific temporal patterns and graph structures relevant only to its particular sensor type before combining them for final prediction.
- Cross-Type Interaction via Self-Attention
- After processing each sensor type separately, all resulting nodes are merged into one unified graph. A self-attention mechanism is then applied across this unified structure. This allows the model to learn how different variables influence each other—for example, how pressure readings affect flow dynamics—capturing complex cross-variable dependencies.
Terminology
Summary
The gist: A heterogeneous spatial-temporal graph neural network (HSTGNN) is proposed to construct virtual smart heat meters by incorporating functional relationships and dedicated branches for flow, temperature, and pressure measurements to achieve joint modeling of cross-variable and spatial correlations.
Motivation
Intelligent operation of thermal energy networks aims to improve energy efficiency, reliability, and operational flexibility through data-driven control, predictive optimization, and early fault detection Achieving these goals relies on sufficient observability, requiring continuous and well-distributed monitoring of thermal and hydraulic states District heating systems are typically sparsely instrumented and frequently affected by sensor faults, limiting monitoring Virtual sensing offers a cost-effective means to enhance observability without extensive hardware deployment Existing data-driven methods generally assume dense synchronized data, while analytical models rely on simplified hydraulic and thermal assumptions that may not adequately capture the behavior of heterogeneous network topologies The lack of publicly available benchmark datasets hinders systematic comparison of virtual sensing approaches.
Model Architecture
The proposed HSTGNN is a three-branch heterogeneous spatial-temporal graph neural network that learns dedicated graph structures and temporal dependencies for each sensor modality. The model incorporates functional relationships inherent in district heating networks and employs dedicated branches to learn graph structures and temporal dynamics for flow, temperature, and pressure measurements. Each branch follows the same processing pipeline: (i) input encoding with sensor-specific information, (ii) temporal modeling at the sensor level, and (iii) spatial modeling using a learned graph. Input encoding involves projecting measurements into a higher-dimensional hidden space using a linear transformation and adding learnable node embeddings associated with each sensor Temporal modeling uses Gated Recurrent Units (GRUs), where sensors of the same type share the same GRU parameters, resulting in one GRU per sensor type. Spatial modeling is achieved using a diffusion-based graph convolution (DGC) that propagates information across the learned graph and allows each sensor to incorporate information from its neighbors.
Cross-Type Interaction
After intra-type processing, all sensor nodes are combined to form a single, unified graph in which every node can interact with nodes of other sensor types. To capture cross-type dependencies, the model applies a self-attention mechanism across this unified graph. This attention layer allows each sensor to selectively attend to other sensors, learning interactions such as how pressure and flow sensors influence one another. The final representations are aggregated into a single feature vector and passed through a linear decoder to produce the predictions.
Dataset and Evaluation
The study introduces a controlled laboratory dataset collected at the Aalborg Smart Water Infrastructure Laboratory, providing synchronized high-resolution measurements of flow, temperature, and pressure under representative operating conditions. The datasets consist of four distinct operating periods defined by different combinations of fan speeds and a control strategy to introduce further variability in the thermal conditions. Performance is evaluated using Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE) across multiple datasets, demonstrating that the proposed HSTGNN consistently outperforms existing baselines. The ablation study confirms that the joint modeling of flow and temperature is essential for accurate inference, while pressure provides additional but comparatively moderate improvements.
Conclusion
The proposed HSTGNN framework effectively leverages complementary information from different sensor types by explicitly accounting for heterogeneous sensor behavior in district heating networks. The extensive evaluation results demonstrate that the proposed method consistently outperforms a range of baseline models. This work is significant because it addresses the challenges posed by sparse instrumentation and provides a reproducible benchmark for future studies through the controlled laboratory dataset. The proposed architecture has some limitations, suggesting that future work should focus on introducing more flexible branch designs and validating the approach in larger operational networks.
How it works
The HSTGNN model is designed to infer unobserved sensor measurements by leveraging the spatial and temporal dependencies inherent in the system. The node set V is partitioned into three disjoint subsets according to sensor type: temperature sensors denoted by Vtemp, pressure sensors by Vpress, and flow sensors by Vflow. Temporal dependencies are captured using sliding windows of length T for each sensor type, with the objective being to learn a mapping from the windowed inputs to the target vector yˆt.
Key Components
The model architecture explicitly accounts for heterogeneous sensor types through three dedicated branches, one for each physical measurement type. Each branch processes its respective sensor type using a GRU to capture local temporal behavior before spatial aggregation. The graph structure within each branch is learned directly from data by associating edges with learnable scores ϕij, allowing for a sparse and learned graph structure.
Performance Insights
Empirical evaluation across four datasets demonstrates that methodologies combining temporal modeling with graph-based spatial modeling (GRU-GCN and HSTGNN) outperform other baselines. The proposed HSTGNN exhibits superior performance for thermodynamic variables, achieving the lowest errors for both inlet and outlet temperatures while GRU-GCN remains competitive for flow rate prediction on certain smart meters. The ablation study confirms that the joint modeling of flow and temperature is essential for accurate inference, while pressure provides additional but comparatively moderate improvements.
Contribution
The main contributions of this work are:
• A three-branch heterogeneous spatial-temporal graph neural network that learns dedicated graph structures and temporal dependencies for each sensor modality.
• A controlled laboratory dataset with synchronized flow, temperature, and pressure measurements, specifically designed for virtual sensing in district heating networks.
• A comprehensive evaluation demonstrating that the proposed framework consistently outperforms conventional machine learning methods, and homogeneous STGNN baselines.
References
[1] D. Connolly, H. Lund, B. V. Mathiesen, S. Werner, B. Möller, U. Persson, T. Boermans, D. Trier, P. A. Østergaard, S Nielsen <ref:2604.10166#pg3>
[2] H Lund, S Werner <ref:2604.10166#pg4>
[3] S Werner <ref:2604.10166#pg4>
[4] A Hast, S Syri, V Lekavičius, A Galinis <ref:2604.10166#pg6>
[5] P Kadlec, B Gabrys, S Strandt <ref:2604.10166#pg9>
[6] E Saloux, K Zhang <ref:2604.10166#pg10>
[7] S Yoon, Y Choi, J Koo, Y Hong <ref:2604.10166#pg9>
[8] Q Sun, Z Ge <ref:2604.10166#pg10>
[9] O Fink, I Nejjar, V Sharma <ref:2604.10166#pg10>
[10] C D Petersen, R Fraanje <ref:2604.10166#pg8>
[11] K F Niresi, L Kuhn, G Frusque <ref:2604.10166#pg8>
[12] K F Niresi, H Bissig, H Baumann <ref:2604.10166#pg8>
[13] M Jin, H Y Koh, Q Wen <ref:2604.10166#pg9>
[14] Y Liang, G Huang, Z Zhao <ref:2604.10166#pg9>
[15] Z Li, L Ye, X Song <ref:2604.
Improvements for AI systems
-
The HSTGNN can perform joint reconstruction of unobserved sensor readings by
exploiting both cross-variable dependencies and network-level spatial correlations,
enabling it to infer missing smart meter values with high accuracy across heterogeneous modalities. -
The system can achieve superior prediction performance compared to baselines, as demonstrated by the claim that the proposed method
consistently outperforms conventional machine learning methods, and homogeneous STGNN baselines.
-
The model can capture modality-specific dynamics by using a
three-branch heterogeneous spatial-temporal graph neural network that learns dedicated graph structures and temporal dependencies for each sensor modality,
addressing the challenge ofdistinct physical dynamics and coupling patterns
between flow, temperature, and pressure measurements. -
The HSTGNN can learn complex inter-sensor relationships through a mechanism that allows it to
selectively attend to other sensors, regardless of type,
specifically learninghow different physical quantities influence one another.
-
The system can be robust against data scarcity by being trained on a controlled laboratory dataset collected at the Aalborg Smart Water Infrastructure Laboratory, which provides
synchronized high-resolution measurements representative of real operating conditions.
-
The framework can adapt to unknown network structures by modeling spatial dependencies directly from data, as it
associate[s] each possible edge within a sensor type with a learnable score ϕij,
moving beyond assumptions about fixed topologies.
Abstract
Intelligent operation of thermal energy networks aims to improve energy efficiency, reliability, and operational flexibility through data-driven control, predictive optimization, and early fault detection. Achieving these goals relies on sufficient observability, requiring continuous and well-distributed monitoring of thermal and hydraulic states. However, district heating systems are typically sparsely instrumented and frequently affected by sensor faults, limiting monitoring. Virtual sensing offers a cost-effective means to enhance observability, yet its development and validation remain limited in practice. Existing data-driven methods generally assume dense synchronized data, while analytical models rely on simplified hydraulic and thermal assumptions that may not adequately capture the behavior of heterogeneous network topologies. Consequently, modeling the coupled nonlinear dependencies between pressure, flow, and temperature under realistic operating conditions remains challenging. In addition, the lack of publicly available benchmark datasets hinders systematic comparison of virtual sensing approaches. To address these challenges, we propose a heterogeneous spatial-temporal graph neural network (HSTGNN) for constructing virtual smart heat meters. The model incorporates the functional relationships inherent in district heating networks and employs dedicated branches to learn graph structures and temporal dynamics for flow, temperature, and pressure measurements, thereby enabling the joint modeling of cross-variable and spatial correlations. To support further research, we introduce a controlled laboratory dataset collected at the Aalborg Smart Water Infrastructure Laboratory, providing synchronized high-resolution measurements representative of real operating conditions. Extensive experiments demonstrate that the proposed approach significantly outperforms existing baselines.
Sources
- From Physics to Machine Learning and Back: Part II - Learning and Observational Bias in PHM
- Heterogeneous Graph Neural Networks for Short-term State Forecasting in Power Systems across Domains and Time Scales: A Hydroelectric Power Plant Case Study
- Relational Conformal Prediction for Correlated Time Series
- Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: Local-Consistency Optimisation for Bayesian Neural Networks
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks