Using Large Language Models to Predict Crude Oil Price Based on Financial Sentiment Analysis

Прогнозирование цен на сырую нефть с использованием больших языковых моделей на основе анализа финансовых настроений
Hind Aldabagh, Xianrong Zheng, Mohammad Najand, Sandeep Kalari, Ravi Mukkamala
2026-02-24

Gemini 2.5 Procrude oil price predictionfew-shot promptingfinancial sentiment analysislarge language models
Financial sentiment analysis is essential for interpreting market dynamics and making informed strategic trading decisions. Although recent years have seen the adoption of advanced deep learning architectures and financial language models, this study advances the field by exploring the capability of large language model, specifically Gemini 2.5 pro offered by Google, for financial sentiment prediction, with a particular focus on the crude oil market. By monitoring news headlines and news content for the year 2025 and using a few-shot prompt technique, we evaluate multiple Gemini 2.5 prompt formulations on a carefully curated dataset of crude oil news headlines and text. The resulting prediction model is evaluated using the mean absolute error and the mean square error of the sentiment labels and the prediction prices. Incorporating news based textual information significantly improved forecasting performance. The RMSE decreased from 1.57 when using only historical price data to 1.14 when combining price information with news headlines and full article text through few-shot prompting. Similarly, the MAE improved from 1.32 to 0.78 under the same enhanced input configuration, demonstrating that incorporating news information substantially reduces the prediction error. These results suggest that the sentiments derived from the news provide valuable incremental information for short-term crude oil price prediction.
1
Adding news headlines and full article text to historical prices reduced RMSE from 1.57 to 1.14.
2
Few-shot prompting is used to test multiple Gemini 2.5 prompt formulations on a curated crude oil news dataset.
3
News-derived sentiment provides incremental information for short-term crude oil price prediction.
4
The enhanced configuration reduced MAE from 1.32 to 0.78 compared with using historical price data alone.
5
The study evaluates Google’s Gemini 2.5 Pro for crude oil financial sentiment prediction using 2025 news headlines and article text.

short-term crude oil prices and related 2025 news headlines and article text

the effect of news-derived financial sentiment on short-term crude oil price prediction accuracy

Publication Details
Publication Date
2026-02-24
Journal
Publisher
ISSN
Cited by
1
Access Type
Author Information
Authors
Hind Aldabagh
Xianrong Zheng
Mohammad Najand
Sandeep Kalari
Ravi Mukkamala
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%