TL;DR
Traditional GeoAI evaluation metrics treat prediction errors point-wise, completely ignoring their spatial layout and real-world operational consequences. This paper introduces GeOT, a framework that leverages Optimal Transport (OT) to quantify the actual relocation or resource allocation costs associated with spatio-temporal prediction errors. By using this metric as a loss function during training, deep learning models can significantly improve spatial accuracy with minimal impact on standard error metrics.
What Problem Does This Paper Address?
In geospatial applications—such as predicting bike-sharing demand, wildfire spread, or traffic congestion—where an error occurs matters just as much as how big it is.
Standard metrics like Mean Squared Error (MSE) or Mean Absolute Percentage Error (MAPE) evaluate predictions independently at each location. For instance, in weather forecasting, mislocating a rain shower by 50 km results in the same MSE penalty as mislocating it by 5 km, provided the point-wise error magnitudes are identical. However, the real-world operational impact and relocation costs are vastly different. This disconnect creates a major mismatch between how models are evaluated and their practical utility.
Methods
The authors propose GeOT, a framework based on Optimal Transport (OT)—specifically the Wasserstein distance (also known as Earth Mover's Distance)—to measure the disparity between predicted and true spatial distributions.
The core methodology consists of:
- Geospatial OT Error ($W_c^{geo}$): This metric calculates the minimal cost required to shift predicted "mass" (e.g., predicted bike demand) to align with the ground truth based on a user-defined cost matrix $C$ (such as Euclidean distance or map-matched driving distance).
- Partial Optimal Transport: Because predictions and actual observations rarely sum to the exact same total mass, the authors introduce a "dummy point" formulation. This penalizes overall mass imbalances with a fixed cost ($\phi$) while allowing the rest of the mass to be spatially distributed.
- Sinkhorn Loss for Training: To use OT as a loss function in neural networks, the authors employ entropic regularization (Sinkhorn divergence). This makes the objective differentiable, allowing backpropagation. They test this by training a state-of-the-art time-series model (N-HiTS).
Datasets
The framework was validated across several synthetic and real-world datasets:
- Synthetic Data: Generated to systematically control spatial imbalance and analyze the relationship between OT error and spatial autocorrelation.
- BIXI Bike Sharing (Montreal): Demand data from 458 stations aggregated hourly.
- US County Mortality Rates (2012): Lung and Bronchus Cancer mortality data across 666 counties in the eastern United States.
- EV Charging Station Occupancy (France): Plug occupancy data across 83 stations.
- PEMS Traffic Flow (California): Traffic flow values extracted from 163 freeway sensors.
Key Insights and Ideas
- Direct Operational Meaning: Unlike abstract statistical errors, GeOT translates prediction errors into interpretable real-world metrics, such as the total kilometers or monetary cost required to rebalance a bike-sharing fleet.
- Bridging Metrics and Spatial Statistics: The authors demonstrate that GeOT strongly correlates with Moran’s I (a classic measure of spatial autocorrelation) but improves upon it by explicitly factoring in error magnitudes and transport distances.
- Resolving the Scale Problem (MAUP): GeOT enables asymmetric comparisons across different spatial scales. For example, it can evaluate cluster-level predictions directly against fine-grained station-level observations by treating cluster centers as distribution hubs—an analysis impossible with standard MSE.
Key Results
- Model Selection: On the cancer mortality regression task, GeOT successfully identified Geographically Weighted Regression (GWR) and Random Forest as superior models because they effectively minimized the spatial clustering of residuals, whereas standard linear models left highly correlated spatial errors behind.
- Spatially Smarter Training: Training neural networks with the Sinkhorn loss substantially reduced spatial transport costs across all datasets with only a negligible penalty to standard MSE. For the bike-sharing dataset, the relocation distance dropped from 161.5 km (MSE loss) to 135.7 km (Sinkhorn loss)—a 16% reduction in operational relocation costs—while the MSE only ticked up from 1.24 to 1.26.
Limitations and Future Work
- Non-negative Constraint: Standard OT requires non-negative values, meaning datasets containing negative values must be scaled or transformed before evaluation.
- Hyperparameter Sensitivity: The mass imbalance penalty ($\phi$) requires careful tuning. A small $\phi$ prioritizes spatial distribution accuracy, while a large $\phi$ focuses on minimizing total mass error. The authors suggest setting it to the maximum value of the cost matrix as a baseline.
- Computational Complexity: Computing the Sinkhorn loss is roughly 40 times slower on CPU than standard MSE. While it scales linearly and remains feasible for up to 1,000 locations, it poses challenges for massive datasets like high-resolution remote sensing imagery.
Future work includes extending the framework to handle unified space-time cost matrices to evaluate temporal and spatial shifts simultaneously.
Summary updated