STMAG: A spatial-temporal mixed attention graph-based convolution model for multi-data flow safety prediction
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 to represent the topological structure of the network, where 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, . 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)
- et al.
Data mining of tree-based models to analyze freeway accident frequency
J. Saf. Res.
(2005) - et al.
Wavelets on graphs via spectral graph theory
Appl. Comput. Harmon. Anal.
(2011) Traffic flow forecasting by seasonal SVR with chaotic simulated annealing algorithm
Neurocomputing
(2011)- et al.
A novel variable selection method based on frequent pattern tree for real-time traffic accident risk prediction
Transp. Res. Part C
(2015) - et al.
Car-to-pedestrian communication with MEC-support for adaptive safety of vulnerable road users
Comput. Commun.
(2020) - et al.
A valuation-based system approach for risk assessment of belief rule-based expert systems
Inf. Sci.
(2018) - et al.
A distributed spatial–temporal weighted model on mapreduce for short-term traffic flow forecasting
Neurocomputing
(2016) - et al.
Multi-target deep neural networks: theoretical analysis and implementation
Neurocomputing
(2018) - C. M. Bishop, Mixture density networks...
- et al.
Safety prediction methodology and analysis tool for freeways and interchanges
Natl. Cooperative Highway Res.
(2012)
Interactive temporal recurrent convolution network for traffic prediction in data centers
IEEE Access
Safety, challenges, and performance of motion planners in dynamic environments
Robotics Research
Convolutional neural networks on graphs with fast localized spectral filtering
Advances in Neural Information Processing Systems
Comparison of two negative binomial regression techniques in developing accident prediction models
Transp. Res. Rec.
Using LSTM and GRU neural network methods for traffic flow prediction
2016 31st Youth Academic Annual Conference of Chinese Association of Automation (YAC)
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
Macrolevel accident prediction models for evaluating safety of urban transportation systems
Transp. Res. Rec.
Cited by (34)
An attention-PCA based forecast combination approach to crude oil price
2024, Expert Systems with ApplicationsPerturbation-augmented Graph Convolutional Networks: A Graph Contrastive Learning architecture for effective node classification tasks
2024, Engineering Applications of Artificial IntelligenceMFAN: Mixing Feature Attention Network for trajectory prediction
2024, Pattern RecognitionNew machine learning application platform for spatial–temporal thermal error prediction and control with STFGCN for ball screw system
2023, Mechanical Systems and Signal ProcessingKSTAGE: A knowledge-guided spatial-temporal attention graph learning network for crop yield prediction
2023, Information SciencesMulti-point short-term prediction of station passenger flow based on temporal multi-graph convolutional network
2022, Physica A: Statistical Mechanics and its Applications