The near-future parking space availability is informative for the formulation of parking-related policy in urban areas. Plenty of studies have contributed to the spatial–temporal prediction for parking occupancy by considering the adjacency between parking lots. However, their similarities in properties remain unspecific. For example, parking lots with similar functions, though not adjacent, usually have similar patterns of occupancy changes, which can help with the prediction as well. To fill the gap, this paper proposes a multi-view and attention-based approach for spatial–temporal parking occupancy prediction, namely hybrid graph convolution network with long short-term memory and temporal pattern attention (HGLT). In addition to the local view of adjacency, we construct a similarity matrix using the Pearson correlation coefficient between parking lots as the global view. Then, we design an integrated neural network focusing on graph structure and temporal pattern to assign proper weights to the different spatial features in both views. Comprehensive evaluations on a real-world dataset show that HGLT reduces prediction error by about 30.14% on average compared to other state-of-the-art models. Moreover, it is demonstrated that the global view is effective in predicting parking occupancy.
High-precision traffic flow prediction facilitates intelligent traffic control and refined management decisions. Previous research has built a variety of exquisite models with good prediction results. However, they ignore the reality that traffic flows can propagate backwards on road networks when modeling spatial relationships, as well as associations between distant nodes. In addition, more effective model components for modeling temporal relationships remain to be developed. To address the above challenges, we propose a local–global features fusion temporal convolutional network (LGTCN) for spatio-temporal traffic flow prediction, which incorporates a bidirectional graph convolutional network, probabilistic sparse self-attention, and a multichannel temporal convolutional network. To extract the bidirectional propagation relationship of traffic flow on the road network, we improve the traditional graph convolutional network so that information can be propagated in multiple directions. In addition, in spatial global dimensions, we propose probabilistic sparse self-attention to effectively perceive global data correlations and reduce the computational complexity caused by the finite perspective graph. Furthermore, we develop a multichannel temporal convolutional network. It not only retains the temporal learning capability of temporal convolutional networks, but also corresponds each channel to a node, and it realizes the interaction of node features through output interoperation. Extensive experiments on four open access benchmark traffic flow datasets demonstrate the effectiveness of our model.