Forecasting unemployment in Somalia using machine learning models

Abstract Unemployment remains a significant socioeconomic challenge in Somalia, underscoring the need for reliable forecasting tools to inform labor market planning and policy development. This study evaluates the performance of three machine learning models, such as Random Forest, XGBoost, Support Vector Regression (SVR), and a traditional ARIMA benchmark model, in forecasting Somalia’s unemployment rate using macroeconomic, investment, trade, and sectoral data over the period 1991–2021. Model performance is assessed using Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R²). The results show that the Random Forest model outperforms the other competing machine learning algorithms, as well as the benchmark method of ARIMA, in this study, indicating that it provides the most accurate unemployment forecasts throughout the period of study, achieving the lowest forecasting errors (MSE = 0.003, RMSE = 0.058, MAE = 0.050) and the highest explanatory power (R² = 0.92). SVR demonstrates moderate performance with MSE = 0.007, RMSE = 0.086, MAE = 0.067, and R² = 0.82, while XGBoost records the weakest results MSE = 0.009, RMSE = 0.094, MAE = 0.085, R² = 0.78. In contrast, the forecasted performance of the ARIMA model is the lowest amongst all models, having the following metrics for MSE, RMSE, MAE, and R² respectively: 0.119, 0.345, 0.332, and 0.31. This means that 31% of the change in unemployment is explained by ARIMA, and it generates considerably higher forecasting errors compared to machine learning algorithms. To enhance interpretability, SHapley Additive exPlanations (SHAP) are applied, revealing that labor force participation, foreign direct investment, and inflation are the most influential determinants of unemployment in Somalia, all exhibiting a negative relationship with unemployment. Other variables, such as domestic investment and imports, show moderate effects, while exports, agriculture, GDP growth, and industry have relatively limited direct influence. Overall, the findings confirm the superiority of Random Forest models for unemployment forecasting in fragile economic environments and provide policy-relevant insights for addressing labor market challenges in Somalia.

Authors

Institutions

Publication Details

Journal
Discover Sustainability
Published
2026-07-27
DOI
https://doi.org/10.1007/s43621-026-04175-9
Primary Topic
Unemployment and Economic Growth
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Forecasting unemployment in Somalia using machine learning models

Amir Mohamud Mohamed, Abdullahi Dahir Ibrahim
Discover Sustainability
Unemployment and Economic Growth
article

Forecasting unemployment in Somalia using machine learning models

Amir Mohamud Mohamed, Abdullahi Dahir Ibrahim
article en

Abstract

Abstract Unemployment remains a significant socioeconomic challenge in Somalia, underscoring the need for reliable forecasting tools to inform labor market planning and policy development. This study evaluates the performance of three machine learning models, such as Random Forest, XGBoost, Support Vector Regression (SVR), and a traditional ARIMA benchmark model, in forecasting Somalia’s unemployment rate using macroeconomic, investment, trade, and sectoral data over the period 1991–2021. Model performance is assessed using Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R²). The results show that the Random Forest model outperforms the other competing machine learning algorithms, as well as the benchmark method of ARIMA, in this study, indicating that it provides the most accurate unemployment forecasts throughout the period of study, achieving the lowest forecasting errors (MSE = 0.003, RMSE = 0.058, MAE = 0.050) and the highest explanatory power (R² = 0.92). SVR demonstrates moderate performance with MSE = 0.007, RMSE = 0.086, MAE = 0.067, and R² = 0.82, while XGBoost records the weakest results MSE = 0.009, RMSE = 0.094, MAE = 0.085, R² = 0.78. In contrast, the forecasted performance of the ARIMA model is the lowest amongst all models, having the following metrics for MSE, RMSE, MAE, and R² respectively: 0.119, 0.345, 0.332, and 0.31. This means that 31% of the change in unemployment is explained by ARIMA, and it generates considerably higher forecasting errors compared to machine learning algorithms. To enhance interpretability, SHapley Additive exPlanations (SHAP) are applied, revealing that labor force participation, foreign direct investment, and inflation are the most influential determinants of unemployment in Somalia, all exhibiting a negative relationship with unemployment. Other variables, such as domestic investment and imports, show moderate effects, while exports, agriculture, GDP growth, and industry have relatively limited direct influence. Overall, the findings confirm the superiority of Random Forest models for unemployment forecasting in fragile economic environments and provide policy-relevant insights for addressing labor market challenges in Somalia.

Discover Sustainability
Hormuud University (SO), Banaras Hindu University (IN)
Decent work and economic growth
Openalex Percentile: Top 4%
Unemployment and Economic Growth
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.