Author
Listed:
- Yifei Huang
- Zhiyuan He
- Cheng Ding
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.
Suggested Citation
Yifei Huang & Zhiyuan He & Cheng Ding, 2026.
"A GNN-based approach for accurate trade balance forecasting and interpretable analysis,"
PLOS ONE, Public Library of Science, vol. 21(4), pages 1-25, April.
Handle:
RePEc:plo:pone00:0346324
DOI: 10.1371/journal.pone.0346324
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0346324. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.