Skip to content

G-stack-coder/Ambulance-Path-Analysis-and-Optimization-using-Network-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚑Ambulance Path Analysis and Optimization using Network Analysis

Introduction

Ambulances transport people in need of emergency medical attention to nearby hospital in shortest time possible. The road network and the route chosen plays a crucial role in deciding the duration of the journey. An efficient road network should ensure these conditions, the ambulance reaches the destination in shortest time irrespective of any change in the network, it must be constructed in such a way that no accident prone zone is left unconnected to the network and hospitals are situated near to accident prone zones. Also, an efficient road network should have more roads connecting hospitals and accident prone zones, thereby ensuring the ambulance reaches in time even when the route changes suddenly. And an optimal route must include places or edges that are near to hospitals.

A road network can be evaluated based on these criteria to know its efficiency in ambulance services. This will help in deciding where to construct new hospitals and how to connect new or existing accident prone zones to hospitals in shortest distance possible. In this project we have proposed a model which visualizes a road network as a graph and uses graph measurements like shortest path and shortest path distance to evaluate the road network efficiency in connecting hospitals and accident prone zones. The model evaluates the road network even at conditions when the crucial roads are blocked and when 2/5th of roads are blocked. This provides more insights on the strengths and drawbacks of the road network, which can be used to improve the efficiency of the road network. In addition to this, the model orders the existing paths or nodes connecting hospitals and accident prone zones based on the shortest distance. This can be used in optimizing the ambulance route by finding the next optimal path or node in the times of sudden change in the road network.

Data Used

A simple network compirising of 12 nodes and 39 edges is used for analysis. The 12 nodes were divided into 3 categories, hospital, accident prone zones, normal places. The edges were reprsented using excel table, which was fed into the model for analysis.

Image of the Network

Network used for analysis

Result of Analysis

Result Table

Columns

  1. Graph : The Graph label
  2. Edges : Total number of edges in the network
  3. Perfect Accident Prone Zone : Accident Prone Zone that is connected to every hospital present in the network
  4. Poor Accident Prone Zone : Accident Prone Zone that is not connected to any hospital present in the network
  5. Sum of Shortest Paths : The sum of shortest paths between every accident prone zone to every hospital in the network

Tools

  1. Kaggle Notebook
  2. Excel
  3. Gephi

Python Libraries

  1. Networkx
  2. Pandas
  3. Random
  4. Matplotlib
  5. Sklearn

Future Scope

The real - world road networks consists of thousands of places and tens thousands of roads that are interconnected in a complex way. The proposed model was tested on a simple network, but by scaling up, the same model can be used to analyse real - world road networks. The results found out can be used as a deciding factor in choosing the right place to construct a new hospital, road or flyover. Also, a new model can be developed which can suggest a set of places in an decreasing order of priority. The parameters and constraints that influences the order of places can be the degree by which connectivity improves, the cost, environmental conditions, etc. The combination of both these models will help in increasing the efficiency of road network in ambulance services and also in increasing the connectivity between hospitals and accident prone zones.

Project Files

  1. APOREA : This file contains the source code of the model.
  2. Edge_data : This contains the network in the form of a excel spreadsheet. There are two columns, from and to columns specifies the nodes of each edge in the network.
  3. Flow Chart : This image depicts the overall flow of the model.
  4. Node_label : This excel spreadsheet contains the labels associated with each node. There are three labels which are Hospital, Accident Prone Zone, Normal Place.
  5. Gephi Report : This file contains the report given by the gephi software for the network used. The report included figures like degree denesity, egien value, etc.

Google Drive link for Gephi Report : https://docs.google.com/document/d/1ascM9_nuIKsRqfUmRFu8ztdqy6SthFpx/edit?usp=sharing&ouid=101709113665738616818&rtpof=true&sd=true

Thank You

I convey my thanks to everyone who have viewed my repository or read even a single line of the README. It would be great if any of you have any suggestions on adding new featues, we can connect and make this model even better.