Spatiotemporal analysis of homicides in Ecuador: Application of DBSCAN and Random Forest for hotspot detection

Authors

DOI:

https://doi.org/10.36097/rsan.v1i65.3472

Keywords:

Homicides, Geospatial analysis, Machine learning, Criminality, Ecuador, Public security

Abstract

The objective of this research was to develop a geospatial and predictive analysis model to identify high-incidence homicide areas in Ecuador for strategic planning in public security. The geospatial distribution of homicides in the country during 2024 was analyzed using the official database provided by the Ministry of the Interior, with a particular focus on the provinces of Guayas and Manabí, which report the highest rates of violence. A combined methodology was implemented, integrating the unsupervised clustering algorithm DBSCAN to detect spatial homicide clusters and the supervised prediction model Random Forest to anticipate the likelihood of new cases belonging to the identified hot zones. The analysis revealed significant crime clusters in urban and peri-urban areas, as well as the presence of scattered homicides classified as noise, suggesting complex or atypical patterns. The predictive model achieved high levels of accuracy (F1-score of 0.9987), highlighting the importance of geospatial and demographic variables in classification. The results are consistent with national and international research and confirm that spatiotemporal analysis using machine learning techniques provides valuable tools for targeting security interventions.

Downloads

Download data is not yet available.

References

Barrionuevo-Santamaria, L. E., Basantes-Rivera, N. R., Barahona-Bolaños, J. C., & Quespás-Valencia, V. R. (2025). Análisis de tendencias y factores determinantes de la violencia en el Ecuador, año 2020-2024. Dominio de las Ciencias, 11(1), 106–123. https://doi.org/10.23857/dc.v11i1.4199

Carrión Mena, F. (2023). El territorio unificado del crimen en el Ecuador. Ecuador Debate, 119, 75–105. http://hdl.handle.net/10469/19923

El Diario. (2024, diciembre 18). El 83 % de la violencia de Ecuador se concentra en Manabí, Guayas, Los Ríos y El Oro. https://diariocorreo.com.ec/107500/nacional/el-83--de-la-violencia-de-ecuador-se-concentra-en-manabi-guayas-los-rios-y-el-oro#:~:text=Seg%C3%BAn%20los%20datos%20presentados%2C%20el,han%20focalizado%20los%20mayores%20esfuerzos.

Estévez-Calapaqui, N. (2021). Relación entre desempleo y delincuencia. Saberes, 1, 38–47. https://orcid.org/0000-0002-2311-2158

Fernando, R., Moncayo, V., & Pazos Espinoza, F. E. (2024). Análisis de índices de violencia criminal en Ecuador, 2023-2024. Revista de Investigación en Seguridad Ciudadana y Orden Público, 6–11. https://innovacionysaber.isupol.edu.ec/index.php/innovacion/article/view/274

Fontalvo Herrera, T. J., Vega Hernández, M. A., & Mejía Zambrano, F. (2023). Clustering method and artificial intelligence to classify and project violent crime in Colombia. Revista Científica General José María Córdova, 21(42), 551–572. https://doi.org/10.21830/19006586.1117

Gonzáles, M. A. (2024, diciembre 30). Las cifras de la violencia: En 2024, Ecuador atravesó una mejoría que no es suficiente. https://www.primicias.ec/seguridad/cifras-violencia-inseguridad-robos-ecuador-2024-86371/

Ingilevich, V., & Ivanov, S. (2018). Crime rate prediction in the urban environment using social factors. Procedia Computer Science, 136, 472–478. https://doi.org/10.1016/j.procs.2018.08.261

Leonel, A., Molina, S., Valeria, N., Ochoa, V., Fernando, C., Salazar, B., & Santillán Ojeda, S. J. (2022). Drogas, tráfico y crimen organizado como detonante de actos violentos en las cárceles del ecuador. Universidad y Sociedad, 478–486. http://scielo.sld.cu/scielo.php?script=sci_arttext&pid=S2218-36202022000300478&lng=es&nrm=iso

Mejía Escamilla, Ma. G., Spijker, J., & Manetta, A. (2020). Distribución espacial del homicidio juvenil masculino y desigualdad territorial en Ciudad de México y Estado de México (2000-2002 y 2010-2012). Revista Latinoamericana de Población, 14(27), 185–227. https://doi.org/10.31406/relap2020.v14.i12.n27.6

Ministerio de Defensa Nacional. (2024, enero 12). Síntesis noticiosa. https://www.defensa.gob.ec/wp-content/uploads/downloads/2024/01/12-SINTESIS-NOTICIOSA-VIERNES-12-DE-ENERO-DE-2024.pdf

Ministerio del Turismo. (2022). Calendarios de Feriados Nacionales Ecuador 2023-2025. https://www.turismo.gob.ec/wp-content/uploads/2023/12/CALENDARIO-FERIADOS-2023-2025-06-12-2022-.pdf

Ojeda Segovia, L. (2023). Violencia y delincuencia en el Ecuador: principales problemas, mitos y desafíos. Ecuador Debate, 119, 107–130. http://hdl.handle.net/10469/19924

Scikit-learn. (2025, enero). train_test_split — scikit-learn 1.6.1 documentation. https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html

Subsecretaría de Estudios y Estadística de la Seguridad. (2025). Homicidios Intencionales. https://www.datosabiertos.gob.ec/dataset/homicidios-intencionales

Downloads

Published

2026-03-31

How to Cite

León Alarcon, J. A. (2026). Spatiotemporal analysis of homicides in Ecuador: Application of DBSCAN and Random Forest for hotspot detection. Revista San Gregorio, 1(65), 1-10. https://doi.org/10.36097/rsan.v1i65.3472

Similar Articles

1-10 of 191

You may also start an advanced similarity search for this article.