Accident Management System Based on Vehicular Network for an Intelligent Transportation System in Urban Environments

Thissystemensuresthepossibilityofreal-timecommunicationamong vehicles,ambulances,hospitals,roadsideunits,andcentralservers.Inaddition,theaccidentmanagementsystemisabletolessen the amount of time required to alert an ambulance that it is required at an accident scene by using a multihop optimal forwarding algorithm. Moreover, an optimal route planning algorithm (ORPA) is proposed in this system to improve the aggregate spatial use of a road network, at the same time bringing down the travel cost of operating a vehicle. This can reduce the incidence of vehicles being stuck on congested roads. Simulations are performed to evaluate ORPA, and the results are compared with existing algorithms. The evaluation results provided evidence that ORPA outperformed others in terms of average ambulance speed and travelling time. Finally, our system makes it easier for ambulance to quickly make their way through traffic congestion so that the chance of saving lives is increased.


Introduction
The concept of a smart city is linked to a paradigm shift where interest is being directed towards proposals and technological initiatives, which seek to make cities smart so that the quality of the lives of the people living in these cities can be improved [1,2].For instance, in Europe, the European Commission has established the European Initiative on Smart Cities in 2010.This initiative seeks to address the four important elements in the life of a city: climate management systems, building, transport, and electricity.
One of the main elements that smart cities seek to contain is the issue of increasing levels of road accidents, which have resulted from increasing numbers of vehicles, leading to congestion.It has been proven that vehicle accidents are one of the main causes of fatalities with more than 100 deaths being reported in the United States on a daily basis [3].The same report indicates that the year 2007 experienced more than 43,000 deaths as a result of over 10 million reported accidents.Moreover, in most of the countries in the world, a major cause of accidents is poor infrastructure for managing traffic.The concept of traffic management systems refers to intelligent public transport mechanisms founded on information obtained in real-time, which helps drivers to avoid congested areas and increase safety while also ensuring that vehicles operate in a manner that is more environmentally friendly.Within the last few years, researchers, both from academic institutions and from industry have taken advantage of the progress made in wireless sensing technology to make the current traffic management systems more effective and ensure their ability to cope with the issues within the smart city discussed above.
Traffic congestion, as one of the leading problems affecting modern societies, has been given increasing attention.The delay in the arrival of emergency services at accident scenes like ambulances, the police, and fire, and rescue operations is one of the critical results of traffic congestion.This is an undesirable situation as the safety of the general public depends on these services being able to arrive at the scene of an accident in the efficient and shortest time possible.Intelligent transportation systems (ITSs) have not yet been able to resolve the challenge of traffic congestion.For example, Google Maps still uses communication networks that exist such as Wi-Fi, global positioning system (GPS), and cellular networks to plan journeys and mitigate the challenge of being stuck in traffic.However, apart from being expensive, these technologies still do not have the capacity to respond with speed when there is an emergency resulting from a road accident.These systems have limited access to realtime traffic data.Hence, it is important that these emergency services should be equipped with a system that can enhance the adaptability of route planning so information can be collected more efficiently and real-time traffic data can be further exploited to avoid traffic congestion.
Firstly, emerging vehicular ad hoc networks (VANETs) can be used to deliver on ITS system with improved communications capabilities for obtaining real-time traffic information more efficiently and in a cost-effective manner [4].VANETs support vehicle-to-roadside unit (V2R) and vehicle-to-vehicle communications [5,6], so that real-time updates can be transmitted from and to vehicles and roadside units (RSUs) [7,8].This real-time information which will be collected can then be consequently used for route planning in individual vehicles [9], freeway-traffic-flow management [10,11], and vehicle localization [12][13][14].Secondly, once the real-time traffic information has been obtained, various algorithms can be designed with the aim of discovering the most efficient routes that individual vehicles can take [15,16].However, if the route planning is deployed in a manner which is not coordinated, this could lead to even more congestion.While most of the available routes planning global algorithms pay attention to the improvements linked to networks, they generally overlook driver preferences, such as travel distances and times.This is important, particularly if one considers that replanning decisions are a consequence of the need to avoid traffic congestion and balancing of traffic as opposed to the discovery of optimal routes.Hence, some drivers may actually prefer to take longer routes even though this may entail higher costs.Hence, the design of algorithms should be done in a way that considers both the reduction of the average cost of running the vehicle and network traffic.
To this end, we propose an accident management system based on VANET for ITS in urban environments.The major contributions of this paper are listed as follows: (1) We provide an accident management system that makes use of VANETs coupled with systems that employ cellular technology in public transport.The provided system ensures the possibility of real-time communication among vehicles, ambulances, hospitals, roadside units, and central servers.A multihop optimal forwarding algorithm is used in this system, which provides the optimal route between the sources (accident vehicle) and the destination (ambulance).This can lower the amount of time required to alert an ambulance that it is required at an accident scene.
(2) We propose an optimal route planning algorithm which provides the optimal route algorithm from ambulance to accident vehicle and then to hospital.The proposed algorithm employs VANET communication proficiencies so that vehicles can mitigate the challenge of congestion.With the aim of balancing the preferences of the drivers and the need for overall smoothness in the traffic flow, we consider vehicle travel costs and network spatial utilization.
The remainder of this paper is organized as follows.Section 2 of this paper looks at related works on route planning, while Section 3 discusses the system model.Section 4 of the paper presents the traffic routing algorithms, while Section 5 delivers a demonstration of the performance evaluation.The paper is finally concluded in Section 6.

Related Works
There are many consequences of an unbalanced flow of traffic and the subsequent accidents and incidents it causes: arriving late and suffering added cost are some of the results drivers have to contend with.Route navigation and planning can, however, mitigate the challenges linked to traffic congestion.
Some of the methods which can be used to manage and plan vehicle routes include the shortest-route based GPS navigation, advance route reservation, and accident duration prediction [17][18][19].However, all these methods do not have the capacity to deliver immediate information when an accident or congestion happens suddenly, considering the fact that they lack a timely update capacity to deliver information on traffic conditions.Hence, the availability of real-time traffic information becomes vital for supporting vehicular real-time route planning algorithms.
Loop directors and cellular systems are the most commonly used methods in standard ITS when collecting timevarying traffic condition data.The use of mobile sensors connected through cellular networks was investigated, for the collection of real-time traffic information for the forecasting of traffic or experimental research reconstruction [20][21][22].A traffic management system which employs loop detectors for continuously measuring traffic and also monitoring of arterial routes is introduced in [15].However, both loop detectors and cellular-based systems have their own challenges.With regard to cellular services, they are not designed for the purpose of collecting traffic data and the transmission of data through them can also be expensive.When too much data is transmitted through such networks, they may also crash due to added congestion.Loop detectors can also be quite expensive to deploy.Also, when it comes to short distance transmission, inaccurate position measurements can also present problems, especially in networks that are dense, resulting in the degrading of the performance of the route management planning [23].
VANETs V2R and V2V methods of communication have the capacity of making the delivery of real-time messages much quicker, more efficient, and cost-effective when compared to prevailing methods, even in shorter distances and networks that are thick [24,25].More importantly, the collection and distribution of data can be enhanced by the RSUs, in VANETs making it possible for coordinated route planning to be achieved for clusters of vehicles [26].With the aim of improving the quality of experience, the multimedia delivery application can be supported by a vehicular network based on the multimedia system, which could still be a victim of extensive delays in transmission [27,28].
A variety of studies have concentrated on real-time route planning assisted by VANETs.A method for distributed route planning was advanced to mitigate the challenge of congestion through the employment of real-time data obtained from VANETs, with the increase in the flow of traffic [15].With regard to fuel saving in vehicles, [29] has designed a navigation system which assists drivers to steer away from congested roads.However, the lack of coordination and selfish behavior of drivers could lead to more congestion when the individualuser manual schemes are deployed.Hence, the requirement for the routes of groups of vehicles to be planned jointly with the aim of balancing the traffic network exists.Multivehicle route planning is considered in [30,31].However, these works do not pay attention to the preferences of drivers, nor the average cost of travelling.It also remains unexplained how communications in VANETs can affect the route planning algorithm.
Hence, in this study, a route planning algorithm which is globally optimal is proposed to assist vehicles to avoid traffic congestion as a consequence of accidents within an urban setting.It is expected that the collected real-time traffic data and the efficient route decision-making will help facilitate better use of the resources within the road network, resulting in the average costs associated with travelling in a vehicle being reduced.

System Model and Architecture
In this section, we aim to provide an accident management system.We initially introduce the system model and then provide its architecture.

System Model.
Within the urban environment, we consider a vehicular network that incorporates intersections and their roads.Within every road, there are two lanes in which the vehicles move in opposite directions as is illustrated in Figure 1.
The circle, in which intersection ID is found, represents the intersection, while the arrow is an indication of the direction in which the vehicles in the lane are travelling.Hospitals 1 and 2 denote the destinations that are assumed to be placed within two of the intersections.In each intersection, an RSU is located.There is one ambulance located near each hospital.All parts of the system are connected to the central server.When vehicles move through the road, they do so in either a similar or opposite direction.We make the assumption that all ambulances and vehicles have an on-board navigation mechanism and the capacity to use wireless communication similar to assumption in [32].Within each ambulance and vehicle, there is a digital map that also contains knowledge of the locations of neighboring intersections.In addition, all vehicles are able to obtain necessary information regarding the location, speed, and direction of neighboring vehicles, which is maintained in tables accessible to neighbors by exchanging of periodic messages.While still generalizing, we also make the assumption that all vehicles have a range of transmission.We also make the assumption that the source node is armed with location services that allow it to obtain destination position in the event that it is needed [33,34].

System
Architecture.The accident management system consists of five units as is illustrated in Figure 2: vehicular, central server, RSUs, ambulance, and hospital.In this section, we will discuss each unit in detail as follows.

Vehicular Unit.
The role of the vehicular unit is to manage the overall activities that the vehicle carries out, including the detection of accidents, while also maintaining communication with other units.In each vehicular unit, there are three modules.
(1) Sensor module: it is used to monitor and control different sensors attached to the vehicle.Our system uses two kinds of sensors for the purpose of detecting accidents: biomedical sensors which detect the individual's heart rate, temperature, and pressure and vehicle sensor which monitor acceleration, vibration, and the deployment of the airbag.Both sensors have their strengths and weaknesses.For instance, the vehicle sensor is easier to use but will not provide a precise picture of the accident.While it is able to detect that an accident has occurred, it is unable to give details regarding the gravity of the accident and how badly the passengers in the accident require medical attention.On the other hand, biomedical sensors are prone to raising false alarms.In order to mitigate against this challenge, we propose that both sensors should be used simultaneously.All readings provided by the sensors are always being measured and delivered to the local processor in the vehicle.The

Speed Map Module
Central Server Unit

Ambulance Monitor Module
Ambulance Unit Hospital Unit processor is used for setting the threshold level for each reading of the sensor.The role of the processor is to continuously check the reading of the sensor against the threshold value.Once any abnormal values, compared to the threshold are detected, in both the vehicular and biomedical sensors, then an accident is confirmed by the processor.Information about the accident is them sent to the alert module by the local processor.Also, the local processor obtains information regarding the location of the on-board GPS.This ensures its ability to continuously locate the vehicle.
(2) Speed monitor module: it is used to maintain a record of the speed at which the vehicle is travelling and records the average speed at which the vehicle travels at each road.This message is then transmitted to the message and alert module.
(3) Message and alert module: it is used to maintain communication with the central server, RSU units, and the ambulance.It also obtains the average speed, from the speed monitor module, at which the vehicle is travelling at each section of the road.This information is then transmitted to the corresponding RSU unit.

Central Server Unit.
The central server unit is central to our model which has connections to all the entity units.It is the responsibility of the central server to manage traffic.It contains two modules: (1) Speed map module: it uses the average speeds that vehicles are travelling at to create a roadmap of each road.
(2) Optimal path module: it is used to compute the best path that an ambulance can take to the scene of the accident and also to the hospital.

RSU Unit.
The RSU unit has the responsibility of monitoring and managing traffic and also consists of two modules.
(1) Vehicle monitor module: it is used to collect the average speeds at which vehicles are travelling in the adjacent section of the road.This information is then transmitted to the central server unit.
(2) Ambulance monitor module: it is used for tracking the ambulance and setting traffic lights along the route in a manner that reduces the time an ambulance has to wait.Our model divides roads into road segments between two RSUs.A distinct road ID is provided for each road segment.Every RSU, at the beginning of a road segment, transmits the road ID through which the vehicle is going to pass.Once each vehicle gets the message, it begins to monitor its speed on that segment of the road.Once the vehicle arrives at the end of the road segment, it transmits a message to the RSUs.Within each message, there are two fields: the matching road ID and average speed.The RSUs then gather the vehicle's speed details from the vehicle and then compute the aggregate average speeds of all vehicles, which are then transmitted by the RSUs to the central server.This is the information that the central server then uses to create the city's speed roadmap.

Ambulance Unit.
The vehicular unit and the central server unit provide the ambulance with accident information and the optimal route information, respectively.With the assistance of the GPS, the ambulance then uses this information to identify the best route.As it travels, the ambulance will be transmitting an alert message which contains two fields: the current and next road IDs.At the beginning of each road segment, upon the RSU receiving the alert message containing the current road ID, it transmits the message to the RSU at the end of the road segment.Once the transmitted message has been received, the RSU will extract the following segment of the road that the ambulance is travelling towards and sets the traffic light to allow the ambulance quick passage.This will be done all the way until the ambulance arrives at the place where it is going.

Hospital Unit.
There is a connection between the hospital unit, the ambulance units, and the central server.
Health updates about the situation of the patient are continuously transmitted to the hospital unit, directly from the ambulance.This ensures that the treatment is started as soon as possible once the patient arrives at the hospital.Owing to the fact that the ambulance keeps the hospital informed of its current location, the hospital is able to obtain the patient's preliminary health status ahead of the ambulance arriving at the hospital.Since the location of the ambulance is updated, the hospital is able to estimate the time at which the patient will arrive at the hospital and ensure preliminary steps for the patient's treatment.

Proposed Traffic Routing Algorithms
In this section, we discuss the postaccident action in our system.Traffic routing consists of two proposed algorithms.First, we introduce the multihop optimal forwarding algorithm which provides the optimal route between accident vehicle and ambulance.Second, we introduce the optimal route planning algorithm which provides the optimal route algorithm from ambulance to accident vehicle and then to hospital.

Multihop Optimal Forwarding Algorithm.
This section provides the details of how we plan to use the sources (accident vehicle) to identify the optimal route to the destination (ambulance) on a hop-by-hop basis.The algorithm is based on a V2V communications.Figure 3 shows the green vehicle as the source and Ambulance 1 is shown as destination 1 (D1), which is located at I3, while Ambulance 2 is destination 2 (D2) whose location is I4.
In case of an accident, the source sends a packet to the ambulance nearest to it.The accident vehicle computes the length of the path from all intersections that link it with both destinations and chooses the destination whose path length (PL) is the shortest.With regard to D1, from Figure 3, using the red arrows PL2D1 < PL5D1, it can be shown that the packet forwarded to D1 from intersection I2-I3 will be faster than the one to D1 from I5-I6-I3.Accordingly, the accident will require two intersections to get to Ambulance 1.Meanwhile, with regard to D2, as shown in Figure 3 by green arrows, PL5D2 < PL2D2, the packet to intersection I5-I4 to D2 will be quicker when compared to the packet transmitted from I2-I1-I4.Based on this, the accident vehicle will choose the path that has more vehicles to ensure continuous connectivity.Consequently, two intersections are required by the accident vehicle in order for it to reach Ambulance 2. What this implies is that we have two paths whose length is similar: I5-I4-D2 and I2-13-D1.For this case, it would be more prudent for the accident vehicle to choose a path that has more vehicles so that maximum connectivity can be maintained.According to Figure 3, the path chosen by the accident vehicle is PL2.The blue arrows denote the accident vehicle forwarding the packet to the next candidate vehicle travelling towards the intersection that has the shortest path length to D1, depending on [35,36].This is a process that continues all the way until the packet arrives at its estimation.This not only does ensure fast progress, but also makes sure that there is minimal traffic on the network.

Optimal Route Planning Algorithm.
Our aim in this section is to identify the optimal route planning algorithm (ORPA) from the ambulance to the accident vehicle and then to the hospital.The reasoning behind this algorithm is the avoidance of traffic congestion and the reduction of the average cost of travelling.
It is expected that each vehicle will trial a planned route right from the point where it starts its journey to the point where the journey terminates.In this instance, the planned route will be referred to, in GPS, as a route preset, depending on what the choices of the driver are and also depending on where the starting and termination points are located.The driver is also expected to follow the route which has been preset until they receive an alert that there is congestion along that route.The central server, through managing the optimal route planning algorithm, will be responsible for identifying the optimal substitute routing for a particular ambulance once congestion or an accident happens.To facilitate the understanding of technical aspects, a table of notations would be useful as illustrated in Table 1.
The optimal route planning algorithm is planned in a manner that balances the avoidance of congestion while also ensuring that the cost of travel is reduced.Hence, for this purpose, we suggest two metrics.The first one is the weighted average cost metric which determines the average cost for vehicles whose routes have been replanned, while also ensuring that the preferences of the driver are also considered.Some of the mathematical notions used in this algorithm are V, , (, ), and  representing vehicles, destination, road segment, and sample time duration, respectively.In this case, we consider PL V  as the prevailing length of the path (first based on what the driver prefers such as the one they are familiar with or the shortest one), where  is the path selected ahead of the replanning.PL V  represents the changed path, where,  represents the new path which has been planned and by going via (, ) the path of V is changed in the direction of .() is vehicle travel cost and will be formulated as where  represents a nonnegative accumulative function used to measure the effect of the increase in path length [37].
The average cost of vehicles on road segment The average cost of vehicles on intersection  J i The set of adjacent crossing of intersection   ij (T) The average inflow rates of road segment  ij (T) The average outflow rates of road segment  ij (t) The upstream vehicle arrivals respectively on road segment  ij (t) The upstream vehicle departure rates on road segment The total length of all virtual queues of intersection  WI

Weighted intersection WI(T)
Intersection i's weight in sample time Virtual queues representing the number of the shielded vehicles travelling through intersection  Q d j (T) Virtual queues representing the number of the shielded vehicles travelling through intersection  j * The huge differential row build-up for intersection  and the other adjacent intersection  q d j * (T) Re-planning to intersection  * of a number of vehicles Computing the average cost of vehicles on road segment (, ) can be done as follows: where  represents the number of vehicles travelling on a road segment (, ).For an intersection, considering that there could be a number of adjacent intersections which are candidates of the approaching intersections, determining the average cost of vehicles on intersection  is defined as where   represents the set of adjacent crossing of intersection .Secondly, in the weighted network stability, we used the inflow/outflow system (Figure 4) as a method of modelling vehicle traffic [38].
With the Tth time interval based on the rates of the traffic flow involved, as gathered by RSUs, the average inflow and outflow rates of road segment (, ) are marked as   () and   (), respectively, and formulated as where   () and   () denote the upstream vehicle arrivals and departure rates, respectively, on road segment (, ) whose destination on the timeslot  is the same.Δ is a sample time duration that includes a series of time slots as distinguished by sampling theorem with the aim of mitigating the risk of loss of information in the compressive sensing for estimation of traffic in [39].It is vital to be conscious of the reality that all variables for the road segment (, ) on the opposite direction identified as road segment (, ) could be defined as   () and   (), respectively.The information on a virtual queue of length   () is needed in order to determine if an intersection is stable.Defining the leftover number of vehicles on road segment (, ) will be done as follows: From ( 5) we can get the total length   () of all virtual queues of intersection  for all destinations as Provided that there is stability on all queues within the network, the traffic flow across the whole network will equally be stable.In the event that the central server gets an incident warning message gathered by vehicles through VANETs and RSUs, the optimal route planning algorithm will be computed to update and also determine   () with the aim of reducing the cost of travelling and improving spatial utility.With regard to the time on the sample, T, based on the optimal route planning algorithm, it is possible to dispatch a vehicle whose destination is  from one intersection towards another.The required vehicle will be navigated through the updated path as delivered to the GPS device.To meet the goal of balancing between reduce travel cost and spatial utility, we have designed an innovative metric referred to as weighted intersection (WI).Allow WI() to represent intersection 's weight in sample time , formulated as shown below: where    () and    () are virtual queues representing the number of the shielded vehicles travelling through intersections  and  in the direction of destination  in sample time . is a nonnegative constant defined by the central server used for every vehicle [40].In the beginning, vehicles travelling through an intersection that has a heavy weight are replanned.Eventually, vehicles with destination , kept at , have to be dispatched to queue    * () of intersection * , where  * represents the huge differential row build-up for intersection  and the other adjacent intersection  and destination  as According to short increased path lengths, there will be a replanning to intersection  * of a number of vehicles whose destination is d, using Subsequently, queues at all remaining intersections are correspondingly updated as follows: A similar process continues all the way till all linked intersections have been processed.Algorithm 1 shows the detail of OPPA.

Performance Evaluation
For purposes of conducting the case study, a general Manhattan grid model has been selected.In order to design the scenario and extract the intersection images, MATLAB and Google Maps are used, respectively.Simulations that deploy assistance mobility models with the capacity to make vehicles accelerate, change direction, and decelerate, can enable realistic scenarios to be achieved.For this part of the study, a familiar mobility model which is car following model [4] is used.Using the average speed information obtained from the RSUs, the map road segment is separated into two speed zones.If the average vehicle speed on a certain road segment is low, then that segment is considered congested and those with high average speeds are seen as free from congestion.However, the method of incessantly averaging speeds of vehicles is prone to errors as a result of accumulated historical data.The result of this is that the data represents a historical characteristic as opposed to the prevailing average speed at a given time.To mitigate against this challenge, we create divisions based on 5-minute time slots with the aggregate average being computed in any slot using the data obtained from only that slot.Another challenge is the high overhead resulting from regular updates of speed between central servers and RSUs.To mitigate this problem, the speed will be separated into time zones, with the RSU only updating the average speed if there are any changes in the average speed from one time zone to the next.Based on the RSU, the central server update will dynamically provide updates of the time zone to reflect the road segment's congestion.We do a comparison of the assessment of four algorithms within our ambulance setting using their average speed and travelling time as a basis.The Dijkstra algorithm deploys the characteristic for planning paths without any changes.In this case, each road segment speed assigns a distinct average value for all segments.When using this algorithm, congestion is not considered, and speed cannot be dynamically altered.There are similarities between that the A * algorithm and the Dijkstra.However, in the A * algorithm the experimental function () is presented.The () denotes the angle between the adjacent node and the straight line in the direction of the endpoint node.With regard to the VBA * algorithm, the prevailing speed on a road segment can be varied, dynamically, and a distribution manner can be used to operate it.We finally do a comparison of the proposed ORPA, A * , Dijkstra, and VBA * algorithms.The implemented simulation parameters are presented in Table 2.
Figure 5 shows the travelling time of Dijkstra, A * , VBA * , and ORPA in the low-and high-density scenario.The ORPA obtains a lower travelling time than Dijkstra, A * and VBA * .Specifically, in low-density the travelling time of ORPA, Dijkstra, A * , and VBA * reaches 1400, 2400, 2200, and 2000 seconds, respectively.Hence, the travelling time of ORPA is 71.4%, 57.14%, and 42.85% lower than that of Dijkstra, A * , and VBA * , respectively, whereas in high-density the ORPA Go to (3); (14) End If (15) If WI i (T) ̸ = 0 Then (16) Update the set  ←  ∪ {}; (17) End If (18) End For (19) While intersection  ̸ = 0 Do; (20) Intersection  = WI i (T); (21) For each destination d Do (22) Find huge differential row build-up j * for intersections  and ; (23) Find re-planning path length q d j * (T) to intersection j * ; (24) Update Q d i (T) and Q d j * (T); (25) End For (26)  ←  \ {}; (27) End While (28) End Algorithm 1 Algorithm 1: ORPA.obtains a travelling time of 2100 seconds, while Dijkstra, A * , and VBA obtain a travelling time of 3200, 3000, and 2700 seconds.Thus, ORPA decreases the total travelling time by 52.38%, 42.3%, and 28.57% for Dijkstra, A * , and VBA, respectively.Figure 5 illustrates that the travelling time of high-density is greater than low-density due to congestion. Figure 6 depicts the average ambulance speed of four algorithms in low-and high-density scenario.The ORPA obtains a higher average ambulance speed than Dijkstra, A * , and VBA * .Specifically, in low-density the average ambulance Thus, the average ambulance speed of ORPA is 60%, 43.3%, and 33.3% higher than that of Dijkstra, A * , and VBA * , respectively.This figure further depicts that the average ambulance speed of low-density environments is greater than that of high-density environments.

Conclusion
Through this paper, we have developed a common system to manage accidents so that vehicles are able to avoid congested areas within an ITS.Initially, we established an accident management system which employs cellular systems of the public transportation systems and VANETs to make efficient real-time communication between vehicles possible, including ambulances, hospitals, RSUs, and central servers.
We subsequently propose a real-time algorithm for planning routes with the aim of improving the overall use of space while at the same time reducing the cost of travelling, through vehicles' ability to avoid congested road segments.Finally, we have shown that the path planning algorithm we propose will reduce the time taken by ambulances to be alerted and dispatched to a scene of accident through being able to avoid road segments that are congested and will increase the chance of saving the lives of accident victims.

Figure 1 :
Figure 1: Model of accident management system.

Figure 2 :
Figure 2: Architecture of accident management system.

Figure 3 :
Figure 3: Source vehicle calculates the path length to destination.

Table 1 :
Summary of the important mathematical notations.