Understanding Data Influence in Transportation Networks: A Physics-Constrained Influence-Function Framework
Authors: Hamidreza Attari, Yueyue Fan, Johannes Royset
Organizations: Department of Civil and Environmental Engineering, University of California, Davis, CA, USA · Daniel J. Epstein Dept. of Industrial and Systems Engineering, University of Southern California, CA, USA
Understanding how individual training observations influence model predictions is important for developing reliable and interpretable data-driven transportation systems. Existing influence-function methods, however, are primarily formulated for unconstrained learning and do not explicitly account for physical constraints that couple different components of a transportation network. Under such constraints, perturbing a training observation can affect model parameters and predictions only through physically feasible directions, potentially changing how its influence propagates across the network. This paper develops a hard physics-informed influence-function framework for constrained learning, in which training-data influence is characterized within the physically feasible space defined by network constraints. The analytical results reveal how physical constraints alter the magnitude, direction, and spatial distribution of training-sample influence relative to conventional influence measures. Using traffic prediction under flow-conservation constraints as a case study, we show that influential observations identified by the proposed framework differ systematically from those identified by classical influence functions. Through orthogonal decomposition, we quantitatively characterize how much of a perturbation in the training data is propagated through the network via the flow-conservation constraints and how much is removed by the constraint projection. The proposed influence framework provides a physically consistent approach for evaluating training-data influence in constrained transportation learning problems, with potential applications to data diagnostics, sensor evaluation, and targeted data collection.
Figures & tables
Physics treatment
Sensitivity / data perturbation
No sensitivity consideration
Training behavior
Post-hoc attribution
No constraint
Liu et al. (2026) Ma et al. (2015) Fu et al. (2016) Li et al. (2018) Yu et al. (2018) Guo et al. (2019) Wang and Wang (2022)
—
Koh and Liang (2017)
Soft constraint
Márquez-Neila et al. (2017) Dener et al. (2020)
Wang et al. (2022) De Ryck et al. (2024) Daw et al. (2023) Wang et al. (2023b) Lu et al. (2021) Jagtap et al. (2020)
Krasowski et al. (2026)
Hard constraint
Frerix et al. (2020) Huang et al. (2021) Wang et al. (2023a) Tordesillas et al. (2023) Konstantinov and Utkin (2023) Chen et al. (2024) Min and Azizan (2025)
—
This work
Table 1: Related work organized by how physics is handled and how sensitivity is analyzed.
Figure 1: Schematic illustration of the HardNet-Aff framework, adapted from Min and Azizan Min and Azizan (2025) . A standard neural network first maps the input x to an unconstrained prediction fθ(x) . The prediction is then passed through a differentiable constraint-enforcement layer, where the affine constraint set C(x) is defined for the given input and the projection operator P maps the raw output to a feasible point. The final projected output satisfies P(fθ)(x)∈C(x) by construction, while gradients can still be backpropagated through the projection layer during end-to-end training.
Figure 2: HardNetAff-STGNN architecture for traffic-flow prediction. The STGNN backbone learns spatial and temporal traffic patterns from loop detector data, while the hard equality projection layer enforces traffic-flow conservation to produce physics-feasible station-level predictions (figure generated in ChatGPT).
Table 2: Scaled LiSSA hyperparameters used in experiments.
Data alignment
Physical constraint alignment
Model
MAE
RMSE
R2
∣Ay−b∣
max∣Ay−b∣
Unconstrained
267.209
443.807
0.9147
121.95
536.143
HardNetAff-STGNN
263.659
439.798
0.9162
9.9×10−5
5.66×10−4
Table 3: Test set results on 318-link Sacramento PeMS network (540 test windows). Flow units: veh/hr.
Training set
Mean PIP
0.923
Median PIP
0.931
AM peak (07:00-09:00)
0.948
PM peak (16:00-18:00)
0.938
Night (22:00-05:00)
0.891
Table 4: PIP statistics for the HardNetAff-STGNN.
Figure 3: Spatial distribution of Station Sensitivity Scores (SSS) across the Sacramento PeMS network. Yellow indicates high sensitivity; dark blue indicates near-zero sensitivity. The star-shaped pattern centers on the downtown interchange where I-80, I-5, US-50, and CA-99 meet.
Figure 4: Top 30 stations by importance score under three frameworks: classic influence function on the unconstrained model (left), classic influence function on the physics-informed model (middle), and physics-informed influence function on the physics-informed model (right). Each box is a station at its rank, and each line follows the same station from one framework to the next. Colors show the freeway route. Thick flat lines mark stations with the same rank in both frameworks. Dashed lines mark stations that enter or leave the top 30; their rank outside the top 30 is shown at the bottom.
Figure 5: Top 30 stations by (a) the physics-informed influence score (SSS), (b) mean hourly traffic volume, (c) degree, and (d) betweenness centrality. Red markers show the top 30 stations of each measure; blue rings mark stations that are also in the SSS top 30. The table beside each map lists the ranking and the SSS rank of each station.
Unconstrained
Physics-informed
Holdout value
Δ (%)
Holdout value
Δ (%)
Metric
Top-10
Bottom-10
Top-10
Bottom-10
Top-10
Bottom-10
Top-10
Bottom-10
MAE (veh/hr)
383.99
263.84
+52.6
+4
389.83
265.23
+44.2
−1.87
RMSE (veh/hr)
945.92
439.26
+119
+2.1
947.53
438.90
+114.19
−0.76
R2
0.613
0.917
−33.2
≈0
0.6113
0.9166
−32
≈0
Table 5: Impact of holding out the top-10 and bottom-10 SSS stations on the unconstrained and physics-informed models. All metrics are evaluated across all stations. Δ (%) denotes the percentage change relative to the corresponding full model.