Solves following problems:
- Assigns priority score based on severity of patient from his/her past medical details by reading PDF (1 --> Low severity --- 5 --> High severity)
- Automatically decides who doctor should attend to first
- Ambulance Shortest Path recommendation system works entirely offline and can be used in places with low reach of the internet
python -m pip install Flask && python app.py → open http://127.0.0.1:5000
- heap.py : indexed max-heap (sift-up/down, extract-max, remove, update) + hash map
- app.py : patient records (dict) + Flask API
- templates/ + static/ : frontend Ranking: higher urgency first, ties go to the earlier arrival.
flowchart TD
StartNode([Download a dataset containing parameters such as past visits, comorbidities, blood pressure, age, bmi, spo2, etc.]) ==> B[Load & process data, extract features, and engineer them according to the change in urgency levels]
B ==> C[Train the model using Linear Regression Algorithm from scikit-learn python library and save the weights and biases in model.csv file]
C ==> D[Test the model using train_test_split - 95% training and 5% testing - and calculate accuracy scores]
D ==> E[Using pymupdf library, read standard format uploaded pdf containing recent patient medical details to convert to text and process data into given features and use the model to predict the priority score for the given patient]
E ==> EndNode([Output the priority in range 1-5 to the heap used in the flask server backend])
- Mean Squared Error (MSE): 0.2220
- R² Score (Coefficient of Determination): 0.7867
- Recall: 70.3454%
flowchart TD
StartNode([Set a matrix of roads around the city]) ==> B[(Set the coordinates of the places around the city)]
B ==> C[Use BFS + Dijkstra to find shortest path from source to destination avoiding obstacles - 0 in matrix]
C ==> EndNode([Display the length of the shortest path and the path on a map / graph / plot])
- Hospital at (0, 1)
- A at (0, 4)
- B at (9, 8)
- C at (0, 8)
- D at (8, 5)
- E at (3, 6)