Preprint
Article

Using Generative Pre-Trained Transformers (GPT) for Electricity Price Trend Forecasting in the Spanish Market

Altmetrics

Downloads

187

Views

101

Comments

0

A peer-reviewed article of this preprint also exists.

Submitted:

19 March 2024

Posted:

20 March 2024

You are already at the latest version

Alerts
Abstract
Our research proposes two different training and modelling approaches of Generative Pre-trained Transformers (GPT) with specialized news feeds specific to the Spanish market: in-context example prompts and fine-tuned GPT models. Our findings indicate that integrating GPT insights into electricity price trend forecasting can result in more precise predictions and a deeper understanding of market dynamics. Through our research, we aim to provide insights to understand the capabilities of GPT solutions, and how those can be used to enhance prediction accuracy, ultimately supporting informed decision-making for stakeholders across the Spanish electricity market and companies whose margins heavily depend on electricity costs and price volatility.
Keywords: 
Subject: Engineering  -   Industrial and Manufacturing Engineering

1. Introduction

The forecast of the medium to long-term price trend of the electricity market is subject to considerable uncertainty due to the influence of multiple complex factors - geopolitical events, climatic phenomena, social developments, regulations, technical factors, economic cycles, etc. [1].
Analyzing the evolution of the Spanish electricity market (OMIE) from 2018 to 2023 [2] unravels key factors behind heightened volatility. Understanding the intricate evolution of energy prices between 2018 and 2023 (Figure 1), sheds light on the multifaceted factors that influenced this journey. According to the International Energy Agency [3], during the initial years, from 2018 to 2021, energy prices were shaped by a confluence of variables, including rising costs across various fuels and technologies, supply chain pressures, labor market constraints, and fluctuations in critical mineral supplies and construction materials. Notably, clean energy costs, which had previously witnessed steady declines, exhibited a distinct uptrend during this period.
However, the narrative dramatically turned after 2020, with energy prices experiencing heightened volatility. As reported, the primary catalyst for this volatility was the growing disparity between surging demand and a limited pipeline of new conventional projects within the oil industry. This imbalance introduced a significant risk of price spikes, casting shadows on the global economy's stability. Moreover, competitive electricity markets grappled with a widening gap between revenue from electricity sales and total generation costs, further contributing to price fluctuations.
The COVID-19 pandemic, a global disruptor, played its part by dampening overall energy demand, particularly in the case of carbon-intensive fuels like coal and oil. Conversely, renewable energy sources proved more resilient in the face of the pandemic's impacts. CO2 emissions were notably reduced, and the energy sector witnessed a decline in capital investment, primarily affecting oil and natural gas supply projects. These repercussions are expected to reverberate through energy markets in the years to come.
Furthermore, the world's current energy crisis, initiated by Russia's invasion of Ukraine, has added another layer of complexity to the energy landscape. High energy prices, particularly in the natural gas sector, have led to wealth transfers from consumers to producers, affecting electricity generation costs globally. The crisis has also posed challenges in ensuring access to modern energy for many, with lingering uncertainties about its duration and fossil fuel price trends. While short-term shifts have seen increased demand for oil and coal as alternatives to costly gas, the long-term trajectory points toward low-emissions sources such as renewables, nuclear energy, and heightened efficiency measures.
Previous time series forecasting approach models used to determine energy prices prior to the COVID-19 pandemic [4,5,6] faced significant challenges during and after the crisis. They struggled to adapt to the abrupt disruptions in energy demand, increased price volatility, supply chain pressures, and changes in the energy mix brought about by the pandemic. Additionally, uncertainties in the economic and policy landscapes further hindered their accuracy. The pandemic exposed the limitations of these forecasting models in coping with such unforeseen disruptions, emphasizing the need for more adaptable and robust forecasting approaches to navigate the evolving energy market dynamics effectively.
Scientific evidence suggests that having prior information about these qualitative factors can be of great importance in understanding the possible future evolution of the market. For example, understanding what affect the consumption patterns [7,8], the demand density [9], and the electricity generation [10,11] can be critical. In fact, many market specialists publish their understanding of recent market developments and possible trends based on factors such as social phenomena affecting demand, conflicts, government agreements, natural disasters, legislative actions, nuclear plant shutdowns, weather conditions, etc., either through journals or company reports available on the web.
These reports can be processed to apply sentiment analysis techniques. Typically, sentiment analysis techniques applied to markets (stock markets, oil markets, electricity markets) capture only headlines and classify the possible price direction. Research insights suggest that including sentiment analysis results improves quantitative predictions of price prediction models. There is a growing trend towards using deep learning techniques for market sentiment analysis. Machine learning-based methods involve training a model on a dataset of text where the sentiment of each text fragment is known. The trained model can then be used to predict the sentiment of new text. Examples of machine learning techniques include Convolutional Neural Networks (CNN), Recursive Neural Networks (RNN), and Transformer models [12].
Large Language Models (LLMs) are based on Transformer architecture trained on a large volume of data (GPT), which are then fine-tuned for specific contexts [13]. Current LLMs have been trained on large and varied datasets, giving them the capability to understand the functioning of the economy and markets. To evaluate sentiment in a particular market, they need to be fine-tuned with specific new datasets derived from specialist reports and related news to derive sentiments of the specific market [14,15]. Breitung et al. [16] apply this approach to the oil market by generating a specific dataset with 1600 records.
So far, we have not found publications dealing with sentiment analysis applied to trends in electricity markets.
Advanced natural language processing methods have transformed AI interaction and Generative Pre-trained Transformers (GPT) are ground-breaking for generating human-like text and comprehending natural language [17]. GPT models can be extended and refined with specialized news and reports analysis [18], which can significantly enhance energy price prediction models, in addition to sentiment analysis, in several ways:
  • Data Enrichment: GPT-based models can analyze and extract valuable insights from a vast corpus of specialized news articles and reports on the energy market. This data enrichment provides a broader context for energy price forecasting models.
  • Event Detection: GPT models can detect and highlight significant events [19], such as geopolitical developments, supply disruptions, or regulatory changes, that may impact energy markets. These detected events can be used as input variables for forecasting models.
  • Market News Summarization: GPT can generate concise summaries of complex news articles and reports [20] making it easier for analysts and traders to stay informed about market developments. These summaries can serve as valuable inputs for forecasting models.
  • Identifying Influential Factors: GPT can identify, and rank factors mentioned in the news and reports likely to influence energy prices. This information can guide feature selection and help prioritize variables in forecasting models.
  • Customized reports: In the case of OpenAI's GPT, users can provide customized prompts to extract specific information or insights from news and reports. This allows for tailored analysis based on the unique requirements of the forecasting model.
The assumption is that by incorporating GPT-based specialized news and reports analysis into energy price prediction models allows for a more comprehensive and timely understanding of market dynamics [21]. This, in turn, may improve the models' accuracy and helps energy market participants make informed decisions in an increasingly complex and dynamic environment. The application of GPT technology in predicting energy prices in the Spanish Market is the focus of our research.
In this paper, we analyze how the reasoning capabilities of large language models (LLMs) can be used to derive context-specific trend predictions from specialized news and expert reports. We construct a dataset of electricity news and reports and compare the forecasting performance of two different approaches for domain knowledge enhancement: prompting engineering and fine-tuning. Our findings indicate that LLMs can successfully leverage their reasoning capabilities to contextualize the evolution of electricity market prices.
We contribute to the literature on advanced Natural Language Processing (NLP) tools applied to management science, illustrating how LLMs can be effectively used to extract business experts' perspectives on the future and consolidate their consensus, and provide tactical guidance to drive these models towards achieving optimal results.
In what follows, we present the methods used to adjust the GPT, the implementation details (the original code and the dataset are openly available1), the metrics that we have defined to evaluate the different dimensions of the sentiment extracted from the analysis of the texts, the results obtained, the future developments that would be interesting to address and the main conclusions of this article.

2. Materials and Methods

OpenAI's GPT models, renowned for their natural language understanding and generation capabilities, provide a robust foundation for various applications. Two primary paradigms emerge regarding integrating private data and tailoring these models to specific tasks: context learning and fine-tuning [18]. These paradigms unlock the potential to enhance model performance, adapt to domain-specific nuances, and leverage the unique characteristics of proprietary datasets, all while preserving the underlying capabilities of the pre-trained GPT model.

2.1. Paradigm 1: In-Context Learning

In-context learning, also called prompt engineering or prompt design, is a paradigm that allows users to interact with GPT models by providing context-specific instructions or queries [22]. This approach enables the customizations of model responses without directly modifying the model. By crafting tailored prompts, users can elicit responses that align with their specific requirements, making it a versatile tool for leveraging the pre-trained knowledge of GPT models while adding a layer of domain specificity. In-context learning is precious when quick, context-aware responses are needed, such as in chatbots, customer support, or generating domain-specific content. However, it relies on the skillful design of prompts and may require iterative adjustments to achieve optimal results, as understanding and controlling model behavior through prompts can be nuanced.

2.2. Paradigm 2: Fine-Tuning

Fine-tuning represents a deeper level of customization, where the pre-trained GPT model is adapted to perform specific tasks or Excel domains [23]. The model is further trained on domain-specific data, including proprietary datasets, specialized text, or even structured information in this paradigm. Fine-tuning allows the model to learn from this additional data while preserving its general language understanding capabilities. This approach results in a more refined and specialized model capable of providing nuanced and context-aware responses in a particular domain. Fine-tuned models have applications in medical diagnosis, legal document analysis, and financial forecasting, where precise and domain-specific insights are essential. However, fine-tuning requires careful data curation, domain expertise, and a thorough understanding of the trade-offs involved in specialization, as excessive fine-tuning can risk overfitting to specific datasets and limit model generality.

2.3. Implementation Details

To conduct a comprehensive comparative analysis and measure the efficacy of OpenAI technologies into time series trend forecasting, we created two sets of predictions with the in-context examples and fine-tuning approaches of OpenAI's customization, using a collection of news articles [24,25] and expert analysis reports specifically focused on the Spanish energy markets [26,27].
The OpenAI models calculated three variables for each news article content:
  • Impact on Electricity Price (Scale 0-10): The first variable quantifies the perceived impact of each news article on the price of electricity within a scale ranging from 0 (no impact) to 10 (high impact). This quantification allows us to discern the potential influence of each piece of news on energy prices, a critical factor in our forecasting model.
  • Direction of Impact (Up, Down, None): We evaluated whether the news articles indicated a potential price impact in the form of an increase ("Up"), a decrease ("Down"), or no discernible impact ("None"). Understanding the Direction of influence is paramount for making informed predictions in the dynamic energy market.
  • Impact Period (Past, Short-term, Mid-term, Long-term, None): The third variable delves into the temporal aspect of impact, categorizing it into various periods—Past, Short-term, Mid-term, Long-term, or None. This temporal classification aids in determining when the anticipated price effects are likely to materialize, further enhancing the precision of our forecasts.
Simulating the impact of news on the energy market involves understanding market dynamics and investor behavior when they receive updates [28]. While no formula perfectly captures this, we used a simplified “exponential decay” model to represent how the impact of news might fade over time for short-term news and a “Gaussian model” for mid-long-term impacts (Figure 2). This model assumes that the impact of the news will be most significant immediately after or close to its release and will gradually diminish over time.

2.3.1. In-context Implementation

For the in-context model, we added to the instructions to calculate the mentioned variables, 8 examples of the market news and articles dataset and provided the values of Impact, Direction and Period from an energy expert point of view (Figure 3). We executed this prompt passing as parameter each of the collected news and articles in the full dataset and enrich each news record with the new information calculated by GPT (model: text-davinci-003).
Taking the “Impact” value of the news on the date of release, we calculated the average impact over the following period depending on the identified “Duration”: for short-term up to 3 weeks; for mid/long-term, up to 3 months. Then we grouped all these values calculating the average of each interval (weeks for short-term, months for mid/long term). The symbol of the value indicated if it was a positive or negative impact (increase or decrease of the energy price).

2.3.2. Fine-Tuned Implementation

To create the fine-tuned model, for each news or article, we completed a first run with OpenAI using the “In-context examples prompt” to identify its assessment of “Impact Period” for each record (short-term, mid/long-term, past, None), keeping aside 25 randomly selected records for each possible value for the fine-tuning.
In parallel, calculated for each date of the time-series range (2018-2023) what difference (%) the price has suffered with the previous time interval to the news event (weeks for short-term, months for mid/long term) as per the following formulas2:
I m p a c t w e e k   =   0.5 · P r i c e w e e k   t + 0.3 · P r i c e w e e k   t + 1 + 0.2 · P r i c e w e e k   t + 2 I m p a c t m o n t h   =   0.5 · P r i c e m o n t h   t + 0.3 · P r i c e   m o n t h   t + 1 + 0.2 · P r i c e m o n t h   t + 2
With this information, we populated each news sample record to be used for fine-tuning, including the “Direction” field (sign of the impact), obtaining a dataset as the one shown below (Figure 4):
From here we were ready to follow the Fine-tuning steps explained by OpenAI to create a custom model [23]:
  • Dataset preparation: Every instance within the dataset should represent a conversation structured in a manner consistent with OpenAI’s Chat Completions API. This structure entails organizing the conversation as a list of messages, where each message comprises a role, content, and the possibility of including a name.
  • Validate data formatting and divide training and testing datasets
  • Upload dataset file and create the fine-tuning job using the OpenAI SDK.
  • Use the new fine-tuned model with the rest of the news and articles to enrich the dataset with calculated variables.
After applying the new model to the rest of the news and article dataset (Figure 5), we calculated the average Impact decay based on Impact Period (short-term: weekly average; mid/long-term: monthly average).

3. Results

From the results of analyzing the news and articles, we extract information like its impact on the price, the direction of that impact, and the period it will occur.
We have grouped the insights provided by this analysis in short-term and mid/long-term, calculating the average impact for each interval and the sign indicating Direction, and we evaluate the accuracy of that prediction based on the variation of price over the following period after the news occurred.
We have defined three different types of metrics to measure the accuracy of the Direction of the Impact prediction:
  • Close Price: If the Direction indicates that the Price will go UP (Figure 6), the OPEN PRICE at the beginning of the first interval when the news is published (interval t) should be LOWER than at least 1 of the CLOSE PRICE values of the current or the following two intervals (t, t+1, t+2). The intervals will be weeks for short-term and months for mid/long-term.
If the Direction indicates that the Price will go DOWN (Figure 7), the OPEN PRICE at the beginning of the first interval when the news is published (t) should be HIGHER than at least 1 of the CLOSE PRICE values of the current or the following two intervals (t, t+1, t+2).
  • High/Low: If the Direction indicates that the Price will go UP (Figure 8), the OPEN PRICE at the beginning of the first interval when the news is published (interval t) should be LOWER than at least 1 of the HIGH PRICE values of the current or the following two intervals (t, t+1, t+2). The intervals will be weeks for short-term and months for mid/long-term.
    Figure 8. OpenAI High/Low Price Metric: Direction UP.
    Figure 8. OpenAI High/Low Price Metric: Direction UP.
    Preprints 101764 g008
If the Direction indicates that the Price will go DOWN (Figure 9), the OPEN PRICE at the beginning of the first interval when the news is published (t) should be HIGHER than at least 1 of the LOW PRICE values of the current or the following two intervals (t, t+1, t+2).
Threshold: Same as High or Low, but there should be a minimum difference between the Open Price value and the High or Low, depending on the Direction of 2% for short-term and 5% for mid/long term.

3.1. Short-Term Analysis

The following figures (Figure 10 and Figure 11) and Table 1 show the analysis results of short-term identified impacts on price using OpenAI and comparing both approaches: in-context examples and fine-tuning. The color of the arrows indicates OpenAI prediction to go UP (green) or DOWN (red), next to the price timeseries.
The in-context model detects 117 impact points, while the fine-tuned model only detects 31 short-term impacts.
Concerning the scores, we can see that the fine-tunned approach performs slightly better but with considerably fewer captured points.

3.2. Mid/Long-Term Analysis

The following figures (Figure 12 and Figure 13) and Table 2 show the results of the analysis of mid/long-term identified impacts on price using OpenAI and comparing both approaches: in-context examples and fine-tuning.
The in-context model detects 71 impact points, while the fine-tuned model only detects 59 mid/long-term impacts. The scores show that the fine-tuned approach is performing again better, although with slightly fewer points.
Overall, OpenAI detects the trend in the price time series, especially in the mid/long term. The in-context approach seems more sensitive, but the fine-tuned model provides slightly more accurate results.

4. Discussion

Our findings indicate the potential of GPT models to provide valuable insights and improve predictions, particularly in understanding mid-term price trends. Therefore, we conclude that continued exploration and optimization of OpenAI's capabilities are essential to unlock their full potential in energy price forecasting, and particularly electricity market price. To validate and to generalize the observed results further research is needed.
Building on the insights gained from this study it should be enhanced the contextual understanding and data sources used as input for the GPT models by incorporating additional relevant news and reports sources and increased periodicity and optimizing the accurate impact calculation and decay over time methods to translate real impact.
The key benefit of increasing LLM awareness about the market evolution by the in-context approach is that it avoids the need to re-modify LLM parameters for this specific task application. Instead, developers can append an external knowledge repository, enriching the input and thus refining the output accuracy of the model. Therefore, in-context is seen as a more practical and economical approach, with a lower barrier to entry and independent of the specific LLM model. However, for more extensive and professional applications, it is necessary to automate the workflows that allow scalability and better precision of responses. A RAG architecture [29] can be developed for this purpose.
RAG has become one of the most popular architectures in LLM systems, combining automated information retrieval mechanisms and in-context learning to bolster LLM performance. In this framework, a query initiated by a user requests the retrieval of relevant information through search algorithms. This information is then integrated into the LLM indications, providing additional context for the generation process [30].
In basis of an RAG architecture, we plan to develop the following additional functionalities:
  • the incorporation of GPT-calculated features into multivariate time series prediction models as input variables
  • influential event detection as early warning signals (natural disasters, geopolitical conflicts, regulatory changes)
  • automatic generation of reports that describe the recent evolution of the electricity market price and the prediction of price trends.

5. Conclusions

Our research explored the crucial realm of energy price prediction within the Spanish electricity market, which has significant implications for the nation's economy, sustainability goals, and energy security. We utilized GPT models, specifically OpenAI's ChatGPT, to create a new approach to energy price trend forecasts. This new approach can be used to create innovative hybrid models merging GPT insights with domain-specific knowledge and real-time data feeds to address the unique complexities of the Spanish electricity market.

Author Contributions

Conceptualization, A.M. and J.A.H.; software, A.M.; writing A.M and J.A.H.; visualization, A.M.; supervision, J.A.H.. Both authors have read and agreed to the published version of the manuscript. .

Data Availability Statement

The original code and the dataset supporting reported results are openly available and can be found in the repository: https://github.com/AMM-UJI/energy-price-prediction-OpenAI.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Pezzutto, S.; Grilli, G.; Zambotti, S.; Dunjic, S. Forecasting Electricity Market Price for End Users in EU28 until 2020—Main Factors of Influence. Energies 2018, 11, 1460. [CrossRef]
  2. OMI, Polo Español S.A. (OMIE). Market results.2018-2023 Retrieved from OMIE: https://www.omie.es/en.
  3. World Energy Outlook annual report. 2018- 2023. International Energy Agency.
  4. WeronR. Electricity price forecasting: A review of the state-of-the-art with a look into the future. Int J Forecast 2014, 30 (4), 1030-1081. [CrossRef]
  5. Nowotarski, J., & Weron, R. Recent advances in electricity price forecasting: A review of probabilistic forecasting. Renewable and Sustainable Energy Reviews 2018 81, 1548-1568. [CrossRef]
  6. Qin, Q. X. An effective and robust decomposition-ensemble energy price forecasting paradigm with local linear prediction. Energy Economics 2019, 83, 402-414. [CrossRef]
  7. Bianco, V.; Manca, O.; Nardini, S. Electricity consumption forecasting in Italy using linear regression models. Energy 2009, 34, 1413–1421. [CrossRef]
  8. Kumar, U.; Jain, V.K. Time series models (Grey-Markov, Grey Model with rolling mechanism and singular spectrum analysis) to forecast energy consumption in India. Energy 2010, 35, 1709–1716. [CrossRef]
  9. Hyndman, R.J.; Fan, S. Density forecasting for long-term peak electricity demand. IEEE Trans. Power Syst.2010, 25, 1142–1153. [CrossRef]
  10. Kamalov, F., Sulieman, H., Moussa, S., Avante Reyes, J., & Safaraliev, M. (2024). Powering Electricity Forecasting with Transfer Learning. Energies, 17(3), 626. [CrossRef]
  11. Kok, M.; Lootsma, F.A. Pairwise-comparison methods in multiple objective programming, with applications in a long-term energy-planning model. Eur. J. Oper. Res. 1985, 22, 44–55. [CrossRef]
  12. Zhao, L. T., Zeng, G. R., Wang, W. J., & Zhang, Z. G. Forecasting oil price using web-based sentiment analysis. Energies 2019,12(22), 4291. [CrossRef]
  13. Kheiri, K., & Karimi, H. Sentimentgpt: Exploiting GPT for advanced sentiment analysis and its departure from current machine learning. arXiv preprint 2023 arXiv:2307.10234. [CrossRef]
  14. Nguyen, T.H.; Shirai, K.; Velcin, J. Sentiment analysis on social media for stock movement prediction. Expert Syst. Appl. 2015, 42, 9603–9611. [CrossRef]
  15. Santos, M. V., Morgado-Dias, F., & Silva, T. C. Oil Sector and Sentiment Analysis—A Review. Energies 2023, 16(12), 4824. [CrossRef]
  16. Breitung, C., Kruthof, G., & Müller, S. Contextualized Sentiment Analysis using Large Language Models. Available at SSRN 2023. [CrossRef]
  17. Lund, B. D. A brief review of ChatGPT: its value and the underlying GPT technology. Preprint. University of North Texas. Project: ChatGPT and Its Impact on Academia. 2023, Doi, 10.. [CrossRef]
  18. Kamnis, S. Generative pre-trained transformers (GPT) for surface engineering. Surface and Coatings Technology, 2023, 129680. [CrossRef]
  19. Veyseh, A. P. Unleash GPT-2 power for event detection. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, 2021, Volume 1: Long Papers, 6271-6282.
  20. Goyal, T. L. News summarization and evaluation in the era of gpt-3. arXiv preprint 2022, arXiv:2209, 12356. [CrossRef]
  21. Lopez-Lira, A., & Tang, Y. Can chatgpt forecast stock price movements? return predictability and large language models. arXiv preprint 2023 arXiv:2304.07619.
  22. Liu, J. S. What Makes Good In-Context Examples for GPT-3? arXiv preprint 2021 arXiv:2101.06804. [CrossRef]
  23. OpenAI. Fine-tuning. 2023, Retrieved from OpenAI platform: https://platform.openai.com/ docs/guides/fine-tuning.
  24. CincoDías - ElPaís. CincoDías Energía. Retrieved from CincoDías – ElPaís. 2018-2023 https://cincodias.elpais.com/noticias/energia/.
  25. EnergyNews. EnergyNews Mercado Electrico. Retrieved from EnergyNews. 2018-2023 - Todo Energía: https://www.energynews.es/mercadoelectrico/.
  26. GrupoASE. Informe Mercado. 2018-2023. Retrieved from Grupo ASE: https://informesdemercado.grupoase.net/ en/inicio-2/.
  27. Exclusivas Energéticas. Informes Mindee. 2018- 2023. Retrieved from Exclusivas Energéticas: https://exclusivas-energeticas.com/.
  28. Engle, R. F. Measuring and testing the impact of news on volatility. The journal of finance 1993, 48 (5), 1749-1778. [CrossRef]
  29. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., ... & Kiela, D. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 2020, 33, 9459-9474. [CrossRef]
  30. Gao, Y., Xiong, Y., Gao, X., Jia, K., Pan, J., Bi, Y., ... & Wang, H. Retrieval-augmented generation for large language models: A survey. arXiv preprint 2023 arXiv:2312.10997. [CrossRef]
Figure 1. Evolution of energy price in the electricity Spanish market -OMIE- (2018-2023).
Figure 1. Evolution of energy price in the electricity Spanish market -OMIE- (2018-2023).
Preprints 101764 g001
Figure 2. Three different approaches to simulate news impact decay over time.
Figure 2. Three different approaches to simulate news impact decay over time.
Preprints 101764 g002
Figure 3. In-context example multivariate model.
Figure 3. In-context example multivariate model.
Preprints 101764 g003
Figure 4. Pre-Fine-Tune data frame.
Figure 4. Pre-Fine-Tune data frame.
Preprints 101764 g004
Figure 5. Fine-tunned OpenAI multivariate model.
Figure 5. Fine-tunned OpenAI multivariate model.
Preprints 101764 g005
Figure 6. OpenAI Close Price Metric: Direction UP.
Figure 6. OpenAI Close Price Metric: Direction UP.
Preprints 101764 g006
Figure 7. OpenAI Close Price Metric: Direction DOWN.
Figure 7. OpenAI Close Price Metric: Direction DOWN.
Preprints 101764 g007
Figure 9. OpenAI High/Low Price Metric: Direction DOWN.
Figure 9. OpenAI High/Low Price Metric: Direction DOWN.
Preprints 101764 g009
Figure 10. In-context short-term graph.
Figure 10. In-context short-term graph.
Preprints 101764 g010
Figure 11. Fine-tuned short-term graph.
Figure 11. Fine-tuned short-term graph.
Preprints 101764 g011
Figure 12. In-context mid/long-term graph.
Figure 12. In-context mid/long-term graph.
Preprints 101764 g012
Figure 13. Fine-tuned mid/long-term graph.
Figure 13. Fine-tuned mid/long-term graph.
Preprints 101764 g013
Table 1. OpenAI short-term metrics.
Table 1. OpenAI short-term metrics.
In-context Fine-tunned
Accuracy Close Price 0.64 0.71
Accuracy High/Low 0.74 0.81
Accuracy Threshold 2% 0.64 0.64
Table 2. OpenAI mid/long-term metrics.
Table 2. OpenAI mid/long-term metrics.
In-context Fine-tunned
Accuracy Close Price 0.68 0.81
Accuracy High/Low 0.89 0.93
Accuracy Threshold 5% 0.80 0.86

Footnotes

1
https://github.com/AMM-UJI/energy-price-prediction-OpenAI.
2
The weights in the formula are a simplified approximation to the area under the curve for “exponential decay” and “Gaussian model” as per in Figure 2.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated