Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Comput. Sci.

Sec. Mobile and Ubiquitous Computing

Volume 7 - 2025 | doi: 10.3389/fcomp.2025.1585632

Mobile Application Based on KDD to Predict High-Crime Areas and Promote Sustainability in Citizen Security in a District of Lima-Perú

Provisionally accepted
Hugo  Vega-HuertaHugo Vega-Huerta1Javier  Vilca VelasquezJavier Vilca Velasquez1Nicolas  Anicama EspinozaNicolas Anicama Espinoza1Gisella Luisa Elena  Maquen-NiñoGisella Luisa Elena Maquen-Niño2*Luis  Guerra-GradosLuis Guerra-Grados1Jorge  Pantoja-CollantesJorge Pantoja-Collantes1Oscar  Benito-PachecoOscar Benito-Pacheco1Juan  Carlos Lázaro-GuillermoJuan Carlos Lázaro-Guillermo3
  • 1National University of San Marcos, Lima, Lima, Peru
  • 2National University Pedro Ruiz Gallo, Lambayeque, Peru
  • 3National Intercultural University of the Amazon, Pucallpa, Peru

The final, formatted version of the article will be published soon.

Metropolitan Lima faces a serious citizen security situation, reflected in high rates of crime and violence in several districts. The development of a mobile application to identify and predict areas of high crime incidence is proposed. Using historical data of criminal incidents and reports registered by users in the application, models capable of predicting the occurrence of crimes in real time are trained. The data mining process follows the KDD methodology, which includes the stages of selection, preprocessing, transformation, data mining, evaluation and knowledge consolidation. Machine learning algorithms, such as Random Forest and Gradient Boosting, were used to make these predictions. Visualization techniques, such as heat maps, were also used to represent crime events and facilitate their understanding by users. The results show an accuracy of 88% for the Random Forest algorithm and 91% for Gradient Boosting in predicting the occurrence of crimes, which demonstrates the effectiveness of machine learning models to improve citizen security in Metropolitan Lima, therefore these findings have significant implications for crime prevention and suggest that the application of these technologies can be fundamental to address security challenges in the city.

Keywords: heat maps, machine learning algorithms, Criminal acts, Citizen security, CRISP-DM

Received: 01 Mar 2025; Accepted: 18 Jul 2025.

Copyright: © 2025 Vega-Huerta, Vilca Velasquez, Anicama Espinoza, Maquen-Niño, Guerra-Grados, Pantoja-Collantes, Benito-Pacheco and Lázaro-Guillermo. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Gisella Luisa Elena Maquen-Niño, National University Pedro Ruiz Gallo, Lambayeque, Peru

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.