NASA’s AI can spot storm-making regions on the Sun 12 hours before they appear

With NASA planning to send humans to the Moon and eventually to Mars, advance warning of space weather events can go a long way in ensuring astronaut safety.
A bright solar flare and prominence eruption erupt from the Sun. Shortly afterward, the same region produced an Earth-directed coronal mass ejection (CME). (Cover Image Source: NASA/Goddard/SDO)
A bright solar flare and prominence eruption erupt from the Sun. Shortly afterward, the same region produced an Earth-directed coronal mass ejection (CME). (Cover Image Source: NASA/Goddard/SDO)

As AI technology continues to advance, NASA is finding new ways to use it to understand the Sun. Now, a team of astrophysicists and data scientists with the agency's COFFIES (Consequence Of Fields and Flows in the Interior and Exterior of the Sun) has developed a machine-learning model that can spot signs of storm-making regions on the Sun up to 12 hours before they emerge on its surface.

NASA’s Solar Dynamics Observatory captured this solar flare on June 30, 2026. (Image source: NASA’s Goddard Space Flight Center/SDO)
NASA’s Solar Dynamics Observatory captured this solar flare on June 30, 2026. (Image source: NASA’s Goddard Space Flight Center/SDO)

Active regions in the Sun’s interior are areas where powerful magnetic fields build up. As these regions rise and emerge through the Sun’s surface, they can appear as sunspots and become the source of solar flares and coronal mass ejections, or CMEs. These eruptions send high-energy radiation and charged particles across space, which can pose risks to astronauts, satellites, and radio communications on Earth. 

The challenge of detecting hidden activity

The biggest hurdle for scientists is that they cannot directly see these magnetic structures while they are still moving through the Sun’s interior. "Instead, we must look for indirect effects—very small changes in the magnetic field and in the pattern of acoustic waves continually traveling through the Sun,” said Alexander Kosovichev, a COFFIES co-investigator at NJIT, in a statement. "The developed technique identifies precursors associated with an emerging active region in slight changes of the Sun’s acoustic power—more like a slight change in rhythm within a very noisy orchestra."

A cutaway view of the Sun showing the processes and structures studied by NASA’s COFFIES team, including acoustic waves, flux emergence, and active regions. (Image Source: NASA/COFFIES)
A cutaway view of the Sun showing the processes and structures studied by NASA’s COFFIES team, including acoustic waves, flux emergence, and active regions. (Image Source: NASA/COFFIES)

How COFFIES uses AI to predict active regions 

The new approach, published in the Journal of Geophysical Research: Machine Learning and Computation, makes use of observations from NASA’s Solar Dynamics Observatory and NASA Ames' supercomputing resources to track the changes in acoustic waves caused by sunspot regions when they begin to form beneath the solar surface and start moving towards the surface.

A visualization of the Sun’s internal convection and magnetic field structures, showing the complex flows and magnetic activity that COFFIES researchers study. (Image Source: NASA/COFFIES)
A visualization of the Sun’s internal convection and magnetic field structures, showing the complex flows and magnetic activity that COFFIES researchers study. (Image Source: NASA/COFFIES)

The AI model developed by the COFFIES team uses a specialized method called a sliding-window transformer architecture to study these changes. The method works with long sequences of solar data, allowing the model to follow how the activity changes over time. It does not look at all of the Sun’s activity at once, unlike earlier deep learning methods. Instead, a fixed-size window moves across the data and focuses on recent changes while also keeping track of the broader patterns.

A new way to forecast solar activity 

Currently, space weather forecasters monitor active regions that are already visible on the Sun. They study the characteristics of these regions to determine the chances of a solar flare. With the COFFIES model, scientists can get information about an active region before it appears on the surface.

NASA’s Solar Dynamics Observatory captured this view of the Sun, showing bright active regions and intense solar activity across its surface. (Image Source: NASA/SDO)
NASA’s Solar Dynamics Observatory captured this view of the Sun, showing bright active regions and intense solar activity across its surface. (Image Source: NASA/SDO)

This could be especially useful for active regions on the Sun’s far side. These regions are difficult to monitor before they rotate into view, and predicting their emergence could provide additional information for existing space weather models. Although the results are promising, the model is not yet ready for operational, real-time space weather forecasting. The COFFIES team plans to test the approach on many more known solar events and fine-tune the model to improve its reliability. 

Why this matters for future space missions 

Earlier information about potential solar activity could become especially useful as NASA prepares for human missions to the Moon and eventually Mars. Solar flares and CMEs can create space weather that threatens astronauts and the spacecraft they depend on, making early warnings important for mission planning and safety.

A visualization of the Sun’s magnetic fields and plasma flows, showing the complex activity inside the star that COFFIES researchers study.( Image Source: NASA’s COFFIES DRIVE Science Center)
A visualization of the Sun’s magnetic fields and plasma flows, showing the complex activity inside the star that COFFIES researchers study. (Image Source: NASA’s COFFIES DRIVE Science Center)

NASA and NOAA already work together to monitor and forecast space weather. The new COFFIES approach could give these teams more information about where active regions may emerge and where potential flaring could occur. The work is also part of COFFIES’ larger effort to understand the processes happening inside the Sun. By studying the Sun’s interior and its changing magnetic activity, scientists hope to better understand its 11-year activity cycle. This could also help improve the tools used to predict space weather across the solar system.

More on Starlust

Scientists find a new way to predict space weather based on how the Sun goes to 'sleep'

What will happen when the solar activity declines in the descending phase of Solar Cycle 25?

MORE STORIES

A new study reveals that the outer solar system's doomsday maybe much closer than previously believed due to Sun's "stochastic kicks."
14 hours ago
The spectra obtained by NASA's SPHEREx revealed signatures of water, methane, carbon monoxide, and carbon dioxide.
2 days ago
NASA's lunar ambitions edging towards concrete reality, reusable rockets built across the Atlantic and more.
5 days ago
The elusive burst came from a time when the universe was about 3 billion years old and it originated from a very small galaxy.
5 days ago
Despite some difference between how the cloud behaved in reality and what simulations showed, scientists still said that “the result is remarkable".
6 days ago
ESA’s Hera is preparing for a key braking maneuver as it closes in on Didymos and Dimorphos.
6 days ago
Strange radio signals have been detected from the direction of K2-155 d, about 238 light-years away. Here's what it could mean.
7 days ago
"What Hubble is showing us in this white dwarf system is something we haven’t seen before," said astronomer Jamie Williams.
7 days ago
While Starship's Flight 14 made the headlines, several other interesting developments took place.
Oct 2, 2026
SMILE can watch Earth’s auroras for 45 hours at a time, and is expected to deliver "ground-breaking" data.
Oct 1, 2026