Next Article in Journal
SYSML4TA: A SysML Profile for Consistent Tolerance Analysis in a Manufacturing System Case Application
Previous Article in Journal
3D Surface-to-Surface Contact Algorithm for SPH Method and Its Application to Simulation of Impact Failure of Ceramic Plate
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Vacant Parking Spaces in Multiple Parking Lots: A DWT-ConvGRU-BRC Model

1
School of Transportation, Fujian University of Technology, Fuzhou 350108, China
2
School of Transportation, Southeast University, Nanjing 210036, China
3
College of Transportation Engineering, Tongji University, Shanghai 201804, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(6), 3791; https://doi.org/10.3390/app13063791
Submission received: 21 February 2023 / Revised: 14 March 2023 / Accepted: 15 March 2023 / Published: 16 March 2023
(This article belongs to the Topic Intelligent Transportation Systems)

Abstract

:
For cities, the problem of “difficult parking and chaotic parking” increases carbon emissions and reduces quality of life. Accurately and efficiently predicting the availability of vacant parking spaces (VPSs) can help motorists reduce the time spent looking for a parking space and reduce greenhouse gas pollution. This paper proposes a deep learning model called DWT-ConvGRU-BRC to predict the future availability of VPSs in multiple parking lots. The model first uses a discrete wavelet transform (DWT) to denoise the historical parking data and then extracts the temporal correlation of the parking lots themselves and the spatial correlation between different parking lots using a convolutional gated recurrent unit network (ConvGRU) while using a BN-ReLU-Conv (1 × 1) module to further improve the propagation and reuse of features in the prediction process. In addition, the model uses availability, temperature, humidity, wind speed, weekdays, and weekends as inputs to improve the accuracy of the forecasts. The model performance is evaluated through a case study of 11 parking lots in Santa Monica. The DWT-ConvGRU-BRC model outperforms the LSTM and GRU baseline methods, with an average testing MAPE of 2.12% when predicting multiple parking lot occupancies over the subsequent 60 min.

1. Introduction

With economic and population growth, motor vehicle ownership is growing rapidly, which has exacerbated the imbalance between the supply and demand of vacant parking spaces (VPSs) in cities. Drivers typically spend 3.5–14 min looking for a VPS and cruising to find a VPS accounts for 8–74% of traffic [1]. Excessive time spent by drivers looking for VPSs increases time costs, fuel consumption, and emissions and leads to traffic congestion [2]. Parking difficulties and disorderly parking problems are often affected by accessibility, parking prices, and the number of VPSs.
To address this problem, some parking management and inducement systems have been developed to provide real-time VPS information [3,4,5,6]. These systems typically collect real-time available parking data using cameras and sensors [7,8]. In addition, several crowd-sensing-based schemes monitor the availability of street parking using mobile communication devices and in-vehicle sensors [9,10]. However, these parking guidance systems cannot guarantee the real-time nature of a VPS. That is, when a driver arrives at the designated parking space, the parking space may already be occupied. Due to the high cost of sensor equipment and maintaining real-time parking information, Y et al. [11] and Baidu Maps proposed a model named Du-parking to estimate the real-time parking availability of the whole city. Therefore, to enable car owners to purposefully find parking spaces, it is necessary to develop a parking guidance information system with predictive algorithms that can help drivers plan driving routes to find VPSs and reduce driving costs [12], which can assist traffic planning and management to reduce energy consumption and traffic congestion [2].
In this paper, we propose a DWT-ConvGRU-BRC model. This model consists of a discrete wavelet transform (DWT) [13], convolutional GRU networks (ConvGRUs) [14], a two-layer linear network, and a composite function of three consecutive operations, i.e., batch normalization (BN), rectified linear activation (ReLU), and a 1 × 1 convolution (Conv), denoted BRC. First, we use the DWT to denoise the VPS data. Noise reduction before forecasting can eliminate the volatility of the VPS data themselves. Then, we use a deep learning-based prediction model that leverages ConvGRUs and a two-layer linear network to incorporate the spatial–temporal features of multiple data sources acquired in networks. Finally, the propagation and reuse of features in the prediction process are further improved using the BRC composite function.
This paper contributes to the literature in the following ways:
  • We propose a deep learning-based parking space prediction model from the perspective of multiple parking lots. The model considers the processing of parking noise data as well as the spatial correlation of multiple parking lots and the temporal correlation of the parking lots themselves and uses a variety of factors, including parking lot occupancy, temperature, humidity, wind speed, weekdays, and holidays, to predict the number of available VPSs.
  • Our proposed DWT-ConvGRU-BRC model can simultaneously predict the number of available parking spaces in multiple parking lots. Specifically, a ConvGRU is used to capture the spatial–temporal features of multiple parking lots, a two-layer linear layer is used to extract external influences, and BRC is used to further improve the propagation and reuse of features in the prediction process.
  • The performance of the method is evaluated with a case study in the Santa Monica area. According to the results, the model outperforms other baseline methods, including LSTM, GRU, ConvGRU, and dConvLSTM-DCN models. Moreover, the results prove the improvement in prediction accuracy from the DWT and the effectiveness of incorporating weekday, vacation, and weather features into parking lot occupancy predictions.
The rest of this paper is organized as follows: Section 2 summarizes the literature review. Section 3 describes the detailed DWT-ConvGRU-BRC prediction model. Section 4 presents the results and analysis of the comparison experiments. Finally, we provide our conclusions and discuss possible future work in Section 5.

2. Literature Review

Access to VPS data has become easier with breakthroughs in sensor technology. However, the VPS data obtained in practical applications are often subject to different degrees of noise pollution. How to effectively process the data collected by sensors and improve the accuracy of algorithms is a thorny problem that many existing prediction methods still face. To solve this problem, wavelet analysis has been applied in some recent studies and has proven to be effective. For example, Li et al. [15] used the wavelet function for multiscale wavelet decomposition and reconstruction of VPS data using the hidden layer function of a wavelet neural network to improve prediction accuracy. Ji et al. [16] proposed a multistep prediction study of impacted parking spaces based on a WT in combination with a multistep prediction strategy using threshold noise reduction to further improve the prediction accuracy. Therefore, effective noise removal helps to improve the efficiency and accuracy of prediction.
Predicting the occupancy rate of multiple parking lots is one of the necessary links to solve the “difficult parking” problem. In recent years, VPS prediction has been divided into two categories: one is based on a statistical prediction model, and the other is based on machine learning (ML) and deep learning (DL). For statistical prediction models, Caliskan et al. [17] combined continuous Markov and queuing theory models to predict the occupancy status of parking lots in the destination area. On this basis, Xiao et al. [18] proposed a continuous-time Markov M\M\C\C model for predicting available parking spaces. Caicedo et al. [19] proposed a real-time available dynamic algorithm using historical information to predict the availability of each parking lot. In addition, Rajabioun et al. [20] developed a vector spatiotemporal autoregressive model that can be used to predict the availability of parking spaces at a driver’s estimated arrival time at both on-street and off-street parking locations. Peng et al. [21] modelled the discrete occupancy rate of a parking lot as a nonstationary Poisson process and proposed a cost-effective method for searching for parking spaces. Abdeen et al. [22] proposed a smart parking algorithm that varied the weights of five factors (availability, gate wait time, parking cost, traffic congestion, and driving distance to the parking lot) to achieve balanced traffic allocation and parking best use of the field. In fact, these statistical prediction models are highly dependent on assumptions about the arrival and departure process and therefore have difficulty adapting to the dramatic fluctuations in parking traffic flow.
For ML/DP prediction models, researchers have applied models such as regression trees, support vector machines (SVMs), support vector regression (SVR), neural networks, K-nearest neighbour (KNN), and random forests models to predict parking availability [23,24,25,26,27]. Hu et al. [28] combined support vector regression (SVR) and the fruit fly optimization algorithm (FOA) to predict the number of vacant parking spaces. Fan et al. [29] optimized a multi-step long short-term memory recurrent neural network (LSTM-NN) model with a grid search method to predict the number of vacant parking spaces. Moreover, many scholars have combined nonlinear system theory and optimization algorithms with neural networks to improve prediction accuracy. For example, Vlahogianni et al. [30] used a genetic algorithm-optimized multilayer perception (MLP) to predict the occupancy rate of a regional parking lot over the subsequent 30 min. Camero et al. [31] used a genetic algorithm (GA) combined with a recurrent neural network (RNN) to predict parking occupancy in Birmingham. Zeng et al. [32] combined a wavelet transform (WT) with bi-directional LSTM (Bi-LSTM) to further improve the prediction accuracy using threshold noise reduction.
In addition, some scholars have considered the influence of external factors, such as weather and holidays, on VPS forecasting. Fokker et al. [33] explored the influence of external factors such as weather on parking occupancy and found that external factors improved the predictive performance by 8%. In Zhang’s [34] work, a PewLSTM was proposed for predicting parking behaviour by combining the effects of weather and parking periodicity. Zeng et al. [35] proposed a stacked gated recurrent unit (GRU)-LSTM model that combined the efficiency of a GRU and the accuracy of LSTM and incorporated various factors as inputs, such as weather, to predict the availability of parking spaces. ML/DL methods can automatically learn from past samples to better describe complex nonlinear problems. However, the ML/DP methods described above only consider the temporal correlation of VPS data and fail to consider the spatial correlation of VPSs in multiple parking lots.
Therefore, this paper proposes a model called DWT-ConvGRU-BRC to predict the number of VPSs in multiple parking lots. Our model combines the advantages of wavelet transform. While capturing the spatial–temporal correlation of multiple parking lot data, it also takes external factors such as weather as input to improve the accuracy of the model. Previous research related to our methodology includes DWT-Bi-LSTM [32] and dConvLSTM-DCN [36].

3. Methodology

3.1. Data Description

To evaluate the performance of the proposed prediction model, we conducted a case study in Santa Monica, CA, USA (longitude range: [−118.499378, −188.49361], latitude range: [34.019575, 34.010806]) [37], which has 11 parking lots scattered over the road network, as illustrated in Figure 1. The data were collected from 6 April 2021 to 13 May 2021. The number of VPSs was collected every 5 min, resulting in 10,944 pieces of historical data per parking lot.
We use a 100 m × 100 m grid to divide the target area into H × W grids (Figure 1). Each parking lot in the region is distributed in a different grid, and a grid without a parking lot distribution is considered to have no VPSs in that grid. Then, the number of VPSs in the area at time t is denoted as:
V t = v t ( 1 , 1 ) v t ( 1 , 2 ) v t ( 1 , W ) v t ( 2 , 1 ) v t ( 2 , 2 ) v t ( 2 , W ) v t ( H , 1 ) v t ( H , 2 ) v t ( H , W )
where each element in the matrix, denoted as v t ( h , w ) , h [ 0 , H ] , and w [ 0 , W ] , is the number of VPSs in the grid (h, w). This area is divided into a total of 60 grids, with H being 10 and W being 6.
The 11 parking lots we selected in the grid area are the St1–St9 parking lots, Lot1 parking lot, and Library parking lot. These parking lots are mainly distributed in recreational, commercial, and residential areas. It is worth noting that there are similarities and differences in the evolution of the number of spaces in these parking lots. We can imagine that the closer the parking lot types and the closer the distance, the more they should have the characteristics of time–space correlation. We take the Lot1, St5, and St7 parking lots as examples to mine the characteristics of different parking lots from the perspective of spatiotemporal correlation, considering that the St5 and St7 parking lots represent commercial areas and are close to each other, and the Lot1 parking lot represents entertainment areas.
Figure 2 and Figure 3 show the spatiotemporal characteristics of these 3 parking lots. The x-axis represents the time interval. The y-axis represents the change in VPSs, where a positive number represents the outflow of vehicles. The larger the number is, the greater the number of VPSs. Figure 2 shows that the inflow on weekends is significantly higher than that on weekdays during the almost full day in the Lot1 parking lot. The Lot1 parking lot represents an entertainment area, which tends to be crowded on weekends. In contrast, between 7 a.m. and 9 a.m., the inflow of the St5 and St7 parking lots is higher on weekdays than on weekends, which may be influenced by the parking of mall workers. In addition, we explore the impact of weather factors on the availability of VPSs.
The number of parking occupancies is different for hazardous weather and normal weather. It can be imagined that when encountering hazardous weather such as heavy rain, heavy snow, and smog, people may reduce travel in private cars, so the number of available parking spaces will increase. The results for the three representative parking lots are shown in Figure 3. For the entertainment area represented by Lot1 and the commercial areas represented by St5 and St7, a significant decrease in parking occupancy was observed for all hours of the day under hazardous weather conditions. To assess the impact of hazardous weather conditions on parking demand, we define weather to be considered hazardous if one or more of the following conditions are met: (1) fog or snow, (2) wind speed greater than 39 km/h, (3) precipitation intensity greater than 0.15 inches per hour. All other conditions are considered normal weather conditions. Similar to the research of Yang et al. [38] and Zhao et al. [39], we conduct ablation experiments in Section 4 to explore the influence of external factors such as weather on parking prediction.

3.2. Prediction Model

The DWT-ConvGRU-BRC model provided in this study consists of four components, namely, the DWT component, three ConvGRU components, the meta-info feature extraction component, and the BRC component (Figure 4). The first component is the DWT module, which performs noise reduction on VPS data by means of the db3 wavelet basis function. The second component is the ConvGRU module. A CNN can capture spatial correlation well but not temporal correlation. A GRU and LSTM can both model temporal correlation well, but a GRU maintains the prediction accuracy and reduces the running speed compared to LSTM. Therefore, an integration of a CNN and GRU to form a three-layer ConvGRU network can capture both temporal and spatial correlations. The third component is a two-layer linear layer module that incorporates external factors such as temperature, wind speed, humidity, weekdays, and vacations into the model to enhance the accuracy of long-term forecasts. Finally, feature fusion is performed using the BRC layer to obtain predictions via the sigmoid function.

3.2.1. Discrete Wavelet Transform (DWT) Denoising

Time series data obtained in practical applications are often contaminated by various forms and degrees of noise. The discrete wavelet transform is very appropriate for noise filtering, which makes it a good choice for time series data processing [40]. When time series data are decomposed by a DWT, the original signal is separated into approximate coefficients and detail coefficients at different resolution levels. The information of the original signal is retained in the wavelet coefficients, and a perfect reconstruction of the original data can be performed from these coefficients. However, some of the detail coefficients that represent the detailed motion in the data can be identified as noise. These coefficients can then be set to zero prior to the DWT reconstruction process to filter out the noise from the original time series, and reconstruction involves reconstructing the time series from every component except the noise. In other words, a DWT is a discretization of the scales and translations of the fundamental wavelet. A DWT can be defined as:
W φ f ( m , n ) = 2 m 2 R f ( t ) ψ ¯ ( 2 m t n ) d t
where ψ ¯ is the complex conjugate of ψ , formula ψ satisfies + ψ ( t ) d t = 0 , and m and n are integers.
Appropriate wavelet basis functions are very important to extract the features of parking data. Kaplun et al. [41] selected the appropriate wavelet basis function based on entropy estimation in the matching pursuit algorithm. Bhavsar et al. [42] chose the appropriate wavelet basis function by calculating the magnitude of the mutual information. In this paper, we measure the dependence between two variables by calculating the normalized mutual information (NMI), which places the mutual information between [0, 1], and it is easy to choose a suitable wavelet basis function. The NMI is defined as:
N M I ( X , Y ) = 2 ( H ( X ) H ( X | Y ) ) H ( X ) + H ( Y )
where H ( X ) and H ( Y ) represent the entropy of variables X and Y , respectively. H ( X | Y ) is the conditional entropy for X given Y .
In this study, the basisfunctions of the compared wavelets are Daubechies (db3), symlet (sym3), and coiflet (coif3). It can be seen from Figure 5 that db3 has the highest NMI relative to other wavelet functions. After experimental comparison, the db3 wavelet basis is selected for wavelet decomposition of the experimental time series, and the number of decomposition levels is 3, which can remove the noise while maintaining the fluctuation characteristics of the time series data as much as possible.
We take the St7 parking lot as an example to show the specific process of the DWT component. The original VPS data and its decomposition components are shown in Figure 6. Red is the high-frequency sequence decomposed three times, and blue is the low-frequency sequence. The denoising was performed using the threshold method, and then the denoised time series was reconstructed. Figure 7 shows the comparison between the original and denoised data. We can see that the overall regularity of the denoised data has increased, and the trend tends to be smoother, which is more suitable for model construction. As in Equation (1), the denoised data are X t .

3.2.2. Convolutional Gated Recurrent Unit (ConvGRU)

A key difference between a ConvGRU and GRU is that the former uses a convolution operator rather than a fully concatenated operator. Therefore, a ConvGRU can better capture spatial–temporal correlations. Figure 8 shows the internal structure of the ConvGRU cell, where CAT and UCAT denote the concatenation and splitting operations, respectively. The detailed information flow of a ConvGRU is shown in the following equations:
z t = σ ( W x z * x t + W h z * h t 1 )
r t = σ ( W x r * x t + W h r * h t 1 )
h t = tanh ( W x h * x t + r t ( W h h * h t 1 ) )
h t = ( 1 z t ) h t + z t h t 1
where z t denotes the update gate, r t denotes the reset gate, and h t denotes the candidate hidden state. x t denotes the input of the current step and h t and h t 1 denote the hidden state of the current and previous steps, respectively. x t and h t 1 are the input and output vectors of the current time point, respectively, and W . z , W . r , and W . h are the convolutional kernels for each gate. In addition, σ and tanh are the sigmoid and hyperbolic tangent activation functions, respectively, * is the convolution operation, and denotes the Hadamard product.
Specifically, given X t (the denoised data) and h t 1 as inputs at time step t, the unit first obtains the output of the update gate and reset gates, respectively, using Equations (4) and (5). Then, using Equation (6), the temporal hidden state h t can be calculated, which considers both the input X t and the hidden state h t 1 produced by the previous ConvGRU operator. The final hidden state h t of the unit is produced by a linear combination of temporal hidden state h t and previous hidden state h t 1 using Equation (7). We denote the output of this part as follows:
O c = h t h t 5 ( m 2 ) h t 5 ( m 1 )
where m denotes the number of data divided into 5 min intervals and is the concatenation operation.

3.2.3. External Factor Extraction and Feature Learning

Parking spaces have obvious periodic characteristics. We analysed the impact of external factors, such as weekdays, non-weekdays, hazardous weather, and normal weather, on the availability of parking spaces. External factors can affect parking events and are an important part of the model. A two-layer linear layer was designed to consider the impact of external factors on VPSs. We record the data collected from [43] on temperature, wind speed, humidity, etc., and weekdays and non-weekdays as inputs to this section as n. Bringing n into Equation (9), we obtain O l H W × 1 :
O l = σ ( w n , 2 σ ( w n , 1 n + b n , 1 ) + b n , 2 )
where σ is the activation function and w n , i , b n , i , i = 1 , 2 are the weights and deviations of the i-th linear function. For feature learning, we convert the resulting output O l H W × 1 to O l H × W via the Reshape function.
The outputs of the three ConvGRUs and the additional factor extraction component are concatenated together, denoted as O i = O c O l , and fed into the BRC layer. The BRC layer is a composite function of three consecutive operations, i.e., batch normalization (BN), rectified linear activation (ReLU), and a 1 × 1 convolution (Conv). We use the BRC layer to implement feature reuse and propagation. Finally, the prediction is obtained by applying the sigmoid function.

4. Experimental Results

4.1. Experimental Setup and Evaluation Indicators

In our experiments, we select 60% of the data as the training set, 20% as the validation set, and the rest as the test set. We normalize the denoised data using Equation (10) and then slice it into the model using single-step moving window data of length 10. For training, the gradient descent optimization algorithm is the Adam [44] algorithm, the learning rate is 0.01, the loss function is the MAE, the epoch size is 32, the batch size is 32, and the number of ConvGRU layers (k) is 3. The numbers of VPSs after 5, 15, 30, 45, and 60 min are predicted accordingly. To avoid contingency, each prediction task was independently repeated 30 times, and the mean values were taken as the results. The DWT-ConvGRU-BRC model is implemented using PyTorch version 1.11.0, and the experimental equipment includes a 12th Gen lntel(R) Core(TM) i5-12600KF processor and an NVIDIA GeForce GTX 30600Ti GPU with 16 GB memory.
x * = x min max min
where max and min represent the maximum and minimum values of the sample data, respectively, and max–min represents the range.
We use the mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean square error (RMSE) to measure the accuracy of the predicted values. All three evaluation metrics have a range of [0, +∞) and are equal to 0 when the predicted value exactly matches the true value, i.e., a perfect model; the larger the error is, the larger the value. The definitions are shown in Equations (11)–(13).
M A E = 1 n i = 1 n y i y i
M A P E = 100 % n i = 1 n y i y i y i
R M S E = 1 n i = 1 n ( y i y i ) 2
where y i denotes the actual VPSs, y i denotes the predicted VPSs, and n denotes the time step.

4.2. Results and Analysis

Fifty experiments were carried out, and the mean was selected as the result to improve the statistical significance of the difference in precision. Table 1 shows the detailed RMSE, MAE, and MAPE data for our DWT-ConvGRU-BRC model. Figure 9 shows the effect of the DWT-ConvGRU-BRC model in the Lot1, St5, and St7 parking lots for 5, 15, 30, 45, and 60 min VPS predictions, where the x-axis represents the time interval, and the y-axis represents the number of VPSs. Our model is robust in predicting the availability of VPSs in multiple parking lots.
From Section 3, we conclude that parking occupancy is affected by external factors such as weather. This is consistent with the conclusions drawn in [33,34,35,38,39]. Therefore, we performed ablation experiments in Table 1 to compare the effect of the presence or absence of external factors on VPS prediction. We find that the inclusion of external factors such as temperature, wind speed, weekdays, and weekends was beneficial in improving the accuracy of the forecasts. For the RMSE, MAE, and MAPE, the forecasting models with external factors outperformed those without external factors in 40, 35, and 39 of the 55 forecasting tasks, respectively. This shows that considering external factors can improve the accuracy of VPS prediction, so it can be said that external factors have a significant impact on parking prediction. Figure 10 specifically shows the prediction effect of our proposed DWT-ConvGRU-BRC model for each parking lot. It can be seen from the figure that our model has good timeliness in predicting the number of VPSs in multiple parking lots, and it is relatively robust to changes in the spatial–temporal correlation of VPSs and can accurately achieve predictions.
As some models can only predict for a single parking lot, we compared the effectiveness of these models in predicting the number of VPSs at 5, 15, 30, 45, and 60 min, using the St7 parking lot as an example. The LSTM and GRU models can effectively extract temporal information from nonlinear time series data, but they fail to consider the spatial correlation between parking lots within a region. The ConvGRU model outperforms the ConvLSTM model in terms of running speed while capturing spatial–temporal correlations. After wavelet noise reduction, the forecasts improved significantly, and external factors, such as weather, improved the accuracy of the long-term forecasts. As illustrated in Table 2, the proposed DWT-ConvGRU-BRC model is significantly superior to the benchmark methods.
To illustrate the ability of the proposed model to predict the actual number of VPSs, in Table 3, we present a detailed comparison between the actual and predicted number of St7 parking lot VPSs (from 10:00 to 11:00, 6 May 2021) output by the proposed DWT-ConvGRU-BRC model. We also calculate the MAE, MAPE, and RMSE values for the time period. The output values of the DWT-ConvGRU-BRC model are very close to the real values.
In addition, model performance evaluation should consider both prediction accuracy and time consumption. Table 4 compares the running times per round of the LSTM, GRU, ConvGRU, ConvLSTM, dConvLSTM-DN, DWT-ConvGRU, and DWT-ConvGRU-BRC models. The DWT-ConvGRU-BRC model considers the effects of factors such as wavelet noise reduction and external factors, so it is slightly inferior to the models that do not consider these factors in terms of running speed, but compared to the dConvLSTM-DN model proposed in [36], our model shows a significant improvement in running speed. In conclusion, our proposed model not only improves the effectiveness of predictions but also improves the running speed.

5. Conclusions

This paper proposes a deep learning model for occupancy prediction of multiple parking lots. The model incorporates DWT, ConvGRU, and BRC modules and has the flexibility to take multiple spatial–temporal structured data sources as inputs. The performance of the model is evaluated using a case study from 11 public parking lots in Santa Monica, California, USA, in which VPS data, weather data, and weekday and weekend data are used. The experimental results show that our model can achieve considerably high accuracy with MAPEs of less than 2% for short-term predictions and less than 4% for long-term predictions. The DWT-ConvGRU-BRC model significantly outperforms the baseline LSTM and GRU methods. In general, we found that noise reduction of VPS data using a DWT can improve prediction accuracy and that combining weather information and weekday and weekend information can improve the performance of long-term predictions of parking occupancy.
Prediction of available parking spaces is an integral part of parking guidance information systems. Available parking space predictions can improve the effectiveness of parking guidance system information, which can help drivers plan driving routes and find vacant parking spaces. Furthermore, if we have a reliable parking prediction algorithm, we can apply dynamic parking pricing to control the parking demand of each parking lot, thereby assisting traffic planning and management and reducing energy consumption and traffic congestion. In future work, we will concentrate on further improving the adaptability by considering other external influences, such as POI information, traffic incident data, traffic flow data, etc. At the same time, future research will also consider how the running time of the model can be optimized while ensuring prediction accuracy.

Author Contributions

Methodology, W.J.; Formal analysis, Z.H.; Resources, W.J.; Writing—original draft, W.F.; Writing—review & editing, L.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Fujian Natural Science Foundation (Project No.: 2020J05194, 2021J05226, and 2022J01938).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Shoup, D.C. Cruising for parking. Transp. Policy 2006, 13, 479–486. [Google Scholar] [CrossRef]
  2. Caicedo, F. Real-time parking information management to reduce search time, vehicle displacement and emissions. Transp. Res. Part D Transp. Environ. 2010, 15, 228–234. [Google Scholar] [CrossRef]
  3. Khanna, A.; Anand, R. IoT based smart parking system. In Proceedings of the IEEE 2016 International Conference on Internet of Things and Applications (IOTA), Pune, India, 22–24 January 2016; pp. 266–270. [Google Scholar] [CrossRef]
  4. Wang, H.; He, W. A reservation-based smart parking system. In Proceedings of the 2011 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), Shanghai, China, 5–10 April 2011; pp. 690–695. [Google Scholar] [CrossRef] [Green Version]
  5. Yan, G.; Yang, W.; Rawat, D.B.; Olariu, S. SmartParking: A Secure and Intelligent Parking System. IEEE Intell. Transp. Syst. Mag. 2011, 3, 18–30. [Google Scholar] [CrossRef]
  6. Idris, M.; Leng, Y.; Tamil, E.; Noor, N.; Razak, Z. Car Park System: A Review of Smart Parking System and its Technology. Inf. Technol. J. 2009, 8, 101–113. [Google Scholar] [CrossRef] [Green Version]
  7. Parking Sensor Data Guide—SFMTA. Available online: https://www.sfmta.com/sites/default/files/reports-and-documents/2018/08/sfpark_dataguide_parkingsensordata.pdf (accessed on 15 May 2022).
  8. On-Street Parking Fee Collection Goes Digital in Cen-Tral Beijing. Available online: https://www.chinadaily.com.cn/a/201907/02/WS5d1af0b9a3105895c2e7b2bc.html (accessed on 16 May 2022).
  9. Xu, B.; Wolfson, O.; Yang, J.; Stenneth, L.; Yu, P.S.; Nelson, P.C. Real-time street parking availability estimation. In Proceedings of the 2013 IEEE 14th International Conference on Mobile Data Management, Milan, Italy, 3–6 June 2013; pp. 16–25. [Google Scholar] [CrossRef]
  10. Bock, F.; Di Martino, S.; Origlia, A. Smart Parking: Using a Crowd of Taxis to Sense On-Street Parking Space Availability. IEEE Trans. Intell. Transp. Syst. 2019, 21, 496–508. [Google Scholar] [CrossRef]
  11. Rong, Y.; Xu, Z.; Yan, R.; Ma, X. Du-parking: Spatio-temporal big data tells you realtime parking availability. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, London, UK, 19–23 August 2018; pp. 646–654. [Google Scholar] [CrossRef] [Green Version]
  12. Kotb, A.O.; Shen, Y.-C.; Zhu, X.; Huang, Y. iParker—A New Smart Car-Parking System Based on Dynamic Resource Allocation and Pricing. IEEE Trans. Intell. Transp. Syst. 2016, 17, 2637–2647. [Google Scholar] [CrossRef] [Green Version]
  13. Shensa, M. The discrete wavelet transform: Wedding the a trous and Mallat algorithms. IEEE Trans. Signal Process. 1992, 40, 2464–2482. [Google Scholar] [CrossRef] [Green Version]
  14. Shi, X.; Gao, Z.; Lausen, L.; Wang, H. Deep learning for precipitation nowcasting: A benchmark and a new model. Adv. Neural Inf. Process. Syst. 2017, 30, 5622–5632. [Google Scholar] [CrossRef]
  15. Li, T.T.; Yang, Y.; Yu, P.; Zhao, H. Optimize the multi-step prediction of parking berths in the wavelet neural network. Chongqing Norm. Univ. 2018, 35, 113–120. [Google Scholar]
  16. Ji, Y.-J.; Gao, L.-P.; Chen, X.-S.; Guo, W.-H. Strategies for multi-step-ahead available parking spaces forecasting based on wavelet transform. J. Central South Univ. 2017, 24, 1503–1512. [Google Scholar] [CrossRef]
  17. Caliskan, M.; Barthels, A.; Scheuermann, B.; Mauve, M. Predicting parking lot occupancy in vehicular ad hoc networks. In Proceedings of the 2007 IEEE 65th Vehicular Technology Conference-VTC2007-Spring, Dublin, Ireland, 22–25 April 2007; pp. 277–281. [Google Scholar] [CrossRef]
  18. Xiao, J.; Lou, Y.; Frisby, J. How likely am I to find parking?—A practical model-based framework for predicting parking availability. Transp. Res. Part B Methodol. 2018, 112, 19–39. [Google Scholar] [CrossRef]
  19. Caicedo, F.; Blazquez, C.A.; Miranda, P.A. Prediction of parking space availability in real time. Expert Syst. Appl. 2012, 39, 7281–7290. [Google Scholar] [CrossRef]
  20. Rajabioun, T.; Ioannou, P.A. On-Street and Off-Street Parking Availability Prediction Using Multivariate Spatiotemporal Models. IEEE Trans. Intell. Transp. Syst. 2015, 16, 2913–2924. [Google Scholar] [CrossRef]
  21. Peng, L.; Li, H. Searching parking spaces in urban environments based on non-stationary Poisson process analysis. In Proceedings of the 2016 IEEE 19th International Conference on Intelligent Transportation Systems (ITSC), Rio de Janeiro, Brazil, 1–4 November 2016; pp. 1951–1956. [Google Scholar] [CrossRef]
  22. Abdeen, M.; Nemer, I.; Sheltami, T. A Balanced Algorithm for In-City Parking Allocation: A Case Study of Al Madinah City. Sensors 2021, 21, 3148. [Google Scholar] [CrossRef] [PubMed]
  23. Zheng, Y.; Rajasegarar, S.; Leckie, C. Parking availability prediction for sensor-enabled car parks in smart cities. In Proceedings of the 2015 IEEE Tenth International Conference on Intelligent Sensors, Sensor Networks and Information Processing (ISSNIP), Singapore, 7–9 April 2015; pp. 1–6. [Google Scholar] [CrossRef]
  24. Awan, F.M.; Saleem, Y.; Minerva, R.; Crespi, N. A Comparative Analysis of Machine/Deep Learning Models for Parking Space Availability Prediction. Sensors 2020, 20, 322. [Google Scholar] [CrossRef] [Green Version]
  25. Pflügler, C.; Köhn, T.; Schreieck, M.; Wiesche, M.; Krcmar, H. Predicting the availability of parking spaces with publicly available data. Informatik 2016, 2, 361–374. [Google Scholar]
  26. Chen, X. Parking Occupancy Prediction and Pattern Analysis; Technical Report CS229-2014; Department Computer Science, Stanford University: Stanford, CA, USA, 2014. [Google Scholar]
  27. Chen, B.; Pinelli, F.; Sinn, M.; Botea, A.; Calabrese, F. Uncertainty in urban mobility: Predicting waiting times for shared bicycles and parking lots. In Proceedings of the 16th International IEEE Conference on Intelligent Transportation Systems (ITSC 2013), The Hague, The Netherlands, 6–9 October 2013; pp. 53–58. [Google Scholar] [CrossRef]
  28. Fan, J.; Hu, Q.; Tang, Z. Predicting vacant parking space availability: An SVR method with fruit fly optimisation. IET Intell. Transp. Syst. 2018, 12, 1414–1420. [Google Scholar] [CrossRef]
  29. Fan, J.; Hu, Q.; Xu, Y.; Tang, Z. Predicting Vacant Parking Space Availability: A Long Short-Term Memory Approach. IEEE Intell. Transp. Syst. Mag. 2020, 14, 129–143. [Google Scholar] [CrossRef]
  30. Vlahogianni, E.I.; Kepaptsoglou, K.; Tsetsos, V.; Karlaftis, M.G. A Real-Time Parking Prediction System for Smart Cities. J. Intell. Transp. Syst. 2015, 20, 192–204. [Google Scholar] [CrossRef]
  31. Camero, A.; Toutouh, J.; Stolfi, D.H.; Alba, E. Evolutionary deep learning for car park occupancy prediction in smart cities. In Proceedings of the International Conference on Learning and Intelligent Optimization, Chania, Greece, 27–31 May 2019; Springer: Cham, Switzerland, 2019; pp. 386–401. [Google Scholar] [CrossRef]
  32. Zeng, C.; Ma, C.; Wang, K.; Cui, Z. Predicting vacant parking space availability: A DWT-Bi-LSTM model. Phys. A Stat. Mech. Appl. 2022, 599, 127498. [Google Scholar] [CrossRef]
  33. Fokker, E.S.; Koch, T.; van Leeuwen, M.; Dugundji, E.R. Short-Term Forecasting of Off-Street Parking Occupancy. Transp. Res. Rec. J. Transp. Res. Board 2021, 2676, 637–654. [Google Scholar] [CrossRef]
  34. Zhang, F.; Liu, Y.; Feng, N.; Yang, C.; Zhai, J.; Zhang, S.; He, B.; Lin, J.; Zhang, X.; Du, X. Periodic Weather-Aware LSTM With Event Mechanism for Parking Behavior Prediction. IEEE Trans. Knowl. Data Eng. 2021, 34, 5896–5909. [Google Scholar] [CrossRef]
  35. Zeng, C.; Ma, C.; Wang, K.; Cui, Z. Parking Occupancy Prediction Method Based on Multi Factors and Stacked GRU-LSTM. IEEE Access 2022, 10, 47361–47370. [Google Scholar] [CrossRef]
  36. Feng, Y.; Xu, Y.; Hu, Q.; Krishnamoorthy, S.; Tang, Z. Predicting vacant parking space availability zone-wisely: A hybrid deep learning approach. Complex Intell. Syst. 2022, 8, 4145–4161. [Google Scholar] [CrossRef]
  37. Santa Monica Open Data Portal. Available online: https://data.smgov.net/Transportation/Parking-Lot-Counts/ng8m-khuz (accessed on 13 May 2022).
  38. Yang, S.; Ma, W.; Pi, X.; Qian, S. A deep learning approach to real-time parking occupancy prediction in transportation networks incorporating multiple spatio-temporal data sources. Transp. Res. Part C Emerg. Technol. 2019, 107, 248–265. [Google Scholar] [CrossRef]
  39. Zhao, D.; Ju, C.; Zhu, G.; Ning, J.; Luo, D.; Zhang, D.; Ma, H. MePark: Using Meters as Sensors for Citywide On-Street Parking Availability Prediction. IEEE Trans. Intell. Transp. Syst. 2021, 23, 7244–7257. [Google Scholar] [CrossRef]
  40. Patil, R. Noise Reduction using Wavelet Transform and Singular Vector Decomposition. Procedia Comput. Sci. 2015, 54, 849–853. [Google Scholar] [CrossRef] [Green Version]
  41. Kaplun, D.; Voznesenskiy, A.; Romanov, S.; Nepomuceno, E.; Butusov, D. Optimal Estimation of Wavelet Decomposition Level for a Matching Pursuit Algorithm. Entropy 2019, 21, 843. [Google Scholar] [CrossRef] [Green Version]
  42. Bhavsar, K.; Vakharia, V.; Chaudhari, R.; Vora, J.; Pimenov, D.Y.; Giasin, K. A Comparative Study to Predict Bearing Degradation Using Discrete Wavelet Transform (DWT), Tabular Generative Adversarial Networks (TGAN) and Machine Learning Models. Machines 2022, 10, 176. [Google Scholar] [CrossRef]
  43. Weather Data Website. Available online: https://www.wunderground.com (accessed on 20 May 2022).
  44. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar] [CrossRef]
Figure 1. Distribution of parking lots in the region.
Figure 1. Distribution of parking lots in the region.
Applsci 13 03791 g001
Figure 2. Impact of holiday events (weekdays or weekends) on VPS changes (7 a.m. to 7 p.m.). (a) Lot1 parking lot; (b) St5 parking lot; (c) St7 parking lot.
Figure 2. Impact of holiday events (weekdays or weekends) on VPS changes (7 a.m. to 7 p.m.). (a) Lot1 parking lot; (b) St5 parking lot; (c) St7 parking lot.
Applsci 13 03791 g002
Figure 3. Impact of weather on VPS changes (7 a.m. to 7 p.m.). (a) Lot1 parking lot; (b) St5 parking lot; (c) St7 parking lot.
Figure 3. Impact of weather on VPS changes (7 a.m. to 7 p.m.). (a) Lot1 parking lot; (b) St5 parking lot; (c) St7 parking lot.
Applsci 13 03791 g003
Figure 4. DWT-ConvGRU-BRC model.
Figure 4. DWT-ConvGRU-BRC model.
Applsci 13 03791 g004
Figure 5. Wavelet selection based on normalized mutual information.
Figure 5. Wavelet selection based on normalized mutual information.
Applsci 13 03791 g005
Figure 6. db3 wavelet decomposition diagram.
Figure 6. db3 wavelet decomposition diagram.
Applsci 13 03791 g006
Figure 7. Original and denoised time series.
Figure 7. Original and denoised time series.
Applsci 13 03791 g007
Figure 8. Internal structure of the ConvGRU cell.
Figure 8. Internal structure of the ConvGRU cell.
Applsci 13 03791 g008
Figure 9. Comparison between the DWT-ConvGRU-BRC prediction and actual values at 5, 15, 30, 45, and 60 min. (a) St5 parking lot; (b) St7 parking lot; (c) Lot1 parking lot.
Figure 9. Comparison between the DWT-ConvGRU-BRC prediction and actual values at 5, 15, 30, 45, and 60 min. (a) St5 parking lot; (b) St7 parking lot; (c) Lot1 parking lot.
Applsci 13 03791 g009
Figure 10. DWT-ConvGRU-BRC model evaluation metrics for each parking lot. (a) RMSE; (b) MAE; (c) MAPE.
Figure 10. DWT-ConvGRU-BRC model evaluation metrics for each parking lot. (a) RMSE; (b) MAE; (c) MAPE.
Applsci 13 03791 g010
Table 1. Performance evaluation in terms of the MAE, RMSE, and MAPE.
Table 1. Performance evaluation in terms of the MAE, RMSE, and MAPE.
DWT-ConvGRU-BRC
without External Factors
DWT-ConvGRU-BRC
with External Factors
5 min15 min30 min45 min60 min5 min15 min30 min45 min60 min
RMSESt12.874.595.558.109.482.933.765.817.219.03
St25.724.567.268.8810.983.224.316.709.2910.26
St33.314.146.138.4210.783.213.806.208.069.44
St43.744.978.529.7513.903.654.747.4610.4311.80
St54.164.978.4312.5714.383.775.608.9212.0814.64
St65.206.179.4712.1215.004.866.079.7911.9814.83
St75.206.9912.1416.9021.405.076.4910.4415.3319.35
St86.147.2112.1816.6022.185.426.9711.1416.3820.74
St92.633.324.034.675.401.983.094.064.875.49
Lot19.2112.2718.8434.6041.729.1912.0119.5427.3834.50
Library2.482.283.343.654.492.322.283.734.585.23
MAESt12.012.913.855.646.482.082.584.005.136.19
St23.224.316.709.2910.262.293.124.916.517.44
St32.282.894.345.887.272.252.654.445.596.76
St42.673.545.886.779.892.563.405.337.248.17
St53.113.515.858.7110.012.624.016.118.0310.20
St63.774.366.888.7711.433.434.366.998.8011.08
St73.664.998.4211.5414.033.604.657.4110.5812.89
St84.094.938.3511.1014.263.804.977.7911.3813.78
St91.812.382.863.323.831.422.302.863.474.06
Lot15.577.7711.7521.6025.535.677.6812.6718.2223.18
Library1.591.432.182.403.041.641.562.303.003.19
MAPESt10.821.241.562.302.640.841.071.652.072.51
(%)St20.760.631.011.251.520.440.600.941.251.43
St31.041.372.032.753.371.011.202.002.553.08
St40.560.741.261.462.120.540.711.131.561.76
St50.660.781.301.902.200.580.881.341.792.21
St60.700.841.331.682.180.640.821.321.662.11
St70.791.101.832.572.960.780.971.562.262.75
St80.620.751.271.692.190.570.741.171.672.08
St90.740.961.161.341.550.570.921.161.401.63
Lot10.680.931.603.494.140.690.951.642.323.07
Library0.320.280.440.480.600.330.310.460.600.64
Table 2. Comparison of operating results.
Table 2. Comparison of operating results.
ModelIndicator5 min15 min30 min45 min60 min
RMSE14.8617.1420.8429.2434.45
LSTMMAE8.5411.0714.9226.7133.12
MAPE(%)1.321.722.314.155.17
RMSE10.4113.8618.7523.4229.54
GRUMAE7.8011.4015.1519.2521.74
MAPE(%)1.572.502.934.365.07
RMSE7.1410.4614.4117.8321.73
ConvGRUMAE4.747.2510.0112.3114.59
MAPE(%)1.011.512.082.623.16
RMSE7.7010.5514.2816.8720.01
ConvLSTMMAE5.157.309.9111.4513.14
MAPE(%)1.091.542.072.352.73
RMSE7.2310.7515.1017.8819.43
dConvLSTM-DCNMAE4.987.3610.1811.7713.02
MAPE(%)1.041.532.112.472.68
RMSE5.26.9912.1416.921.4
DWT-ConvGRUMAE3.664.998.4211.5414.03
MAPE(%)0.791.11.832.572.96
RMSE5.076.4910.4415.3319.35
DWT-ConvGRU-BRCMAE3.64.657.4110.5812.89
MAPE(%)0.780.971.562.262.75
Table 3. Comparisons between the real and predicted numbers of VPSs at the St7 parking lot.
Table 3. Comparisons between the real and predicted numbers of VPSs at the St7 parking lot.
TimeRealPredicted Values
PointValue5 min15 min30 min45 min60 min
6 May 2021 10:00652647643654674669
6 May 2021 10:05652645639643667661
6 May 2021 10:10644646636632659655
6 May 2021 10:15641642633620648645
6 May 2021 10:20643641632622637636
6 May 2021 10:25639641629617625626
6 May 2021 10:30638642625614611615
6 May 2021 10:35628632624615597604
6 May 2021 10:40615623624606593591
6 May 2021 10:45609613616605587578
6 May 2021 10:50603600606605582564
6 May 2021 10:55594594596605582557
6 May 2021 11:00584584585591575554
MAE 3.237.5412.0817.1520.69
MAPE(%) 0.511.191.912.743.36
RMSE 4.018.4514.1718.6923.46
Table 4. GPU runtimes of different prediction methods.
Table 4. GPU runtimes of different prediction methods.
ModelLSTMGRUConvLSTMConvGRU
Runtime (s/epoch)3.342.4617.2115.07
ModeldConvLSTM-DCNConvGRU-BRCDWT-ConvGRUDWT-ConvGRU-BRC
Runtime (s/epoch)21.8215.5116.0416.28
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Gao, L.; Fan, W.; Hu, Z.; Jian, W. Prediction of Vacant Parking Spaces in Multiple Parking Lots: A DWT-ConvGRU-BRC Model. Appl. Sci. 2023, 13, 3791. https://doi.org/10.3390/app13063791

AMA Style

Gao L, Fan W, Hu Z, Jian W. Prediction of Vacant Parking Spaces in Multiple Parking Lots: A DWT-ConvGRU-BRC Model. Applied Sciences. 2023; 13(6):3791. https://doi.org/10.3390/app13063791

Chicago/Turabian Style

Gao, Liangpeng, Wenli Fan, Zhiyuan Hu, and Wenliang Jian. 2023. "Prediction of Vacant Parking Spaces in Multiple Parking Lots: A DWT-ConvGRU-BRC Model" Applied Sciences 13, no. 6: 3791. https://doi.org/10.3390/app13063791

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