Yuanyuan Zhang, Bo Liang, Song Feng, Wei Dai, Shoulin Wei
{"title":"Solar flare forecasting based on swin transformer and temporal convolutional networks","authors":"Yuanyuan Zhang, Bo Liang, Song Feng, Wei Dai, Shoulin Wei","doi":"10.1007/s10509-025-04485-w","DOIUrl":null,"url":null,"abstract":"<div><p>Solar flares, intense solar eruptions, discharge electromagnetic radiation and energetic particles that may have major consequences for both space weather and Earth’s atmospheric conditions. Therefore, developing high-precision forecasting models is crucial. In this paper, we propose a solar flare prediction model, which integrates the Swin Transformer with a TCN augmented by a global attention mechanism, named SwinTCN-Att, for predicting whether ≥C- and ≥M-class flare events will erupt in the solar active regions (ARs) in the next 24 hours. We collected magnetogram data from solar ARs obtained from the Space Weather Helioseismic and Magnetic Imager Active Region Patch (SHARP) dataset, spanning from May 2010 to December 2019, and selected 16 magnetic field feature parameters from the SHARP data. The construction of the model is carried out in two stages: first, the spatial characteristics of the magnetogram are captured using the Swin Transformer; next, these spatial features are integrated with 16 magnetic field parameters. Temporal features are then derived using TCN with a global attention mechanism to predict solar flares. Then, following model training and testing, we evaluated performance using five different assessment metrics, with the True Skill Statistic (TSS) serving as the primary evaluation metric. The results show that the TSS scores achieved were 0.825 ± 0.042 for ≥C-class flares and 0.879 ± 0.025 for ≥M-class flares, marking a significant improvement over previous models. These results demonstrate that the proposed SwinTCN-Att model effectively integrates relevant solar flare information, combines the strengths of both individual models, and captures solar flare evolution features, achieving superior predictive performance.</p></div>","PeriodicalId":8644,"journal":{"name":"Astrophysics and Space Science","volume":"370 9","pages":""},"PeriodicalIF":1.8000,"publicationDate":"2025-09-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Astrophysics and Space Science","FirstCategoryId":"101","ListUrlMain":"https://link.springer.com/article/10.1007/s10509-025-04485-w","RegionNum":4,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"ASTRONOMY & ASTROPHYSICS","Score":null,"Total":0}
引用次数: 0
Abstract
Solar flares, intense solar eruptions, discharge electromagnetic radiation and energetic particles that may have major consequences for both space weather and Earth’s atmospheric conditions. Therefore, developing high-precision forecasting models is crucial. In this paper, we propose a solar flare prediction model, which integrates the Swin Transformer with a TCN augmented by a global attention mechanism, named SwinTCN-Att, for predicting whether ≥C- and ≥M-class flare events will erupt in the solar active regions (ARs) in the next 24 hours. We collected magnetogram data from solar ARs obtained from the Space Weather Helioseismic and Magnetic Imager Active Region Patch (SHARP) dataset, spanning from May 2010 to December 2019, and selected 16 magnetic field feature parameters from the SHARP data. The construction of the model is carried out in two stages: first, the spatial characteristics of the magnetogram are captured using the Swin Transformer; next, these spatial features are integrated with 16 magnetic field parameters. Temporal features are then derived using TCN with a global attention mechanism to predict solar flares. Then, following model training and testing, we evaluated performance using five different assessment metrics, with the True Skill Statistic (TSS) serving as the primary evaluation metric. The results show that the TSS scores achieved were 0.825 ± 0.042 for ≥C-class flares and 0.879 ± 0.025 for ≥M-class flares, marking a significant improvement over previous models. These results demonstrate that the proposed SwinTCN-Att model effectively integrates relevant solar flare information, combines the strengths of both individual models, and captures solar flare evolution features, achieving superior predictive performance.
期刊介绍:
Astrophysics and Space Science publishes original contributions and invited reviews covering the entire range of astronomy, astrophysics, astrophysical cosmology, planetary and space science and the astrophysical aspects of astrobiology. This includes both observational and theoretical research, the techniques of astronomical instrumentation and data analysis and astronomical space instrumentation. We particularly welcome papers in the general fields of high-energy astrophysics, astrophysical and astrochemical studies of the interstellar medium including star formation, planetary astrophysics, the formation and evolution of galaxies and the evolution of large scale structure in the Universe. Papers in mathematical physics or in general relativity which do not establish clear astrophysical applications will no longer be considered.
The journal also publishes topically selected special issues in research fields of particular scientific interest. These consist of both invited reviews and original research papers. Conference proceedings will not be considered. All papers published in the journal are subject to thorough and strict peer-reviewing.
Astrophysics and Space Science features short publication times after acceptance and colour printing free of charge.