arXiv:2608.25698cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25698

Modeling spatio-temporal locality in multi-step forecasting of geo-referenced time series

Annunziata D'Aversa, Gianvito Pio, Michelangelo Ceci

Abstract

Forecasting future measurements from geographically distributed sensors is essential across many application domains. However, the spatial distribution of these sensors raises multiple challenges, primarily due to spatial autocorrelation phenomena, that introduce inter-dependencies among nearby locations, that cannot therefore be treated independently by learning algorithms. While some existing approaches can capture such phenomena, they generally model the spatial dimension globally across all locations. On the other hand, the method we propose in this paper, called SPALT, focuses on capturing spatial relationships specifically among time series with similar trends, even if these trends occur at different times, thus modeling the spatio-temporal locality. SPALT leverages linear model trees, which allow us to naturally consider the spatial autocorrelation in a local manner: during the tree-building process, the adopted heuristics aim to group time series exhibiting similar trends into the same node, on which additional features considering the spatial dimension are selectively injected. Additionally, we propose a new pruning strategy, based on Reduced Error Pruning (REP), that also considers the spatio-temporal locality during the tree simplification. Designed for a multi-step setting, SPALT provides forecasts for multiple future time steps across multiple sensors simultaneously. The characteristics exhibited by SPALT can provide significant benefits in different domains, where measurements come from geographically distributed sensors. In this paper, we focus on data produced by sensors located in multiple renewable power plants measuring their energy production at regular, short intervals. Experiments on three real-world datasets demonstrate the effectiveness of SPALT in forecasting the production of energy at different time horizons, and its superior performance in comparison with tree-based models and state-of-the-art neural networks that incorporate both temporal and spatial dimensions.

Keywords Linear model trees · Spatial autocorrelation · Time-series forecasting · Renewable energy forecasting

Editors: Riccardo Guidotti, Anna Monreale, Dino Pedreschi..

Extended author information available on the last page of the article

Page 2 of 32

Machine Learning (2025) 114:231

1 Introduction

In recent years, the generation of time series data from sensor networks has grown exponentially across several domains. Sensor networks are groups of distributed sensors that track environmental conditions across multiple locations. Continuous data generation allows real-time analysis of patterns and anomalies, as well as the forecasting of future trends. Forecasting the future measurements of multiple geolocated sensors is particularly relevant in several domains, such as (i) transportation, where forecasting traffic conditions allows for alleviating congestion and optimizing transportation systems, or (ii) weather conditions, which forecasting can be useful for public safety from high-impact meteorological events such as flash floods and thunderstorms. Another relevant domain is that of renewable energy, which is the main focus of this paper. In such a domain, predicting the energy produced by power plants allows planning network interventions and optimizing energy distribution.

Although physical models have long been used in the literature (see weather forecasting), machine learning methods can be employed for building predictive models from historical measurements. Indeed, the adoption of such computational methods is continuously gaining importance in real-world applications, where different kinds of models are adopted, such as autoregressive models (Aasim et al., 2019; Bacher et al., 2009), models learned by machine learning algorithms (Hu et al., 2016; Li et al., 2020; Luo et al., 2021), and hybrid models (Jiang et al., 2017). However, one aspect that physical models exploit more effectively than machine learning methods is the spatial position of geo-located sensors. Actually, the spatial dimension is crucial because it may introduce spatial autocorrelation phenomena, which refer to dependencies that may exist among observations at nearby geographical locations. Specifically, spatial autocorrelation is based on the principle that spatial closeness can influence the measurements: the Tobler's first law of geography (Tobler, 1970) states that "everything is related to everything else, but near things are more related than distant things". In other words, spatial proximity among sensors can influence the measurements, due to similar conditions (e.g. environmental, meteorological, and topographical conditions) in which they operate. For instance, solar irradiance sensors in close proximity are influenced by cloud cover and local atmospheric conditions, while sensors clustered in a residential neighborhood may all be characterized by the same consumption patterns. Although this phenomenon is well-recognized in spatial data mining for classification and regression tasks (Stojanova et al., 2011), there are only a few studies in the literature that propose forecasting methods accounting for the spatial dimension when analyzing geo-referenced time series (Dowell & Pinson, 2015; Agoua et al., 2018; Li et al., 2023; Khodayar & Wang, 2019; Altieri et al., 2024).

Another crucial aspect to consider when constructing forecasting models is that real-world time series generated by sensor measurements often show a combination of linear and non-linear trends, even at nearby locations. A pertinent example involves measurements influenced by localized weather conditions: a time series generated by a wind power plant situated on a mountain may show non-linear trends absent in the time series of a wind power plant in a nearby valley (or vice versa), despite their spatial proximity. Therefore, capturing both linear and non-linear trends, along with the exploitation of historical data and spatial information, should in principle lead to more accurate predictions. From a methodological perspective, unlike most current time series forecasting methods (Kim et al., 2015; Karaahmetoglu & Kozat, 2020), our approach captures both linear and non-linear phenomena by

Page 3 of 32 231

considering the spatial dimension. We achieve this by proposing an algorithm that learns a specific type of linear model tree. Notably, instead of modeling spatial information globally across all locations, our method focuses on capturing spatial information among instances with similar trends, modeling what we refer to as spatio-temporal locality. An additional important aspect in time series forecasting is the temporal resolution. Indeed, in the literature, we can find approaches that analyze data ranging from coarse temporal resolutions (e.g., daily, monthly, or yearly measurements) to fine temporal resolutions (e.g., on an hour-by-hour or minute-by-minute basis), in which case they are also referred to as nowcasting approaches (Zhang et al., 2018).

In several situations, a fine temporal resolution is accompanied with the need to make the prediction for multiple time steps ahead simultaneously. Some relevant examples come from the energy field: in the electricity market, hour-by-hour predictions are usually needed for the next day (Ceci et al., 2017); in the context of the optimization of the energy distribution, predicting the production of renewable plants is needed for multiple time steps (usually, up to 18) in the future, at a resolution of few minutes. Therefore, the method proposed in this paper will aim to work in the multi-step learning setting.

The method we propose also comes with a novel model simplification strategy inspired by the Occam’s principle, which suggests that simple models should be preferred over complex ones when they achieve a similar generalization error (Domingos, 1999). For tree-based models, pruning strategies or early stopping criteria are usually adopted to simplify the model in terms of the number of nodes (Quinlan, 1987). In this work, we propose a novel pruning strategy that leverages the concept of spatio-temporal locality, based on the Reduced Error Pruning (REP) (Quinlan, 1987).

The focus of our experimental evaluation will be the prediction of the energy produced by renewable power plants. Specifically, we aim at learning nowcasting models capable of predicting the energy production for 6, 12 or 18 future time steps, at a fine temporal granularity (from 5 to 15 min, according to the available data). This application domain is motivated by the fact that models able to forecast the energy production play a fundamental role. In long-term scenarios, they can support planning interventions on the network, aiming not only to decrease production costs but also to contribute to the reduction of greenhouse gas emissions. In short-term scenarios, the forecasting of energy production can be useful for performing real-time load balancing actions, including powering on backup plants or drawing energy from customers' accumulators, as well as determining the final electricity clearing price for the energy market in advance.

In summary, the main contributions of this paper are:

  • a novel strategy that captures and models the spatial relationships between instances exhibiting similar trends, capturing the spatio-temporal locality within a model able to consider both linear and non-linear dependencies;

  • an innovative pruning strategy that leverages the concept of spatio-temporal locality, based on the Reduced Error Pruning (REP), to avoid potential model overfitting as well as to reduce model complexity;

  • a thorough time complexity analysis, also demonstrating that the consideration of spatio-temporal locality does not alter the time complexity of the underlying learning algorithms;

  • a thorough experimental evaluation on three real-world datasets, demonstrating the ef-

Page 4 of 32

Machine Learning (2025) 114:231

fectiveness of the approach in forecasting energy production of geographically distributed renewable power plants;

  • a comprehensive ablation study that assesses the contribution of modeling spatio-temporal locality within linear model trees, and of the proposed pruning strategy, in terms of forecasting errors and model complexity.

The remainder of the paper is organized as follows: Sect. 2 briefly describes the related work. In Sect. 3, we describe in detail the proposed method. In Sect. 4, we describe our experimental evaluation and the obtained results. Finally, Sect. 5 concludes the paper and outlines future work.

References (41)