Author
Listed:
- Imad Talhartit
(Université Hassan 1er [Settat], Ecole Nationale de Commerce et Gestion - Settat, Laboratory of Research in Finance, Audit and Governance of Organizations (LARFAGO) - National School of Business and Management – ENCG Settat, Hassan The First University, Settat, Morocco.)
- Sanae Ait Jillali
(Université Hassan 1er [Settat], Ecole Nationale de Commerce et Gestion - Settat, Laboratory of Research in Finance, Audit and Governance of Organizations (LARFAGO) - National School of Business and Management – ENCG Settat, Hassan The First University, Settat, Morocco.)
- Mounime El Kabbouri
(Université Hassan 1er [Settat], Ecole Nationale de Commerce et Gestion - Settat, Laboratory of Research in Finance, Audit and Governance of Organizations (LARFAGO) - National School of Business and Management – ENCG Settat, Hassan The First University, Settat, Morocco.)
Abstract
This study is part of an empirical and quantitative approach aimed at improving stock market fluctuation forecasting through the application of artificial intelligence models. More specifically, it evaluates the performance of two methods based on Long Short-Term Memory (LSTM) neural networks, one of the most powerful algorithms for analyzing financial time series. The first method is grounded in a classic LSTM model, while the second incorporates hyperparameter optimization using the Particle Swarm Optimization (PSO) metaheuristic method, allowing for better convergence and enhanced prediction accuracy. The study is conducted on ten stocks representing the US S&P 500 index, with historical data spanning several decades, collected via the Investing.com and Yahoo Finance platforms. The empirical results demonstrate a clear superiority of the LSTM-PSO model regarding predictive accuracy, with significant reductions in errors (MSE, RMSE, MAE, MSLE, and RMSLE) compared to the traditional model. These findings emphasize the advantages of combining artificial intelligence and algorithmic optimization for handling complex financial data. In the global context of digitization and automation of investment decisions, this research contributes significantly to the development of reliable predictive systems. Finally, the study raises the question of whether this methodological framework could be effectively adapted to emerging markets, such as the Moroccan Stock Market, where financial environments are characterized by lower trading volumes, different volatility patterns, and more limited historical data. This opens up avenues for future research into the challenges and opportunities of applying advanced AI-based forecasting models in less mature financial markets.
Suggested Citation
Imad Talhartit & Sanae Ait Jillali & Mounime El Kabbouri, 2025.
"Enhancing Stock Price Forecasting with LSTM Networks: A Comparative Study of Classic and PSO-Optimized Models on S&P 500 Stocks,"
Post-Print
hal-05177777, HAL.
Handle:
RePEc:hal:journl:hal-05177777
DOI: 10.5539/ijef.v17n8p87
Note: View the original document on HAL open archive server: https://hal.science/hal-05177777v1
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hal:journl:hal-05177777. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: CCSD (email available below). General contact details of provider: https://hal.archives-ouvertes.fr/ .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.