EvacuWise: Optimization Of Indoor Earthquake Egress Routes In San Miguel National High School Using Dijkstra’s Algorithm

Fhrenzy I. De Dios, Alexa Casssandra Lacanilao DR., Princess Alliane B. Merida, Ahava Dasia L. Visperas, Frances-Irina B. Galvez, Jayson B. Eugelio

Abstract


This study developed EvacuWise, a static indoor earthquake egress-routing framework for San Miguel National High School using Dijkstra’s Algorithm and measured building-pathway data. Forty-three physical buildings and facilities were represented through 42 weighted undirected graph models because Buildings 1 and 2 were treated as one connected model. Across these graphs, 935 vertices and 930 measured edges represented doors, corners, stairways, and designated exits. A Python implementation of Dijkstra’s Algorithm computed the minimum-distance route from every door to the nearest reachable exit. The analysis generated 411 door-to-exit routes with distances ranging from 0.30 m to 69.85 m, with a mean (M) of 20.29 m and a standard deviation (SD) of 16.76 m. The longest route occurred from Door 65 of Building #10, Department of Education (DepEd) Standard School Building 4 (Laboratory), at 69.85 m. Model-derived travel-time estimates ranged from 0.23 s to 70.00 s using route-segment speed parameters embedded in the computational script; 233 routes (56.7%) included at least one stair segment. Route maps were generated to visualize the computed paths and their destination exits. The findings show that graph-based shortest-path analysis can convert measured school layouts into reproducible static egress plans and can identify buildings with longer or more complex indoor travel paths. The resulting maps are intended for preparedness planning and future supervised drills may help examine the effects of capacity, congestion, and bottlenecks on the computed routes.

Keywords


Dijkstra’s Algorithm; indoor evacuation; weighted graph; earthquake preparedness; shortest path

Full Text:

PDF

References


References

World Health Organization. (2023). Earthquakes. https://www.who.int/health-topics/earthquakes

León, J. A., Ordaz, M., Haddad, E., & Araújo, I. F. (2022). Risk caused by the propagation of earthquake losses through the economy. Nature

Communications, 13(1), 2908. https://doi.org/10.1038/s41467-022-30504-3

Meniano, S. P. (2025, January 24). PHIVOLCS: PH experiences an average of 30 quakes per day. Philippine News Agency. https://www.pna.gov.ph/articles/1242557

Rimando, J., Williamson, A., Mendoza, R. B., & Hobbs, T. (2022). Source model and characteristics of the 27 July 2022 Mw 7.0 northwestern Luzon earthquake, Philippines. Seismica, 1(1). https://doi.org/10.26443/seismica.v1i1.217 [5] Rimando, R. E., & Knuepfer, P. L. (2025). Earthquake history and rupture extents from morphology of fault scarps along the Valley Fault System (Philippines). GeoHazards, 6(2), 23. https://doi.org/10.3390/geohazards6020023

Abello, L. T. (2024, March 5). Which areas will be affected by a strong earthquake when the West Valley Fault moves? Manila Bulletin. https://mb.com.ph/2024/3/5/which-areas-will-be-affected-by-a-strong-earthquake-when-the-west-valley-fault-moves

DepEd San Miguel National High School. (2025, June 2). Number of students enrolled for the school year 2025–2026 [Facebook post]. PALISTAHAN UPDATES – DepEd San Miguel National High School. https://www.facebook.com/100057468728508/posts/1186162729976007/

Laqui, I. (2025, October 14). Phivolcs explains why the ‘Big One’ risk grows as 2058 nears. Philstar.com. https://www.philstar.com/headlines/2025/10/14/2479624/why-big-one-becomes-more-likely-2058-approaches

Adji, B. M., Istijono, B., Rahendra, M., Koting, S., Hakam, A., Ophiyandri, T., Masrilayanti, M., & Yunanda, R. (2025). Failure risk in post-earthquake evacuation and logistics in Padang City. Jàmbá: Journal of Disaster Risk Studies, 17(1), 1773. https://doi.org/10.4102/jamba.v17i1.1773

Astana, I. N. Y., Sudarsana, I. D. K., & Puspa, N. M. W. (2023). Designing evacuation route using Dijkstra methods. International Journal of Progressive Sciences and Technologies, 37(2), 303–314. http://dx.doi.org/10.52155/ijpsat.v37.2.5172

Gaitanis, A., Lentzas, A., Tsoumakas, G., & Vrakas, D. (2023). Route planning for emergency evacuation using graph traversal algorithms. Smart Cities, 6(4), 1814–1831. https://doi.org/10.3390/smartcities6040084

Zhu, Y., Li, H., Wang, Z., Li, Q., Dou, Z., Xie, W., Zhang, Z., Wang, R., & Nie, W. (2022). Optimal evacuation route planning of urban personnel at different risk levels of flood disasters based on the improved 3D Dijkstra’s algorithm.

Sustainability, 14(16), 10250. https://doi.org/10.3390/su141610250

Dijkstra, E. (1959). A note on two problems in connexion with graphs. Numerische Mathematik. https://doi.org/10.1145/3544585.3544600

Gonzales, S. H., Vega-Huerta, H., Maquen-Niño, G. L. E., De-La-Cruz-VdV, P., Moquillaza-Henríquez, S. D., Benito-Pacheco, O., Cabrera-Diaz, J., & Lázaro-Guillermo, J. C. (2025). Optimized earthquake evacuation routes using Dijkstra’s algorithm and WinQSB. Journal of Computer Science, 21(10), 2349–2360. https://doi.org/10.3844/jcssp.2025.2349.2360

Tang, K., & Osaragi, T. (2024). Multi-objective evacuation planning model considering post-earthquake fire spread: A Tokyo case study. Sustainability, 16(10), 3989. https://doi.org/10.3390/su16103989




DOI: http://dx.doi.org/10.52155/ijpsat.v59.1.8718

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Fhrenzy Ignacio De Dios

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.