Innovative Sentiment Analysis and Prediction of Stock Price Using FinBERT, GPT-4 and Logistic Regression: A Data-Driven Approach
Olamilekan Shobayo, Sidikat Adeyemi-Longe, Olusogo Popoola, Bayode, Ogunleye

TL;DR
This paper compares AI models FinBERT, GPT-4, and Logistic Regression for sentiment analysis and stock prediction, finding Logistic Regression most effective in accuracy and efficiency, with implications for financial AI applications.
Contribution
It introduces a comparative analysis of advanced NLP models and traditional methods for stock market prediction using financial news and index data.
Findings
Logistic Regression achieved 81.83% accuracy and 89.76% ROC AUC.
GPT-4 approach had 54.19% accuracy, showing potential in complex data handling.
FinBERT provided sophisticated analysis but was resource-intensive.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsAttention Is All You Need · Adam · Dropout · Position-Wise Feed-Forward Layer · Softmax · Dense Connections · Byte Pair Encoding · Linear Layer · Multi-Head Attention · Label Smoothing
