Next Article in Journal
U2-LFOR: A Two-Stage U2 Network for Light-Field Occlusion Removal
Previous Article in Journal
A Novel Method for Virtual Real-Time Cumuliform Fluid Dynamics Simulation Using Deep Recurrent Neural Networks
Previous Article in Special Issue
Decentralized Energy Swapping for Sustainable Wireless Sensor Networks Using Blockchain Technology
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Stock Price Prediction Using FinBERT-Enhanced Sentiment with SHAP Explainability and Differential Privacy

by
Linyan Ruan
and
Haiwei Jiang
*
School of International Trade and Economics, Central University of Finance and Economics, Beijing 102206, China
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(17), 2747; https://doi.org/10.3390/math13172747
Submission received: 15 July 2025 / Revised: 4 August 2025 / Accepted: 11 August 2025 / Published: 26 August 2025

Abstract

Stock price forecasting remains a central challenge in financial modeling due to the non-stationarity, noise, and high dimensionality of market dynamics, as well as the growing importance of unstructured textual information. In this work, we propose a multimodal prediction framework that combines FinBERT-based financial sentiment extraction with technical and statistical indicators to forecast short-term stock price movement. Contextual sentiment signals are derived from financial news headlines using FinBERT, a domain-specific transformer model fine-tuned on annotated financial text. These signals are aggregated and fused with price- and volatility-based features, forming the input to a gradient-boosted decision tree classifier (XGBoost). To ensure interpretability, we employ SHAP (SHapley Additive exPlanations), which decomposes each prediction into additive feature attributions while satisfying game-theoretic fairness axioms. In addition, we integrate differential privacy into the training pipeline to ensure robustness against membership inference attacks and protect proprietary or client-sensitive data. Empirical evaluations across multiple S&P 500 equities from 2018–2023 demonstrate that our FinBERT-enhanced model consistently outperforms both technical-only and lexicon-based sentiment baselines in terms of AUC, F1-score, and simulated trading profitability. SHAP analysis confirms that FinBERT-derived features rank among the most influential predictors. Our findings highlight the complementary value of domain-specific NLP and privacy-preserving machine learning in financial forecasting, offering a principled, interpretable, and deployable solution for real-world quantitative finance applications.
Keywords: machine lrarning; privacy protection; stock prediction machine lrarning; privacy protection; stock prediction

Share and Cite

MDPI and ACS Style

Ruan, L.; Jiang, H. Stock Price Prediction Using FinBERT-Enhanced Sentiment with SHAP Explainability and Differential Privacy. Mathematics 2025, 13, 2747. https://doi.org/10.3390/math13172747

AMA Style

Ruan L, Jiang H. Stock Price Prediction Using FinBERT-Enhanced Sentiment with SHAP Explainability and Differential Privacy. Mathematics. 2025; 13(17):2747. https://doi.org/10.3390/math13172747

Chicago/Turabian Style

Ruan, Linyan, and Haiwei Jiang. 2025. "Stock Price Prediction Using FinBERT-Enhanced Sentiment with SHAP Explainability and Differential Privacy" Mathematics 13, no. 17: 2747. https://doi.org/10.3390/math13172747

APA Style

Ruan, L., & Jiang, H. (2025). Stock Price Prediction Using FinBERT-Enhanced Sentiment with SHAP Explainability and Differential Privacy. Mathematics, 13(17), 2747. https://doi.org/10.3390/math13172747

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop