Scientific journal paper Q1
CNN-transformer-based model explained by SHAP and multi-head attention weights for time series forecasting
Stefano Frizzo Stefenon (Stefenon, S. F.); João Pedro Matos-Carvalho (Matos-Carvalho, J. P.); Valderi Leithardt (Leithardt, V. R. Q.); Kin-Choong Yow (Yow, K.-C.);
Journal Title
Scientific Reports
Year (definitive publication)
2026
Language
English
Country
United Kingdom
More Information
Web of Science®

Times Cited: 1

(Last checked: 2026-11-12 18:54)

View record in Web of Science®

Scopus

Times Cited: 1

(Last checked: 2026-11-11 12:18)

View record in Scopus

Google Scholar

Times Cited: 2

(Last checked: 2026-11-12 15:58)

View record in Google Scholar

This publication is not indexed in Overton

Abstract
Convolutional Neural Networks (CNNs) and transformer architectures offer strengths for modeling temporal data: CNNs excel at capturing local patterns and translational invariances, while transformers effectively model long-range dependencies via self-attention. This paper proposes a hybrid architecture integrating convolutional feature extraction with a multi-head attention backbone to enhance multivariate time series forecasting. The CNN module first applies a hierarchy of one-dimensional convolutional layers to distill salient local patterns from raw input sequences, reducing noise and dimensionality. The resulting feature maps are then fed into the prediction model, which applies multi-head attention to capture both short- and long-term dependencies and to weigh relevant covariates adaptively. We evaluate the proposed CNN-transformer-based model on a hydroelectric natural flow time series dataset. Experimental results demonstrate that the proposed model outperforms well-established deep learning models, with a mean absolute percentage error of up to 2.2%. The explainability of the model is obtained by a proposed SHapley Additive exPlanations (SHAP) and Multi-Head Attention Weights (MHAW). Our novel architecture, named CNN-Transformer-SHAP-MHAW, is promising for applications requiring high-fidelity and multivariate time series forecasts.
Acknowledgements
--
Keywords
Attention mechanism,Convolutions,Deep learning,Explainable artificial intelligence,Time series forecasting
  • Other Engineering and Technology Sciences - Engineering and Technology
  • Electrical Engineering, Electronic Engineering, Information Engineering - Engineering and Technology
Funding Records
Funding Reference Funding Entity
UIDB/04466/2025 Fundação para a Ciência e a Tecnologia
UIDP/04466/2025 Fundação para a Ciência e a Tecnologia
https://doi.org/10.54499/UID/00408/2025 Fundação para a Ciência e a Tecnologia
https://doi.org/10.54499/UID/PRR/00408/2025 Fundação para a Ciência e a Tecnologia
2023.15441.TENURE.051/CP00003/CT00029 Fundação para a Ciência e a Tecnologia
DDG-2024-00035 Natural Sciences and Engineering Research Council of Canada (NSERC)

With the objective to increase the research activity directed towards the achievement of the United Nations 2030 Sustainable Development Goals, the possibility of associating scientific publications with the Sustainable Development Goals is now available in Ciência_Iscte. These are the Sustainable Development Goals identified by the author(s) for this publication. For more detailed information on the Sustainable Development Goals, click here.