P

Defence Threat Intelligence

ML on the Global Terrorism Database

Anomaly detection, country risk clustering, threat prediction and forecasting in one Streamlit console.

Built during my Def-Space internship at BSERC: a multi-page Streamlit dashboard on the Global Terrorism Database for threat analysis. It maps incidents worldwide, profiles countries by risk, predicts threat levels and forecasts trends, with four pre-trained models behind it.

What it does

  • XGBoost classifier predicts threat intensity as Low, Medium, High or Critical, with a monitoring page comparing predictions against historical classes.
  • K-Means clusters countries into four risk tiers shown on each country profile.
  • Isolation Forest flags anomalous, high-impact incidents.
  • Second-degree polynomial forecaster projects yearly incident counts 1 to 10 years ahead.
  • Auto-generated intelligence report covering high-casualty regions, main attack methods, trend direction and anomaly ratio.
  • Interactive Plotly world map sized and coloured by casualties, plus a filterable data explorer with CSV export.