Design and Evaluation of a Hybrid Natural Language Processing and Machine Learning Model for Economic News Sentiment Analysis to Predict Price Fluctuations in the Iran Mercantile Exchange

Authors

    Amin Jamali * Department of Computer Engineering, Isf.C., Islamic Azad University, Isfahan, Iran aminjamali79@aminjamali.site
    Hamid Reza Jamali Department of Economics and Financial Management, Ashrafi Isfahani University, Isfahan, Iran

Keywords:

Iranian Mercantile Exchange, Natural Language Processing (NLP), Sentiment Analysis, Price Forecasting, Hybrid Model, Machine Learning

Abstract

This study aimed to design and evaluate a hybrid Persian natural language processing and machine learning model for extracting economic news sentiment and predicting steel price fluctuations in the Iran Mercantile Exchange. This applied-developmental study employed a descriptive-analytical design based on secondary textual and time-series data. The dataset included 45,836 economic, industrial, and financial news articles published between January 2019 and January 2026 and 1,486 synchronized daily observations of steel billet and sheet transactions. A fine-tuned ParsBERT model classified news as positive, negative, or neutral, and a daily sentiment index was calculated using source credibility, publication timing, and news intensity. Numerical variables included closing prices, trading volume, supply, demand, the informal exchange rate, the global iron ore price, and technical indicators. Random Forest, LSTM, XGBoost, ParsBERT-LSTM, and ParsBERT-XGBoost were compared using walk-forward validation. ParsBERT achieved a sentiment-classification accuracy of 89.4% and an F1 score of 0.887. Granger causality analysis showed that the two-business-day lag of news sentiment significantly predicted price returns, with F = 8.75 and p = 0.003. ParsBERT-XGBoost produced the best performance, with an RMSE of 710 and an MAE of 520 Iranian rials per kilogram. Compared with numerical XGBoost, the hybrid model reduced RMSE by 27.6%. It also achieved a directional accuracy of 72.6%, a win rate of 67.4%, a Sharpe ratio of 1.76, and a maximum drawdown of 9.2%. The informal exchange rate, news sentiment index, and global iron ore price were the most influential predictors. Integrating Persian news embeddings with fundamental, transactional, and technical variables through the ParsBERT-XGBoost architecture improved forecasting accuracy and risk-adjusted performance and may provide an effective decision-support and early-warning tool for the Iran Mercantile Exchange.

Downloads

Download data is not yet available.

References

Aghababaei, M. E., & Aliyan, E. (2022). The Impacts of Investor Sentiment on Liquidity and its Volatility: Evidence from Tehran Stock Exchange. Financial Research Journal, 24(1), 61-80. https://doi.org/10.22059/frj.2021.328773.1007231

Biranvand, Malekolsadati, S. S., & Razmi, S. M. J. (2024). Nowcasting Iran's gross domestic product using sentiment analysis of economic news. Applied Theories of Economics, 11(3), 135-164.

Chantona, K. (2020). News Sentiment Analysis in Forex Trading Using R-CNN on Deep Recurrent Q-Network. In A. Halim, 2020 Fifth International Conference on Informatics and Computing (ICIC), https://doi.org/10.1109/ICIC50835.2020.9288545

Dunham, L. M., & Garcia, J. (2021). Measuring the effect of investor sentiment on financial distress. Managerial Finance, 47(12), 1834-1852. https://doi.org/10.1108/MF-02-2021-0056

Eyshi Ravandi, M., Moeinaddin, M., Taftiyan, A., & Rostami Bashmani, M. (2024). Investigating the Impact of Investor Sentiment and Liquidity on Stock Returns of the Iranian Stock Exchange. Dynamic Management and Business Analysis, 3(1), 40-52. https://doi.org/10.22034/dmbaj.2024.2038046.1068

Faramarzi Babadi, S., Eskandari Asl, H. A., Dolatyari, F., & Alipoor, H. (2024). Limitations of English Language Learning in Universities of Chaharmahal and Bakhtiari Province and Strategies to Overcome Them [Research Article]. Iranian Journal of Educational Sociology, 7(1), 124-132. https://doi.org/10.61838/kman.ijes.7.1.12

Gite, S., Khatavkar, H., Kotecha, K., Srivastava, S., Maheshwari, P., & Pandey, N. (2021). Explainable Stock Prices Prediction From Financial News Articles Using Sentiment Analysis. Peerj Computer Science, 7, e340. https://doi.org/10.7717/peerj-cs.340

Gu, W. J., Zhong, Y. H., Li, S. Z., Wei, C. S., Dong, L. T., Wang, Z. Y., & Yan, C. (2024). Predicting stock prices with FinBERT-LSTM: Integrating news sentiment analysis. Proceedings of the 2024 8th International Conference on Cloud and Big Data Computing,

Hajian Nejad, A., Amiri, H., & Khorram Kouhi, A. (2022). Analyzing the impact of investor sentiment on reactions to earnings news of companies listed on the Tehran Stock Exchange. Journal of Financial Accounting Research, 14(1), 1-20. https://doi.org/10.22108/far.2022.132213.1852

Ittefaq, M., Zain, A., Arif, R., Ala-Uddin, M., Ahmad, T., & Iqbal, A. (2025). Global news media coverage of artificial intelligence (AI): A comparative analysis of frames, sentiments, and trends across 12 countries. Telematics and Informatics, 96, 102223.

Jain, N., Motiani, M., & Kaur, P. (2021). Stock Direction Prediction Using Sentiment Analysis of News Articles. 195-206. https://doi.org/10.1007/978-981-16-2164-2_16

Li, Z., Tian, M., Ouyang, G., & Wen, F. (2020). Relationship Between Investor Sentiment and Earnings News in High‐ and Low‐sentiment Periods. International Journal of Finance & Economics, 26(2), 2748-2765. https://doi.org/10.1002/ijfe.1931

Liu, J. (2023). News tone, investor sentiment, and liquidity premium. International Review of Economics & Finance. https://doi.org/10.1016/j.iref.2022.11.016

Maqbool, J., Aggarwal, P., Kaur, R., Mittal, A. K., & Ganaie, I. A. (2023). Stock Prediction by Integrating Sentiment Scores of Financial News and MLP-Regressor: A Machine Learning Approach. Procedia Computer Science, 218, 1067-1078. https://doi.org/10.1016/j.procs.2023.01.086

Nasseri, A., Ali, F., & Tucker, A. (2016). Good news and bad news: Do online investor sentiments reaction to return news asymmetric?

Nuriksan, S., & Nikmah, N. (2025). Financial News Sentiment and Investor Confidence: Determinants of Stock Price Volatility in IDX30. Journal of Humanities Social Sciences and Business (Jhssb), 4(3), 493-506. https://doi.org/10.55047/jhssb.v4i3.1648

Rognone, L., Hyde, S., & Zhang, S. S. (2020). News Sentiment in the Cryptocurrency Market: An Empirical Comparison with Forex. International Review of Financial Analysis, 69, 101462.

Smales, L. A. (2016). Time-Varying Relationship of News Sentiment, Implied Volatility and Stock Returns. Applied Economics, 48(51), 4942-4960. https://doi.org/10.1080/00036846.2016.1167830

Souma, W., Vodenska, I., & Aoyama, H. (2019). Enhanced News Sentiment Analysis Using Deep Learning Methods. Journal of Computational Social Science, 2(1), 33-46. https://doi.org/10.1007/s42001-019-00035-x

Uhl, M. (2018). Volatility Aversion in the Options Market Based on News Sentiment. 24-35. https://doi.org/10.3905/jod.2018.25.4.024

Vu, L. T. (2023). Sentiments Extracted From News and Stock Market Reactions in Vietnam. International Journal of Financial Studies, 11(3), 101. https://doi.org/10.3390/ijfs11030101

Downloads

Published

2027-12-22

Submitted

2026-02-21

Revised

2026-07-23

Accepted

2026-07-29

Issue

Section

Articles

How to Cite

Jamali, A., & Jamali, H. R. (1406). Design and Evaluation of a Hybrid Natural Language Processing and Machine Learning Model for Economic News Sentiment Analysis to Predict Price Fluctuations in the Iran Mercantile Exchange. Accounting, Finance and Computational Intelligence, 1-25. https://www.jafci.com/index.php/jafci/article/view/485

Similar Articles

1-10 of 278

You may also start an advanced similarity search for this article.