{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,29]],"date-time":"2026-03-29T18:00:46Z","timestamp":1774807246735,"version":"3.50.1"},"reference-count":60,"publisher":"MDPI AG","issue":"7","license":[{"start":{"date-parts":[[2025,7,7]],"date-time":"2025-07-07T00:00:00Z","timestamp":1751846400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Information"],"abstract":"<jats:p>Financial forecasting is a research and practical challenge, providing meaningful economic and strategic insights. While Machine Learning (ML) models are employed in various studies to examine the impact of technical and sentiment factors on financial markets forecasting, in this work, macroeconomic indicators are also combined to forecast the Standard &amp; Poor\u2019s (S&amp;P) 500 index. Initially, contextual data are scored using TextBlob and pre-trained DistilBERT-base-uncased models, and then a combined dataset is formed. Followed by preprocessing, feature engineering and selection techniques, three corresponding datasets are generated and their impact on future prices is examined, by employing ML models, such as Linear Regression (LR), Random Forest (RF), Gradient Boosting (GB), XGBoost, and Multi-Layer Perceptron (MLP). LR and MLP show robust results with high R2 scores, close to 0.998, and low error MSE and MAE rates, averaging at 350 and 13 points, respectively, across both training and test datasets, with technical indicators contributing the most to the prediction. While other models also perform very well under different dataset combinations, overfitting challenges are evident in the results, even after additional hyperparameter tuning. Potential limitations are highlighted, motivating further exploration and adaptation techniques in financial modeling that enhance predictive capabilities.<\/jats:p>","DOI":"10.3390\/info16070584","type":"journal-article","created":{"date-parts":[[2025,7,7]],"date-time":"2025-07-07T08:58:23Z","timestamp":1751878703000},"page":"584","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["Using Machine Learning on Macroeconomic, Technical, and Sentiment Indicators for Stock Market Forecasting"],"prefix":"10.3390","volume":"16","author":[{"given":"Michalis","family":"Patsiarikas","sequence":"first","affiliation":[{"name":"School of Science and Technology, International Hellenic University, 57001 Thessaloniki, Greece"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9361-8621","authenticated-orcid":false,"given":"George","family":"Papageorgiou","sequence":"additional","affiliation":[{"name":"School of Science and Technology, International Hellenic University, 57001 Thessaloniki, Greece"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8263-9024","authenticated-orcid":false,"given":"Christos","family":"Tjortjis","sequence":"additional","affiliation":[{"name":"School of Science and Technology, International Hellenic University, 57001 Thessaloniki, Greece"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2025,7,7]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Sonkavde, G., Dharrao, D.S., Bongale, A.M., Deokate, S.T., Doreswamy, D., and Bhat, S.K. (2023). Forecasting Stock Market Prices Using Machine Learning and Deep Learning Models: A Systematic Review, Performance Analysis and Discussion of Implications. Int. J. Financ. Stud., 11.","DOI":"10.3390\/ijfs11030094"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"126298","DOI":"10.1016\/j.eswa.2024.126298","article-title":"An Integrated Model of Sentiment Analysis and Quantitative Index Data for Predicting Stock Market Trends: A Case Study of Tehran Stock Exchange","volume":"269","author":"Mehrkian","year":"2025","journal-title":"Expert. Syst. Appl."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Shahi, T.B., Shrestha, A., Neupane, A., and Guo, W. (2020). Stock Price Forecasting with Deep Learning: A Comparative Study. Mathematics, 8.","DOI":"10.3390\/math8091441"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1","DOI":"10.61351\/mf.v1i1.2","article-title":"Forecasting the Equity Premium: Do Deep Neural Network Models Work?","volume":"1","author":"Zhou","year":"2023","journal-title":"Mod. Financ."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"98","DOI":"10.54097\/fbem.v5i2.1739","article-title":"Stock Prediction and Analysis Based on Support Vector Machine","volume":"5","author":"Hu","year":"2022","journal-title":"Front. Bus. Econ. Manag."},{"key":"ref_6","first-page":"2297","article-title":"Stock Price Prediction Using Technical Indicators: A Predictive Model Using Optimal Deep Learning","volume":"8","author":"Agrawal","year":"2019","journal-title":"Int. J. Recent Technol. Eng."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Chang, V., Xu, Q.A., Chidozie, A., and Wang, H. (2024). Predicting Economic Trends and Stock Market Prices with Deep Learning and Advanced Machine Learning Techniques. Electronics, 13.","DOI":"10.3390\/electronics13173396"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"100950","DOI":"10.1016\/j.measen.2023.100950","article-title":"Financial Stock Market Forecast Using Evaluated Linear Regression Based Machine Learning Technique","volume":"31","author":"Sangeetha","year":"2024","journal-title":"Meas. Sens."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Papageorgiou, G., Gkaimanis, D., and Tjortjis, C. (2024). Enhancing Stock Market Forecasts with Double Deep Q-Network in Volatile Stock Market Environments. Electronics, 13.","DOI":"10.3390\/electronics13091629"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Koukaras, P., Nousi, C., and Tjortjis, C. (2022). Stock Market Prediction Using Microblogging Sentiment Analysis and Machine Learning. Telecom, 3.","DOI":"10.3390\/telecom3020019"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Koukaras, P., Tsichli, V., and Tjortjis, C. (2021, January 26\u201328). Predicting Stock Market Movements with Social Media and Machine Learning. Proceedings of the International Conference on Web Information Systems and Technologies, WEBIST\u2014Proceedings, Online.","DOI":"10.5220\/0010712600003058"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Nousi, C., and Tjortjis, C. (2021, January 24\u201326). A Methodology for Stock Movement Prediction Using Sentiment Analysis on Twitter and StockTwits Data. Proceedings of the 6th South-East Europe Design Automation, Computer Engineering, Computer Networks and Social Media Conference, SEEDA-CECNSM 2021, Online.","DOI":"10.1109\/SEEDA-CECNSM53056.2021.9566242"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"34","DOI":"10.1086\/294743","article-title":"The Behavior of Stock-Market Prices","volume":"38","author":"Fama","year":"1965","journal-title":"J. Bus."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"383","DOI":"10.2307\/2325486","article-title":"Efficient Capital Markets: A Review of Theory and Empirical Work","volume":"25","author":"Fama","year":"1970","journal-title":"J. Financ."},{"key":"ref_15","unstructured":"Edwards, R.D., Magee, J., and Bassetti, W.H.C. (2012). Technical Analysis of Stock Trends, CRC Press."},{"key":"ref_16","first-page":"252","article-title":"The Dow Theory: An Explanation of Its Development and an Attempt to Define Its Usefulness as an Aid in Speculation","volume":"23","author":"Rhea","year":"1933","journal-title":"Am. Econ. Rev."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"11","DOI":"10.2307\/2980947","article-title":"The Analysis of Economic Time-Series-Part I: Prices","volume":"116","author":"Kendall","year":"1953","journal-title":"J. R. Stat. Soc. Ser. A"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Bing, L., Chan, K.C.C., and Ou, C. (2014, January 5\u20137). Public Sentiment Analysis in Twitter Data for Prediction of a Company\u2019s Stock Price Movements. Proceedings of the Proceedings\u201411th IEEE International Conference on E-Business Engineering, ICEBE 2014\u2014Including 10th Workshop on Service-Oriented Applications, Integration and Collaboration, SOAIC 2014 and 1st Workshop on E-Commerce Engineering, ECE 2014, Guangzhou, China.","DOI":"10.1109\/ICEBE.2014.47"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Cakra, Y.E., and Distiawan Trisedya, B. (2016, January 15\u201316). Stock Price Prediction Using Linear Regression Based on Sentiment Analysis. Proceedings of the ICACSIS 2015\u20142015 International Conference on Advanced Computer Science and Information Systems, Proceedings, Malang, Indonesia.","DOI":"10.1109\/ICACSIS.2015.7415179"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Gupta, A., Bhatia, P., Dave, K., and Jain, P. (2019, January 8\u20139). Stock market prediction using data mining techniques. Proceedings of the 2nd International Conference on Advances in Science and Technology.","DOI":"10.2139\/ssrn.3370789"},{"key":"ref_21","first-page":"67","article-title":"Stock Trend Prediction Using News Sentiment Analysis","volume":"8","author":"Joshi","year":"2016","journal-title":"Int. J. Comput. Sci. Inf. Technol."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"87110","DOI":"10.1109\/ACCESS.2024.3399548","article-title":"Stock Market Prediction With Transductive Long Short-Term Memory and Social Media Sentiment Analysis","volume":"12","author":"Peivandizadeh","year":"2024","journal-title":"IEEE Access"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"5248","DOI":"10.1109\/TSMC.2024.3402160","article-title":"A Novel Market Sentiment Analysis Model for Forecasting Stock and Cryptocurrency Returns","volume":"54","author":"Gradojevic","year":"2024","journal-title":"IEEE Trans. Syst. Man. Cybern. Syst."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Jun Gu, W., Hao Zhong, Y., Zun Li, S., Song Wei, C., Ting Dong, L., Yue Wang, Z., and Yan, C. (2024, January 15). Predicting Stock Prices with FinBERT-LSTM: Integrating News Sentiment Analysis. Proceedings of the 2024 8th International Conference on Cloud and Big Data Computing, New York, NY, USA.","DOI":"10.1145\/3694860.3694870"},{"key":"ref_25","first-page":"1","article-title":"Text Opinion Mining to Analyze News for Stock Market Prediction","volume":"6","author":"Kim","year":"2014","journal-title":"Int. J. Adv. Soft Comput. Its Appl."},{"key":"ref_26","first-page":"100","article-title":"A Proposed Model for Stock Price Prediction Based on Financial News","volume":"19","author":"Selimi","year":"2019","journal-title":"SSRN Electron. J."},{"key":"ref_27","first-page":"22","article-title":"Predicting Stock Market Behavior Using Data Mining Technique and News Sentiment Analysis","volume":"9","author":"Khedr","year":"2017","journal-title":"Int. J. Intell. Syst. Appl."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"685","DOI":"10.1016\/j.dss.2013.02.006","article-title":"Automated News Reading: Stock Price Prediction Based on Financial News Using Context-Capturing Features","volume":"55","author":"Hagenau","year":"2013","journal-title":"Decis. Support. Syst."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Yasef Kaya, M.I., and Elif Karsligil, M. (2010, January 17\u201319). Stock Price Prediction Using Financial News Articles. Proceedings of the Proceedings\u20142010 2nd IEEE International Conference on Information and Financial Engineering, ICIFE 2010, Chongqing, China.","DOI":"10.1109\/ICIFE.2010.5609404"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Shynkevich, Y., McGinnity, T.M., Coleman, S., and Belatreche, A. (2015, January 28). Stock Price Prediction Based on Stock-Specific and Sub-Industry-Specific News Articles. Proceedings of the International Joint Conference on Neural Networks, Online.","DOI":"10.1109\/IJCNN.2015.7280517"},{"key":"ref_31","first-page":"400","article-title":"Using Association Rule Mining: Stock Market Events Prediction from Financial News","volume":"4","author":"Umbarkar","year":"2015","journal-title":"Int. J. Sci. Res. (IJSR)"},{"key":"ref_32","first-page":"2","article-title":"International Journal of Emerging Technology and Advanced Engineering Using Text Mining and Rule Based Technique for Prediction of Stock Market Price","volume":"4","author":"Shriwas","year":"2014","journal-title":"Int. J. Emerg. Technol. Adv. Eng."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Cristescu, M.P., Mara, D.A., Neri\u0219anu, R.A., Culda, L.C., and Maniu, I. (2023). Analyzing the Impact of Financial News Sentiments on Stock Prices\u2014A Wavelet Correlation. Mathematics, 11.","DOI":"10.20944\/preprints202311.0066.v1"},{"key":"ref_34","first-page":"139","article-title":"Stock Market Prediction by Applying Big Data Mining","volume":"40","author":"Alshammari","year":"2022","journal-title":"Arab Gulf J. Sci. Res."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"552","DOI":"10.1016\/j.najef.2018.06.013","article-title":"Predicting the Direction of Stock Market Prices Using Tree-Based Classifiers","volume":"47","author":"Basak","year":"2019","journal-title":"North. Am. J. Econ. Financ."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"807","DOI":"10.1016\/j.asoc.2011.10.009","article-title":"A Hybrid Stock Selection Model Using Genetic Algorithms and Support Vector Regression","volume":"12","author":"Huang","year":"2012","journal-title":"Appl. Soft Comput. J."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"22","DOI":"10.20965\/jaciii.2014.p0022","article-title":"Stock Market Trend Prediction Based on Text Mining of Corporateweb and Time Series Data","volume":"18","author":"Thanh","year":"2014","journal-title":"J. Adv. Comput. Intell. Intell. Inform."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"46","DOI":"10.1016\/j.eneco.2016.06.004","article-title":"Oil Price Volatility Forecast with Mixture Memory GARCH","volume":"58","author":"Klein","year":"2016","journal-title":"Energy Econ."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"679","DOI":"10.1007\/s10479-021-04187-w","article-title":"Forecasting Gold Price with the XGBoost Algorithm and SHAP Interaction Values","volume":"334","author":"Viviani","year":"2024","journal-title":"Ann. Oper. Res."},{"key":"ref_40","first-page":"100320","article-title":"Predicting Stock Market Index Using LSTM","volume":"9","author":"Bhandari","year":"2022","journal-title":"Mach. Learn. Appl."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"105821","DOI":"10.1016\/j.frl.2024.105821","article-title":"Time Series Forecasting of Stock Market Indices Based on DLWR-LSTM Model","volume":"68","author":"Yao","year":"2024","journal-title":"Financ. Res. Lett."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Tsai, P.F., Gao, C.H., and Yuan, S.M. (2023). Stock Selection Using Machine Learning Based on Financial Ratios. Mathematics, 11.","DOI":"10.3390\/math11234758"},{"key":"ref_43","first-page":"292","article-title":"Forecasting the Changes in Daily Stock Prices in Shanghai Stock Exchange Using Neural Network and Ordinary Least Squares Regression","volume":"17","author":"Prime","year":"2020","journal-title":"Investig. Manag. Financ. Innov."},{"key":"ref_44","unstructured":"(2025, February 21). What Does the S&P 500 Index Measure and How Is It Calculated?. Available online: https:\/\/www.investopedia.com\/ask\/answers\/040215\/what-does-sp-500-index-measure-and-how-it-calculated.asp."},{"key":"ref_45","unstructured":"(2025, February 21). What Is the History of the S&P 500 Stock Index?. Available online: https:\/\/www.investopedia.com\/ask\/answers\/041015\/what-history-sp-500.asp."},{"key":"ref_46","unstructured":"Damodaran, A. (2002). Investment Valuation: Tools and Techniques for Determining the Value of Any Asset, Wiley."},{"key":"ref_47","unstructured":"(2025, February 21). Purchasing Managers\u2019 Index (PMI) Definition and How It Works. Available online: https:\/\/www.investopedia.com\/terms\/p\/pmi.asp."},{"key":"ref_48","doi-asserted-by":"crossref","first-page":"1593","DOI":"10.1093\/qje\/qjw024","article-title":"Measuring Economic Policy Uncertainty","volume":"131","author":"Baker","year":"2016","journal-title":"Q. J. Econ."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"29","DOI":"10.1257\/0895330041371222","article-title":"Consumer Confidence and Consumer Spending","volume":"18","author":"Ludvigson","year":"2004","journal-title":"J. Econ. Perspect."},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"27","DOI":"10.1257\/aer.104.1.27","article-title":"Risk Shocks","volume":"104","author":"Christiano","year":"2014","journal-title":"Am. Econ. Rev."},{"key":"ref_51","unstructured":"Murphy, J. (2000). Trend Forecasting with Technical Analysis, Traders Library."},{"key":"ref_52","unstructured":"Loria, S. (2025, February 23). TextBlob: Simplified Text Processing. Available online: https:\/\/textblob.readthedocs.io\/en\/dev\/."},{"key":"ref_53","unstructured":"(2025, February 23). Distilbert\/Distilbert-Base-Uncased-Finetuned-Sst-2-English Hugging Face. Available online: https:\/\/huggingface.co\/distilbert\/distilbert-base-uncased-finetuned-sst-2-english."},{"key":"ref_54","doi-asserted-by":"crossref","unstructured":"Hutto, C.J., and Gilbert, E. (2014, January 1\u20134). VADER: A Parsimonious Rule-Based Model for Sentiment Analysis of Social Media Text. Proceedings of the 8th International Conference on Weblogs and Social Media, ICWSM 2014, Ann Arbor, MI, USA.","DOI":"10.1609\/icwsm.v8i1.14550"},{"key":"ref_55","unstructured":"(2025, February 23). RandomizedSearchCV\u2014Scikit-Learn 1.6.1 Documentation. Available online: https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.model_selection.RandomizedSearchCV.html."},{"key":"ref_56","unstructured":"(2025, February 23). GridSearchCV\u2014Scikit-Learn 1.6.1 Documentation. Available online: https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.model_selection.GridSearchCV.html."},{"key":"ref_57","unstructured":"G\u00e9ron, A. (2019). Hands-on Machine Learning with Scikit-Learn, Keras and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems, O\u2019Reilly Media."},{"key":"ref_58","doi-asserted-by":"crossref","unstructured":"Chen, T., and Guestrin, C. (2016, January 13\u201317). XGBoost: A Scalable Tree Boosting System. Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA.","DOI":"10.1145\/2939672.2939785"},{"key":"ref_59","first-page":"487","article-title":"Principal Component Analysis, Second Edition","volume":"30","author":"Jolliffe","year":"2002","journal-title":"Encycl. Stat. Behav. Sci."},{"key":"ref_60","doi-asserted-by":"crossref","first-page":"175","DOI":"10.1016\/0304-405X(86)90010-3","article-title":"Term Premiums and Default Premiums in Money Markets","volume":"17","author":"Fama","year":"1986","journal-title":"J. Financ. Econ."}],"container-title":["Information"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2078-2489\/16\/7\/584\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T18:05:57Z","timestamp":1760033157000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2078-2489\/16\/7\/584"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,7,7]]},"references-count":60,"journal-issue":{"issue":"7","published-online":{"date-parts":[[2025,7]]}},"alternative-id":["info16070584"],"URL":"https:\/\/doi.org\/10.3390\/info16070584","relation":{},"ISSN":["2078-2489"],"issn-type":[{"value":"2078-2489","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,7,7]]}}}