Evaluation of News Sentiment Impact on Crude Oil Prices via BERT-Enhanced Deep Learning Classifiers
Keywords:
Sentiment Analysis, Deep Learning, DistilBERT, crude oil prices, LSTMAbstract
Various factors, including market perception reflected in media information, Influence crude oil price fluctuations. This study aims to analyse the Influence of news sentiment on crude oil price movements using a deep learning–based sentiment analysis approach. The dataset consists of 108 news headlines and daily closing oil prices from January to May 2025. It is important to note that this dataset is relatively small for deep learning models like LSTM, GRU, and BiLSTM, which constitutes a major constraint for this study. The news text was processed with case folding, tokenisation, stopword removal, and lemmatisation (not stemming to preserve semantic integrity for BERT), then automatically labelled using the DistilBERT model. The BERT-based vector representations were used as input for three classification models: LSTM, GRU, and BiLSTM. The evaluation results showed that all three models achieved the same average validation accuracy of 85.27%. However, the GRU model is identified as the optimal performer, achieving the lowest validation loss (0.3324), indicating better generalisation performance than LSTM and BiLSTM. Further analysis reveals that news sentiment tends to align with oil price trends, particularly during significant market shifts.
References
[1] M. Monge, M. F. Romero Rojo, and L. A. Gil-Alana, “The impact of geopolitical risk on the behavior of oil prices and freight rates,” Energy, vol. 269, p. 126779, 2023, doi: 10.1016/j.energy.2023.126779.
[2] H. Abdollahi, “Oil price volatility and new evidence from news and Twitter,” Energy Econ., vol. 122, p. 106711, Jun. 2023, doi: 10.1016/j.eneco.2023.106711.
[3] S. K. Bharti, P. Tratiya, and R. K. Gupta, “Stock Market Price Prediction through News Sentiment Analysis & Ensemble Learning,” in 2022 IEEE 2nd International Symposium on Sustainable Energy, Signal Processing and Cyber Security (iSSSC), 2022, pp. 1–5. doi: 10.1109/iSSSC56467.2022.10051623.
[4] J. Maqbool, P. Aggarwal, R. Kaur, A. Mittal, and I. A. Ganaie, “Stock Prediction by Integrating Sentiment Scores of Financial News and MLP-Regressor: A Machine Learning Approach,” Procedia Comput. Sci., vol. 218, pp. 1067–1078, 2023, doi: 10.1016/j.procs.2023.01.086.
[5] Y. Li, S. Jiang, X. Li, and S. Wang, “The role of news sentiment in oil futures returns and volatility forecasting: Data-decomposition based deep learning approach,” Energy Econ., vol. 95, p. 105140, 2021, doi: 10.1016/j.eneco.2021.105140.
[6] M. F. Saleh and R. Imanda, “Public Sentiment Analysis of the Free Meal Program: A Comparison of Naive Bayes and Support Vector Machine Methods on the Twitter (X) Social Media Platform,” J. Appl. Informatics Comput., vol. 9, no. 1, pp. 131–139, 2025, doi: 10.30871/jaic.v9i1.8895.
[7] A. W. Sari, T. I. Hermanto, and M. Defriani, “Sentiment Analysis Of Tourist Reviews Using K-Nearest Neighbors Algorithm And Support Vector Machine,” Sinkron, vol. 8, no. 3, pp. 1366–1378, 2023, doi: 10.33395/sinkron.v8i3.12447.
[8] S. J. Hegde, H. M. Madhunandana, and Mohana, “Sentiment Analysis with LSTM Recurrent Neural Network Approach for Movie Reviews using Deep Learning,” in 2023 3rd International Conference on Innovative Mechanisms for Industry Applications (ICIMIA), Dec. 2023, pp. 463–468. doi: 10.1109/ICIMIA60377.2023.10426266.
[9] I. D. Mienye, T. G. Swart, and G. Obaido, “Recurrent Neural Networks: A Comprehensive Review of Architectures, Variants, and Applications,” Information, vol. 15, no. 9, p. 517, Aug. 2024, doi: 10.3390/info15090517.
[10] D. Nuryadi, D. H. F. Manongga, and I. Sembiring, “Crypto Narratives Sentiment Analysis on Bitcoin Price Prediction Using the Naive Bayes Method,” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., vol. 10, no. 2, pp. 1087–1098, Mar. 2025, doi: 10.29100/jipi.v10i2.6116.
[11] C. Haas, C. Budin, and A. D’Arcy, “How to select oil price prediction models — The effect of statistical and financial performance metrics and sentiment scores,” Energy Econ., vol. 133, p. 107466, 2024, doi: 10.1016/j.eneco.2024.107466.
[12] G. Zhao, G. Liu, L. Fang, B. Tu, and P. Ghamisi, “Multiple convolutional layers fusion framework for hyperspectral image classification,” Neurocomputing, vol. 339, pp. 149–160, Apr. 2019, doi: 10.1016/j.neucom.2019.02.019.
[13] W. K. Sari, D. P. Rini, and R. F. Malik, “Text Classification Using Long Short-Term Memory With GloVe Features,” J. Ilm. Tek. Elektro Komput. dan Inform., vol. 5, no. 2, p. 85, Feb. 2020, doi: 10.26555/jiteki.v5i2.15021.
[14] A. Muhariya, I. Riadi, and Y. Prayudi, “Cyberbullying Analysis on Instagram Using K-Means Clustering,” JUITA J. Inform., vol. 10, no. 2, p. 261, 2022, doi: 10.30595/juita.v10i2.14490.
[15] A. Muhariya, I. Riadi, Y. Prayudi, and I. A. Saputro, “Utilizing K-Means Clustering for the Detection of Cyberbullying Within Instagram Comments,” Ing. des Syst. d’Information, vol. 28, no. 4, pp. 939–949, 2023, doi: 10.18280/isi.280414.
[16] I. A. Saputro, I. A. Prabowo, and R. A. Aziz, “Web-Based Application Development for Mapping Zakat Recipients Using the K-Means Clustering Method,” JEKIN - J. Tek. Inform., vol. 4, no. 2, pp. 254–261, May 2024, doi: 10.58794/jekin.v4i2.721.
[17] I. A. Saputro, L. Sugiarto, and F. S. Nugraha, “Analysis of Public Awareness of the Dangers of Internet Phishing Using K-Means Clustering,” STRING (Satuan Tulisan Ris. dan Inov. Teknol., vol. 9, no. 2, 2024, doi: 10.30998/string.v9i2.22404.
[18] T. Agustin, I. A. Saputro, M. L. Rahmadi, F. Patria, A. P. Kartiningtyas, and D. Kurniawan, “Effectiveness of Random Search in Enhancing CNN Performance for Rice Plant Disease Classification,” in 2024 6th International Conference on Cybernetics and Intelligent System (ICORIS), Nov. 2024, pp. 1–6. doi: 10.1109/ICORIS63540.2024.10903973.
[19] S. K. Sahu, S. Sarangi, and S. K. Jena, “A detail analysis on intrusion detection datasets,” Souvenir 2014 IEEE Int. Adv. Comput. Conf. IACC 2014, pp. 1348–1353, 2014, doi: 10.1109/IAdCC.2014.6779523.
[20] C. Wang, P. Nulty, and D. Lillis, “A Comparative Study on Word Embeddings in Deep Learning for Text Classification,” in Proceedings of the 4th International Conference on Natural Language Processing and Information Retrieval, Dec. 2020, pp. 37–46. doi: 10.1145/3443279.3443304.
[21] Y. Wu, Z. Jin, C. Shi, P. Liang, and T. Zhan, “Research on the application of deep learning-based BERT model in sentiment analysis,” Appl. Comput. Eng., vol. 71, no. 1, pp. 14–20, May 2024, doi: 10.54254/2755-2721/71/2024MA.
[22] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” in Proceedings of the 2019 Conference of the North, Jun. 2019, pp. 4171–4186. doi: 10.18653/v1/N19-1423.
[23] R. T. Dewangga and B. Prasetiyo, “Comparative Analysis of BERT Model and DistilBERT Model for Enhanced Clickbait Headline Structure Detection in Indonesian Online News,” JUITA J. Inform., vol. 13, no. 3, pp. 235–244, Nov. 2025, doi: 10.30595/juita.v13i3.26479.
[24] L. B. Cesar, M.A. Manso-Callejo, and C.I. Cira, “BERT (Bidirectional Encoder Representations fromm Transformers) for Missing Data Imputation in Solar Irradiance Time Series,” in ITISE 2023, Jun. 2023, vol. 39, no. 1, p. 26. doi: 10.3390/engproc2023039026.
[25] P. L. Seabe, C. R. B. Moutsinga, and E. Pindza, “Sentiment-driven cryptocurrency forecasting: analyzing LSTM, GRU, Bi-LSTM, and temporal attention model (TAM),” Soc. Netw. Anal. Min., vol. 15, no. 1, p. 52, 2025, doi: 10.1007/s13278-025-01463-6.
[26] P. L. Seabe, C. R. B. Moutsinga, and E. Pindza, “Forecasting Cryptocurrency Prices Using LSTM, GRU, and Bi-Directional LSTM: A Deep Learning Approach,” Fractal Fract., vol. 7, no. 2, p. 203, Feb. 2023, doi: 10.3390/fractalfract7020203.
[27] M. J. Hamayel and A. Y. Owda, “A Novel Cryptocurrency Price Prediction Model Using GRU, LSTM and bi-LSTM Machine Learning Algorithms,” AI, vol. 2, no. 4, pp. 477–496, Oct. 2021, doi: 10.3390/ai2040030.
[28] A. Nanyonga, H. Wasswa, and G. Wild, “Phase of Flight Classification in Aviation Safety Using LSTM, GRU, and BiLSTM: A Case Study with ASN Dataset,” in 2023 International Conference on High Performance Big Data and Intelligent Systems (HDIS), Dec. 2023, no. December, pp. 24–28. doi: 10.1109/HDIS60872.2023.10499521.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Ahmad Muhariya, Indrawan Ady Saputro, Dziky Ridhwanullah

This work is licensed under a Creative Commons Attribution 4.0 International License.

JUITA: Jurnal Informatika is licensed under a Creative Commons Attribution 4.0 International License.








