Forecasting Total Affected Humans from Natural and Technological Hazards in the Philippines Using a Hybrid ARIMA–CatBoost Model
The Philippines lies along the Pacific Ring of Fire and within the typhoon belt, making it one of the most disaster-prone countries in the world. One key indicator of disaster impact is total affected humans: people who are directly impacted, injured, displaced, or evacuated.
Most existing studies focus on disaster occurrence counts or economic damages. Few have built forecasting models for human impact, particularly in the Philippine context. This project fills that gap by developing a hybrid ARIMA–CatBoost model:
- ARIMA models the linear component of the series.
- CatBoost (gradient boosting) learns the nonlinear patterns left in the ARIMA residuals.
- The final forecast = ARIMA forecast + (damped) CatBoost residual correction.
The hybrid is compared against standalone ARIMA and standalone CatBoost models.
- Describe the historical behavior of total affected humans from 1963 to 2024.
- Identify and estimate the most appropriate ARIMA model.
- Develop a CatBoost model on ARIMA residuals to capture nonlinear patterns.
- Construct a hybrid forecasting model that integrates ARIMA and CatBoost predictions.
- Compare ARIMA, CatBoost, and Hybrid using MAE, RMSE, and MAPE (plus SMAPE, R², and Theil's U).
- Generate five-year-ahead forecasts (2025–2029) with the best-performing model.
| Item | Description |
|---|---|
| Source | EM-DAT: The International Disaster Database (CRED & UNDRR) |
| Variable | Total affected humans from natural and technological hazards |
| Coverage | Philippines, annual, 1963–2024 (62 observations) |
| Approach | Univariate (no external explanatory variables) |
| Transformation | log(1 + affected) to stabilize variance and reduce the effect of extreme values |
| Train/Test split | 80% training / 20% testing (chronological) |
EM-DAT data (1963–2024)
│
▼
Log transform + 80/20 split
│
├──────────────► Standalone CatBoost (lag features) ──────────┐
▼ │
ARIMA(5,1,1) on training set │
│ │
├── ARIMA forecast ───────────────┐ │
▼ │ │
ARIMA residuals │ │
│ ▼ ▼
CatBoost on residuals ──► damped correction (×0.3) ──► HYBRID Model comparison
(MAE, RMSE, MAPE, ...)
The data was sorted by year, non-numeric characters were removed, and a log transformation was applied.
affecteddata <- read.csv("TSA ARIMA Catboost Data.csv")
affecteddata <- affecteddata[order(affecteddata$Year), ]
affected_raw <- as.numeric(gsub("[^0-9.]", "", affecteddata$affected))
affected_log <- log1p(affected_raw)
start_year <- min(affecteddata$Year)
ts_raw <- ts(affected_raw, start = start_year, frequency = 1)
ts_affected <- ts(affected_log, start = start_year, frequency = 1)
# 80/20 train-test split
n_total <- length(ts_affected)
train_size <- floor(0.80 * n_total)
train_ts <- window(ts_affected, end = time(ts_affected)[train_size])
test_ts <- window(ts_affected, start = time(ts_affected)[train_size + 1])Stationarity. ADF and KPSS tests were applied to the training series, and ndiffs() determined the differencing order.
adf.test(train_ts)
kpss.test(train_ts)
d <- ndiffs(train_ts)
train_diff <- diff(train_ts, differences = d)Identification and estimation. ACF/PACF plots of the differenced series guided the choice of candidates. Five ARIMA models were estimated via maximum likelihood and compared using AIC and residual diagnostics.
model_1 <- Arima(train_ts, order = c(1, 1, 6), include.mean = TRUE, method = "ML")
model_2 <- Arima(train_ts, order = c(1, 1, 7), include.mean = TRUE, method = "ML")
model_3 <- Arima(train_ts, order = c(5, 1, 1), include.mean = TRUE, method = "ML")
model_4 <- Arima(train_ts, order = c(1, 1, 2), include.mean = TRUE, method = "ML")
model_5 <- Arima(train_ts, order = c(1, 1, 8), include.mean = TRUE, method =