{"paper_id":"2412.06837","title":"Innovative Sentiment Analysis and Prediction of Stock Price Using FinBERT, GPT-4 and Logistic Regression: A Data-Driven Approach","authors":["Olamilekan Shobayo","Sidikat Adeyemi-Longe","Olusogo Popoola","Bayode Ogunleye"],"paper_date":"2024-12-07","paper_type":"empirical","paper_url":"https://arxiv.org/pdf/2412.06837v1","page_url":"https://thequant.space/flowcharts/innovative-sentiment-analysis-and-prediction-of-stock-price/","scores":{"empirical_rigor":7,"math_complexity":3.5,"quadrant":"Street Traders"},"proposes":{"status":"available","statement":"The paper proposes a comparative evaluation of FinBERT, GPT‑4 and Logistic Regression for sentiment analysis and stock index prediction, showing Logistic Regression as the most efficient model.","quote":"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%.","summary":"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…","strategy":null},"assumptions":{"status":"available","items":[{"assumption":"Temporal order of the news data must be preserved during model training and evaluation.","type":"data","stated":"implied","quote":"Time series cross-validation (TSCV) was used to train and validate the model with folds (n = 5) on the news dataset. This method maintains the time dependency between data points."},{"assumption":"The dataset is split into fixed proportions for training, validation and testing.","type":"data","stated":"implied","quote":"The preprocessed news headlines datasets were split into 70% for training, 15% for validation, and 15% for testing."},{"assumption":"TF‑IDF vectorization provides suitable features for Logistic Regression on financial news text.","type":"model","stated":"implied","quote":"Logistic Regression: TF‑IDF (Term Frequency–Inverse Document Frequency) vectorization was used to transform the cleaned text data into features."},{"assumption":"Hyperparameter optimization via Optuna yields robust model settings.","type":"model","stated":"explicit","quote":"Hyperparameter optimization using Optuna and cross‑validation techniques ensured the robustness of the models."},{"assumption":"Financial news sentiment can be captured by three classes (positive, negative, neutral).","type":"data","stated":"explicit","quote":"These models can classify sentiment (e.g., positive, negative, neutral) and predict how such sentiment may influence stock prices."}]},"datasets":{"status":"available","items":[{"name":"NGX All‑Share Index data label","provider":null,"kind":"market-prices","access":"unknown","period":null,"universe":null,"quote":"Each model was trained on historical NGX All Share Index data labels and financial news"}],"known":[],"sample":{"start":null,"end":null,"market":null,"asset_class":null,"frequency":null},"data_resolution":"daily"},"transaction_costs":{"status":"not_applicable","modeled":"n/a","headline_net_of_costs":null,"detail":null,"quote":null,"source":"front_matter","rule":"R3","candidates":{"front_matter":"n/a","evidence_card":"n/a","evidence_card_quoted":false},"meaning":"the paper reports no trading or execution result"},"results":{"status":"available","evaluation_type":"forecast-accuracy","findings":[{"finding":"Logistic Regression achieved an accuracy of 81.83% and ROC AUC of 89.76%, outperforming FinBERT and GPT‑4.","kind":"performance","quote":"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%."},{"finding":"GPT‑4 predefined approach obtained a lower accuracy of 54.19% on the same task.","kind":"performance","quote":"The GPT‑4 predefined approach exhibited a lower accuracy of 54.19% but demonstrated strong potential in handling complex data."},{"finding":"FinBERT delivered moderate performance and was resource‑demanding.","kind":"performance","quote":"FinBERT, while offering more sophisticated analysis, was resource‑demanding and yielded a moderate performance."},{"finding":"Logistic Regression generalizes well, with training accuracy 80.93% and test accuracy 81.83%, indicating no significant overfitting.","kind":"statistical","quote":"the model test accuracy is very close to the training accuracy of 80.93%, which indicates that the model generalizes well and there is no significant overfitting."},{"finding":"Advanced NLP models incur higher computational costs, limiting their real‑time applicability.","kind":"other","quote":"FinBERT, while better equipped to handle financial language, faced challenges in terms of computational demands and resource usage, which limited its practical application in real‑time prediction scenarios."}],"reported_performance":null,"out_of_sample":{"method":"unclear","headline_out_of_sample":null}},"independent_evidence":{"status":"none_found","supports":[],"contradicts":[],"qualifies":[],"compared_with":43,"citations":{"cited_by_in_corpus":2,"by_independent_authors":2,"how_cited":{"used_as_baseline":0,"uses_method_or_data":0,"extends":0,"discusses_findings":0,"mentions":2,"unclassified":0},"independent_papers":[],"scope":"Citations between papers in this corpus only; citations from outside it are not counted."}},"implementation":{"status":"available","public":false,"code_url":null,"note":"No repository presented by the authors as their own was found in the paper. Absence here is not proof that no code exists."},"replication":{"status":"none_found","card":null,"note":"No replication of this paper has been run by thequant.space yet."},"extraction":{"text_source":"fulltext","model":"openai/gpt-oss-120b","version":1,"extracted_at":"2026-11-14T17:50:51Z"},"provenance":{"claims":"Everything here is what the authors state in the paper. Nothing was re-run or reproduced by the platform.","quotes":"Assumptions, datasets, cost detail and findings were extracted by a language model. Every quote is verbatim paper text. Where an item has `support`, \"full\" means every figure in it appears in the quoted sentences and \"partial\" means a figure is stated elsewhere in the paper; items with a figure found nowhere in the paper were discarded.","datasets_known":"datasets.known lists well-known vendors and public datasets by a stable id, found by a dictionary over the full text where the sentence says the data is used; it is independent of the model and covers only names in the dictionary.","flags":"transaction_costs.modeled, results.evaluation_type and results.out_of_sample.method are platform classifications (structured-decision models); see https://thequant.space/score-guide/#penalty-flags","comparisons":"supports / contradicts / qualifies are a language model's reading of two papers' quoted findings, restricted to closely related papers that share no author. They are pointers to read, not verified replications, and coverage is partial.","implementation":"code_url is a repository the paper itself presents as its own (rule-scored, ambiguous cases judged by a model), checked for liveness when it was recorded."},"docs":"https://thequant.space/agents/"}