CNN-transformer-based model explained by SHAP and multi-head attention weights for time series forecasting

dc.contributor.authorStefenon, S. F.
dc.contributor.authorMatos-Carvalho, J. P.
dc.contributor.authorLeithardt, V. R. Q.
dc.contributor.authorYow, K.-C.
dc.date.accessioned2026-10-28T13:17:55Z
dc.date.issued2026
dc.date.updated2026-10-28T13:17:31Z
dc.description.abstractConvolutional 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.eng
dc.identifier.citationStefenon, S. F., Matos-Carvalho, J. P., Leithardt, V. R. Q., & Yow, K.-C. (2026). CNN-transformer-based model explained by SHAP and multi-head attention weights for time series forecasting. Scientific Reports, 16, Article 33955. https://doi.org/10.1038/s41598-026-63013-0
dc.identifier.doi10.1038/s41598-026-63013-0
dc.identifier.issn2045-2322
dc.identifier.urihttps://hdl.handle.net/10071/38787
dc.language.isoeng
dc.peerreviewedyes
dc.publisherNature Research
dc.relationUIDP/04466/2025
dc.relationDDG-2024-00035
dc.relationhttps://doi.org/10.54499/UID/PRR/00408/2025
dc.relationhttps://doi.org/10.54499/UID/00408/2025
dc.relationUIDB/04466/2025
dc.relation2023.15441.TENURE.051/CP00003/CT00029
dc.rightsopenAccess
dc.subjectAttention mechanismeng
dc.subjectConvolutionseng
dc.subjectDeep learningeng
dc.subjectExplainable artificial intelligenceeng
dc.subjectTime series forecastingeng
dc.subject.fosDomínio/Área Científica::Engenharia e Tecnologia::Outras Engenharias e Tecnologiaspor
dc.subject.fosDomínio/Área Científica::Engenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e Informáticapor
dc.titleCNN-transformer-based model explained by SHAP and multi-head attention weights for time series forecastingeng
dc.typearticle
dc.volume16
iscte.identifier.cienciahttps://ciencia.iscte-iul.pt/id/ci-pub-119367
iscte.journalScientific Reports
iscte.subject.odsTrabalho digno e crescimento económicopor
iscte.subject.odsCidades e comunidades sustentáveispor
iscte.subject.odsProdução e consumo sustentáveispor

Ficheiros

Pacote original

A mostrar 1 - 1 de 1
A carregar...
Nome:
article_119367.pdf
Tamanho:
4.25 MB
Formato:
Adobe Portable Document Format
Descrição:
Versão Editora