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

The Roman telescope's journey to the Lagrange Point will take three months, giving mission teams ample time for instrument checkouts.
1 day ago
"Scientists usually assume that the interiors of planetary bodies are generally spherically symmetric, but this is not necessarily true."
4 days ago
The observatory is studying alien worlds outside the solar system and their host stars to lay the groundwork for future investigations of potentially habitable worlds.
4 days ago
The findings suggest that water may have been present on Mars more recently than initially thought.
6 days ago
While no known asteroid is on collision course, there are several NEOs which may sneak up on Earth.
Aug 21, 2026
Microbes left behind on the Moon by astronauts could survive longer than we think.
Aug 21, 2026
It was Nancy Roman's efforts that brought the revolutionary Hubble Space Telescope into existence.
Aug 21, 2026
The rumor was being circulated on social media platforms, and was recently debunked by NASA.
Aug 20, 2026
The star, named S301, orbits the supermassive black hole Sagittarius A* at the Milky Way's center.
Aug 20, 2026
Coronal mass ejections are massive expulsions of plasma and magnetic fields from the Sun’s lower corona.
Aug 17, 2026