Macroeconomic forecasting of geopolitical changes in the world using machine learning methods

Keywords: machine learning, geopolitical risk, macroeconomic forecasting, ensemble algorithms, classification of countries

Abstract

The article explores the possibilities of using machine learning methods for macroeconomic forecasting of geopolitical changes based on panel macroeconomic data. The relevance of the study is due to the increasing level of geopolitical instability in the world economy, the intensification of international conflicts, sanctions restrictions and structural crises, which significantly affect the economic development of countries. In such conditions, the need for the use of modern analytical approaches increases, capable of providing more accurate forecasting of geopolitical risks and identifying complex nonlinear relationships between macroeconomic indicators. The purpose of the study is to develop and implement an approach to forecasting the geopolitical risk index using machine learning methods. The work uses ensemble gradient boosting algorithms XGBoost and LightGBM, which allow for effective work with high-dimensional data and take into account the complex structure of relationships between variables. The MAE, RMSE and MAPE metrics were used to assess the quality of forecasting. The information base of the study was formed in the form of a panel structure "country-year", covering 43 countries for the period 2000-2024 and including 499 macroeconomic indicators that characterize production, consumption, foreign trade, institutional development, demographic and environmental processes. The target variable is the geopolitical risk index. To ensure the correctness of the forecast, the sample was divided into training (2000-2018) and test (2019-2024) periods. The results obtained indicate high forecasting accuracy for both models, the MAPE value does not exceed 1.9%, which confirms the effectiveness of the use of ensemble machine learning algorithms in the tasks of forecasting geopolitical processes. It was established that the used models demonstrate the stability of the results even in the presence of missing values ​​and structural breaks in the time series. Additionally, cluster analysis was applied, which allowed us to identify groups of countries with different levels of geopolitical tension. The study confirmed the feasibility of using machine learning methods to analyze and forecast geopolitical changes. The proposed approach can be used as a decision-making support tool in the field of macroeconomic forecasting and economic policy.

Downloads

Download data is not yet available.

Author Biographies

A. Stavytskyy, Taras Shevchenko National University of Kyiv

D.Sc. (Economics), Professor, Professor of the Department of Economic Cybernetics

O. Babkova, Taras Shevchenko National University of Kyiv

Student of the Department of Economic Cybernetics

References

International Monetary Fund. (2025). World Economic Outlook. Retrieved from https://www.imf.org/en/publications/weo

Boiarchuk, A. I., Ohorodnyk, R. P., Pliushchyk, I. A., Antofii, N. M., & Fedorova, N. Ye. (2018). International economic relations. Kherson: VKF “STAR” LTD. (in Ukrainian)

Gupta, R., Gozgor, G., Kaya, H., & Demir, E. (2019). Effects of geopolitical risks on trade flows: evidence from the gravity model. Eurasian Econ Rev 9, 515–530. https://doi.org/10.1007/s40822-018-0118-0

World Bank Group. (2023). Worldwide Governance Indicators. Retrieved from https://www.worldbank.org/en/publication/worldwide-governance-indicators

Caldara, D., & Iacoviello, M. (2018). Geopolitical Risk (GPR) Index. Retrieved from https://www.matteoiacoviello.com/gpr.htm

World Bank Group. (2025). Global Economic Prospects. Retrieved from https://openknowledge.worldbank.org/server/api/core/bitstreams/0e685254-776a-40cf-b0ac-f329dd182e9b/content

United Nations. (2025). World Economic Situation and Prospects. Retrieved from https://desapublications.un.org/publications/world-economic-situation-and-prospects-2025

United Nations. (2015). Transforming our world: The 2030 Agenda for Sustainable Development. Retrieved from https://sdgs.un.org/2030agenda

Caldara, D., Conlisk, S., Iacoviello, M., & Penn, M. (2025). Do geopolitical risks raise or lower inflation? Journal of International Economics,159. https://doi.org/10.1016/j.jinteco.2025.104188

Hossain, A. T., Masum, A.-A., & Saadi, S. (2024). The impact of geopolitical risks on foreign exchange markets: Evidence from the Russia-Ukraine war. Finance Research Letters, 59, 104750 . https://doi.org/10.1016/j.frl.2023.104750

Bouri, E., Gabauer, D., Gupta, R., & Kinateder, H. (2023). Geopolitical risk and inflation spillovers across European and North American economies. Retrieved from https://repository.up.ac.za/server/api/core/bitstreams/016aa5df-47c7-4df0-9203-ab1da302b9dd/content

International Monetary Fund. (2025). Global Financial Stability Report. Retrieved from https://www.imf.org/en/publications/gfsr

Fund for Peace. (2023). Fragile States Index. Retrieved from https://fragilestatesindex.org/

Caldara, D., & Iacoviello, M. (2022). Measuring geopolitical risk. American Economic Review, 112(4), 1194–1225. https://doi.org/10.1257/aer.20191823

World Bank Group. (2024). World Development Indicators. Retrieved from https://databank.worldbank.org/source/world-development-indicators

Mullainathan, S., & Spiess, J. (2017). Machine learning: An applied econometric approach. Journal of Economic Perspectives, 31(2), 87–106. https://doi.org/10.1257/jep.31.2.87

Goulet Coulombe, P., Leroux, M., Stevanovic, D., & Surprenant, S. (2020). How is machine learning useful for macroeconomic forecasting? Retrieved from https://arxiv.org/pdf/2008.12477

Xue, Y., Schincariol, T., Chadefaux, T., & Groen, D. (2025). Using machine learning to forecast conflict events for use in forced migration models. Sci Rep, 15, 28202. https://doi.org/10.1038/s41598-025-11812-2

Athey, S., & Imbens, G. W. (2019). Machine learning methods economists should know about. Annual Review Economics, 11, 685-725. https://doi.org/10.1146/annurev-economics-080217-053433

Tenorio, J., & Perez, W. (2024). Monthly GDP nowcasting with machine learning and unstructured data. Retrieved from https://arxiv.org/pdf/2402.04165

Al-Karkhi, M. I., & Rządkowski, G. (2025). Innovative machine learning approaches for complexity in economic forecasting and SME growth: A comprehensive review. Journal of Economy and Technology, 3, 109-122. https://doi.org/10.1016/j.ject.2025.01.001

Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. KDD '16: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. (р. 785–794) https://doi.org/10.1145/2939672.2939785

Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q., & Liu, T.-L. (2017). LightGBM: A Highly Efficient Gradient Boosting Decision Tree. 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA. Retrieved from https://proceedings.neurips.cc/paper_files/paper/2017/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf

Stryker, C., Bergmann, D., Lee, F., & Scapicchio, M. (2025). The 2026 guide to machine learning. IBM. Retrieved from https://www.ibm.com/think/topics/gradient-boosting

XGBoost Documentation. (2025). Retrieved from https://xgboost.readthedocs.io/en/stable/tutorials/model.html

LightGBM Documentation. (2025). Retrieved from https://lightgbm.readthedocs.io/en/latest/Features.html

Ortiz, A., & Rodrigo, T. (2025). Geopolitics, geoeconomics and risk: A machine learning approach. Retrieved from https://arxiv.org/pdf/2510.12416v1

Gupta, R., Karmakar, S., & Pierdzioch, C. (2023). Safe havens, machine learning, and the sources of geopolitical risk: A forecasting analysis using over a century of data. Computational Economics. Retrieved from https://www.econstor.eu/bitstream/10419/317932/1/10614_2023_Article_10452.pdf

Zhang, H., Wang, W., & Niu, Z. (2024). Geopolitical risks and crude oil futures volatility: Evidence from machine learning. Resources Policy, 98. https://doi.org/10.1016/j.resourpol.2024.105374

OECD. (2024). OECD Data Portal. Retrieved from https://www.oecd.org/en/data.html

James, G., Witten, D., Hastie, T., & Tibshirani, R. (2021). An introduction to statistical learning (2nd ed.). Retrieved from https://www.karlin.mff.cuni.cz/~pesta/NMFM334/StatLearning/Book2nd/ISLRv2_website.pdf

Huang, Z., Liang, Z., Zhou, S., & Zhang, S. (2025). An improved density-based spatial clustering of applications with noise algorithm with an adaptive parameter based on the sparrow search algorithm. Algorithms, 18(5), 273. https://doi.org/10.3390/a18050273

Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Principles and practice (3rd ed.). Retrieved from https://otexts.com/fpp3/

Rousseeuw, P. J. (1987). Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. Journal of Computational and Applied Mathematics, 20, 53-65. https://doi.org/10.1016/0377-0427(87)90125-7

Published
2026-05-25
Cited
How to Cite
Stavytskyy, A., & Babkova, O. (2026). Macroeconomic forecasting of geopolitical changes in the world using machine learning methods . Bulletin of V. N. Karazin Kharkiv National University Economic Series, (110), 5-23. https://doi.org/10.26565/2311-2379-2026-110-01
Section
Modelling and information technology in economics and management