Innovative Sentiment Analysis and Prediction of Stock Price Using FinBERT, GPT-4 and Logistic Regression: A Data-Driven Approach

被引:1
|
作者
Shobayo, Olamilekan [1 ]
Adeyemi-Longe, Sidikat [1 ]
Popoola, Olusogo [1 ]
Ogunleye, Bayode [2 ]
机构
[1] Sheffield Hallam Univ, Sch Comp & Digital Technol, Sheffield S1 2NU, England
[2] Univ Brighton, Dept Comp & Math, Brighton BN2 4GJ, England
关键词
FinBERT model; logistic regression; FinBERT; Optuna; time series cross-validation;
D O I
10.3390/bdcc8110143
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
This study explores the comparative performance of cutting-edge AI models, i.e., Finaance Bidirectional Encoder representations from Transsformers (FinBERT), Generatice Pre-trained Transformer GPT-4, and Logistic Regression, for sentiment analysis and stock index prediction using financial news and the NGX All-Share Index data label. By leveraging advanced natural language processing models like GPT-4 and FinBERT, alongside a traditional machine learning model, Logistic Regression, we aim to classify market sentiment, generate sentiment scores, and predict market price movements. This research highlights global AI advancements in stock markets, showcasing how state-of-the-art language models can contribute to understanding complex financial data. The models were assessed using metrics such as accuracy, precision, recall, F1 score, and ROC AUC. Results indicate that Logistic Regression outperformed the more computationally intensive FinBERT and predefined approach of versatile GPT-4, with an accuracy of 81.83% and a ROC AUC of 89.76%. The GPT-4 predefined approach exhibited a lower accuracy of 54.19% but demonstrated strong potential in handling complex data. FinBERT, while offering more sophisticated analysis, was resource-demanding and yielded a moderate performance. Hyperparameter optimization using Optuna and cross-validation techniques ensured the robustness of the models. This study highlights the strengths and limitations of the practical applications of AI approaches in stock market prediction and presents Logistic Regression as the most efficient model for this task, with FinBERT and GPT-4 representing emerging tools with potential for future exploration and innovation in AI-driven financial analytics.
引用
收藏
页数:21
相关论文
共 50 条
  • [1] Sentiment Analysis on GPT-4 with Comparative Models Using Twitter Data
    Ozel, Mustafa
    Bozkurt, Ozlem Cetinkaya
    ACTA INFOLOGICA, 2024, 8 (01): : 23 - 33
  • [2] Stock Price Prediction using Linear Regression based on Sentiment Analysis
    Cakra, Yahya Eru
    Trisedya, Bayu Distiawan
    2015 International Conference on Advanced Computer Science and Information Systems (ICACSIS), 2015, : 147 - 153
  • [3] Stock price movement prediction based on Stocktwits investor sentiment using FinBERT and ensemble SVM
    Liu, Jin-Xian
    Leu, Jenq-Shiou
    Holst, Stefan
    PEERJ COMPUTER SCIENCE, 2023, 9
  • [4] Stock Price Prediction Using Sentiment Analysis
    Sidogi, Thendo
    Mbuvha, Rendani
    Marwala, Tshilidzi
    2021 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC), 2021, : 46 - 51
  • [5] Stock Price Prediction Using News Sentiment Analysis
    Mohan, Saloni
    Mullapudi, Sahitya
    Sammeta, Sudheer
    Vijayvergia, Parag
    Anastasiu, David C.
    2019 IEEE FIFTH INTERNATIONAL CONFERENCE ON BIG DATA COMPUTING SERVICE AND APPLICATIONS (IEEE BIGDATASERVICE 2019), 2019, : 205 - 208
  • [6] A novel data-driven stock price trend prediction system
    Zhang, Jing
    Cui, Shicheng
    Xu, Yan
    Li, Qianmu
    Li, Tao
    EXPERT SYSTEMS WITH APPLICATIONS, 2018, 97 : 60 - 69
  • [7] A New Approach of Stock Price Trend Prediction Based on Logistic Regression Model
    Gong, Jibing
    Sun, Shengtao
    2009 INTERNATIONAL CONFERENCE ON NEW TRENDS IN INFORMATION AND SERVICE SCIENCE (NISS 2009), VOLS 1 AND 2, 2009, : 1366 - 1371
  • [8] A Data-Driven Model Approach for DayWise Stock Prediction
    Unnithan, Nidhin A.
    Gopalakrishnan, E. A.
    Menon, Vijay Krishna
    Soman, K. P.
    EMERGING RESEARCH IN ELECTRONICS, COMPUTER SCIENCE AND TECHNOLOGY, ICERECT 2018, 2019, 545 : 149 - 158
  • [9] Novel Approach for Stock Prediction Using Technical Analysis and Sentiment Analysis
    Gaharwar, Gauravkumarsingh
    Pandya, Sharnil
    FOURTH CONGRESS ON INTELLIGENT SYSTEMS, VOL 1, CIS 2023, 2024, 868 : 101 - 111
  • [10] Stock Price Prediction Using Optimal Network Based Twitter Sentiment Analysis
    Kumar, Singamaneni Kranthi
    Akeji, Alhassan Alolo Abdul-Rasheed
    Mithun, Tiruvedula
    Ambika, M.
    Jabasheela, L.
    Walia, Ranjan
    Sakthi, U.
    INTELLIGENT AUTOMATION AND SOFT COMPUTING, 2022, 33 (02): : 1217 - 1227