Authors Amjed Abdulghani Salih AlhammadiComputer Science Department, Faculty of Sciences and Fine Arts, Arts, Sciences and Technology University in Lebanon Abstract Stock price prediction remains an elusive problem due to the non-linearity and dynamic nature of the financial markets. Statistical models such as the Auto-Regressive Integrated Moving Average (ARIMA) have been established to be widely applicable but tend to overlook short-term fluctuations and complex interdependencies between stock price movements. In this paper, we propose an attention-based Long Short-Term Memory (Attention-LSTM) model and contrast its prediction accuracy with ARIMA, optimised ARIMA, and simple LSTM across multiple trading datasets. Our findings depict that Attention-LSTM strictly performs the best by achieving the minimum Root Mean Squared Error (RMSE) against all other models in forecasting stock prices. Hyperparameter-tuned ARIMA is more precise than normal ARIMA but not as precise as deep learning models. LSTM can effectively capture temporal relationships and reduce errors in predictions, further enhancing forecast precision by dynamically weighing historical data through attention mechanisms by Attention-LSTM. Results corroborate the current literature on AI-based stock forecasting, confirming the superiority of deep learning models over statistical models. Future research will explore hybrid AI models, sentiment-aware prediction, and reinforcement learning-based trading regulations to further enhance stock price forecasting accuracy. The study confirms that attention-based deep learning models have a robust architecture for financial forecasting, resulting in AI-driven decision-making in stock market analysis. Keywords Stock market prediction Attention-LSTM LSTM ARIMA Optimised ARIMA deep learning time series forecasting financial markets Citation of this Article Amjed Abdulghani Salih Alhammadi. (2025). Enhancing Stock Market Prediction Using Attention-Based LSTM Models and Classical Models. Journal of Artificial Intelligence and Emerging Technologies. 2(4), 25-32. Article DOI: https://doi.org/10.47001/JAIET/2025.204005 Licence Copyright (c) 2026 Journal of Artificial Intelligence and Emerging Technologies. This work is licensed under a Creative Commons Attribution Non Commercial 4.0 International Licence. References Dakalbab, F., Talib, M. A., Nassir, Q., & Ishak, T. (2024). Artificial intelligence techniques in financial trading: A systematic literature review. Journal of King Saud University-Computer and Information Sciences, 102015.Kotecha, N. (2025). Artificial Intelligence in the Stock Market: The Trends and Challenges Regarding AI-Driven Investments. Open Journal of Business and Management, 13(2), 709-734.Bao, W., Cao, Y., Yang, Y., Che, H., Huang, J., & Wen, S. (2024). Data-driven stock forecasting models based on neural networks: A review. Information Fusion, 102616.El Hajj, M., & Hammoud, J. (2023). Unveiling the influence of artificial intelligence and machine learning on financial markets: A comprehensive analysis of AI applications in trading, risk management, and financial operations. Journal of Risk and Financial Management, 16(10), 434.Muhammad, D., Ahmed, I., Naveed, K., & Bendechache, M. (2024). An explainable deep learning approach for stock market trend prediction. Heliyon, 10(21).Yaiprasert, C., & Hidayanto, A. N. (2024). AI-powered ensemble machine learning to optimize cost strategies in logistics business. International Journal of Information Management Data Insights, 4(1), 100209.Mienye, E., Jere, N., Obaido, G., Mienye, I. D., &Aruleba, K. (2024). Deep Learning in Finance: A survey of Applications and techniques. AI, 5(4), 2066.Eyu, J. M., Yau, K. L. A., Liu, L., & Chong, Y. W. (2024). Reinforcement learning in sentiment analysis: a review and future directions. Artificial Intelligence Review, 58(1), 6.Addy, W. A., Ajayi-Nifise, A. O., Bello, B. G., Tula, S. T., Odeyem, O., & Falaiye, T. (2024). Algorithmic trading and ai: A review of strategies and market impact. World Journal of Advanced Engineering Technology and Sciences, 11(1), 258-267.Salama, R. (2025). Integrating spotted hyena optimization technique with generative artificial intelligence for time series forecasting. Expert Systems, 42(2).Mahjouby, M. E., Bennani, M. T., Lamrini, M., Bossoufi, B., Alghamdi, T. A. H., & Far, M. E. (2024). Predicting market performance using machine and deep learning techniques. IEEE Access, 12, 82033-82040.Sharma, D. K., Hota, H. S., Brown, K., & Handa, R. (2022). Integration of genetic algorithm with artificial neural network for stock market forecasting. International Journal of System Assurance Engineering and Management, 13, 828-841.Liu, H.-H., Shu, H.-J., & Chiu, W.-N. (2023). NoxTrader: LSTM-based stock return momentum prediction for quantitative trading. Advances in Artificial Intelligence and Machine Learning, 3(4), 1671-1684.Liu, Y., Xu, C., Hou, M., Liu, W., Bian, J., & Liu, Q. (2024). Digger-Guider: High-frequency factor extraction for stock trend prediction. IEEE Transactions on Knowledge and Data Engineering, 36(12), 7973-7985.Bareket, A., & Parv, B. (2024). Adaptive feature subset and dynamic trend indicators for medium-term stock market predictions: A 70 trading days forecasting approach. IEEE Access, 12, 84306-84322.Vancsura, L., &Bareith, T. (2023). Analysis of the performance of predictive models during Covid-19 and the Russian-Ukrainian war. Public Finance Quarterly, 69(2), 118-132.Safari, A., & Ghaemi, S. (2025). NeuroFuzzyMan: A hybrid neuro-fuzzy BiLSTM stacked ensemble model for financial forecasting and analysis: Dataset case studies on JPMorgan, AMZN, and TSLA. Expert Systems with Applications, 266.Patel, M., Jariwala, K., & Chattopadhyay, C. (2024). A hybrid relational approach toward stock price prediction and profitability. IEEE Transactions on Artificial Intelligence, 5(11), 5844-5854.Beniwal, M., Singh, A., & Kumar, N. (2024). Forecasting multistep daily stock prices for long-term investment decisions: A study of deep learning models on global indices. Engineering Applications of Artificial Intelligence, 129.Safari, A., & Badamchizadeh, M. A. (2023). Stock index forecasting using DACLAMNN: A new intelligent highly accurate hybrid ACLSTM/Markov neural network predictor. Cognitive Computation and Systems, 5(3), 181-194.Alzaman, C. (2025). Optimizing portfolio selection through stock ranking and matching: A reinforcement learning approach. Expert Systems with Applications, 269.Pai, N., Ilango, V., & Nithya, B. (2024). An optimal portfolio construction for asset management with back-test using PSO algorithm and PyPortfolioOpt in Indian stock market. International Journal of Intelligent Systems and Applications in Engineering, 12(2s), 352-361.Wang, J., & Chen, Z. (2024). SPCM: A machine learning approach for sentiment-based stock recommendation system. IEEE Access, 12, 14116-14129.Hung, M.-C., Chen, A.-P., & Yu, W.-T. (2024). AI-driven intraday trading: Applying machine learning and market activity for enhanced decision support in financial markets. IEEE Access, 12, 12953-12962.Khattak, B. H. A., Shafi, I., Khan, A. S., Flores, E. S., Lara, R. G., Samad, M. A., & Ashraf, I. (2023). A systematic survey of AI models in financial market forecasting for profitability analysis. IEEE Access, 11, 125359-125380.Edalatpanah, S. A., Hassani, F. S., Smarandache, F., Sorourkhah, A., Pamucar, D., & Cui, B. (2024). A hybrid time series forecasting method based on neutrosophic logic with applications in financial issues. Engineering Applications of Artificial Intelligence, 129.Wu, M.-C., Huang, S.-H., & Chen, A.-P. (2024). Momentum portfolio selection based on learning-to-rank algorithms with heterogeneous knowledge graphs. Applied Intelligence, 54(5), 4189-4209.Al-Khasawneh, M. A., Raza, A., Khan, S. U. R., & Khan, Z. (2024). Stock market trend prediction using deep learning approach. Computational Economics.Carta, S., Consoli, S., Podda, A. S., Recupero, D. R., & Stanciu, M. M. (2022). Statistical arbitrage powered by explainable artificial intelligence. Expert Systems with Applications, 206.Crow, J. (2021). Stock Market Dataset [Data set]. Kaggle. https://www.kaggle.com/datasets/jacksoncrow/stock-market-datasetFerniUkrit, M., Saranya, A., & Anurag, R. (2020). Stock market prediction using long short-term memory. In Artificial Intelligence and Evolutionary Computations in Engineering Systems (pp. 205-212). Springer Singapore.Li, Y., Li, L., Zhao, X., Ma, T., Zou, Y., & Chen, M. (2020, June). An attention-based LSTM model for stock price trend prediction using limit order books. In Journal of Physics: Conference Series (Vol. 1575, No. 1, p. 012124). IOP Publishing.Sunki, A., SatyaKumar, C., Narayana, G. S., Koppera, V., & Hakeem, M. (2024). Time series forecasting of stock market using ARIMA, LSTM and FB prophet. In MATEC Web of Conferences (Vol. 392, p. 01163). EDP Sciences.Nichani, R., Gasmi, L., Laiche, N., & Kabou, S. (2024). Optimizing financial time series predictions with hybrid ARIMA, LSTM, and XGBoost Models. Studies in Engineering and Exact Sciences, 5(2), e11188-e11188.