Accident Detection and Flow Prediction for Connected and Automated Transport Systems
Accident Detection and Flow Prediction for Connected and Automated Transport Systems
Zhang, Yi;Liu, Fang;Yue, Sheng;Li, Yuxuan;Dong, Qianwei
2023-04-17 00:00:00
Hindawi Journal of Advanced Transportation Volume 2023, Article ID 5041509, 9 pages https://doi.org/10.1155/2023/5041509 Research Article Accident Detection and Flow Prediction for Connected and Automated Transport Systems 1 2 3 3 3 Yi Zhang , Fang Liu , Sheng Yue , Yuxuan Li , and Qianwei Dong Zhejiang Gaoxin Technology Company Limited, Hangzhou 310002, China Liaoning Provincial Transportation Planning and Design Institute Company Limited, Shenyang 110111, China College of Transportation, Jilin University, Changchun 130012, China Correspondence should be addressed to Qianwei Dong; dongqw21@mails.jlu.edu.cn Received 2 February 2023; Revised 26 February 2023; Accepted 5 April 2023; Published 17 April 2023 Academic Editor: Wenxiang Li Copyright © 2023 Yi Zhang et al. Tis is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Efective accident detection and trafc fow forecasting are of great importance for quick respond, impact elimination and intelligent control of the trafc fow consisting of autonomous vehicles. Tis paper proposes a trafc accident detection method for connected and automated transport systems by conducting a grid-based parameter extracting and SVC-based trafc state classifcation. Allowing for the dynamic spread of trafc fow over time, from upstream to downstream and from accident lanes to other lanes, a spatiotemporal Markov model is established to predict the evolution of trafc fow after accident by introducing the grid as state detection unit and ftting the spatiotemporal evolution with the parameter space mean speed to match the need of both detection accuracy and monitoring scope. Compared with actual accident data, the validation results indicate that the proposed methods present a good performance in accident detection with the accident detection rate as 87.72% and a higher precision rate than both SVM (support vector machine) and ANN (artifcial neural network) models in trafc fow prediction. With the active trafc accident identifcation and dynamic trafc fow prediction, it is benefcial to shorten detection time, reduce possible impacts of trafc accidents and carbon emissions from congestion. Te methods can be implied to trafc state recognition and trafc fow prediction, which is one of the signifcant sections of connected and automated transport systems, and serve as references for accident handling and urban trafc management. In recent years, the rapid development of automatic 1. Introduction driving technology, intelligent network technology and With the rapid increment of motor vehicles, congestion and satellite positioning technology, etc., enriches the sources of secondary accidents caused by slow accident response seriously data acquisition. Integration of these multisource big-data afect urban trafc safety and efciency and have become ofers new data-driven ways to obtain real-time location a social problem, which attracts much attention [1]. Efective information of autonomous vehicles and trafc motion trafc condition monitoring is vital to decrease the adverse characteristics. In this case, the methods for accident de- impact of accidents, as the faster an accident is detected, the tection and management should be improved from aspects more quickly managers can respond, thereby shortening of global state diagnosis and postaccident trafc fow handling time, relieving trafc pressure, and lessening the prediction. occurrence probability of massive congestion and secondary However, most of the previous studies focus on local accidents [2]. Terefore, trafc condition monitoring and state monitoring based on roadside devices and trafc fow trafc fow prediction have become essential parts of urban prediction with macroscopic parameters [3–7]. Except for trafc management, which is conducive to improving trafc the accidents happen at the place with monitoring devices efciency, ensuring trafc safety, and reducing energy con- which can be informed, most accidents occurring at the sumption and carbon emissions of transportation system. place without any detection device still remains insensitive. 2 Journal of Advanced Transportation tracking, how to conduct an accurate and large-scale de- In order to make a quick accident response, the real-time abnormal state monitoring of wide range in the road net- tection with the reduction of algorithm complexity has become a problem that cannot be ignored. work should be noted enough. Besides, the trafc fow prediction after an accident is also vital for efcient accident After a trafc accident occurs, it is necessary to predict its disposing and trafc guidance. Terefore, to reduce negative impact and take emergency management measures to clear impact of trafc accidents, it is necessary to investigate the up the accident and reduce losses. Some studies used trafc methods for timely and accurate trafc state identifcation, wave models and fuid mechanics models to predict the accident detection, and postaccident impact prediction in impact of trafc accidents, while most of the others esti- autonomous transport systems. mated the impact degree by using neural network [12], decision tree [13], and other machine learning methods [14]. According to the data types used, the research in this feld can be divided into two aspects. One is accident de- Among them, Markov is one of the most popular approaches to predict trafc condition. For example, Yao et al. [15] tection by using macroscopic trafc fow parameters, such as trafc volume, speed, density, and occupancy, and the other divided a day into multiperiods and predicted trafc in each period by using Markov chain. Li et al. [16] used a Grey- is utilizing the videos taken by on-road cameras to learn accident features concerning collision image and driving Markov model to predict highway trafc variation based on trajectory, etc. historical data and obtained an acceptable accuracy and With respect to the macro trafc parameters-based re- reliability. Zhao et al. [17] combined Bayesian information search, data collected by sensors such as loop sensors are criterion and HMM (hidden Markov model) to predict used mostly in obtaining historical trafc parameters. Te trafc. Te results indicate that the method yields a better methods employed mainly include state recognition [4], performance than SVM and LSTM-RNN (long short-term memory-recurrent neural network). Although previous statistics [5], and machine learning [6]. For example, Ki et al. [4] conducted an ANN (artifcial neural network)-based studies indicated that Markov method performs well in short-term trafc prediction, they only focused on the accident detection by using trafc parameters exacted from loop sensors on the freeway in South Korea. Fang et al. [6] postaccident evolution of trafc condition over time; few involved the dynamic spatial spread of trafc fow. Actually, determined trafc accidents by training deep-loop neural network involving the parameters of trafc fow, speed, and the movement process of trafc fow is naturally from up- occupancy of downstream of urban expressway. As most of stream to downstream and from accident lanes to other the parameters used in this type of research are extracted lanes. It is necessary to deduce the propagation of trafc fow from cross-sectional trafc fow data, it is limited by partially from the view of both time and space dimension in trafc data missing and low data quality. In order to avoid this fow prediction. problem, some scholars combined the cross-sectional fow Considering the limited number of sensors and moni- toring range of video detection, this paper aims at de- data with video tracking data to improve the accuracy of accident detection and position. For example, Yang and Wu veloping a lane-level detection method based on big data resources, which is intended to use GPS data of autonomous [7] constructed a BP neural network for preliminary acci- dent recognition by using trafc parameters obtain from vehicles to obtain road-level trafc fow parameters, so as to optimized distribution of loop sensors, and established the detect accidents. As grid-based lane level analysis is proved Camshift algorithm for vehicle tracking to make a fnal to be helpful for detection accuracy improvement [11, 18], determination. However, the detection range of these studies we divide lanes into grids and express the trafc state of each is at the regional and road level, with a lack of lane-level state grid with macro trafc fow parameters, considering both monitoring and accident identifcation [8]. In fact, the oc- monitoring granularity and computational complexity. currence and subsequent impact of accidents on trafc fow With a machine learning process, the trafc state is then are mostly at lane level. On the other hand, the image combined with historical data to distinguish accidents from other events, such as regular congestion. It is worth noting feature-based accident detection and positioning mainly rely on deep learning of the abnormal characteristics of the trafc that the use of gridded roads can make the detection of trafc accidents refned to the lane level. Tereby, it can not only accidents, such as the vehicle collision features [9] and the abnormal vehicle trajectories in video images [10]. For ex- realize global accident detection but also accurately locate ample, Zou et al. [9] proposed a detection method based on trafc accidents, and efectively refect the variations in the imagine signal processing and hidden Markov classifying trafc conditions before and after the trafc accident. to detect the trafc incidents at signal intersections. Ren et al. Heeding the limitations of previous studies in trafc pre- [11] divided the highway video images into a cluster of cells diction, a spatiotemporal trafc fow prediction model will and used fuzzy-identifcation to determine the state of cells be constructed based on Markov theory, which allows for the dynamic spread of trafc over both spatial and temporal and then constructed an SVM (support vector machine) classifer to position and detect the trafc accidents. Al- dimensions. In conclusion, this paper will propose methods to monitor the trafc status of wide-range road network though this type of studies is proved to have a good accuracy performance, there is a limitation that it will be constrained based on real-time vehicle location information. Ten, the negative postaccident efect will be predicted based on the by the installation position and number of on-road cameras. Moreover, the popularization of this method also faces the evolution of trafc state after accidents. Te results will be problem of computing resources. With the promotion of helpful to improve the range and real-time of accident demand for performance of detection and trajectory detection and the accuracy of trafc prediction, thus Journal of Advanced Transportation 3 contributing to rapid accident responses, which is conducive result of the density of queued vehicles under diferent trafc to enhancing trafc efciency, ensuring trafc safety, re- conditions, the length of the unit L is determined to be the grid ducing energy consumption and carbon emissions of sum of the body length of fve vehicles and the minimum transportation system, and the incidence of trafc conges- safety car-following distance d in free fow, which in the min tion and even secondary accidents. urban road condition is 22.8 m [19], while in the highway Te remainder of this paper is organized as follows: In condition is 127.2 m [20]. Considering that the vehicle Section 2, we present trafc accident diagnosis method. length is generally less than 5.0 m, the length of the state Section 3 proposes a grid-based spatiotemporal deduction detection unit L for urban road and the highway con- grid model for postaccident fow prediction. Section 4 simulates ditions is set to be 139.0 m and 661.0 m, respectively. Te and verifes the efectiveness of the methods. Tis paper is adjacent interval dg denotes the distance between two ad- concluded with Section 5, in which we summarize our jacent grids, which is calculated by the distance of 1 s at the fndings and discuss our study limitations and directions for maximum allowable speed in corresponding condition. future research. Ten, dg under the urban road and highway condition is calculated to be 10.0 m and 33.3 m, respectively. In general, trafc state is time-varying, and the number of vehicles in the 2. Traffic Accident Detection Model grid varies with the trafc state, as shown in Figure 1. 2.1. Defnition of State Detection Unit. Although the image Terefore, trafc fow indicators calculated by grids will feature-based methods are proved to have relatively high objectively refect real-time trafc state changes. accuracy in accident detection according to existing studies, they are limited by the fnite location and sparse distribution 2.2. Expression of Trafc State. In order to transfer the con- density of video detectors, as they identifed the occurrence tinuous trafc fow on a lane into discrete state detection units, and location of trafc accidents using video images obtained we need to select an appropriate trafc state indicator to by on-road devices. Te limitation of detection range and represent the real-time trafc state of a grid and its changes computational resources makes these methods unable to over time and space. As shown in HCM [21], the parameter of carry out large-scale and high-precision accident detection. average speed of trafc fow, which consists of time mean speed However, the Internet of vehicles (IoV) and big data en- and space mean speed, is often used in a trafc state classif- vironment makes it possible to obtain large-scale trafc cation and real-time trafc state estimation. Taking account status information based on multisources vehicular that the defned length of a grid is a fxed value, using the space positioning data. mean speed will be more convenient to express and calculate Tis section will establish dynamic models for accident the trafc state under this circumstance. Ten, we defne v as detection and postaccident impact prediction, of which, the the space mean speed of a grid, which is calculated as follows: frst step is to propose a state detection unit to express the trafc condition. After a trafc accident occurs, the trafc grid v � , (1) state will get worse with the gathering of vehicles and the n (1/n) t i�1 trafc congestion may come into being and spread from the downstream to the upstream on the accident lanes, while where t denotes the time that it takes for vehicle i to go also spreading from the accident lanes to adjacent lanes and through the grid during the detection interval. n is the total even the entire road section. Terefore, a lane-level detection number of vehicles which pass the grid during the sampling unit, named as grid, is proposed. Except for meeting the interval. Considering that the normal accident sampling granularity requirements of trafc propagation analyzing, it interval is 5 min, and the equipment’s acquisition time is 1 s, is well suited to be employed in examining the trafc state taking into account real-time and computational con- variation between micro vehicle and macro trafc fow, and sumption, the sampling interval is selected as 10 s. optimizing calculation speed on the basis of ensuring de- According to previous research [22, 23], trafc state is tection precision. divided into the following four levels: unblocked, lightly Although Ren et al. [11] and Wang et al. [18] also utilized congested, congested, and severely congested. Te corre- grid in trafc fow analysis, the size of grid is set to be small sponding space mean speed ranges on the main urban roads and lack of enough theoretical basis. For example, in the are, respectively, higher than 30 km/h, 20 km/h-30 km/h, analysis based on multiagent method, the size of grid is 10 km/h-20 km/h, and less than 10 km/h. Tus, when the defned as vehicle level, which causes that the state of a grid space mean speed of a grid is less than 20 km/h, its trafc directly refects that of the corresponding vehicle. Tis state will be determined as congested state. We then use the microscopic analysis results in a large amount of overall grid to sample, record, and store data including space mean calculation and is inconvenient to macroscopic trafc fow speed, trafc state, and state duration at a sampling interval analysis. In order to decrease defective impact, we can of 10 s. Te historical data stored by the grid will be used as consider dividing larger grids and express the state of each the data set for trafc accident detection. grid with meso parameters. At the same time, considering the analysis accuracy, the space between adjacent grids can be set to be relatively small. As shown in Figure 1, we divide 2.3. Detection of Trafc Accident. Te reasons for trafc a lane into a number of overlapping grids with a unit length congestion can be divided into the following two main types: of L and adjacent interval of dg. According to the analysis normal congestion and abnormal congestion. Normal grid 4 Journal of Advanced Transportation L dg grid State detection unit Driving Direction Figure 1: Illustration of the state detection unit. congestion refers to the congestion caused by the inability of where the frst term 1/2‖ω‖ is the regularized term, which is road capacity to meet the trafc demand, which often has used to adjust the function fatness, while the second term regular characteristics. For example, regular trafc conges- R [f] is the loss function which measures the empirical emp tion usually occurs in the morning and evening rush hour. error. C is a regularization parameter that determines the Abnormal congestion refers to the congestion caused by trade-of between structural error and empirical error. sudden events, which is unpredictable and accidental. In Considering that a generalization error cannot be obtained order to detect trafc accident, the mission of this section is by simply minimizing the training error, we then allow bits to distinguish abnormal congestion from the normal one of examples assigned wrongly and introduce soft margin to according to the characteristic of diferent trafc states. respite the overftting dilemma as following: Based on the real-time and historical data of space mean |y − f(x)| � max 0, |y − f(x)| − ε, (4) speed for each grid, we employ SVC (support vector clas- sifcation) [3] to detect trafc accidents according to the which is defned as the minimal distance of a sample to the characteristics of spatiotemporal distribution and its dy- decision surface. Te loss is the diference between the namic change. SVC is an application of SVM in the aspect of predicted value and the radius ε of the soft margin. It will be data analysis and pattern recognizing, which is widely used 0 if the predicted value is within the region of margin. Both C in accident detection by previous studies [24]. Te data we and ε are user-determined parameters. Te positive slack use are extracted from a sample library, which is built to variables ξ is introduced to indicate the degree of classif- store the historical data for each grid, with the information cation error. Terefore, equation (3) is transferred to of space mean speed, state duration, weekly simultaneous data and monthly simultaneous data, etc. According to the 2 min J � ‖ω‖ + C ξ , distinguished characteristics of normal congestion and ab- 2 i�1 normal one caused by trafc accidents, we assign the sample (5) data to positive and negative classes correspondingly. Ac- ⎧ ⎪ y ω∙ϕ