Close Menu
    Facebook LinkedIn YouTube WhatsApp X (Twitter) Pinterest
    Trending
    • My Presbyond laser eye surgery experience: Was it worth it?
    • How your manage your team’s devices matters
    • xAI Adds 19 New Gas Turbines Despite Ongoing Lawsuit
    • iOS 27 Could Give Your iPhone a Custom Camera App and a ChatGPT-Like Siri, Finally
    • Neutralizing the Gigascale Problem: How to Solve the Physical Power Paradox of Extreme AI Training Loads
    • Service dogs control devices with new big blue button
    • Startups praise R&D reforms, warn on CGT overhaul
    • Elon Musk Had ‘Hair-Raising’ Idea of Passing OpenAI Onto His Kids, Sam Altman Says
    Facebook LinkedIn WhatsApp
    Times FeaturedTimes Featured
    Wednesday, May 13
    • Home
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    • More
      • AI
      • Robotics
      • Industries
      • Global
    Times FeaturedTimes Featured
    Home»Artificial Intelligence»Using Transformers to Forecast Incredibly Rare Solar Flares
    Artificial Intelligence

    Using Transformers to Forecast Incredibly Rare Solar Flares

    Editor Times FeaturedBy Editor Times FeaturedMay 11, 2026No Comments10 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email WhatsApp Copy Link


    Introduction (X-45)

    forecasting basically modifications each time we attempt to predict a really uncommon occasion. We should basically shift what we’re modelling to deal with tail occasions. From mannequin efficiency metrics and goal definition to the tail mannequin and the transformer output heads, rare-event forecasting is tough. Tough but price it.

    The Halloween storms of 2003 started as a disturbance on the Solar, a single darkish spot that created one of many strongest house climate occasions of the satellite tv for pc period. By late October to early November, a collection of monumental energetic areas churned throughout the photo voltaic disk. This launched highly effective flares and clouds of magnetized plasma in direction of Earth. This occasion introduced a uniquely aesthetic flair-up with radio-wave implications.

    Satellites malfunctioned, GPS and radio had been disrupted, and airways rerouted polar flights. In response to NOAA, energy grids worldwide had been affected, with some currents exceeding 100 amps, resulting in the Malmö Blackout in Sweden. At 20:07 UT, an influence outage hit the area, leaving roughly 50,000 clients with out electrical energy for 20 to 50 minutes.

    The Solar erupts with intense magnetic exercise, its corona glowing in excessive ultraviolet gentle as vivid energetic areas and a strong limb flare arc above the photo voltaic floor.
    Picture credit score: NASA / Photo voltaic Dynamics Observatory (SDO) / AIA. Public area

    A world shock, the occasion saturated GOES X-ray sensors, so the true measurement of the flare may very well be calculated solely by reconstruction. Typically referred to as X-45, after its Magnitude, 450 instances bigger than M-1, a medium flare. The desk under reveals the Flare Richter Scale.

    Photo voltaic flare courses are measured by peak smooth X-ray brightness at Earth. Every primary letter class is ten instances stronger than the one earlier than it. The quantity after the letter scales the flare inside that class: X45 is 45 instances stronger than X1, 450 instances stronger than M1, and 4,500 instances stronger than C1.

    The Prediction Downside

    A paradoxical drawback with catastrophes is that the extra catastrophic they’re, the rarer they are usually. Assume floods, snow-storms and avalanches. Each 50-year story occurs as soon as in fifty years. That is often a superb factor, however due to their rarity, they change into extremely arduous to foretell.

    There are a number of issues that make predicting rare-events a very fascinating problem in machine studying:

    1. Our metrics for mannequin analysis should change
    2. Options must be engineered from magnetism information
    3. Make a tail mannequin to particularly seize uncommon occasions
    4. Mix the tail mannequin with the total distribution mannequin utilizing a transformer

    A observe on accuracy, which is often a superb metric for binary classification. We may obtain 99% accuracy by lacking each single photo voltaic flare in 10,000 forecasts if we had solely 100 main flares. We may merely guess. It gained’t occur each single time.

    Accuracy = (10,000-100)/10,000 = 9900/10,000 = 0.99 = 99%

    True Positives = 0

    The Knowledge

    In the event you’re desirous about the place this information comes from, all the information we’ve on photo voltaic flares comes from an altogether totally different layer of the solar than the place the flare happens. The information we’ve on photo voltaic flares comes from the Photosphere, the solar’s first seen layer.

    Flares happen within the Corona and Chromosphere. The information is collected by the Photo voltaic Dynamics Observatory (SDO), a NASA spacecraft that constantly observes the Solar to observe its exercise. Utilizing the Helioseismic and Magnetic Imager (HMI).

    Photo voltaic flare forecasting measures the magnetic area most immediately on the photosphere, the Solar’s seen floor, whereas flare power launch happens larger within the corona. Photospheric sunspot and magnetic-field information are subsequently used to deduce the buildup of coronal magnetic stress that may result in reconnection and flares. Picture made with the assistance of Chat GPT

    Mannequin Enter

    Luckily, due to NASA, our satellite tv for pc’s development, deployment, and voyage to the Solar have already been accomplished, and we will now deal with our mannequin enter. A vector magnetogram estimates the magnetic area vector B. First observations are available in two flavours:

    From this place to begin, the Area Climate HMI Lively Area Patch does two issues:

    1. Localization
    2. Characteristic engineering

    means choosing energetic areas on the Solar (Localization) and computing magnetic parameters that higher describe the photo voltaic and magnetic construction (function engineering).

    The vital lesson right here is that, to handle how uncommon the occasion we are attempting to foretell is, we deal with gathering information from places the place it’s almost definitely to occur. We take our beginning measurement information on the magnetic fields and compute totally different options like:

    4 magnetic portions used to grasp flare-producing energetic areas: magnetic flux reveals how area traces join reverse sunspot polarities, electrical present traces energy-bearing flows alongside these fields, magnetic twist reveals helical winding inside a flux tube, and magnetic helicity describes the larger-scale linkage, braiding, and knotting of coronal magnetic fields. Picture made with the assistance of Chat GPT
    A photo voltaic flare begins when magnetic power accumulates in burdened area traces above a sunspot area. As the sphere reconnects, saved power is launched within the type of intense radiation, plasma eruptions, and post-flare magnetic loops. Picture made with the assistance of Chat GPT

    Our enter information change into a perform of time and engineered options:

    If our mannequin makes use of the previous 24 hours, and 9 engineered options our enter can be

    Mannequin Goal

    We’d as nicely make our goal extra exact now. We outline it because the chance of observing an M-1 class occasion within the subsequent 24 hours, given the magnetic historical past. Right here, the magnetic historical past can be our complete enter information.

    However there are lots of implicit design selections we’ve made that the next desk makes express.

    Discover that there are lots of choices when establishing our goal. This can be a main drawback when evaluating totally different fashions. It’s price noting that merely taking extra information will not be higher, as occasions that occurred additional previously are usually much less highly effective predictors of future occasions. This introduces a noise-to-signal drawback as regards to your coaching window.

    The Metric TSS

    To unravel the issue introduced earlier of getting a mannequin with 99% accuracy and 0 recall, we introduce a brand new statistic referred to as the True Talent Statistic (TSS), outlined because the distinction between the true constructive fee and the false constructive fee. TSS rewards true positives whereas additionally punishing false positives.

    Making a tail mannequin

    Due to flare rarity, if we use the next danger goal, we are going to discover that frequent occasions, the place no photo voltaic flare was current, dominate the loss time period. Uncommon occasions barely contribute, as they occur so little, regardless that they’re probably the most related to what we are attempting to foretell. The mannequin can change into excellent on the bulk of the distribution whereas studying little or no in regards to the excessive occasions, which we’re desirous about. This is the reason it is sensible to contemplate tailoring.

    Goal/Empirical Danger (what most of ML minimizes)

    We are able to extra precisely describe the issue by saying that our goal is frequency-weighted, which means that frequent occasions dominate the loss time period, whereas much less frequent (uncommon) occasions contribute the least, regardless that that’s what our mannequin must study.

    NASA’s Photo voltaic Dynamics Observatory captured the opening moments of an X4.9-class photo voltaic flare on Feb. 24, 2014, seen right here in a number of wavelengths as a vivid eruption on the Solar’s left limb. The flare peaked at 7:49 p.m. EST; loops of scorching plasma are seen above the energetic area within the corona. Credit score: NASA/SDO. Licence: NASA image-use coverage Public area.

    So our mannequin can study from principally uncommon occasions. We select a relentless threshold for a steady variable, akin to smooth X-ray flux, something that measures flare severity may work. We set our goal to the distinction between the brink and our noticed flare-severity variable, and use solely information from the tail of the distribution.

    Then the information we mannequin is:

    Utilizing Transformers

    We are able to now mix our unique mannequin and tail mannequin utilizing a transformer to attain a extra strong resolution, which ideally learns what occurs each under the brink for a uncommon occasion and above it. In different phrases, we wish the mannequin to study the origin of the discrete perform in addition to the form of extra danger outlined by the tail mannequin. For this, we will use transformers with totally different heads. A mannequin can start with magnetic historical past information and encode it right into a illustration h; separate heads can estimate totally different portions like flare chance, uncertainty tail exceedance and precursor sign.

    The classification head, which estimates the chance that our goal is one given our information, is commonly educated with the binary cross-entropy, maybe weighted to account for sophistication imbalance.

    We are able to use the Generalized Pareto Distribution (GPD), which supplies a compact mannequin for the excesses (our tail distribution). Right here, σ controls the size, and ξ controls the tail heaviness. The transformer produces a illustration of the latest photo voltaic states h maps that illustration into GPD parameters, so totally different magnetic histories indicate totally different tail distributions for one energetic area (sunspot).

    The total goal combines two forecasting duties. The classification time period teaches the mannequin to estimate whether or not a flare crosses the chosen threshold, whereas the tail time period teaches it what the surplus severity seems to be like after that threshold has been crossed. This issues as a result of the mannequin shouldn’t solely study “flare or no flare.” It also needs to learn the way giant the occasion is likely to be as soon as it enters the harmful a part of the distribution.

    Mixed loss
    Classification loss
    Weighted classification loss
    Sunspot AR 1302 on the Solar, photographed on September 24, 2011. NASA described the energetic area as producing giant photo voltaic flares throughout Photo voltaic Cycle 24.
    NASA, Sunspots 1302 Sep 2011 by NASA.jpg, September 24, 2011, through Wikimedia Commons. Public area

    Conclusion

    With regards to getting a superb forecast for a really uncommon occasion utilizing a transformer, it’s not sufficient to simply plug within the information and reduce the loss perform. With regards to predicting photo voltaic flares, localization and have engineering methods should first be utilized to our information. Then we have to specify a mannequin goal that may distinguish between constructive and damaging occasions. We’ve to decide on an applicable metric that each rewards true positives and penalizes false positives. Additionally, due to the large class imbalance, it is sensible to make a tail mannequin which makes use of the generalized Pareto distribution to mannequin exceedances past a threshold. These methods and loss features can be utilized as totally different heads of a transformer that’s able to each prediction and estimation, and likewise learns how giant an occasion is likely to be as soon as it enters a harmful a part of a distribution. What we get from that is improved predictive efficiency and a better-specified mannequin.


    Website | LinkedIn | GitHub

    Marco Hening Tallarico
    Creator



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Editor Times Featured
    • Website

    Related Posts

    Your First WebAssembly Program and Web App (Written, Tested, and Deployed Entirely in the Web Browser)

    May 12, 2026

    Hybrid Search and Re-Ranking in Production RAG

    May 12, 2026

    From Vibe Coding to Spec-Driven Development

    May 12, 2026

    Proxy-Pointer Framework for Structure-Aware Enterprise Document Intelligence

    May 12, 2026

    How to Build a Claude Code-Powered Knowledge Base

    May 11, 2026

    Learning Word Vectors for Sentiment Analysis: A Python Reproduction

    May 11, 2026
    Leave A Reply Cancel Reply

    Editors Picks

    My Presbyond laser eye surgery experience: Was it worth it?

    May 13, 2026

    How your manage your team’s devices matters

    May 13, 2026

    xAI Adds 19 New Gas Turbines Despite Ongoing Lawsuit

    May 13, 2026

    iOS 27 Could Give Your iPhone a Custom Camera App and a ChatGPT-Like Siri, Finally

    May 13, 2026
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    About Us
    About Us

    Welcome to Times Featured, an AI-driven entrepreneurship growth engine that is transforming the future of work, bridging the digital divide and encouraging younger community inclusion in the 4th Industrial Revolution, and nurturing new market leaders.

    Empowering the growth of profiles, leaders, entrepreneurs businesses, and startups on international landscape.

    Asia-Middle East-Europe-North America-Australia-Africa

    Facebook LinkedIn WhatsApp
    Featured Picks

    Netflix enlists AI for first time to cut costs and boost creativity

    July 18, 2025

    Update: The EU-Startups Pitch Competition prize package just hit €1 million!

    January 29, 2026

    RGB laser projector brings 4K clarity to your wall

    January 5, 2026
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    Copyright © 2024 Timesfeatured.com IP Limited. All Rights.
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us

    Type above and press Enter to search. Press Esc to cancel.