Next Article in Journal
Using Convolutional Neural Networks with Multiple Thermal Sensors for Unobtrusive Pose Recognition
Previous Article in Journal
Precision Angle Measurement Systems on the Basis of Ring Laser Gyro
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Temporal Aggregation Effects in Spatiotemporal Traffic Modelling

Transport and Telecommunication Institute, LV-1019 Riga, Latvia
Sensors 2020, 20(23), 6931; https://doi.org/10.3390/s20236931
Submission received: 10 November 2020 / Revised: 26 November 2020 / Accepted: 3 December 2020 / Published: 4 December 2020
(This article belongs to the Section Intelligent Sensors)

Abstract

:
Spatiotemporal models are a popular tool for urban traffic forecasting, and their correct specification is a challenging task. Temporal aggregation of traffic sensor data series is a critical component of model specification, which determines the spatial structure and affects models’ forecasting accuracy. Through extensive experiments with real-world data, we investigated the effects of the selected temporal aggregation level for forecasting performance of different spatiotemporal model specifications. A set of analysed models include travel-time-based and correlation-based spatially restricted vector autoregressive models, compared to classical univariate and multivariate time series models. Research experiments are executed in several dimensions: temporal aggregation levels, forecasting horizons (one-step and multi-step forecasts), spatial complexity (sequential and complex spatial structures), the spatial restriction approach (unrestricted, travel-time-based and correlation-based), and series transformation (original and detrended traffic volumes). The obtained results demonstrate the crucial role of the temporal aggregation level for identification of the spatiotemporal traffic flow structure and selection of the best model specification. We conclude that the common research practice of an arbitrary selection of the temporal aggregation level could lead to incorrect conclusions on optimal model specification. Thus, we recommend extending the traffic forecasting methodology by validation of existing and newly developed model specifications for different temporal aggregation levels. Additionally, we provide empirical results on the selection of the optimal temporal aggregation level for the discussed spatiotemporal models for different forecasting horizons.

1. Introduction

Traffic flow forecasting is a classic problem of transportation engineering. Recent developments in intelligent urban transportation systems led to the availability of an overwhelming amount of geospatial data, collected in modern cities by a wide network of distributed traffic sensors and tracking devices [1]. Thus, the mainstream of academic research into traffic flows shifted from univariate modelling of spatially disconnected road segments to spatiotemporal analysis, which utilizes potential dependencies between different locations [2].
Spatiotemporal traffic analysis requires careful identification of the spatial structure—a set of dependencies between traffic characteristics at neighbour or remote road segments [3]. Although modern spatiotemporal models provide various treatments for the incorporation of spatial information, the problem is still emerging for dynamic spatial environments. Since Okutani and Stephanedes [4] directed attention to spatial dependencies between traffic flows and practical utility of this information for traffic forecasting, many researchers utilized information about the spatial structure in their methodologies. Applied methodologies could be tentatively classified into two approaches, as is classical for spatial econometrics—specific-to-general and general-to-specific.
The specific-to-general approach is based on the gradual extension of univariate traffic flow models with carefully selected spatial dependencies (e.g., dependencies between the target and upstream road segments). Stathopoulos and Karlaftis [5] and Vlahogianni et al. [6] successfully utilized a spatial dependency between the target road segment and its immediate upstream neighbour for improvement of the model forecasting accuracy (time series models and neural networks respectively). This type of spatial dependency directly follows from the kinematic traffic flow theory and its discovered utility is natural. Further studies include downstream [7] or bi-directional [8] spatial dependencies between neighbour road segments. Downstream dependencies are also well theoretically supported by the back propagation of traffic congestions. The next methodological step in this direction is application of spatial econometric advances. A set of spatial dependencies is generalized in a form of a matrix of spatial weights, which contains inverse spatial dependencies between every pair observed locations. Usually, this matrix is constructed exogenously and based on geographical distances or travel times between the locations. The space–time autoregressive model (STAR), introduced by Cliff et al. [9], and its direct generalization to the space–time autoregressive integrated moving average model (STARIMA) [10], are based on exogenously provided spatial weight matrices and widely used for traffic flow forecasting [11,12] (see Elhorst [13] for a comprehensive discussion of STAR-based models and their applications). One of the main challenges for STAR-based models is a proper specification of the spatial weight matrix: spatial dependencies are naturally unstable over time in a dynamic traffic flow environment, and so spatial weights should be considered as dynamic. This issue can be solved by the application of threshold or regime-switching models [14] or models with dynamic speed-dependent spatial weights [12].
Studies that utilize the second, general-to-specific, approach start from the most general model, where spatial dependencies could potentially exist between any road segments, and gradually reduce the number of spatial links. The presence of spatial relationships between remote road segments is usually explained [2] by common traffic patterns (for example, event-specific traffic flows to the city centre from outskirts) or by the complementary nature of road segments (thus negative spatial links are also possible). The most widely used statistical implementation of this approach is the popular vector autoregressive (VAR) model [15] and its generalization to the vector autoregressive moving average (VARMA) model [16]. Several recent studies utilize the VAR model and its modifications for identification of spatial relationships in the traffic flow [11,14,17,18,19,20,21]. Despite the obvious advantages of this data-driven approach, highly dimensional VAR models suffer from an extremely large number of parameters and the overfitting problem. Overfitting is especially critical for spatial traffic flow modelling, where data series come from thousands of spatial locations (sensors).
One of emerging approaches to overcome overfitting problems of highly dimensional VAR models is limiting the number of possible dependencies using additional exogenous information or statistical techniques (regularization). VAR models, where the number of parameters is significantly limited by introduced restrictions, are called sparse. Clements and Hendry [22] showed that the forecast accuracy can be improved by imposing zero restrictions on coefficients that are close to zero even if the true data generating process has none of these restrictions. Statistical regularization (such as lasso, least absolute shrinkage and selection operator, or the elastic net) is the most widely used technique for increasing the sparsity of VAR models (for example, Kamarianakis et al. [14] applied lasso regularization to discover significant spatial links between road segments and to increase model forecasting performance). Statistical regularization can be implemented in two steps, where the first step is a correlation-based identification of spatial dependencies and the second one is the estimation of the sparse VAR model with the most significant features and lags (see [23] for a possible implementation of this approach). Recent studies [21,24,25] provided empirical evidence of the successful utilization of correlation-based sparsity for traffic flow modelling. Although statistical regularization was successfully applied in practice, direct introduction of a spatial structure looks like a more information-thrifty approach. Spatially restricted VAR models introduce zero restrictions on coefficients on the basis of an exogenously provided spatial structure. Spatial restrictions can be implemented using the same principles as spatial weights—using the distance- or travel-time-based road network topology [19,20]. Note that spatially restricted VAR models can be considered as a “softer” and more flexible way to introduce spatial dependencies—in contrast to classical spatial econometric models, where the spatial structure should be strictly defined via spatial weights, spatially restricted models define only spatial links, where a dependency could be (but is not necessary to be) discovered.
The spatiotemporal structure also plays an important role in modern deep learning models of traffic flows [26,27]. Recently developed deep learning model specifications [28,29,30,31] utilize the graph convolution technique: the models are trained for a spatiotemporal graph of relationships that appear between road segments with different temporal lags. Although identification of the most important relationships can be implemented internally (for example, using the spatiotemporal attention mechanism [32]), these advanced models also require external definition of the spatiotemporal structure.
Regardless of the learning approach chosen, the resulting spatial structure of traffic flows is complex and includes both static and dynamic components—it strongly depends on the road network configuration and current traffic conditions. In addition, the spatial structure highly depends on the temporal aggregation level (for example, sets of spatially linked locations are completely different for 1 min and for 5 min time intervals). Within the scope of this research, we stress that the structure of spatial dependencies strongly depends on a selected temporal aggregation level. For example, if we consider travel times between road segments as a metric for spatial weights’ construction, first-order neighbour segments will be completely different for 1 and 5 min temporal aggregation levels. Thus, the problem of temporal aggregation plays a critical role for introducing the spatial structure into traffic flow models. The importance of temporal resolution for traffic flow modelling is repeatedly accentuated by Vlahogianni et al. [33,34,35]. Analysis of temporal aggregation effects has a long history in the literature on forecasting methodology, but is still emerging [36]. Early [37,38,39,40] and recent [41,42] methodological studies provided treatments for temporal aggregation of univariate time series models. Temporal aggregation of multivariate models is also well covered in the theoretical literature [43,44,45]; in particular, Breitung and Swanson [44] provided theoretical evidences for a dependence between Granger causal relationships and temporal aggregation of multivariate time series. These studies generally advise using disaggregated data for model estimation to prevent losses of information and increase forecasting performance. Although advantages of temporal aggregation have no theoretical support, several recent studies [46,47,48,49,50] provide empirical evidence of the better forecasting performance of models, estimated on the basis of aggregated data. Kourentzes [48,51] explained these empirical findings by easier identification of different time series components using different temporal aggregation levels (i.e., trends could be more easily identified for aggregated data, where random disturbances have lower impact). This argument is important in the context of this research, because we expect that the structure of spatial dependencies has positive forecasting accuracy effects for specific aggregation levels only.
Although the importance of temporal aggregation was highlighted by several recent studies in the traffic forecasting domain (e.g., Vlahogianni and Karlaftis [35]), many empirical studies that utilise spatiotemporal models are focused on a specific temporal aggregation level only. Suggesting a new methodological approach, the authors arbitrarily select a temporal aggregation level for their experimental part (i.e., 5 min time intervals for short-term forecasting) and make potentially improper generalisations of obtaining results.
Summarising the literature review, we conclude that:
  • The spatiotemporal structure of traffic flow dependencies plays an important role in the modern traffic forecasting methodology.
  • Definition of the spatiotemporal structure is a complex problem, whose solution depends on the selected level of temporal aggregation of data series, among other parameters.
  • The optimal level of temporal aggregation is subject to many problem- and case-specific factors and should be estimated empirically.
  • Despite the acknowledged importance of temporal aggregation, its role is rarely addressed in methodological literature on traffic flow forecasting.
In this research, we provide empirical evidence of the importance of temporal aggregation for estimating a forecasting accuracy of spatiotemporal models. We argue that the analysis of spatiotemporal model specifications, conducted for an arbitrary specified temporal aggregation level, can easily lead to misleading conclusions. Thus, the main research question addressed in this study is:
  • Does the temporal aggregation level play a crucial role for estimating forecasting accuracy of spatiotemporal traffic flow models? If yes—is it possible to empirically estimate the optimal temporal aggregation level, given the model specification and required forecasting horizon?
To the best of our knowledge, there are no previous studies focusing on the importance of temporal aggregation for spatiotemporal traffic forecasting models. The fact of this importance is acknowledged in recent literature, e.g., Vlahogianni and Karlaftis [35] stated that “further research is needed to determine the optimum aggregation level with respect to different transportation modelling applications”. At the same time, the majority of recent methodological studies did not include the level of temporal aggregation into a set of tuned parameters (usually, this set is limited by different forecasting horizons, definitions of the spatiotemporal structure, and model-specific hyperparameters). We state that this exclusion can lead to incorrect conclusions on models’ forecasting performance and inappropriate model selection.

2. Materials and Methods

This section contains a detailed description of the research dataset and methodology, including aspects of data pre-processing, definition of spatial structures, model specifications, and measurement of the forecasting accuracy.

2.1. Research Data

The dataset was collected by sensors deployed in the Minneapolis urban area and managed by the Minnesota Department of Transportation (MnDOT). The sensors are regular traffic detectors that include inductive loops installed in the pavement and constantly test their inductance. The inductance is raised when a massive metal object passes the loop (the sensors are tuned to identify scooters and larger vehicles), and this signal is used for traffic measurement. Sensors collect information on the traffic volume (number of cars passed the loop) and the occupancy (percentage of time when a vehicle is located in the loop). Further, these raw indicators can be used for traffic classification, estimation of traffic speed, and other traffic values. This study was purely based on raw traffic counts, reported by the sensors and aggregated to 1 min time frames. These data are publicly available and were recently utilized in several studies [21,24,52]. We utilized traffic volume data for 5 weeks (35 days) from 26 February 2017 to 1 April 2017. Data were collected from the MnDOT system with 1 min temporal aggregation, and further aggregated for 2, 3, 4, 6, and 12 min intervals.
We analysed two road network segments to discover the effects of temporal aggregation in different spatial settings. The first road network segment represents the sequential spatial structure and includes information from 8 sensors, deployed on an expressway (I-94) section without ramps and traffic lights. The segment contains 7 road connections of 5.3 km at total (757 m in average) and the speed limit of 60 mph. The road segment and corresponding weighted directed graph are presented in Figure 1.
The sequential locations of road sensors were selected as a representative of the simplest spatial structure—there is only one possible path on the corresponding road graph.
The second segment road network segment represents the complex (typical) spatial structure and includes information from 19 sensors, deployed on expressways near to the city centre. Sensors serve different directions, so have different daily patterns. The segment contains 19 road connections of 30.9 km at total (1626 m in average) and speed limits of 55–60 mph. Four sensors (S138, S288, S584, S62) represent entrances to the analysed network segment, six sensors (S123, S283, S291, S586, S557, S566) represent exits, and another ten sensors are intermediate (have both incoming and outgoing links). The road segment and corresponding weighted directed graph are presented in Figure 2.
Traffic flows within the complex spatial structure are more diverse—the number of possible paths on the corresponding road graph is 11.
The purpose of conducting analysis for two road segments is related to existing trends in spatiotemporal traffic forecasting: many earlier studies are based on the sequential settings, while recently the focus has shifted to city-wide complex road networks [3]. We tested our research hypothesis in sequential and complex spatial settings to demonstrate the importance of temporal aggregation for both of them.
Daily patterns of traffic volume at different locations are naturally similar in the sequential spatial structure, but vary in the complex one. Figure 3 represents different daily patterns at selected sensors in the complex spatial structure: S93 (intermediate on the expressway) has relatively stable loading during the day, S291 (exit to the city centre) has a morning peak, and S123 (exit in a direction, opposite to the city centre) has a higher loading during the evening hours.
We executed the research separately for original time series of traffic volume and detrended ones. Missing data were replaced by an average value of the 5-period window around the missed time point.

2.2. Data Preprocessing: Temporal Aggregation and Trend Removal

Let us define a traffic flow at a sensor location i as a counting process N i ( t ) , representing the number of vehicles that passed through the sensor during the time interval (0, t). Then, time aggregation of this process with a level Δ t (in minutes) is a time series, defined as:
y i ,   t Δ t = N i ( t Δ t ) N i ( ( t 1 ) Δ t )
In this research, we considered 6 levels of temporal aggregation, Δ t { 1 ,   2 ,   3 ,   4 ,   6 ,   12 } . The selection of these values is explained by the research problem of short-term traffic forecasting (usually researchers consider intervals up to 15 min as a short term for traffic flows) and least common multiple of values (12 min).
Due to the additivity of the counting process, time series for different temporal aggregation levels Δ t and K Δ t are linked as:
y i ,   t K Δ t = k = 0 K 1 y i ,   t k Δ t
Given a total observation time period T , the length of the aggregated time series is defined as T Δ t = T   d i v   Δ t , where d i v is the integer division operator.
Generally, traffic flow is a multi-dimensional variable, which includes traffic volume, speed, headway, and other traffic characteristics. In this research, we concentrated on the analysis of one characteristic, traffic volume. There is a large potential of the modelling of traffic flow as a multivariate variable, and the generalization of all considered models for the multivariate case is straightforward.
The time series of traffic volumes contains natural daily, weekly, and yearly trends. There is empirical evidence showing that the removal of these trends can lead to better forecasting accuracy of models [53] and easier identification of spatial correlation between sensor locations [24]. We considered both original (not transformed) and detrended time series of the traffic flow for our analysis for the reduction in trend-related findings (it is well-known that trends in time series increase the risk of spurious regressions, but, on the other hand, trends can contain information that can be potentially useful for model forecasting performance). The analysed time interval is fairly short (5 weeks), and relates to a homogeneous period (March), so we removed trends on a weekly basis. Given the number of time points v per week as V =   7 × 24 × 60 / Δ t and the number of weeks as s = T   d i v   ( 7 × 24 × 60 × Δ t ) , we estimated trends as simple average values for a specified time interval of a week at a location i:
T r e n d i , v Δ t =   1 s t = 0 s 1 y i , v + t V Δ t
and a detrended time series as
y i , t Δ t ,   r e s i d = y i , t Δ t T r e n d i , t   m o d   V Δ t
where mod is the modulo operator. We utilized a separate set of 4 training weeks before the main sample for identifying weekly trends (using of the full sample for identification of weekly trends can lead to a bias for a short training period). For longer time series, it is recommended to use differencing with lag V or seasonal exponential smoothing [14] for detrending. All further research steps were separately applied for the original and detrended traffic volumes.
Traffic patterns vary for working days and weekends. We excluded Sundays and Saturdays from the sample to reduce this source of variability.

2.3. Spatiotemporal Forecasting Models

The naïve forecasting model was used as a baseline for the model forecasting accuracy. We used basic (non-seasonal) naïve forecasts, where the last available value was used as a forecast for all forecasting horizons. The popular univariate Box–Jenkins method [54] was used as a univariate basis for forecasting accuracy comparison. The method includes specification and estimation of the autoregressive integrated moving average (ARIMA) model:
Δ d y t = h = 1 p ϕ h Δ d y t h + ε t + h = 1 q θ h ε t h
where t = 1, …,   T Δ t ; p and q are orders of autoregressive and moving average components respectively; Δ d y t is the dth order difference (stationary) of the time series y t , integrated of order d;   ϕ h and θ h are unknown model parameters; and ε t is an independent, identically normally distributed error with zero mean. The univariate model was separately applied for time series at every sensor location. An appropriate model specification was selected on the basis of Hyndman and Khandakar algorithm [55], which combines a repeated KPSS test [56] for identification of the time series order of integration and the corrected Akaike information criterion (AICc) for selection of autoregressive (p) and moving average (q) lag orders.
A univariate ARIMA model can be considered as a good benchmark, which does not take spatial dependencies into account. An opposite approach is to allow all possible dependencies between time series, without utilizing information about the spatial structure. The vector autoregressive (VAR) model is widely used to capture the linear interdependencies among multiple time series. Let Y t be a k × 1 vector ( y 1 , t , y 2 , t , , y k , t ) , where y i , t is a value at a time point t and a spatial location i, then VAR(p) model is presented as:
Y t = μ + h = 1 p Φ h Y t h + ε t ,
where Φ h is a set of k × k matrices of unknown coefficients for every lag h = 1 , , p ; μ is a k × 1 vector of constants; ε t is a k × 1 vector of i.i.d. errors with zero mean and a k × 1 vector of variances σ ε 2 . For our research datasets, VAR models with the constant term do not outperform VAR models with μ = 0 , so further we refer to VAR(p) without the constant term as VAR for brevity reasons. A set of unknown parameters of VAR(p) model includes μ ,   Φ h , and σ ε 2 , and is usually fairly large ( k 2 p + 2 k parameters). Due to the large number of parameters, VAR models suffer from the overfitting problem, which, in particular, affects their out-of-sample forecasting accuracy. Although several statistical regularization approaches (e.g., lasso [14]) can be used to reduce the number of estimated parameters, we concentrate on VAR models exogenously restricted by the spatial structure [20].
The primary object of this research is spatiotemporal models, the forecasting performance of which naturally depends on the spatial structure of the dataset. Many studies consider the physical properties of traffic flows and estimate spatial dependencies between consecutive points on arterial roads. However, the problem is more complex: different segments of a road network can be considered as complementary, and traffic flows could be relocated under specific conditions (congestion, traffic jams, etc.).
We conduct this research for two different spatial settings:
  • Sensors located on an urban arterial road without ramps and traffic lights (the sequential structure)
  • Sensors located on a typical urban road network (the complex structure)
Spatial dependencies in the sequential structure are highly expected due to the nature of traffic flow, and their existence is empirically supported by many previous studies. In its turn, spatial dependencies in the complex structure are a matter of uncertainty. In addition to the physical properties of traffic flows and related drivers’ decisions, these dependencies can appear between physically unconnected locations (teleconnections), explained by the simultaneous effects (i.e., dinner hours). Risks of spurious dependencies in the complex structure are higher, and the usefulness of the spatial structure for increasing the forecasting accuracy is not obvious and a matter of the selected temporal aggregation level.
Let S h = { s h ,   i j } be a k × k binary matrix that represents possible spatial dependencies between values of the vector Y t and its lag of order h, Y t h ( s h , i j = 1 if a dependency between y i , t and y j , t h is allowed and s h , i j = 0 if the dependency is impossible). Then the spatially restricted specification of VAR model is:
Y t = h = 1 p ( Φ h S h ) Y t h + ε t ,
where Φ h S h is the Hadamard (entry-wise) product of matrices. We refer to this model as spatially restricted VAR (SRVAR). Note that S h matrixes are usually sparse, so the number of unknown parameters is significantly smaller than in the unrestricted VAR model.
There are different approaches to specification of S h matrices. Min and Winter [19] used travel times between sensor locations (for upstream links), taking into account different traffic speed conditions. Yang et al. [21] and Cai et al. [57], among several other researchers, utilized cross-correlations for identification of “connected” road segments. Schimbinschi et al. [20] used direct road connections between sensor locations (both up- and downstream) for their topology-regularized VAR. We consider two alternative specifications of S h matrices: travel-time-based and correlation-based.
Travel-time-based approach. Let d i j be a distance by road between locations i and j (in meters), s p e e d i j is an average speed at this road segment (m/min), and Δ t is the temporal aggregation level (in minutes). Given that for the analysed road network the average speed is normally 10% higher than the speed limit and the empirical distribution of speed is left-tailed, we can define
m i n L a g i j = d i j ( s p e e d i j · Δ t ) ,
as a minimal temporal lag between y i and y j , allowed by the road network configuration ( brackets are used for rounding down). Further, we set s h , i j to 1 if m i n L a g i j = h for a travel-time-based specification of the matrix of spatial dependencies S h , t r a v e l   t i m e . Using such specification, we assume that a spatial effect of time lag h between y i and y j is only possible if the point i is reachable from the point j in h time steps. The VAR model, spatially restricted by the specified travel-time matrix S h , t r a v e l   t i m e , is referred to as SRVAR t r a v e l   t i m e .
Correlation-based approach. A concurrent SRVAR model specification is based on cross-correlations between time series at different locations. Let
m i n L a g i j = argmax h [ h l i m , h l i m ] C o r r ( y i , t , y j , t h ) ,
where hlim is a predefined maximum possible lag and C o r r ( y i , t , y j , t h ) is a Pearson cross-correlation between time series. m i n L a g i j is intentionally set to 0 if the maximum cross-correlation value is lower than a predefined threshold (we used 0.1 as a threshold in this research). Further specification of the restricted VAR model is identical to SRVAR t r a v e l   t i m e ; the resulting VAR model is referred to as SRVAR c o r r e l a t i o n .
The presented spatially restricted VAR model should not be confounded with spatial VAR models, SVAR, or with space–time autoregressive models, STAR. SVAR [58] contains a simultaneous (not temporarily lagged) spatially lagged dependent variable, which makes them less natural for forecasting purposes than the presented SRVAR model. STAR models [9] represent a restricted form of the SRVAR model, where the Φ h S h matrix is reduced to ϕ h W h ( W h is an exogenous matrix of spatial weights). STAR models are more parsimonious in terms of unknown parameters, but require careful specification of spatial weights, which can be a problem for the dynamic environment.
Summarising the methodology above, the final set of candidate models is:
  • Naïve forecasts as a baseline,
  • Independent ARIMA models are a good non-spatial alternative,
  • Travel-time-based spatially restricted VAR model, SRVAR t r a v e l   t i m e ,
  • Correlation-based spatially restricted VAR model, SRVAR c o r r e l a t i o n ,
  • Unrestricted VAR model.

2.4. Estimation of Forecasting Accuracy

Overfitting is a well-known problem for multivariate models, including VAR, so in-sample metrics of accuracy should not be used for model comparison. We applied the rolling analysis [59], a time series cross-validation technique, for the estimation of models’ out-of-sample forecasting accuracy. A rolling window is a time subinterval of a predefined length T R W (the number of points in the corresponding aggregated time series is T R W Δ t = T R W   d i v   Δ t ), which is used as a training set for models. The rolling window is gradually shifted inside the research time interval of a step Δ t , providing new model estimates and forecasts. We use the same forecasting horizon h for models of all temporal aggregation levels, so the total length of the validation set (and the number of the rolling window shifts) equals T V Δ t = T Δ t T R W Δ t h + 1 .
The mean absolute error (MAE) is used in this research as an absolute metric of the model forecasting accuracy:
M A E ( i , h , Δ t ) = 1 T V Δ t t = T R W Δ t T Δ t h | y i ,   t + h Δ t y ^ i ,   t + h | t Δ t | ,
where y ^ i ,   t + h | t Δ t are h-step-ahead predicted values. Furthermore, M A E ( i , h , Δ t ) are aggregated by spatial locations with equal weights: M A E ( h , Δ t ) = 1 k i = 1 k M A E ( i , h , Δ t ) . A widely used relative metric for forecasting accuracy comparison is the mean absolute percentage error (MAPE). Despite the popularity of this metric, there are many studies on misleading results from MAPE, obtained for time series with close-to-zero (or zero) actual values. As the traffic volume (both original and detrended) is naturally allowed to be 0, we prefer the mean absolute scaled error (MASE) [60] as the main metrics for comparison of different models:
M A S E ( i , h , Δ t ) = M A E ( h ) 1 T V Δ t 1 t = T R W Δ t + 1 T Δ t h | y i ,   t + h Δ t y i ,   t + h 1 Δ t | ,
MASE is a relatively new forecasting accuracy metric, which is based on the comparison of the model’s MAE values with one-step naïve forecasting MAE values. This metric has good statistical properties and allows direct comparison of forecasting models. Similar to MAE, MASE values are separately calculated for every sensor location and aggregated for the overall model forecasting accuracy measure.
To compare the forecasting accuracy of models, estimated for different time aggregation levels, we used the sums of forecasts for shorter time frames y ^ i ,   t K Δ t = k = 0 K 1 y ^ i ,   t k Δ t and the corresponding cumulative MAE metric. For example, to estimate the forecasting accuracy of a model, estimated for 4 min temporal aggregation, for a 12 min horizon, we applied M A E ( i , h , 3 Δ t ) values.

3. Results and Discussion

The primary research question relates to the forecasting accuracy of spatiotemporal models for different temporal aggregation levels. We consider three different spatiotemporal specifications of VAR models: the travel-time-based and correlation-based spatially restricted VAR and the unrestricted VAR model. Principles of both approaches to spatial restriction are described in the Methodology section.
Both travel-time- and correlation-based restrictive matrices depend on the temporal aggregation level. Table 1 contains estimated matrices for original traffic volumes in the sequential spatial settings for 1-min temporal aggregation (and a matrix of most significant lags in the unrestricted VAR model for comparison).
It can be easily noted that travel-time- and correlation-based restrictive matrixes are almost identical in this case. The unrestricted VAR specification discovers a lot of additional spatial dependencies, which cannot be explained by the kinematic traffic flow theory.
In the complex spatial settings, these matrices differ significantly—Table 2 presents the number of links in matrices for different temporal aggregation levels and dissimilarity (percent of different links) between travel-time- and correlation-based matrixes.
In the complex spatial environment, travel-time restriction is the strictest one—for example, for the 12 min temporal aggregation, the travel-time restrictive matrix does not allow any dependencies between locations, because all vehicles should leave the analysed road segment in 12 min. Complete results for all temporal aggregation levels and both spatial environments are available from the author by request.
MASE values of five models (naïve forecasts, univariate ARIMA, travel-time-based SRVAR, correlation-based SRVAR, and unrestricted VAR) were estimated for different temporal aggregation levels, using the rolling window technique, described in the Methodology section. The accuracy of one-step ahead forecasts of detrended traffic volumes is plotted in Figure 4; complete calculation results for four different experiment settings (original and detrended traffic volumes for the sequential and complex spatial structure) are presented in Table 3.
The first notable observation is a better forecasting performance of spatiotemporal models (comparatively to the independent ARIMA models) for smaller periods of temporal aggregation (1and 2 min periods). The unrestricted VAR model demonstrates the best forecasting performance for the sequential spatial structure, while for the complex spatial structure, it does not outperform SRVAR model specifications. For larger temporal aggregation levels, the forecasting accuracy of SRVAR and independent ARIMA models are very similar, while the accuracy of the unrestricted VAR model is significantly degraded. In addition, we note that this pattern (preference of spatiotemporal models for smaller temporal aggregation levels) is stable within this research, but obviously depends on the spatial environments. The average travel time between sensor locations in the complex spatial structure is about 1 min, and the maximum is about 6 min, which corresponds to temporal aggregation levels with discovered preference of spatiotemporal models.
In addition, it should be noted that for larger temporal aggregation levels, SRVAR t r a v e l   t i m e utilizes a very limited number of allowed lags (eight lags for 6 min periods, and no lags for 12 min periods), so we can conclude that in terms of the forecasting accuracy, information about the absence of spatial dependencies is equally or even more important than information about their presence.
Another observation is almost identical forecasting accuracies of correlation-based ( SRVAR t r a v e l   t i m e ) and travel-time-based ( SRVAR t r a v e l   t i m e ) spatially restricted VAR models. This observation is essential for the sequential spatial settings, where correlation-based and travel-time-based spatial restrictive matrixes are almost identical, but was not expected in the complex spatial settings, where the matrices differ significantly. Both approaches to spatial restriction have their own advantages (flexibility and endogeneity of correlation-based and manageability of the travel-time-based restrictions), so we can conclude that this choice is experiment-specific and depends on available data and modelling purposes.
The dynamics of the models’ forecasting accuracy for different horizons are presented in Figure 5.
The results are consistent between the sequential and complex spatial settings: better forecasting performance of spatiotemporal models for 1 and 2 min forecasting horizons, and a small preference of independent ARIMA models for longer horizons (due to their higher flexibility).
The obtained results represent the forecasting accuracy, averaged for analysed sensors. Obviously, improvement of spatial model specifications depends on sensor position within the network. For example, SRVAR t r a v e l   t i m e includes only the forward propagation of traffic volume conditions, and thus it cannot improve forecasting accuracy for sensors, located at entrances to the analysed network segment. Table 4 contains sensor-specific forecasting accuracy values for one-step ahead forecasts of the models with 1 min temporal aggregation.
The results for the sequential spatial structure directly match our expectations: forecasting accuracy for first two sensors in a row (S240 and S242) has similar values for independent ARIMA and SRVAR models, but for other sensors the improvement, provided by spatiotemporal specifications, is significant (up to −0.27 of MASE for the detrended and up to −0.41 for the original traffic volume). Results for the complex spatial structure are also consistent—no improvements for the entrance sensors (S138, S288, S584, S62) and significant improvement for the majority of other sensors. The most interesting are the exceptions—no significant improvements are discovered for intermediate S93 and S103 sensors. Both sensors are located in I-94 E/WB corridor, which crosses the analysed road segment at the western part. The absence of improvement in spatiotemporal models for these sensors means that traffic flow in this corridor mostly depends on other roads, which pass outside of the analysed road segment. Thus, observed forecasting accuracy of spatially restricted VAR models allows to us identify anomalies in the spatial structure and to provide a potential method for model improvement.
Finally, we analysed the forecasting accuracy of the models for a longer period of time on the basis of different temporal aggregation levels. We selected 12-min interval for comparison as the least common multiple of research temporal aggregation levels (1, 2, 3, 4, 6, and 12 min). Forecasts for smaller temporal aggregation levels were aggregated as described in the Methodology section (by direct summation of the necessary number of multi-step-ahead forecasts). Dependencies between resulting forecasting accuracy and a temporal aggregation level are presented in Figure 6.
Presented polylines provide evidence for a statistical preference of 2, 3, 4, and 6 temporal aggregation levels for 12 min forecasting with a model-dependent optimal time aggregation level. For example, the unrestricted VAR model demonstrates the best forecasting accuracy for the 4 min temporal aggregation level. These results match our expectations, based on previous studies of univariate and multivariate time series models [61]. It should be stressed that our results are empirical and cannot be proven theoretically, because models for different temporal aggregation levels are not identical and depend on the aggregation-specific spatial restrictions. Nevertheless, the provided evidence of the existence of an optimal temporal aggregation level could be useful for practical forecasting. Further improvements include the application of a multi aggregation prediction algorithm, described in [48], for combining forecasts from models, estimated for different temporal aggregation levels.
The results for original time series are generally consistent with the findings presented above. It should be noted that for the majority of executed experiments, the forecasting accuracy of the detrended traffic volume is higher than of the original time series. This result is consistent with the recommendations provided in [24,53]. Additionally, we tested the research hypothesis separately for the peak hours, which are most important in terms of traffic forecasting. The general conclusions were very close to the complete dataset. This fact was expected, because we focus on average forecasting error metrics (MAE, MASE) and all selected models (including the naïve forecasts) work well during “calm” periods, so the major part of the average error appears during peak hours or unusual traffic conditions. Given similar results and almost identical conclusions for a complete dataset and for peak hours, we decided to limit the paper text and to leave only complete dataset results.
Summarising the results and discussion above, we state the key empirical findings as follows:
  • Unrestricted VAR models outperform spatially restricted models in the sequential spatial structure with strong essential spatial links for smaller temporal resolution levels. In the complex spatial structure, spatially restricted models are as good as unrestricted VAR models for smaller temporal resolution levels and significantly outperform them for larger temporal resolution levels (with a limited number of possible spatial links). Thus, we strongly recommend spatial restrictions for the modelling of traffic flows in a highly connected urban spatial environment.
  • Correlation-based spatial restrictive matrixes are almost identical to travel-time-based ones for the sequential spatial structure. For the complex spatial structure, travel-time-based spatial restrictive matrices are significantly sparser, but this fact does not negatively affect model out-of-sample forecasting accuracy. Thus, we recommend the travel-time-based spatial restrictions as a baseline for spatiotemporal model specifications.
  • Improvements of sensor-specific forecasting accuracy, provided by the spatiotemporal model specifications, depend on a sensor position within the road network graph. These improvements are highly significant for sensors, located inside an analysed network segment and on its exits, and insignificant for sensors, located near entrances to the analysed network segment. We concluded that insignificant improvements for sensors, located inside the analysed network segment, could be considered as an indicator of an incomplete spatial structure.
  • Optimal temporal aggregation levels for longer forecasting horizons (12 min in this research) are found at intermediate values (2–6 min) and related to the spatial structure (average distances between spatial locations). We recommend considering different temporal aggregation levels for any modelling approaches, and concentrate on temporal aggregation levels, which are close to spatial resolution (travel times between spatial locations), for spatiotemporal models.
  • The majority of executed experiments indicate higher forecasting accuracy for models of detrended traffic volumes comparatively to models of the original time series.

4. Conclusions

This study is devoted to the empirical analysis of temporal aggregation effects of forecasting accuracy of spatiotemporal models. We demonstrated that a selected level of temporal aggregation directly affects the structure of spatiotemporal relationships and, as a result, the forecasting performance of models. The effects of temporal aggregation vary for different model specifications and different forecasting horizons. Thus, we argue that the level of temporal aggregation should be included in the primary set of tuned parameters, used for the optimisation of the model’s forecasting performance and selection of the best model. Analysis of models’ forecasting accuracy for different temporal aggregation levels improves the confidence in the obtained results and allows wider generalisation of the conclusions made.
We empirically tested unrestricted and spatially restricted vector autoregressive models and compared their forecasting accuracy for different temporal aggregation levels of real-world traffic flow data. The research methodology is based on the rolling window analysis of out-of-sample model forecasting performance. Research experiments were executed in several dimensions: temporal aggregation levels (1, 2, 3, 4, 6, and 12 min), forecasting horizons (one-step and multi-step forecasts), spatial complexity (sequential and complex spatial structures), spatial restriction approach (unrestricted, travel-time-based and correlation-based), time series transformation (original and detrended traffic volumes). The empirical results support our main proposition on the crucial role of the temporal aggregation level.
Although the empirical part of this study is purely focused on urban traffic data analysis, the discussed problem is applicable to other multi-sensor systems, where relationships between sensor data streams play an important role, e.g., medical wearable sensors or systems of meteorological stations. In addition to the forecasting model selection problem discussed in this paper, the selection of the optimal temporal aggregation level can be important for reducing redundant information transmissions and limiting network traffic flows.
This study analyses the temporal aspect of data aggregation only, while aggregation in the spatial dimension (e.g., spatial clustering of sensor data) also plays the important role for modern spatiotemporal traffic forecasting models. A detailed analysis of the spatiotemporal aggregation effects is required and can be mentioned as a direction for further research.

Funding

This research received no external funding.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Antoniou, C.; Dimitriou, L.; Pereira, F.B. Mobility Patterns, Big Data and Transport Analytics: Tools and Applications for Modeling; Elsevier: Amsterdam, The Netherlands, 2019; ISBN 978-0-12-812971-5. [Google Scholar]
  2. Ermagun, A.; Levinson, D. Spatiotemporal traffic forecasting: Review and proposed directions. Transp. Rev. 2018, 38, 786–814. [Google Scholar] [CrossRef]
  3. Pavlyuk, D. Feature selection and extraction in spatiotemporal traffic forecasting: A systematic literature review. Eur. Transp. Res. Rev. 2019, 11, 6. [Google Scholar] [CrossRef]
  4. Okutani, I.; Stephanedes, Y.J. Dynamic prediction of traffic volume through Kalman filtering theory. Transp. Res. Part B Methodol. 1984, 18, 1–11. [Google Scholar] [CrossRef]
  5. Stathopoulos, A.; Karlaftis, M.G. A multivariate state space approach for urban traffic flow modeling and prediction. Transp. Res. Part C Emerg. Technol. 2003, 11, 121–135. [Google Scholar] [CrossRef]
  6. Vlahogianni, E.I.; Karlaftis, M.G.; Golias, J.C. Optimized and meta-optimized neural networks for short-term traffic flow prediction: A genetic approach. Transp. Res. Part C Emerg. Technol. 2005, 13, 211–234. [Google Scholar] [CrossRef]
  7. Van Lint, J.; Hoogendoorn, S.; van Zuylen, H. Freeway Travel Time Prediction with State-Space Neural Networks: Modeling State-Space Dynamics with Recurrent Neural Networks. Transp. Res. Rec. J. Transp. Res. Board 2002, 1811, 30–39. [Google Scholar] [CrossRef]
  8. Daraghmi, Y.-A.; Yi, C.-W.; Chiang, T.-C. Negative Binomial Additive Models for Short-Term Traffic Flow Forecasting in Urban Areas. IEEE Trans. Intell. Transp. Syst. 2013, 15, 784–793. [Google Scholar] [CrossRef]
  9. Cliff, A.D.; Haggett, P.; Ord, J.K.; Bassett, J.K.; Davis, K. Elements of Spatial Structure: A Quantitative Approach; Cambridge Geographical Studies; Cambridge University Press: Cambridge, MA, USA, 1975; ISBN 978-0-521-20689-1. [Google Scholar]
  10. Pfeifer, P.E.; Deutrch, S.J. A Three-Stage Iterative Procedure for Space-Time Modeling. Technometrics 1980, 22, 35–47. [Google Scholar] [CrossRef]
  11. Kamarianakis, Y.; Prastacos, P. Forecasting Traffic Flow Conditions in an Urban Network: Comparison of Multivariate and Univariate Approaches. Transp. Res. Rec. J. Transp. Res. Board 2003, 1857, 74–84. [Google Scholar] [CrossRef]
  12. Cheng, T.; Wang, J.; Haworth, J.; Heydecker, B.; Chow, A. A Dynamic Spatial Weight Matrix and Localized Space-Time Autoregressive Integrated Moving Average for Network Modeling: Spatial Weight Matrix and Localized STARIMA. Geogr. Anal. 2014, 46, 75–97. [Google Scholar] [CrossRef]
  13. Elhorst, J.P. Dynamic models in space and time. Geogr. Anal. 2010, 33, 119–140. [Google Scholar] [CrossRef] [Green Version]
  14. Kamarianakis, Y.; Shen, W.; Wynter, L. Real-time road traffic forecasting using regime-switching space-time models and adaptive LASSO. Appl. Stoch. Model. Bus. Ind. 2012, 28, 297–315. [Google Scholar] [CrossRef]
  15. Sims, C.A. Macroeconomics and Reality. Econometrica 1980, 48, 1. [Google Scholar] [CrossRef] [Green Version]
  16. Lütkepohl, H. Forecasting Cointegrated VARMA Processes. In A Companion to Economic Forecasting; Clements, M.P., Hendry, D.F., Eds.; Blackwell Publishing Ltd.: Oxford, UK, 2004; pp. 179–205. ISBN 978-1-4051-2623-6. [Google Scholar]
  17. Chandra, S.R.; Al-Deek, H. Predictions of Freeway Traffic Speeds and Volumes Using Vector Autoregressive Models. J. Intell. Transp. Syst. 2009, 13, 53–72. [Google Scholar] [CrossRef]
  18. Ermagun, A.; Levinson, D. Spatiotemporal short-term traffic forecasting using the network weight matrix and systematic detrending. Transp. Res. Part C Emerg. Technol. 2019, 104, 38–52. [Google Scholar] [CrossRef]
  19. Min, W.; Wynter, L. Real-time road traffic prediction with spatio-temporal correlations. Transp. Res. Part C Emerg. Technol. 2011, 19, 606–616. [Google Scholar] [CrossRef]
  20. Schimbinschi, F.; Moreira-Matias, L.; Nguyen, V.X.; Bailey, J. Topology-regularized universal vector autoregression for traffic forecasting in large urban areas. Expert Syst. Appl. 2017, 82, 301–316. [Google Scholar] [CrossRef]
  21. Yang, S.; Shi, S.; Hu, X.; Wang, M. Spatiotemporal Context Awareness for Urban Traffic Modeling and Prediction: Sparse Representation Based Variable Selection. PLoS ONE 2015, 10, 22. [Google Scholar] [CrossRef]
  22. Clements, M.P.; Hendry, D.F. Forecasting Economic Time Series; Cambridge University Press: Cambridge, MA, USA, 1998; ISBN 978-0-521-63242-3. [Google Scholar]
  23. Davis, R.A.; Zang, P.; Zheng, T. Sparse Vector Autoregressive Modeling. J. Comput. Graph. Stat. 2016, 25, 1077–1096. [Google Scholar] [CrossRef] [Green Version]
  24. Ermagun, A.; Chatterjee, S.; Levinson, D. Using temporal detrending to observe the spatial correlation of traffic. PLoS ONE 2017, 12, e0176853. [Google Scholar] [CrossRef] [Green Version]
  25. Ermagun, A.; Levinson, D.M. Development and application of the network weight matrix to predict traffic flow for congested and uncongested conditions. Environ. Plan. B Urban Anal. City Sci. 2018, 46, 1684–1705. [Google Scholar] [CrossRef]
  26. Yang, G.; Wang, Y.; Yu, H.; Ren, Y.; Xie, J. Short-Term Traffic State Prediction Based on the Spatiotemporal Features of Critical Road Sections. Sensors 2018, 18, 2287. [Google Scholar] [CrossRef] [Green Version]
  27. Yu, H.; Wu, Z.; Wang, S.; Wang, Y.; Ma, X. Spatiotemporal Recurrent Convolutional Networks for Traffic Prediction in Transportation Networks. Sensors 2017, 17, 1501. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. Bogaerts, T.; Masegosa, A.D.; Angarita-Zapata, J.S.; Onieva, E.; Hellinckx, P. A graph CNN-LSTM neural network for short and long-term traffic forecasting based on trajectory data. Transp. Res. Part C Emerg. Technol. 2020, 112, 62–77. [Google Scholar] [CrossRef]
  29. Pavlyuk, D. Transfer Learning: Video Prediction and Spatiotemporal Urban Traffic Forecasting. Algorithms 2020, 13, 39. [Google Scholar] [CrossRef] [Green Version]
  30. Yu, B.; Yin, H.; Zhu, Z. Spatio-temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting. In Proceedings of the 27th International Joint Conference on Artificial Intelligence (IJCAI), Stockholm, Sweden, 13–19 July 2018. [Google Scholar]
  31. Sun, S.; Wu, H.; Xiang, L. City-Wide Traffic Flow Forecasting Using a Deep Convolutional Neural Network. Sensors 2020, 20, 421. [Google Scholar] [CrossRef] [Green Version]
  32. Do, L.N.N.; Vu, H.L.; Vo, B.Q.; Liu, Z.; Phung, D. An effective spatial-temporal attention based neural network for traffic flow prediction. Transp. Res. Part C Emerg. Technol. 2019, 108, 12–28. [Google Scholar] [CrossRef]
  33. Vlahogianni, E.I.; Golias, J.C.; Karlaftis, M.G. Short-term traffic forecasting: Overview of objectives and methods. Transp. Rev. 2004, 24, 533–557. [Google Scholar] [CrossRef]
  34. Vlahogianni, E.I.; Karlaftis, M.G.; Golias, J.C. Short-term traffic forecasting: Where we are and where we’re going. Transp. Res. Part C Emerg. Technol. 2014, 43, 3–19. [Google Scholar] [CrossRef]
  35. Vlahogianni, E.; Karlaftis, M. Temporal aggregation in traffic data: Implications for statistical characteristics and model choice. Transp. Lett. 2011, 3, 37–49. [Google Scholar] [CrossRef]
  36. Elliott, G.; Granger, C.W.J.; Timmermann, A. (Eds.) Handbook of Economic Forecasting, 1st ed.; Handbooks in Economics; Elsevier: Amsterdam, The Netherlands, 2006; ISBN 978-0-444-62732-2. [Google Scholar]
  37. Amemiya, T.; Wu, R.Y. The Effect of Aggregation on Prediction in the Autoregressive Model. J. Am. Stat. Assoc. 1972, 67, 628. [Google Scholar] [CrossRef]
  38. Abraham, B. Temporal Aggregation and Time Series. Int. Stat. Rev. 1982, 50, 285. [Google Scholar] [CrossRef]
  39. Stram, D.O.; Wei, W.W.S. Temporal Aggregation in the ARIMA Process. J. Time Ser. Anal. 1986, 7, 279–292. [Google Scholar] [CrossRef]
  40. Marcellino, M. Some Consequences of Temporal Aggregation in Empirical Analysis. J. Bus. Econ. Stat. 1999, 17, 129–136. [Google Scholar] [CrossRef]
  41. Chan, W.-S. On temporal aggregation of some nonlinear time-series models. Econ. Stat. 2020, S2452306220300411. [Google Scholar] [CrossRef]
  42. Teles, P.; Sousa, P.S.A. The effect of temporal aggregation on the estimation accuracy of time series models. Commun. Stat. Simul. Comput. 2017, 46, 6738–6759. [Google Scholar] [CrossRef]
  43. Lütkepohl, H. Forecasting Aggregated Vector ARMA Processes; Springer: Berlin/Heidelberg, Germany, 1987; ISBN 978-3-540-17208-6. [Google Scholar]
  44. Breitung, J.; Swanson, N.R. Temporal aggregation and spurious instantaneous causality in multiple time series models. J. Time Ser. Anal. 2002, 23, 651–665. [Google Scholar] [CrossRef]
  45. Giles, D.E.A. The Econometrics of Temporal Aggregation: 1956–2014. The A.W.H. Phillips Memorial Lecture; Auckland, New Zealand. 7 November 2014. Available online: http://web.uvic.ca/~dgiles/downloads/NZAE/slides.pdf (accessed on 2 June 2020).
  46. Alexander, C.; Rauch, J. A general property for time aggregation. Eur. J. Oper. Res. 2020, S0377221720300291. [Google Scholar] [CrossRef]
  47. Athanasopoulos, G.; Hyndman, R.J.; Song, H.; Wu, D.C. The tourism forecasting competition. Int. J. Forecast. 2011, 27, 822–844. [Google Scholar] [CrossRef]
  48. Kourentzes, N.; Petropoulos, F.; Trapero, J.R. Improving forecasting by estimating time series structural components across multiple frequencies. Int. J. Forecast. 2014, 30, 291–302. [Google Scholar] [CrossRef] [Green Version]
  49. Percoco, M. Evaluating forecasting accuracy of the temporally aggregated space–time autoregressive model. Appl. Econ. Lett. 2007, 14, 637–641. [Google Scholar] [CrossRef]
  50. Percoco, M. Temporal aggregation and spatio-temporal traffic modeling. J. Transp. Geogr. 2015, 46, 244–247. [Google Scholar] [CrossRef]
  51. Kourentzes, N.; Petropoulos, F. Forecasting with multivariate temporal aggregation: The case of promotional modelling. Int. J. Prod. Econ. 2016, 181, 145–153. [Google Scholar] [CrossRef] [Green Version]
  52. Yang, S. On feature selection for traffic congestion prediction. Transp. Res. Part C Emerg. Technol. 2013, 26, 160–169. [Google Scholar] [CrossRef]
  53. Chen, C.; Wang, Y.; Li, L.; Hu, J.; Zhang, Z. The retrieval of intra-day trend and its influence on traffic prediction. Transp. Res. Part C Emerg. Technol. 2012, 22, 103–118. [Google Scholar] [CrossRef]
  54. Box, G.E.P.; Jenkins, G.M. Time Series Analysis: Forecasting and Control; Holden-Day Series in Time Series Analysis; Wiley: Hoboken, NJ, USA, 1970. [Google Scholar]
  55. Hyndman, R.J.; Khandakar, Y. Automatic Time Series Forecasting: The forecast Package for R. J. Stat. Softw. 2008, 27. [Google Scholar] [CrossRef] [Green Version]
  56. Kwiatkowski, D.; Phillips, P.C.B.; Schmidt, P.; Shin, Y. Testing the null hypothesis of stationarity against the alternative of a unit root. J. Econ. 1992, 54, 159–178. [Google Scholar] [CrossRef]
  57. Cai, P.; Wang, Y.; Lu, G.; Chen, P.; Ding, C.; Sun, J. A spatiotemporal correlative k-nearest neighbor model for short-term traffic multistep forecasting. Transp. Res. Part C Emerg. Technol. 2016, 62, 21–34. [Google Scholar] [CrossRef]
  58. Beenstock, M.; Felsenstein, D. Spatial Vector Autoregressions. Spat. Econ. Anal. 2007, 2, 167–196. [Google Scholar] [CrossRef] [Green Version]
  59. Zivot, E.; Wang, J. Rolling Analysis of Time Series. In Modeling Financial Time Series with S-PLUS; Springer: New York, NY, USA, 2006; pp. 313–360. ISBN 978-0-387-27965-7. [Google Scholar]
  60. Hyndman, R.J.; Koehler, A.B. Another look at measures of forecast accuracy. Int. J. Forecast. 2006, 22, 679–688. [Google Scholar] [CrossRef] [Green Version]
  61. Silvestrini, A.; Veredas, D. Temporal aggregation of univariate and multivariate time series models: A survey. J. Econ. Surv. 2008, 22, 458–497. [Google Scholar] [CrossRef]
Figure 1. Road segment with sequential sensor locations: a map and corresponding weighted directed graph (weights represent distances by road in meters).
Figure 1. Road segment with sequential sensor locations: a map and corresponding weighted directed graph (weights represent distances by road in meters).
Sensors 20 06931 g001
Figure 2. Road segment with non-sequential sensor locations: a map and corresponding weighted directed graph (weights represent distance by road in meters).
Figure 2. Road segment with non-sequential sensor locations: a map and corresponding weighted directed graph (weights represent distance by road in meters).
Sensors 20 06931 g002
Figure 3. Typical daily traffic at three sensor locations (S291, S93, and S123).
Figure 3. Typical daily traffic at three sensor locations (S291, S93, and S123).
Sensors 20 06931 g003
Figure 4. MASE values for one-step ahead forecasts for different temporal aggregation levels: (a) detrended traffic volume, the complex spatial structure, (b) detrended traffic volume, the sequential spatial structure.
Figure 4. MASE values for one-step ahead forecasts for different temporal aggregation levels: (a) detrended traffic volume, the complex spatial structure, (b) detrended traffic volume, the sequential spatial structure.
Sensors 20 06931 g004
Figure 5. MASE values for different forecasting horizons: (a) detrended traffic volume, the complex spatial structure, (b) detrended traffic volume, the sequential spatial structure.
Figure 5. MASE values for different forecasting horizons: (a) detrended traffic volume, the complex spatial structure, (b) detrended traffic volume, the sequential spatial structure.
Sensors 20 06931 g005
Figure 6. MAE values for 12 min forecasts for different temporal aggregation levels: (a) detrended traffic volume, the complex spatial structure, (b) detrended traffic volume, the sequential spatial structure.
Figure 6. MAE values for 12 min forecasts for different temporal aggregation levels: (a) detrended traffic volume, the complex spatial structure, (b) detrended traffic volume, the sequential spatial structure.
Sensors 20 06931 g006
Table 1. Matrices of spatial lags for the original traffic volume in the sequential spatial structure.
Table 1. Matrices of spatial lags for the original traffic volume in the sequential spatial structure.
Travel-Time-Based Spatial Restrictions
S240S242S244S135S248S250S136S253
S24000112233
S24200012223
S24400001122
S13500001112
S24800000011
S25000000001
S13600000000
S25300000000
Correlation-Based Spatial Restrictions
S240S242S244S135S248S250S136S253
S24000112233
S24200012223
S24400011123
S13500001112
S24800000011
S25000000011
S13600000001
S25300000000
Unrestricted VAR, Most Significant Lags (std. Error > 3)
S240S242S244S135S248S250S136S253
S24041112232
S24211112223
S24436111123
S13502111112
S24800014114
S25066412111
S13616630111
S25330066604
Table 2. Number of links and similarity of spatial dependency matrices.
Table 2. Number of links and similarity of spatial dependency matrices.
Temporal Aggregation, MinutesUnrestricted VARCorrelation-Based SRVARTravel-Time-Based SRVARPercent of Different Links in Correlation-Based and Travel-Time-Based Matrices
The complex spatial structure, detrended traffic flow
19631436.6
28824315.8
38526247.8
463381812.7
66748815.5
125271019.7
The complex spatial structure, original traffic flow
11221454329.4
21151293128.8
31121032423.0
4111911821.3
68976819.4
128662017.2
The sequential spatial structure, detrended traffic flow
15225224.7
24617161.6
33513113.1
430761.6
622101.6
1213000.0
The sequential spatial structure, original traffic flow
15625224.7
25017161.6
34312111.6
439561.6
627000.0
1221000.0
Table 3. Mean absolute scaled error (MASE) values for one-step ahead forecasts for different temporal aggregation levels.
Table 3. Mean absolute scaled error (MASE) values for one-step ahead forecasts for different temporal aggregation levels.
Temporal Aggregation, Minutes
1234612
The complex spatial structure, detrended traffic flow
Naïve forecasts1.0001.0001.0001.0001.0001.000
Independent ARIMA models0.7350.7620.7750.7790.8050.846
Travel-time-based SRVAR model0.6940.7500.7740.7800.8040.846
Correlation-based SRVAR model0.6760.7410.7710.7780.8040.849
Unrestricted VAR model0.6780.7430.7850.8080.8801.033
The complex spatial structure, original traffic flow
Naïve forecasts1.0001.0001.0001.0001.0001.000
Independent ARIMA models0.7760.8480.9030.9440.9600.999
Travel-time-based SRVAR model0.7300.7980.8500.8870.9470.967
Correlation-based SRVAR model0.7010.7810.8370.8690.9150.928
Unrestricted VAR model0.6910.7660.8280.8750.9361.015
The sequential spatial structure, detrended traffic flow
Naïve forecasts1.0001.0001.0001.0001.0001.000
Independent ARIMA models0.6750.6940.7250.7580.7900.872
Travel-time-based SRVAR model0.5300.6450.7360.7770.8000.867
Correlation-based SRVAR model0.5240.6420.7400.7730.8000.867
Unrestricted VAR model0.4680.5500.6460.7220.7780.888
The sequential spatial structure, original traffic flow
Naïve forecasts1.0001.0001.0001.0001.0001.000
Independent ARIMA models0.6970.6910.8710.9920.9270.954
Travel-time-based SRVAR model0.4370.5000.7560.8140.9250.907
Correlation-based SRVAR model0.4210.5000.7530.8570.9360.907
Unrestricted VAR model0.3970.4720.6700.7540.8670.953
Table 4. Sensor-specific MASE values.
Table 4. Sensor-specific MASE values.
Detrended Traffic VolumeOriginal Traffic Volume
Naive ForecastsARIMATravel-Time-Based SRVAR ModelCorrelation-Based SRVAR ModelUnrestricted VAR ModelSRVAR vs. ARIMANaive ForecastsARIMATravel-Time-Based SRVAR ModelCorrelation-Based SRVAR ModelUnrestricted VAR ModelSRVAR vs. ARIMA
The complex spatial structure
S621.000.760.760.760.750.001.000.790.800.770.78−0.02
S641.000.690.700.700.710.001.000.770.760.750.74−0.02
S631.000.760.760.670.66−0.091.000.800.810.690.67−0.11
S931.000.740.740.730.740.001.000.780.780.770.76−0.01
S1031.000.770.760.760.740.001.000.800.760.760.73−0.04
S1091.000.720.660.640.65−0.081.000.740.680.650.65−0.09
S1101.000.730.590.600.61−0.131.000.750.630.620.62−0.13
S1231.000.700.620.620.62−0.081.000.720.650.650.63−0.07
S1381.000.730.740.740.750.021.000.740.750.750.760.01
S2831.000.720.720.710.70−0.021.000.770.760.750.73−0.01
S2881.000.730.740.740.750.021.000.780.770.760.75−0.02
S2911.000.700.620.620.63−0.071.000.740.710.670.65−0.07
S5571.000.700.560.560.57−0.141.000.760.580.580.57−0.18
S5651.000.740.630.550.55−0.191.000.790.680.580.56−0.21
S5661.000.720.620.620.62−0.101.000.780.650.640.63−0.14
S5841.000.730.740.740.740.001.000.760.760.750.76−0.01
S1081.000.730.720.580.58−0.151.000.770.730.580.58−0.20
S5851.000.750.710.710.71−0.051.000.800.750.750.73−0.05
S5861.000.890.810.810.80−0.081.000.890.840.830.81−0.06
The sequential spatial structure
S2401.000.670.700.700.700.031.000.660.610.610.58−0.06
S2421.000.680.760.760.650.091.000.730.680.680.75−0.05
S2441.000.660.450.450.37−0.211.000.670.280.280.26−0.40
S1351.000.680.560.550.43−0.131.000.680.520.420.31−0.26
S2481.000.670.420.420.36−0.241.000.700.290.290.29−0.41
S2501.000.670.420.400.39−0.271.000.700.310.300.29−0.40
S1361.000.690.410.410.40−0.271.000.720.330.340.33−0.38
S2531.000.690.520.480.44−0.211.000.700.470.460.38−0.24
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Pavlyuk, D. Temporal Aggregation Effects in Spatiotemporal Traffic Modelling. Sensors 2020, 20, 6931. https://doi.org/10.3390/s20236931

AMA Style

Pavlyuk D. Temporal Aggregation Effects in Spatiotemporal Traffic Modelling. Sensors. 2020; 20(23):6931. https://doi.org/10.3390/s20236931

Chicago/Turabian Style

Pavlyuk, Dmitry. 2020. "Temporal Aggregation Effects in Spatiotemporal Traffic Modelling" Sensors 20, no. 23: 6931. https://doi.org/10.3390/s20236931

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop