Elsevier

Information Sciences

Volume 525, July 2020, Pages 16-36
Information Sciences

STMAG: A spatial-temporal mixed attention graph-based convolution model for multi-data flow safety prediction

https://doi.org/10.1016/j.ins.2020.03.040Get rights and content

Highlights

  • We present a safety prediction model called the Spatial-Temporal Mixed Attention Graph-based Convolution model (STMAG).

  • A case study on the implementation of this model in traffic safety prediction is given as example.

  • The effectiveness of STMAG has been verified by our theoretical analysis and experimental results.

Abstract

Spatiotemporal safety forecasting has various applications in the neuroscience, climate and transportation domains. It is challenging due to (1) the complex spatial dependency on networks, (2) non-linear temporal dynamics with changing conditions and (3) the inherent difficulty of long-term forecasting. To address these challenges, a safety prediction model called the Spatial-Temporal Mixed Attention Graph-based Convolution model (STMAG) is proposed. Specifically, STMAG captures spatial dependency using graph convolutional networks (GCN), and temporal dependency using the sequence-to-sequence (Seq2Seq) architecture with the mixed attention mechanisms. A case study on the implementation of this model in traffic safety prediction is given as an example. Traffic safety forecasting is one canonical example of such a learning task, which is also a crucial problem to improving transportation and public safety. A number of detailed features (such as vehicle type, braking state, whether changing lanes or not) and exogenous variables (such as weather, time and road condition) are extracted from our big datasets. Finally, we conduct extensive experiments to evaluate the STMAG framework on real-world large-scale road network traffic datasets. Extensive experiments on our dataset show that the STMAG framework makes reasonably accurate predictions and significantly improves the prediction accuracy over baseline approaches.

Introduction

Safety is an important consideration in every workplace and has a significant impact on human life [25]. Many accidents occur every year in China, especially in recent years, where many major accidents have had an extremely adverse impact on China’s economic and social development, seriously disrupting social order. Therefore, safety prediction is a common thread throughout every workplace. It is necessary to reduce the impacts and take action against hazards that may occur in different scenarios by performing safety prediction analysis [2].

Every activity has certain inherent potential for accidents [35]. The root cause of the vast majority of accidents is the unsafe behavior of human beings [42]. Therefore, it is particularly important to monitor unsafe behavior in an accident safety prediction system. There are different unsafe behaviors in different scenarios, such as walking in the wrong direction, parking in a restricted area and entering a forbidden area.

A safety prediction system provides timely prediction and warning of an impending accident. It can take countermeasures to address the danger and prevent the occurrence of the accident [21]. At present, however, a majority of industries have not established a scientific and effective accident safety prediction system. Some existing early warning systems lack online dynamic monitoring technology. Accident safety prediction is overly dependent on artificial experience and it is hard to detect an impending accident. Therefore, accidents cannot be averted in their initial stages.

Reliable prediction models are important for a variety of applications. Safety prediction is based on the potential information and features extracted from the historical data flow. In the process of predicting the data flow, the most crucial question is to think about how to extract the characteristics of Multi-data flow completely. Moreover, the features of nonlinearity and time sequence in the multi-data flow make the prediction difficulty significantly increased.

With the development of the collection devices, they are deployed in various areas, providing a solid data foundation for safety prediction [24]. Early, time series analysis models are employed for prediction problems. However, it is difficult for them to handle the unstable and nonlinear data in reality. Subsequently, traditional machine learning approaches are developed to model more complex data, but they are still hard to simultaneously consider the spatial-temporal correlations of high-dimensional data. In addition, the prediction performances of such methods depend heavily on feature engineering, which often requires a large number of experiences from experts in the corresponding fields. In recent years, many researchers use deep learning methods to process high-dimensional spatial-temporal data, that is, convolutional neural networks (CNN) [26] are employed to effectively extract the spatial features of grid-based data; GCN are adopted for describing spatial correlation of graph-based data. However, these methods still fail to simultaneously model the spatial-temporal features and dynamic correlations of Multi-data flow.

To cope with the above challenges, we propose a novel deep learning model: Spatial-Temporal Mixed Attention Graph-based Convolution model (STMAG). The core goal of our proposed STMAG model is to predict the safety status of a system in advance, based on dynamic multiple data streams collected from video monitoring and other devices and to actively defend against hidden dangers in the system. This model can provide new ideological guidance and strong technical support for an accident safety prediction system. This paper will use traffic safety prediction as a starting point to explore the effectiveness of this model.

In this paper, the safety prediction framework STMAG is used in the field of transportation. Traffic accidents cause a huge number of casualties and property loss. Reducing the number of traffic accidents is a crucial social problem. We extract the spatial features based on GCN and incorporate the temporal features with the mixed attention mechanism in the model to better capture the temporal trends and spatial heterogeneity of the data.

As shown in Fig. 1, the host vehicle is affected by the state of the preceding vehicle and external factors such as the weather and time. The feature extraction from the video that is captured by the host vehicle’s dashboard camera includes information such as the type of preceding vehicle, lane detection and brake light detection, etc., and the weather conditions are obtained through the network interface provided by the Bureau of Meteorology. These features are simultaneously imported into our model to obtain the prediction results. If there is a danger, the driver of the host vehicle will be alerted in order to avoid an accident.

Our contributions are summarized as follows:

  • 1.

    The STMAG model is applied to the spatio-temporal prediction tasks, which combines the GCN and GRU. Specifically, the GCN is used to capture the topological structure of the network to model spatial dependence. The GRU is applied to capture the dynamic change of spatiotemporal data to model temporal dependence.

  • 2.

    It is common sense that not all nodes and variables contribute to spatio-temporal prediction tasks equally. To incorporate the different importance of the variables in each node over time, the mixed temporal and variable attention mechanism is introduced into the safety prediction model.

  • 3.

    Finally, we evaluate the effectiveness and better understanding of the STMAG model in a transportation field. The results show that our approach has superiority in traffic forecasting.

The rest of this paper is organized as follows: in Section 2, we introduce the related work. Section 3 presents the STMAG safety prediction model. In Sections 4, a case study on the application of this model to traffic safety prediction is given. Our experiment results and analysis are shown in Section 5. Finally, we conclude this paper in Section 6.

Section snippets

Related work

Safety prediction has the goal of preventing accidents or reducing their incidence rates and impacts[6]. There are many factors which can influence the occurrence of accidents. Under certain conditions, unsafe human behavior and an unsafe state of things can together lead to accidents. Probable accidents, fatal faults and preventative measures should be identified in advance to reduce the frequencies and impacts of accidents to the lowest possible levels. Safety prediction measures have been

Preliminaries

In this subsection,we explain the definitions and notations of the variables used herein.The key notations employed in this paper are described in Table 1. The definition of the network topology:

Definition 1

The network G. We use an undirected graph G=(V,E) to represent the topological structure of the network, where V={v1,v2,,vN} is a set of nodes, N is the number of nodes, each node has P attributes, and E is a set of edges. The adjacency matrix A represents the connection between nodes, ARN×N. The

A case study on traffic safety prediction based on the STMAG model

To test the availability and better understand the STMAG model, a safety prediction task is carried out in a traffic area. A traffic safety prediction task requires the support of an effective model, and our proposed STMAG model is suitable for this scenario. In order to realize the real-time detection of the abnormal state, videos from the dashboard camera and traffic input data extract the features of the preceding vehicle and external variables as anomaly detection sequences to characterize

Experiment

In this section, we conduct experiments on real datasets. We undertake a comprehensive quantitative evaluation by comparing our method with other baselines approaches.

Conclusions

Safety prediction is an important and challenging task in many domains as it is affected by many complex factors, such as spatiotemporal dependencies as well as external influences. In this paper, a new safety prediction analysis and monitoring method (STMAG) is developed to identify and prevent accidents, and the proposed method is applied to traffic safety prediction.

In particular, we propose to adopt GCN to capture graph-based spatial dependencies and employ Seq2Seq architecture to obtain

Funding

This work was supported by the Shanghai Key Science and Technology Project (19DZ1208903); National Natural Science Foundation of China (Grant nos. 61572325 and 60970012); Ministry of Education Doctoral Fund of Ph.D. Supervisor of China (Grant no. 20113120110008); Shanghai Key Science and Technology Project in Information Technology Field (Grant nos. 14511107902 and 16DZ1203603); Shanghai Leading Academic Discipline Project (No. XTKX2012); Shanghai Engineering Research Center Project (Nos.

Author contributions

Qingkui Chen proposed the main idea of this paper. Qingkui Chen and Jingjuan Wang designed the spatial-temporal mixed attention graph-based convolution model for multi-data flow safety prediction. Qingkui Chen, Jingjuan Wang and Huilin Gong conceived and designed the experiments. Jingjuan Wang performed the experiments and analyzed the data and the results. Qingkui Chen served as advisors and made suggestions on the experiment evaluation. Jingjuan Wang wrote the paper. All authors have read and

Declaration of Competing Interest

There are no conflicts of interest.

Acknowledgments

The authors would like to acknowledge the support from the Flow Computing Laboratory at University of Shanghai for Science and Technology.

References (42)

  • J. Bruna, W. Zaremba, A. Szlam, Y. LeCun, Spectral networks and locally connected networks on graphs, arXiv:1312.6203...
  • X. Cao et al.

    Interactive temporal recurrent convolution network for traffic prediction in data centers

    IEEE Access

    (2017)
  • H.-T.L. Chiang et al.

    Safety, challenges, and performance of motion planners in dynamic environments

    Robotics Research

    (2020)
  • M. Defferrard et al.

    Convolutional neural networks on graphs with fast localized spectral filtering

    Advances in Neural Information Processing Systems

    (2016)
  • K. El-Basyouny et al.

    Comparison of two negative binomial regression techniques in developing accident prediction models

    Transp. Res. Rec.

    (2006)
  • R. Fu et al.

    Using LSTM and GRU neural network methods for traffic flow prediction

    2016 31st Youth Academic Annual Conference of Chinese Association of Automation (YAC)

    (2016)
  • A. Graves, Generating sequences with recurrent neural networks, arXiv:1308.0850...
  • C. Guarnaccia et al.

    Short-term forecasting of tank water levels serving urban water distribution networks with Arima models

    Frontiers in Water-Energy-NexusNature-Based Solutions, Advanced Technologies and Best Practices for Environmental Sustainability

    (2020)
  • A. Hadayeghi et al.

    Macrolevel accident prediction models for evaluating safety of urban transportation systems

    Transp. Res. Rec.

    (2003)
  • M. Henaff, J. Bruna, Y. LeCun, Deep convolutional networks on graph-structured data, arXiv:1506.05163...
  • T.N. Kipf, M. Welling, Semi-supervised classification with graph convolutional networks, arXiv:1609.02907...
  • Cited by (34)

    View all citing articles on Scopus
    View full text