key: cord-0157998-uxpkex2e authors: Gong, Shuhui; Mo, Xiaopeng; Cao, Rui; Liu, Yu; Tu, Wei; Bai, Ruibin title: Spatio-temporal Parking Behaviour Forecasting and Analysis Before and During COVID-19 date: 2021-08-15 journal: nan DOI: nan sha: 2727d14196f9154597fb22263de3ddea732c3381 doc_id: 157998 cord_uid: uxpkex2e Parking demand forecasting and behaviour analysis have received increasing attention in recent years because of their critical role in mitigating traffic congestion and understanding travel behaviours. However, previous studies usually only consider temporal dependence but ignore the spatial correlations among parking lots for parking prediction. This is mainly due to the lack of direct physical connections or observable interactions between them. Thus, how to quantify the spatial correlation remains a significant challenge. To bridge the gap, in this study, we propose a spatial-aware parking prediction framework, which includes two steps, i.e. spatial connection graph construction and spatio-temporal forecasting. A case study in Ningbo, China is conducted using parking data of over one million records before and during COVID-19. The results show that the approach is superior on parking occupancy forecasting than baseline methods, especially for the cases with high temporal irregularity such as during COVID-19. Our work has revealed the impact of the pandemic on parking behaviour and also accentuated the importance of modelling spatial dependence in parking behaviour forecasting, which can benefit future studies on epidemiology and human travel behaviours. With the rapid increase of private cars, finding a free parking space in cities becomes increasingly challenging. This lays a heavier burden on road traffic and further contributes to congestion [15] . Parking demand prediction can help adjust the parking services dynamically to improve the overall efficiency and has the potential to optimise the parking space finding process [3] . Therefore, the problem is significantly important and has attracted growing attention. Owing to the development of information and communication technologies (ICT), we have access to more and more digital parking data, which enable us to probe into the parking behaviour from historical time-series parking records. Based on these available data, previous studies used various methods to predict parking occupancy, including support vector regressions (SVR) [18] , clustering [12] , time series models [9] , and neural networks [1, 15] . Most of the methods only focused on leveraging temporal features of the historical records, without considering the spatial connections among parking lots. However, numerous studies have shown that passengers' travel behaviours have significant spatial correlations [4, 13] . For example, studies show that passengers would take up to 500-metre walking to their final destinations [16] . This suggests that residents may park their own cars in parking lots within tolerable distance of the destination, and walk to the destination after parking. The finding also implies the existence of spatial correlation between parking lots which locates near each other. Furthermore, only considering temporal features will make the established model vulnerable to unexpected events that suffer from dramatic temporal pattern change, for example, the COVID-19, which first broke out in China and then spread globally in a short time [10] . During the pandemic, compulsory restrictions were firmly implemented in China to control the respiratory infectious disease, including physical distancing and community containment measures, which significantly reduced public transport use and public gatherings [19] . These governmental policies dramatically changed the way people travel and parking. Therefore, the emergencies would pose great challenge for parking behaviour forecasting, in which case historical temporal patterns would not be sufficient. To address these issues, in this study, unlike previous studies only considering historical time series, we proposed a spatio-temporal parking prediction framework to predict parking occupancy in the next future, accounting for both temporal and spatial correlations. The framework includes two major steps: the first step is to construct a connection graph to model the spatial connections between parking lots, the second step is spatio-temporal parking forecasting using historical time-series parking data and the generated connection graph. We performed a case study in the city of Ningbo, China, using more than one million parking records of 136 parking lots from April 2019 to April 2020 (including parking data before and during the period of COVID-19). The results demonstrate the superiority of our proposed framework in parking forecasting, especially during COVID-19 when the parking behaviours exhibited significantly temporal irregularity than normal days. The rest of the paper is organised as follows. Section 2 reviews the related works. Section 3 presents the proposed spatial-aware parking forecasting framework. Section 4 introduces the study area and data. Section 5 presents the experimental results and analysis. Finally, Section 6 concludes the paper. Here, we focused on reviewing the related works for parking occupancy prediction. In recent years, quite a few methods are proposed to estimate parking occupancy. These methods can be divided into two categories: first is and ℎ methods, the other is [15] . The and ℎ approaches often use historical parking data to predict short-term parking occupancy [11] . The methods include clustering [12] , Support Vector Regression (SVR) [18] , Autoregressive Integrated Moving Average (ARIMA) [2] , continuous-time Markov Chain model [8] , etc. With the development of technology, models of deep neural networks are gaining popularity in the area of parking modeling and prediction. Ji et al. [6] proposed a three layer wavelet neural network to predict short-term parking availability in off street garages; Vlahogianni et al. [14] approached multi-layer perceptrons (MLPs) in predicting the parking occupancy; Ziat et al. [20] adopted a representation learning method to simultaneously predict traffic state and parking occupancy. These studies largely improved the accuracy of the prediction results compared with the statistical method. They also consider the external factors that influenced the drivers' parking behaviours, such as parking duration, traffic congestion, weather, etc. However, most previous studies did not consider the location correlations among the parking lots, which would lack knowledge to analyse travel behaviours by private cars, and would make the prediction accuracy lower as well. Graph convolutional neural network (GCNN) is a machine learning technology that uses the graph spectral theory to filter the signals on localised sub-graphs. The filtered signals are considered as the features for the neural networks. In recent years, GCNN has been used on spatial correlations modelling and prediction. Zhao et al. [17] integrated GCN and GRU for short-term traffic forecasting. Yang et al. combined GCN with RNN to predict real-time on-street parking [15] . Although this work consider both spatial and temporal correlations, it only consider on-street parking lots, which is directly influenced by the traffic flow. These occupancies could be much easier to predict than general parking lots. Moreover, it use real time traffic flow instead of historical data to make prediction. Based on the background, in this study, we proposed a new spatial-temporal parking model that can capture the temporal and spatial features from the parking occupancy data, and can be used for parking services prediction based on urban design. The problem of parking behaviour (measured by parking occupancy in our case) forecasting can be regarded as learning of the mapping function using the locations of parking lots and associated time series observations { } = − , and then predicting the parking occupancy in the next time periods, as formulated as follows: where and are the lengths of the historical and forecasting time series, respectively. = {( , )} =1 , in which and represent longitude and latitude, respectively. Most previous studies [2, 11] ignore the location information of parking lots and their associated spatial correlation due to the lack of direct physical connections or observable interactions between them. However, parking lots are not absolutely independent, the state of one parking lot may well impact the others, and usually the nearer ones are more likely to be influenced. The challenge is how to model the spatial correlation among them. To address this problem, we propose a spatial-aware parking prediction framework to leverage both temporal and spatial dependence. The proposed framework of spatio-temporal parking prediction is presented in Fig. 1 . First, we build the connection graph from different locations. Then, we use a temporal graph convolution network to make spatio-temporal forecasting. To model the spatial dependence of the parking lots, we propose to construct a weighted graph = ( , ) from locations , as illustrated in Fig. 1(a) , where = { } =1 is the node set and = { , } , =1 is the edge set. In the graph, each node denotes a parking lot and each edge , represents the connection between node and . The weighted adjacency matrix can be used to indicate the topological links and the associated connection strength between the parking lots, where ∈ × , with the entry values , ≥ 0, and higher value indicates stronger connection. As we know, it is common that people select another nearby parking lot if their targeted one has no space for parking. Therefore, the closer parking lots usually present similar parking patterns and have stronger spatial correlation. Based on this observation, unlike previous studies only considering connectivity [17] , we construct weighted adjacency matrix accounting for both connectivity and connection strength (measured by distance decay effect) to model the spatial dependence among parking lots. Specifically, the weighted adjacency matrix can be formulated as follows: where , reprsents the connection strength between the -th and -th parking lots, while , is the distance between them. 0 is the distance threshold, which reflects people's tolerance of walking distance between the parking locations and their final destinations. is the distance decay factor. When = 0, the weighted adjacency matrix will reduce to normal binary adjacency matrix. We use T-GCN [17] as our spatiotemporal forecasting model for parking prediction, which mainly consists of two components: a graph convolutional network (GCN) [7] and gated recurrent units (GRU). The structure of T-GCN is presented in Fig. 1(b) . Firstly, for each time , the input feature matrix and the weighted adjacency matrix are fed into a two-layer GCN to learn new features , which have incorporated into spatial dependence from the locations of parking lots: whereˆ= − 1 2 − 1 2 , = + , = ; 0 and 1 are the weight matrices of the first and second layer, while and are the activation functions. Then, the new feature matrix series { } = − will be fed into GRU repeatedly to learn the temporal features. The updating process can be formulated as follows: where and are the update and reset gates at time , is the cell state and ℎ denotes the output at time . and represent weights and biases. In the training process, the goal is to minimise the error between the real parking occupancy and the predicted one. Back-propagation algorithm is used to update the parameters of the model. After training, T-GCN can model both the spatial and temporal dependence and learn to predict future parking occupancy. Then, the trained model can be used for parking forecasting. We take Ningbo, China as our study area, which is a major port and industrial hub in the east of China and lies south of Shanghai, with a population of 7.6 million. One-month parking data in 136 parking lots are used before and during COVID-19. The spatial distribution of the parking lots are shown in Fig. 2 . As can be seen, the 136 parking lots occupy most of the areas in Ningbo. Concretely, we collect one-week parking data in November 2019 (including 5 working days and 2 non-working days), and 17 days parking data during COVID-19 (including 11 working days and 6 non-working days from February 2020 to April 2020). The data include information of parking lots, such as name, location (longitude and latitude), open time, recording time, and parking occupancy. To guarantee the data quality, we clean the data with two preprocessing steps: (i) for each parking lot, we only retain data once per hour by calculating average occupancy per hour; (ii) we only retain data of 12 hours, from 8 am to 8 pm before COVID-19, and 8 am to 6 pm during COVID-19 due to the data limitation. We analyse the spatio-temporal parking patterns in Ningbo before and during COVID-19 by aggregating the parking volumes from the perspective of time and space, respectively. The results are shown in Fig. 3 . As can be seen in Fig. 3(a) , We find that the parking volume in weekdays before COVID-19 has a distinct peak from around 11 am to 12 pm, which is quite unusual compared with other times. This suggests that most people prefer to park their private cars in the parking lots at noon, instead of driving them on the road. The finding is interesting but not surprising, since in most urban cities in China, there often tends to be less traffic at noon. In other times, the parking occupancy volume are relatively stable. The temporal patterns show that the parking behaviours have changed drastically during the COVID-19 period, which also implies that the normal commuting life has been deeply affected by the unexpected event. Fig. 3(b) shows the heatmap of passengers' parking distribution at 8 am of weekday and weekend before and during COVID-19. We can see that: (i) Comparing the parking occupancy distribution before (upper row of Fig. 3(b) ) and during COVID-19 (bottom row of Fig. 3(b) ), we see that passengers' driving behaviours are much more active and diverse before COVID-19. More specifically, before COVID-19, parking lots in business buildings, schools, and entertainment areas have very high parking occupancy volume in weekdays. While on weekends, private cars are mostly located in city centres, around Tianyi Square for shopping, and the Old Bund for entertainment. (ii) From the bottom row of Fig. 3(b) , we see that passengers have very similar parking behaviours in different times during COVID-19. Most passengers' cars are parked in residential areas in weekday and weekend. In particular, Ronganfu residential community, and Tuyuan residential community in weekday (two hotspots in the bottom-left of Fig. 3(b) ), and Ziyutai residential community, and Ronganfu residential community in weekend (two hotspots in the bottom-right of Fig. 3(b) ). To verify our method, we split each dataset (before and during COVID-19) into two subsets. Specifically, we take first 80% of the data for training, and the rest 20% are used to evaluate the results. To construct the weighted adjacency matrix, we use grid search to find the best decay factor within [0, 2], which is empirically set to be 1.25. The distance threshold 0 is set to 500 metres (Euclidean distance) in our experiments since previous studies indicate that people would take up to 500-metre walking to their final destination [16] . We have also compared different thresholds to examine the impact of distance thresholds in the following experiments. To train our framework, we empirically adjust and set the learning rate to 0.001, the batch size to 64, and the training epoch to 3000. Besides, we also approached four other baseline methods (ARIMA, ANN, SVR, and GRU) for comparisons. Three criteria (RMSE, MAE, MAPE) are used as evaluation metrics. For each criterion, larger value indicates greater error, and vice versa. The overall parking occupancy prediction results using data from before and during COVID-19 are shown in Table 1 and Table 2 , respectively. We can see: (i) Our framework achieves the best results with the lowest errors compared with other methods in all the time periods (before and during COVID-19). In particular, our framework has higher prediction accuracy than GRU, which demonstrates the effectiveness of modelling spatial dependence among parking lots and further implies that parking behaviours in nearer parking lots have stronger spatial correlations since > 1. (ii) In general, the parking prediction errors during COVID-19 is higher than that of normal days for both GRU and our framework (e.g. RMSE is 0.09 and 0.28 during the pandemic compared with 0.07 and 0.06 before COVID-19 for our framework). This implies that the parking behaviours are much more irregular during COVID-19 and it is harder for the models to make right predictions. (iii) Our framework improves the prediction performance (over GRU) more significantly during COVID-19, with RMSE decrease of 0.04 and 0.01 during COVID-19 and limited improvement before COVID-19. This suggests that the modelling of spatial dependence contributes more with cases of higher time irregularity. To go deeper, we select two typical parking lots (i.e. Shipu restaurant and Shanjing shopping centre) to investigate into the performance of our framework and baseline GRU during COVID-19. In particular, this two typical parking lots are highly influenced by COVID-19 and have poor time regularities during this time period. The forecasting results are presented in Fig. 4 . From the results, we can see that our framework has much better performance than GRU on predicting future parking occupancy during COVID-19. This further reinforce our findings that the incorporation of spatial dependence can help when there is less temporal regularity. We therefore argue the importance of modelling spatial correlations for more accurate and robust parking occupancy prediction, especially during emergencies. To evaluate the impact of distance threshold on forecasting accuracy, we compare the results of using different threshold settings, i.e. 500 m, 1 km, and infinity (full connection). The results are presented in Table 3 . As can be seen, the threshold of 500 m has the best To further investigate the reason why citizens' parking behaviours exhibit higher temporal irregularity, we extract passengers' social activity-related parking patterns between normal days and COVID-19 period. Firstly, we annotate the related activity of each parking lot via Gaode Map (a Chinese online mapping service like Google Maps). Then, for each type of activity, we calculate the average occupancy of all related parking lots in the certain time period. The results are shown in Fig. 5 . From the results, we can see that: (i) In general, parking occupancy during COVID-19 is lower than normal days, especially for work, hotel, and shopping-related activities. This suggests that people reduce their time for unnecessary activities to avoid infection. One interpretation is, some citizens choose to work at home, and reduce the number of shopping time; (ii) in weekdays, people would spent much more time to bank (48% parking occupancy), medical institutions (82%), taking a trip in different city (hotel-related activity, 78%), or go to market in normal days than in COVID-19. (iii) in weekends, citizens would spent less time especially for entertainment, school, and medical related activities during COVID-19. However, during COVID-19, market-related activities were much higher than normal (90%). This is reasonable and suggests that, during COVID-19, people would spend as much time as they could staying at home to avoid infection, and they would prefer to buy sufficient daily necessities at weekends. (iv) In addition, we find that parking lots which locate near the banks always have lower occupancy compared with other activities. This may be due to several reasons: first, banks reserve some parking space for the safety of cash truck; second, some banks would reserve parking space for their customers, and other cars are not welcomed. In this paper, we have proposed a spatial-aware parking prediction framework leveraging both spatial and temporal correlations among parking lots. A case study in Ningbo, China has been conducted to evaluate the proposed method. Results demonstrate that the framework has higher predictive power than other baseline methods, especially for the case with less time regularities (such as during COVID-19). Our study therefore highlights the importance of spatial correlation, in addition to temporal dependence, in forecasting parking behaviours, particular in unexpected situations with irregular time patterns. Though proposed for parking prediction, our method can also be applied to make spatio-temporal forecasting of other location-related variables such as temperature and air quality from temporal observations of monitoring stations. In addition, we have also discovered spatio-temporal patterns of parking behaviour before and during COVID-19 in Ningbo, using parking data containing approximately one million parking records over half year time span. The results show that personal cars are used much less during COVID-19 than before, especially for unnecessary activities like entertainment and long-distance travelling. Besides, most of the cars are parked in the residential areas during the pandemic, while passengers prefer to park their car in workplaces and residential areas in weekdays and city centres for entertainment in weekends before COVID-19. In future, we would like to perform the following extensions: (i) link the parking data with more data sources to enhance the parking behaviour forecasting and analysis, (ii) further improve the forecasting method by improving the integration of the connection graph and spatio-temporal forecasting model. On-street car parking prediction in smart city: a multi-source data analysis in sensor-cloud environment An econometric forecasting model of revenues from urban parking facilities Data driven spatio-temporal modeling of parking demand Extracting activity patterns from taxi trajectory data: a two-layer framework using spatio-temporal clustering, Bayesian probability and Monte Carlo simulation Geographical huff model calibration using taxi trajectory data Shortterm forecasting of available parking space using wavelet neural network model Semi-Supervised Classification with Graph Convolutional Networks Finding available parking spaces made easy Unoccupied parking space prediction of chaotic time series Coronavirus disease 2019 (COVID-19): situation report Towards an intelligent GPS-based vehicle navigation system for finding street parking lots Where is my parking spot? online and offline prediction of time-varying parking occupancy Spatial variations in urban public ridership derived from GPS trajectories and smart card data A real-time parking prediction system for smart cities A deep learning approach to real-time parking occupancy prediction in transportation networks incorporating multiple spatio-temporal data sources Exploratory calibration of a spatial interaction model using taxi GPS trajectories T-GCN: A Temporal Graph Convolutional Network for Traffic Prediction Parking availability prediction for sensor-enabled car parks in smart cities Effects of human mobility restrictions on the spread of COVID-19 in Shenzhen, China: a modelling study using mobile phone data Joint prediction of road-traffic and parking occupancy over a city with representation learning