A Hybrid Framework for Stock Price Forecasting Using Metaheuristic Feature Selection Approaches and Transformer Models Enhanced by Temporal Embedding and Attention Pruning
Applied AI Letters · 2026-02 · 7 (1)
DOI: 10.1002/ail2.70018 ↗Kurz gefasst
Fachartikel in der Zeitschrift Applied AI Letters, online erschienen am 08.01.2026. Verfasst von Amirhossein Malakouti Semnani und 3 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref) und nennt 27 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Accurately predicting stock prices remains a major challenge in financial analytics due to the complexity and noise inherent in market data. Feature selection plays a critical role in improving both computational efficiency and predictive performance. In this study, we introduce a novel hybrid framework that integrates metaheuristic feature‐selection algorithms with an enhanced transformer‐based prediction model fine‐tuned using temporal embedding and adaptive attention pruning. We evaluate and compare the effectiveness of three nature‐inspired metaheuristic algorithms: bat algorithm (BAT), gray wolf optimization (GWO), and beluga whale optimization (BWO) for selecting the most informative features from a time‐series stock dataset. After feature selection, the optimal subsets are fed into our modified transformer equipped with temporal embeddings and adaptive attention pruning. Extensive experiments conducted on the Bharat Heavy Electricals Limited (BHEL) dataset show that the proposed hybrid framework outperforms traditional methods in terms of predictive accuracy. Among the evaluated approaches, the combination of BWO and the fine‐tuned transformer achieves the best performance, yielding a Test RMSE of 0.0030 and a Test MAPE of 0.0108, demonstrating the superiority of BWO in identifying relevant features. This work provides a comprehensive comparative analysis of hybrid metaheuristic–deep learning models for stock price prediction and offers a foundation for integrating more explainable and scalable AI techniques into financial forecasting.
Zitieren
APA
Semnani, A. M., Kordrostami, S., Sheikhani, A. R., & Moattar, M. H. (2026). A Hybrid Framework for Stock Price Forecasting Using Metaheuristic Feature Selection Approaches and Transformer Models Enhanced by Temporal Embedding and Attention Pruning. Applied AI Letters, 7(1). https://doi.org/10.1002/ail2.70018
Vancouver
Semnani AM, Kordrostami S, Sheikhani AR, Moattar MH. A Hybrid Framework for Stock Price Forecasting Using Metaheuristic Feature Selection Approaches and Transformer Models Enhanced by Temporal Embedding and Attention Pruning. Applied AI Letters. 2026;7(1). doi:10.1002/ail2.70018
BibTeX
@article{Semnani2026,
author = {Semnani, Amirhossein Malakouti and Kordrostami, Sohrab and Sheikhani, Amirhossein Refahi and Moattar, Mohammad Hossein},
title = {A Hybrid Framework for Stock Price Forecasting Using Metaheuristic Feature Selection Approaches and Transformer Models Enhanced by Temporal Embedding and Attention Pruning},
journal = {Applied AI Letters},
year = {2026},
volume = {7},
number = {1},
doi = {10.1002/ail2.70018}
}
EUVIMED