EconPapers    
Economics at your fingertips  
 

A GNN-based approach for accurate trade balance forecasting and interpretable analysis

Yifei Huang, Zhiyuan He and Cheng Ding

PLOS ONE, 2026, vol. 21, issue 4, 1-25

Abstract: In this study, we developed a machine learning pipeline to predict trade balances across 229 countries, utilizing a Graph Neural Network (GNN), and compared it with several deep learning and regression-based models. The data preprocessing involved handling missing values, normalizing features, and conducting exploratory data analysis to uncover key patterns. Feature selection was performed using a Random Forest Regressor to identify the most influential predictors of trade balances. We then evaluated multiple models, including a complex Deep Neural Network (DNN), Transformer with multi-head attention, Random Forest, and a hybrid ensemble model, using various regression metrics. Among these, the GNN proved to be the most effective model, achieving an MSE of 0.06, RMSE of 0.26, MAE of 0.18, and an R² of 0.91. These results demonstrate that GNN outperforms other models in terms of accuracy, robustness, and consistency in predicting trade balances. We compared models across several key evaluation metrics and conducted a detailed comparison of residual plots to assess prediction quality and error distribution. Residual plots and ROC curves were used to validate the reliability and performance of the GNN and other models, ensuring robust and accurate predictions across the board. This study highlights the potential of machine learning techniques to improve trade balance forecasting, providing policymakers and economists with a more adaptable and precise tool for navigating complex global trade dynamics. The findings contribute to more informed economic strategies and enhanced forecasting methodologies.

Date: 2026
References: Add references at CitEc
Citations:

Downloads: (external link)
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0346324 (text/html)
https://journals.plos.org/plosone/article/file?id= ... 46324&type=printable (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:plo:pone00:0346324

DOI: 10.1371/journal.pone.0346324

Access Statistics for this article

More articles in PLOS ONE from Public Library of Science
Bibliographic data for series maintained by plosone ().

 
Page updated 2026-05-03
Handle: RePEc:plo:pone00:0346324