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

New rockets for NASA, discovery of new cosmic objects, and some watchdog reports round out the week.
7 hours ago
This piece from a comet was about 16 inches in diameter and was traveling at 145,000 miles per hour.
11 hours ago
New research suggests the planet has lost nearly 12 miles from its diameter, and the reason could lie deep inside.
16 hours ago
The research, led by a SETI scientist, takes a completely different approach to the existing efforts of searching for life beyond our planet.
1 day ago
As of now, scientists are not sure whether Venus ever had a moon.
1 day ago
The four different spacecrafts that were observing the Sun at that time have finally provided the data that helped scientists reach a conclusion.
2 days ago
The ability to detect ocean glint on other worlds could be invaluable in the search for life.
3 days ago
The research offers clues about how dying stars forge the elements that make up everything from planets to people.
3 days ago
The new study suggests that gravity was an important factor but that magnetism also played a role.
4 days ago
2026 RW1, the 13th asteroid discovered by scientists before it impacted our planet, is special.
4 days ago