Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

dd4real2k/south-africa-crime-analytics

Domain:

peace and security

Record type:

project
Creator:
dd4
Host:
This project analyses crime trends across South Africa and builds a machine learning model to predict crime incidents and assess risk levels across provinces and police stations. # South Africa Crime Analytics and Risk Prediction System ## 📌 Project Overview This project analyses crime trends across South Africa and builds machine learning models to predict crime incidents and assess risk levels across provinces and police stations. The goal is to provide data-driven insights that support: - Public safety planning - Resource allocation - Crime prevention strategies --- ## 🚨 Problem Statement Crime rates vary significantly across regions, but decision-making is often reactive rather than predictive. This project aims to: - Identify high-risk provinces and crime categories - Analyse historical crime patterns - Predict future crime incidents - Assign risk levels (Low, Medium, High) This enables proactive intervention and smarter policing strategies. --- ## 📊 Dataset - South Africa Crime Statistics dataset - Province population dataset ### Key Features: - Province - Police Station - Crime Category - Yearly crime data (2005–2016) Data was cleaned, transformed, and structured for analysis and machine learning. --- ## 🔍 Exploratory Data Analysis Key insights: - Crime trends fluctuate over time with noticeable peaks - Certain provinces consistently record higher crime volumes - Crime per capita reveals different risk rankings compared to total crime - Property and violent crimes dominate the top categories --- ## 📈 Visualisations ### Crime Trends Over Time ### Crime by Province ### Crime per 100,000 People ### Top Crime Categories --- ## 🤖 Machine Learning Models Two models were developed and compared: ### 1. Random Forest Regressor (Final Model) - MAE: **12.30** - R² Score: **0.9590** ### 2. XGBoost Regressor - MAE: 53.71 - R² Score: 0.6407 ### ✅ Model Selection Random Forest was selected as the final model due to: - Lower prediction error (MAE) - Higher explanatory power (R²) - Better generalisation across categories --- ## ⚠️ Risk Scoring System Crime levels were categorised into: - Low Risk - Medium Risk - Hig …

Visit

github.com

Tags

geopandaspandaspower-bipythonscikit-learnstreamlit

Similar

OkuhleMaduna/A-Machine-Learning-Solution-for-Data-Driven-Crime-Analytics-in-South-AfricaExamining the relationship between Stage 6 loadshedding and crime in South Africa through data analyticssmutaleninohenda-ship-it/Namibia-crime-analyticsCrime and Consequences: Analysing Crime Trends from 2005 to 2016 across all South African provinces, using data analyticsPascalBenstrong/Crime-Data-South-Africashawnsibanda/South-Africa-Crime-Data-Analysis

OkuhleMaduna/A-Machine-Learning-Solution-for-Data-Driven-Crime-Analytics-in-South-Africa

South Africa faces persistent and diverse crime challenges that affect citizens, businesses, and cit

Examining the relationship between Stage 6 loadshedding and crime in South Africa through data analytics

South Africa is frequently affected by Loadshedding which can have further effects on criminalactivi

smutaleninohenda-ship-it/Namibia-crime-analytics

An end-to-end data analytics project using Python, SQL, spatial analysis and predictive modelling.

Crime and Consequences: Analysing Crime Trends from 2005 to 2016 across all South African provinces, using data analytics

South Africa continues to experience persistently high crime rates, with serious implications for pu

PascalBenstrong/Crime-Data-South-Africa

This Project displays reported crime data in South Africa during the period of 2005 to 2016. # Repo

shawnsibanda/South-Africa-Crime-Data-Analysis

Analyzed South African crime statistics using Microsoft Excel to determine trends over time. # Sou