Crime Prediction and Mapping Using Machine Learning Algorithms
One of the primary functions of government is to reduce crime. Despite the government's efforts to curb criminal activities, the security situation in many urban areas has deteriorated. This study aimed to create and test a machine learning model to predict crime categories and visualize the location where they occur using contextual features from the datasets. This was achieved by combining time, location, and contextual data with machine learning to improve crime prediction. The crime datasets were collected from various sources, including Nairobi County law enforcement agencies. They were s