∎
66email: near, liukai0807, xiaoke317, liangf, [email protected] 77institutetext: Zhou Wu 88institutetext: College of Automation, Chongqing University, Chongqing, China
88email: [email protected]
Vehicular Fog Computing Enabled Real-time Collision Warning via Trajectory Calibration ††thanks: Corresponding author: Kai Liu
Abstract
Vehicular fog computing (VFC) has been envisioned as a promising paradigm for enabling a variety of emerging intelligent transportation systems (ITS). However, due to inevitable as well as non-negligible issues in wireless communication, including transmission latency and packet loss, it is still challenging in implementing safety-critical applications, such as real-time collision warning in vehicular networks. In this paper, we present a vehicular fog computing architecture, aiming at supporting effective and real-time collision warning by offloading computation and communication overheads to distributed fog nodes. With the system architecture, we further propose a trajectory calibration based collision warning (TCCW) algorithm along with tailored communication protocols. Specifically, an application-layer vehicular-to-infrastructure (V2I) communication delay is fitted by the Stable distribution with real-world field testing data. Then, a packet loss detection mechanism is designed. Finally, TCCW calibrates real-time vehicle trajectories based on received vehicle status including GPS coordinates, velocity, acceleration, heading direction, as well as the estimation of communication delay and the detection of packet loss. For performance evaluation, we build the simulation model and implement conventional solutions including cloud-based warning and fog-based warning without calibration for comparison. Real-vehicle trajectories are extracted as the input, and the simulation results demonstrate that the effectiveness of TCCW in terms of the highest precision and recall in a wide range of scenarios.
Keywords:
Vehicular fog computingCollision warningReal-timeTrajectory calibration1 Introduction
Vehicular ad hoc networks (VANETs) have attracted great attention to enable a variety of intelligent transportation systems (ITS). Dedicated short range communication (DSRC) kenney2011dedicated is one of the well developed standards for vehicular communication, where vehicles equipped with on-board units (OBUs) can communicate with both vehicles and roadside units (RSUs) via vehicle-to-vehicle (V2V) and vehicle-to-infrastructure (V2I) communications, respectively. Meanwhile, another mainstream of vehicular communication standard is based on the development of cellular networks agiwal2016next . The Long-Term Evolution-Vehicle (LTE-V) standard has been developed to enable V2X communication, which is evolving to the 5G based Cellular Vehicle-to-Everything (C-V2X) communication araniti2013lte . A number of studies ucar2015multihop dai2018bandwidth ahmed2018cooperative liu2019ahierarchical have investigated on information services in heterogeneous vehicular communication environments.
In view of the ever-increasing data and computation demands zhai2018 , the highly dynamic traffic status and network topology zhai2019 , and the various quality of service (QoS) requirements of different ITS applications liu2019ahierarchical , great efforts have been put into the designing of data scheduling algorithms liu2016cooperative dai2016adaptive wang2017dynamic , resource allocation mechanisms peng2017resource ahmed2018secure and emerging ITS applications liu2013improving dai2016quality . In addition, many studies have been focusing on the development of new service paradigms in VANETs based on software defined networking liu2016cooperative wang2019delay liu2017coding and fog computing liu2019ahierarchical hou2016vehicular wang2018offloading , which are envisioned as a promising solutions to enhancing system scalability and flexibility by decoupling control and data planes, as well as enabling low-latency and high-reliability information services by offloading computing, networking, storage, communication, and data resources closer to the end users. On this basis, different solutions have been proposed for computation offloading wang2019delay , distributed service scheduling sun2018cooperative and coordinated resource allocation zhou2019computation in VANETs.
However, it is still non-trivial to realize safety-critical applications in VANETs due to the stringent real-time requirements on communication and computation. Besides, intrinsic features such as transmission latency and packet loss in wireless communications are inevitable and also non-negligible for such applications, which make it even challenging for enabling real-time and reliable safety-critical services in VANETs.
With above motivations, this work presents a vehicular fog computing (VFC) based real-time collision warning architecture in VANETs. In particular, on the basis of the presented architecture, dedicated solutions are proposed to achieve real-time and accurate collision warning via VFC. Small-scale system prototype is built in realistic environments to give an insight into the system development. Large-scale simulation model is implemented with real vehicle trajectories to evaluate the effectiveness of the proposed architecture and corresponding algorithms. The main contributions of this work are outlined as follows:
-
•
We present a VFC based service architecture via DSRC, where RSUs are deployed as fog nodes along the road, which communicate with OBUs mounted on vehicles and process collision warning tasks locally based received vehicle status, including global position system (GPS) coordinates, velocity, acceleration, heading direction, etc. Compared with conventional cloud based system, such a service architecture not only reduces wireless communication delay, but also enhances system scalability and responsiveness by offloading the computation tasks to the distributed fog nodes.
-
•
We propose a trajectory calibration based collision warning algorithm (TCCW). Specifically, we first derive a packet transmission delay fitting model based on the Stable distribution to estimate the fog based communication latency. The fitting data are obtained by implementing a DSRC based system prototype in realistic vehicular communication environments. Second, we design a packet loss detection mechanism based on the historical information including data transmission frequency and locations of vehicles. Finally, we present detailed procedures of TCCW, which calibrates vehicle trajectories by combining communication latency estimation and packet loss detection, so as to improves the timeliness and accuracy of the collision warning system.
-
•
We give a comprehensive performance evaluation. First, we carry out a real-world field testing and obtain the sets of packet latency in both cloud and fog based systems. Second, we import real-world vehicle trajectories in several selected intersections with different features (e.g., traffic density, vehicle speed, vehicle acceleration) of Cologne, Germany. The simulation results have demonstrated the superiority of TCCW comparing with traditional methods (e.g., cloud-based warning and fog-based warning without trajectory calibration) in terms of both precision and recall on collision warning.
The rest of this paper is organized as follows: Section 2 reviews the related work. Section 3 presents the VFC enabled real-time collision warning system. Section 4 proposes a trajectory calibration based collision warning algorithm. Section 5 builds the simulation model and gives performance evaluation. Finally, Section 6 concludes this work.
2 Related Work
Great efforts have been devoted to improving the performance of VANETs. DSRC is considered as the de facto standard for vehicular communication. In America, 75MHz bandwidth of spectrum is allocated by the Federal Communications Commission (FCC) for DSRC. Based on the allocated spectrum, IEEE published the protocol stack called Wireless Access in Vehicular Environments (WAVE), which consists IEEE 802.11p and IEEE 1609.x. Although many studies have investigated on vehicular communications via DSRC, most of them only focused on the MAC layer performance. Yao et al. yao2013delay proposed an analytical model to evaluate the broadcast performance under IEEE 802.11p in terms of the mean, deviation and probability distribution of the MAC access delay, and numerical analysis indicated that IEEE 802.11p can provide relatively good performance for higher priority messages. Zheng et al. zheng2015performance analyzed the enhanced distributed channel access mechanism of IEEE 802.11p in terms of the transmission probability, normalized throughput, and average access delay, and simulation results verified the effectiveness of the derived performance models. Peng et al. peng2016performance proposed a general probabilistic performance of multiplatooning communication based on IEEE 802.11p and the simulation results indicated that multiplatooning communications can satisfy the delay requirements of platoon control and on-road safety.
Vehicular fog computing is an emerging paradigm in VANETs to better support low latency, high reliability and large scale ITS applications. Hou et al. hou2016vehicular first presented a viewpoint that vehicles are considered as fog nodes for service provision. The proposed architecture can better support real-time services and better exploit computation and communication capacities of individual vehicles. Huang et al. huang2017vehicular proposed the vehicular fog computing architecture which comprises three layers, namely, the data generation layer, the fog layer, and the cloud layer. A fog-assisted traffic control system illustrated the benefits of VFC, and the forensic challenges and potential solutions are discussed. Wang et al. wang2018offloading proposed a fog-enabled real-time traffic management system, aiming to minimize the average response time for events reported by vehicles. Performance evaluation based on a real-world taxi trajectory dataset demonstrated the effectiveness of the designed method. Liu et al. liu2019ahierarchical proposed a hierarchical system architecture to synthesize the paradigms of software defined networking and fog computing in Internet of Vehicles and comprehensive analysis with respect to the separation of control and data planes, network functions virtualization in heterogeneous resource environments, network slicing for services with different QoS requirements, and the offloading of computation, storage, control, and communication capacities with fog-based services.
Most existing vehicular collision warning systems are based on ranging sensors such as radar or lidar song2017real wu2019series . However, they all suffer from non-line-of-sight problems. With recent advances on computer vision, some studies focused on collision detection based on video camera wang2016vision song2018lane . Nevertheless, they may require intensive computation and massive data transmission, which render the system performance on real-time response. A few studies considered collision warning via vehicular communications hafner2013cooperative gelbar2017elastic xu2018design . Hafner et al. hafner2013cooperative leveraged V2V communication technology to implement computationally efficient decentralized algorithms for two-vehicle cooperative collision avoidance at intersections and provided an experimental validation of proposed method. Gelbar et al. gelbar2017elastic proposed a pedestrian collision warning and avoidance system for vehicles based on V2X communication, and demonstrated the effectiveness of the proposed method using hardware-in-the-loop simulations. Our previous work xu2018design designed and implemented a fog computing based collision warning system leveraging V2I communications and demonstrated the superiority of the fog computing based collision warning system in terms of enhancing system responsiveness.
3 VFC Based Real-time Collision Warning Architecture

In this section, we propose a VFC based real-time collision warning architecture as shown in Fig. 1. In the architecture, communication infrastructures with short radio coverages (e.g., RSUs, 5G small cells) are acted as fog nodes, since they are physically closer to vehicles. On the other hand, communication infrastructures with wide coverages (e.g., cellular network base stations) are considered as cloud nodes. Vehicles are able to communicate with fog and cloud nodes via vehicle-to-fog (V2F) and vehicle-to-cloud (V2C) communications, respectively. Fog nodes installed along the road have certain computation ability. Cloud nodes are assumed to have unlimited computation capacity, but it may suffer from severe bandwidth competition if all vehicles under its coverage are transmitting data concurrently.
We take the following scenario as an example to show the procedure of the designed architecture. Considering two vehicles (i.e., and ) are approaching to a road intersection without traffic lights, then they may likely collide, especially if they are blind to each other. The potential collision can be avoided if the collision warning system, as a typical safety-critical ITS application, is implemented. Vehicles periodically upload their real-time status including GPS coordinates, velocity, acceleration, heading direction and so on, to the fog node via V2F communication. However, it is inevitable that the sensed data is inaccurate, such as the inaccuracy of the obtained GPS coordinates due to satellite clock bias, atmospheric delay, and errors in the broadcast ephemeris, etc liu2013improving . Furthermore, the packet loss in wireless communications makes it even challenging for the server to estimate real-time location of moving vehicles. Therefore, in this presented system, fog nodes will predict vehicle trajectories based on received information and designed algorithms. Then, a collision detection mechanism is incorporated to determine whether there is potential collisions. When a collision is detected based on certain headway threshold, the fog node will send the warning message to corresponding vehicles.
As analyzed above, even though fog node reduces communication delay over traditional centralized cloud computing, it still suffers from inaccurate vehicle information due to inevitable as well as non-negligible issues, including sensor errors, transmission latency and packet loss. The enlarged part in Fig. 1 shows an example of inaccurate vehicle location in the logical vehicles view of fog node comparing with the realistic traffic view. Specifically, assume that vehicle is approaching to the intersection with the velocity of kilometers per hour at time , and the position of vehicle is . Meanwhile, vehicle is located at and approaching to the intersection at a speed of kilometers per hour. Vehicles send their status to the fog node at time simultaneously, however, the packet, which contains status of vehicle , is lost in V2F communication. Fog node receives vehicle status at time and forms a logical vehicles view about each vehicle location as shown in the top of Fig. 1. Suppose the data size is kB, which is sufficient for typical ITS applications liu2013improving . DSRC as a typical VANETs communication technology supports data rate from to Mb/s kenney2011dedicated , where Mb/s is recommended for transmitting safety-critical messages. Hence, the time taken to upload vehicle status is around 500 * 8 kb / 3 1.3 s, namely, . Vehicle is located at at time , and dose not exist in the logical vehicles view of the fog node. Yet as shown in the realistic traffic view, the realistic positions of vehicles and are and , respectively. The distance error of vehicle ’s location between the logical vehicles view of fog node and the realistic traffic view is around 40 * 1000 / 3600 m/s * 1.3 14 m, in other words, 14 m. With above example, obviously, it is imperative to design an efficient mechanism based on the presented VFC architecture to enhance system robustness.
4 Trajectory Calibration Based Collision Warning Algorithm
In this section, we propose an algorithm named TCCW, which calibrates vehicle trajectory with both transmission latency estimation and packet loss detection. First, application-layer V2I communication delay is fitted into the Stable distribution model with real-world field testing data. Then, we propose a packet loss detection mechanism based on the historical information including data transmission frequency and locations of vehicles. Finally, we give detailed procedures of TCCW. Primary notations are listed in Table. 1.
Notation | Description |
---|---|
The Stable distribution | |
The characteristic exponent of the | |
The skewness parameter of | |
The location parameter of | |
The scale parameter of | |
The time slot set | |
One time in set | |
The vehicle set | |
The th vehicle | |
The location of vehicle at time | |
The speed of vehicle at time | |
The acceleration of vehicle at time | |
The driving direction of vehicle at time | |
The location of the fog node | |
The distance between vehicle and fog node | |
at time | |
The communication range of DSRC | |
The received packets at time | |
The packets records in fog node at time | |
The ID set of vehicles at time | |
The ID set of at time | |
The distance threshold | |
The time threshold | |
The headway threshold | |
The warning messages set at time | |
The warning message indicator of vehicle | |
at time |
4.1 Fitting of Application-layer Transmission Latency

We analyze the application-layer transmission latency of DSRC based on real-world field-testing data. In Fig. 2, a field testing is carried out on a road intersection without traffic lights. Two vehicles equipped DSRC interfaces are able to communicate with RSU via V2I communication. In particular, we utilize Cohda Wireless MK5 RSU and OBU as DSRC communication interfaces. An RSU is installed at the intersection, which is connected with a notebook as a computation unit of fog node. Vehicles and are approaching the intersection, and they are sending vehicle status including GPS coordinates, velocity, acceleration, heading direction and timestamp via V2I communication periodically. Fog node receives the packet from vehicles and obtains the packet transmission latency of application-layer of V2I communication.
In the following, we model the data packet transmission latency model in real vehicular communication environments with DSRC. Based on the observation of transmission latency obtained by realistic field testing, we find that the Stable distribution that provides well-established model for non-Gaussian processes is suitable to fit the communication delay. (The fitting result shows it is convincing to fit the latency using the Stable distribution.) We fit the observed V2I communication delays with the Stable distribution, which can be described by characteristics function as follows samoradnitsky2017stable ,
|
(1) |
where is a random variable and follows the Stable distribution , and
(2) |
is an index of stability or characteristic exponent, when , the relevant Stable distribution is Gaussian. is a skewness parameter, when , the relevant Stable distribution is symmetric about the center , which is a location parameter. If , the cases and correspond to left-skewness and right-skewness, respectively. is a scale parameter, and behaves like the variance. The characteristic function completely determines the behavior and properties of the probability distribution of the random variable , where is a real number, is the imaginary unit and is the expected value. And is a sign function as defined by
(3) |
We introduce the parameters estimation of the Stable distribution as follows.
We employ a regression-type estimation to estimate four parameters of the Stable distribution. First, given observation data as a random simple of size , a simple characteristic function is defined by
(4) | ||||
when , we denote:
|
(5) |
The distribution is assumed symmetric about the center (), then we can easily obtain:
(6) |
(7) | ||||
We estimate and by regressing , where and . We denote and use linear regression to address estimation problem by minimizing the mean-square error.
|
(8) |
Then, we use the least square method to get estimation value and . We denote and the estimated parameters are obtained by resolving the following equations:
|
(9) |
The estimated parameters and are represented by:
(10) |
where and .
It is easy to see that the real and imaginary parts of , and , are implied from Equation. 5.
|
(11) |
|
(12) |
The last two equations lead to
|
(13) |
As the estimated parameters and are obtained according to Equation. 10, we estimate another two parameters and by regressing , where and . And we denote and minimize the mean-square error between and .
|
(14) |
We denote , and the solution can obtained by resolving the follows:
|
(15) |
The estimated parameters and are obtained by:
(16) |
where
(17) |
and .

With equations 10 and 16, and given the observed data set , we obtain the four estimated parameter of the Stable distribution. First, the given observed data set is . In the iteration, we standardize the data by:
(18) |
where and truncated mean of origin data, is sample quantile fama1971parameter . We choose optimum point koutrouvelis1980regression to estimate and in Equation. 10.
(19) |
(20) |
where .
And these estimated parameters are in turns to obtains another two estimated parameters and with optimum points koutrouvelis1980regression in Equation. 16.
(21) |
(22) |
where , and
(23) |
After finite iteration, we obtain the four estimated parameters which are satisfy required accuracy. We estimate the Stable distribution model using 1804 data packet transmissions latency obtained by real-world field testing. Fig. 3 shows the probability density function (PDF) of the application-layer delay. The distribution of application-layer delay is almost symmetric () about the Mean (). We are 95 percent confident that the true Mean lies within the interval and . As can be seen, the resulting distribution is characterized by the left-skewness () and the average of the not small squared differences from the Mean ().
4.2 Packet Loss Detection Method
We propose a packet loss detection method in fog nodes based on the historical information including data transmission frequency and locations of vehicles. The general idea is described as follows. Each fog node obtains the ID set of vehicles, which are supposed to report their status according to uploading frequency. If the fog node does not receive the packets which are expected. There are two possible cases. First, the vehicle is out of DSRC communication range, thus, the packet cannot be delivered successfully. Second, the vehicle is within the DSRC communication range, however, the packet is lost in the transmission. For those packets, fog node figures out whether the vehicle is out of communication range according its historical position, if not, fog node supposes that the packet is lost.
Without loss of generality, we consider that the system consists of one fog node and a number of vehicles. Note that it can be straightforwardly extended to the scenario of multiple fog nodes. In the concerned scenario, we use set to denote the time slots, where , , and is the number of the time slot set. We use set to denote vehicles, where is the number of vehicles. At time , the position, velocity, acceleration, heading direction of vehicle are denoted by , , and , respectively. The location of the fog node is denoted by . And the communication range of DSRC is denoted by . he distance between vehicle and the fog node at time is denoted by . If , vehicle can communicate with the fog node.
The fog node receives a number of packets denoted by at time , , where , and is the number of the packets set. Meanwhile, fog node records the received packets of each time slot. At time , we use set to denote the historical records. The packet loss detection method is departed into two steps.
Fog node maintains a vehicles ID set , which records ID of all vehicles under the coverage of the fog node at time . initialize as . When the fog node receives a number of packets at time slot . For , , if the fog node receives the packet of vehicle at the first time, , then adds into , . Fog node searches and adds all vehicle ID into the set .
For the vehicle , , there are two cases: a) , vehicle can communicate with fog node, however, fog node does not receive the packet from it; b) , vehicle can communicate with fog node, and fog node receives its packet. Therefore, for case a, fog node searches to get its laster new position . Fog node use a distance threshold and a time threshold to detect whether the vehicle is out of communication range. If the vehicle is within the communication range, fog node detects whether the packet is lost in transmission. If the distance between vehicle and fog node , that means vehicle is leaving the communication range. So that, fog node remove from , . If , that means vehicle can communicate with fog node, however, fog node does not receive its packet. The estimated received time is , if , fog node assume the packet is lost. Otherwise, vehicle does not send the packet yet, or the packet is delay due to the wireless communication.
4.3 Procedures of TCCW Algorithm
The general procedures of TCCW are described as follows. First, we estimate the transmission latency of each data packet and update their real-time status according to their velocity and acceleration. Second, we detect the lost packets and update their status using packets records in the fog node. Third, we calibrate vehicle trajectories using simulated transmission latency. Then, we predict the future trajectories based on calibrated trajectories. Finally, we predict the potential collisions by calculating the headway of each pair of vehicles and using the headway threshold. At time , vehicle ID set , received packets , packets records are known as the input of the algorithm. The output of TCCW is the warning message set . The detailed procedures of TCCW are presented as follows and the pseudo-code is shown in Algorithm. 1.
The purpose of updating the vehicle set is to maintain the vehicle ID set . We initialize vehicle ID set at time and the ID set of received packets . contains every vehicle ID in received packets, and if the vehicle ID is not contained by , then fog node add the vehicle ID into . The detailed procedure of updating the vehicle set is shown in lines 1-8 in Algorithm. 1.
Fog node detects the packet loss in transmission using the method introduced in Section. 4.2. For those vehicles that fog node do not received from them, fog node searches packets records to get last new vehicle state information, and add it into . The detailed procedure of detecting packet loss is shown in lines 9-20 in Algorithm. 1.
For the packet , , fog node estimates the transmission latency of the packet by generating a random number using the Stable distribution. Fog node estimates the packet send time . The interval between time and packet send time is . Fog node updates location information of vehicle as follows:
(24) |
where , , , , , are positions, speeds, accelerations of vehicle in X and Y coordinate respectively. Lines 21-24 in Algorithm. 1 show the detailed procedure of calibrating vehicle trajectories.
For vehicle , fog node predicts the future trajectories in time slot , where is fog node prediction time. Fog node calculates the vehicle position in every second, and appends the position into the trajectory set of vehicle . The detailed procedure of predicting future vehicle trajectories is shown in lines 25-32 in Algorithm. 1.
Fog node use a set of warning message , is a binary variable to indicate whether vehicle has the potential collision. For and , fog node calculates the distance of the two vehicles . We assume that vehicle and pass the same point if the distance . The elapsed time between the front of the lead vehicle passing a point on the roadway and the front of the following vehicle passing the same point is defined as the headway vogel2003comparison . Fog node calculates the headway , and if , where is the headway threshold, warning message will be triggered, . Lines 32-42 in Algorithm. 1 show the detailed procedure of predicting potential collisions.
5 Performance Evaluation
5.1 Experiment Setup

To further demonstrate the performance of our algorithm, we carry out another real-world field testing, and obtain 600 packet transmission delay via two different architectures, both fog computing and cloud computing architecture. In the field testing experiment, when a vehicle is approaching the road intersection, it uploads its status including GPS coordinates, velocity, acceleration, heading direction to fog node. In detail, the vehicle uploading frequency is 1 HZ, in another word, vehicles send packets in every one second. 600 packets, which are transmitted to fog node via DSRC and cloud node via 4G-LTE respectively, are collected and analyzed. Fig. 4 shows that the average delay of packets transmission in cloud computing architecture is 120, otherwise, the average delay of the fog computing architecture is 77. It is obvious that packet transmission latency in the fog computing based architecture is lower than that in the cloud computing based. Undoubtedly, the results conclusively demonstrate the superiority of vehicular fog computing enabled collision warning system for supporting low latency and safety-critical services. The real-world communication latency obtained by a field-testing experiment is utilized as transmission delay of each packets in the simulation experiment.
First, we employ a vehicle mobility dataset of real taxi trajectory in the experiment. The dataset is collected on an area of about 400 square kilometers from Cologne, Germany for a period of 24 hours in a typical working day uppoor2013 . There are more than 1.2 million individual vehicle trajectories, which contains 3.5 billion points of vehicular positions. The dataset contains vehicles positions in a broad range as a whole city, we choose some different road intersection to implement the system, therefore, the experiment scenarios have different traffic conditions. The features of five scenarios are listed in Table. 2. We evaluate the traffic features with different scenarios in terms of vehicle number, average speed, and average acceleration. Vehicle number is a variable to generally describe vehicular density of the scenario using a number of vehicles on the road or pass through in a period. Average speed is the average speed of vehicles in the scenario. As follows is specific data of vehicle number, average speed and average acceleration in five selected scenarios. In scenarios 1, 2 and 3, fog node is located in a road intersection shown in Fig. 5(a), and scenarios 1, 2, 3 start the experiment at 10 PM, 8 AM and 7 PM, respectively. The fog node is located in center of Fig. 5(b) in scenario 4 and 5. It starts the experiment at 4 PM and 6 PM. Fog node is installed in of the first three scenarios and in of the last two scenarios. X and Y coordinates represent location of vehicle with two-dimensional in meters.
Scenario | 1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|---|
Vehicle Number | 54 | 81 | 106 | 85 | 114 |
Average Speed() | 50.44 | 46.58 | 38.16 | 69.19 | 69.05 |
Average Acceleration() | 0.203 | 0.007 | 0.075 | 0.165 | 0.060 |


Apart from the five selected scenarios, we also implement the system under different headway and packet loss rate. Headway is a time slot between two vehicles passes through one point, but in the experiment, there is a headway threshold to determine whether the potential collision warning happened. If the headway threshold is small, the prediction collision number will less. The duration of each experiment is 100 seconds, and DSRC communication range is 500 meters. We conduct three sets of experiments, for each set of experiments, we change different parameters including scenario, headway and packet loss rate. We can find that performance of proposed system in several scenarios where traffic conditions are different.
In specific, there are predicted collision warning message set and expected collision warning set in the experiment. The number of expected warnings is the number of expected collision warning according to experimental setup, the number of predicted collision warning message is the number of potential collisions predicted by the collision warning system. Further, means the number of expected collision warnings which are actual predicted success, in another word, the number of successful predictions. is the number of expected warnings which should be triggered but not be predicted successful by collision warning system, in a word, it is failed predictions in . In the same, is the number of wrong predictions, namely, it is potential collision predicted by collision warning system, however, it is not expected collision warning. We define precision and recall as follows:
(25) |
(26) |


Comparing the superiority of distributed fog computing architecture to centralized cloud computing, we implement the system in both cloud computing and fog computing architecture. To compare the performance of our algorithm, we implement the collision system with three different algorithms as below:
Cloud-Based Warning (CBW): The collision warning system is implemented in the centralized cloud computing architecture, specifically, vehicles upload their status information to a cloud server, which is far away from vehicles. In the experiment, we utilize a transmission latency obtained by a field testing experiment to simulate the communication delay between vehicles and cloud node. Cloud server predicts potential collision warning on the basis of vehicle status without trajectories calibration.
Fog-Based Without Calibration (FWC): The collision warning system is implemented in the traditional fog computing architecture. In the fog computing architecture, the majority system is implemented as same as CBW, expects the network architecture. Due to new network architecture, communication latency drastically reduces. Vehicles upload their status to nearby fog nodes, and we use transmission delay obtained in real-world field testing as transmission latency of each packets. The fog node predicts the potential collisions without trajectory calibration.
Trajectory Calibration based Collision Warning(TCCW): The details of TCCW are introduced in Section. 4. Fog node predicts potential collision by calibrating vehicle trajectory considering both transmission latency and packet loss.
5.2 Experiment Result and Analysis
Fig. 6 shows the precision and recall of three algorithms under different experiment scenarios. It is obvious that the trajectories calibration improve the performance in both precision and recall in no matter what traffic conditions. With the benefit of trajectory calibration in the fog node, vehicle status are much closer to the real-time status, in other words, vehicle positions with trajectories calibration are more closer to the real vehicle positions.




Fig. 7 compares the precision and recall of three algorithms with different headway thresholds. Fig. 7 shows the headway threshold increases from 1 to 5 seconds. As the headway threshold increases, precision has improved. Since headway threshold turns large, the number of predicted collisions get larger, in another word, get bigger. Thus, the precision of proposed system is improved, on the other hand, recall reduces as headway threshold increased.
Fig. 8 compares the precision and recall of three algorithms with different packet loss rates. As shown in Fig. 8, when the packet loss rate increases from 0% up to 6%, performance of CBW and FWC become worse, however, performance of TCCW is better than the two algorithms with the help of trajectory calibration. The experiment result shows that due to the low communication latency supported by fog computing architecture, the performance of FWC is better than CBW. And we can also find that with the help of trajectory calibration, the performance of TCCW is better than both CBW and FWC.
6 Conclusion
In this paper, we present a VFC based real-time collision warning architecture to support safety-critical ITS applications. We propose a TCCW algorithm, which calibrates vehicle trajectories by combining transmission latency estimation and packet loss detection. We estimate the transmission latency by deriving a packet transmission delay fitting model in application-layer based on the Stable distribution, where the fitting data are obtained by implementing a DSRC based system in realistic field testing. Moreover, we detect the packet loss based on the historical information including data transmission frequency and locations of vehicles. We give a comprehensive simulation and the result demonstrates the superiority of TCCW comparing with cloud-based warning and fog-based warning without trajectory calibration in terms of both recall and precision on collision warning.
Acknowledgements.
This work was supported in part by the National Natural Science Foundation of China under Grant No.61872049, No.61876025 and No. 61803054; the Venture Innovation Support Program for Chongqing Overseas Returnees (Project No. cx2018016), and the Fundamental Research Funds for the Central Universities (2019CDQYZDH030).References
- (1) Kenney JB (2011) Dedicated short-range communications (DSRC) standards in the united states. Proceedings of the IEEE 99(7):1162-1182
- (2) Agiwal M, Roy A, Saxena N (2016) Next generation 5G wireless networks: A comprehensive survey. IEEE Communications Surveys & Tutorials 18(3):1617-1655
- (3) Araniti G, Campolo C, Condoluci M, Iera A, Molinaro A (2013) LTE for vehicular networking: A survey. IEEE Communications Magazine 51(5):148-157
- (4) Ucar S, Ergen SC, Ozkasap O (2015) Multihop-cluster-based IEEE 802.11 p and LTE hybrid architecture for VANET safety message dissemination. IEEE Transactions on Vehicular Technology 65(4):2621-2636
- (5) Dai P, Liu K, Wu X, Liao Y, Lee VC, Son SH (2018) Bandwidth efficiency and service adaptiveness oriented data dissemination in heterogeneous vehicular networks. IEEE Transactions on Vehicular Technology, 67(7):6585-6598
- (6) Ahmed E, Gharavi H (2018) Cooperative vehicular networking: A survey. IEEE Transactions on Intelligent Transportation Systems 19(3):996-1014
- (7) Liu K, Xu X, Chen M, Liu B, Wu L, Lee VC (2019) A hierarchical architecture for the future internet of vehicles. IEEE Communications Magazine 57(7):41-47
- (8) Zhai X, Guan X, Zhu C, Shu L, Yuan J (2018) Optimization algorithms for multiaccess green communications in internet of things. IEEE Internet of Things Journal 5(3):1739-1748
- (9) Zhai X, Liu X, Zhu C, Zhu K, Chen B (2019) Fast admission control and power optimization with adaptive rates for communication fairness in wireless networks. IEEE Transactions on Mobile Computing https://doi.org/10.1109/TMC.2019.2954126
- (10) Liu K, Ng J.K, Lee V, Son SH, Stojmenovic I (2016) Cooperative data scheduling in hybrid vehicular ad hoc networks: VANET as a software defined network. IEEE/ACM Transactions on Networking (TON) 24(3):1759-1773
- (11) Dai P, Liu K, Feng L, Zhuge Q, Lee VC, Son SH (2016) Adaptive scheduling for real-time and temporal information services in vehicular networks. Transportation Research Part C: Emerging Technologies 71:313-332
- (12) Wang J, Liu K, Xiao K, Chen C, Wu W, Lee VC, Son SH (2017) Dynamic clustering and cooperative scheduling for vehicle-to-vehicle communication in bidirectional road scenarios. IEEE Transactions on Intelligent Transportation Systems 19(6):1913-1924
- (13) Peng H, Li D, Ye Q, Abboud K, Zhao H, Zhuang W, Shen X (2017) Resource allocation for cellular-based inter-vehicle communications in autonomous multiplatoons. IEEE Transactions on Vehicular Technology 66(12):11249-11263
- (14) Ahmed KJ, Lee MJ (2018) Secure resource allocation for LTE-based V2X service. IEEE Transactions on Vehicular Technology 67(12):11324-11331
- (15) Liu K, Lim HB, Frazzoli E, Ji H, Lee VC (2013) Improving positioning accuracy using gps pseudorange measurements for cooperative vehicular localization. IEEE Transactions on Vehicular Technology 63(6):2544-2556
- (16) Dai P, Liu K, Zhuge Q, Sha EHM, Lee VC, Son SH (2016) Quality-of-experience-oriented autonomous intersection control in vehicular networks. IEEE Transactions on Intelligent Transportation Systems 17(7):1956-1967
- (17) Wang J, Liu K, Xiao K, Wang X, Han Q, Lee VC (2019) Delay-constrained routing via heterogeneous vehicular communications in software defined BusNet. IEEE Transactions on Vehicular Technology 68(6):5957-5970
- (18) Liu K, Feng L, Dai P, Lee VC, Son SH, Cao J (2017) Coding-assisted broadcast scheduling via memetic computing in SDN-based vehicular networks. IEEE Transactions on Intelligent Transportation Systems 19(8):2420-2431
- (19) Hou X, Li Y, Chen M, Wu D, Jin D, Chen S (2016) Vehicular fog computing: A view point of vehicles as the infrastructures. IEEE Transactions on Vehicular Technology 65(6):3860-3873
- (20) Wang X, Ning Z, Wang L (2018) Offloading in Internet of vehicles: A fog-enabled real-time traffic management system. IEEE Transactions on Industrial Informatics 14(10):4568-4578
- (21) Sun F, Hou F, Cheng N, Wang M, Zhou H, Gui L, Shen X (2018) Cooperative task scheduling for computation offloading in vehicular cloud. IEEE Transactions on Vehicular Technology 67(11):11049-11061
- (22) Zhou Z, Liu P, Feng J, Zhang Y, Mumtaz S, Rodriguez J (2019) Computation resource allocation and task assignment optimization in vehicular fog computing: A contract-matching approach. IEEE Transactions on Vehicular Technology 68(4):3113-3125
- (23) Yao Y, Rao L, Liu X, Zhou X (2013) Delay analysis and study of ieee 802.11 p based dsrc safety communication in a highway environment. In: 2013 Proceedings IEEE INFOCOM. IEEE, pp 1591-1599
- (24) Zheng J, Wu Q (2015) Performance modeling and analysis of the IEEE 802.11p EDCA mechanism for VANET. IEEE Transactions on Vehicular Technology 65(4):2673-2687
- (25) Peng H, Li D, Abboud K, Zhou H, Zhao H, Zhuang W, Shen XS (2016) Performance analysis of IEEE 802.11p DCF for multiplatooning communications with autonomous vehicles. IEEE Transactions on Vehicular Technology, 66(3):2485-2498
- (26) Huang C, Lu R, Choo KKR (2017) Vehicular fog computing: architecture, use case, and security and forensic challenges. IEEE Communications Magazine 55(11):105-111
- (27) Song W, Yang Y, Fu M, Qiu F, Wang M (2017) Real-time obstacles detection and status classification for collision warning in a vehicle active safety system. IEEE Transactions on Intelligent Transportation Systems 19(3):758-773
- (28) Wu KH, Lin DB, Wang CW, Chou HT (2019) Series feed broadband patch array antenna design for vehicle collision warning radar system. In: 2019 Joint International Symposium on Electromagnetic Compatibility, Sapporo and Asia-Pacific International Symposium on Electromagnetic Compatibility (EMC Sapporo/APEMC). IEEE, pp 490-493
- (29) Wang X, Tang J, Niu J, Zhao X (2016) Vision-based two-step brake detection method for vehicle collision avoidance. Neurocomputing 173:450-461
- (30) Song W, Yang Y, Fu M, Li Y, Wang M (2018) Lane detection and classification for forward collision warning system based on stereo vision. IEEE Sensors Journal 18(12):5151-5163
- (31) Hafner MR, Cunningham D, Caminiti L, Del Vecchio D (2013) Cooperative collision avoidance at intersections: Algorithms and experiments. IEEE Transactions on Intelligent Transportation Systems 14(3):1162-1175
- (32) Gelbal SY, Arslan S, Wang H, Aksun-Guvenc B, Guvenc L (2017) Elastic band based pedestrian collision avoidance using V2X communication. In: 2017 IEEE Intelligent Vehicles Symposium (IV). IEEE, pp 270-276
- (33) Xu X, Liu K, Xiao K, Ren H, Feng L, Chen C (2018) Design and implementation of a fog computing based collision warning system in VANETs. In: 2018 IEEE Symposium on Product Compliance Engineering-Asia (ISPCE-CN). IEEE, pp 1-6
- (34) Samoradnitsky G (2017) Stable non-Gaussian random processes: Stochastic models with infinite variance. Routledge
- (35) Fama EF, Roll R (1971) Parameter estimates for symmetric stable distributions. Journal of the American Statistical Association 66(334):331-338
- (36) Koutrouvelis IA (1980) Regression-type estimation of the parameters of stable laws. Journal of the American statistical association 75(372):918-928
- (37) Vogel K (2003) A comparison of headway and time to collision as safety indicators. Accident Analysis and Prevention 35(3):427-433
- (38) Uppoor S, Trullols-Cruces O, Fiore M, Barcelo-Ordinas JM (2013) Generation and analysis of a large-scale urban vehicular mobility dataset. IEEE Transactions on Mobile Computing 13(5):1061-1075