On summer mornings in Madison, Wisconsin, the sky often glows an eerie orange instead of blue. Wildfire smoke from Canada has made hazy air a regular part of life in recent years. Now, scientists at the University of Wisconsin–Madison are working to predict when that smoke will linger—and when it will clear—faster than ever before.

The key lies in understanding a layer of atmosphere closest to the ground, called the atmospheric boundary layer. At night or when temperatures drop, this layer squashes down to heights below 100 meters (about 328 feet)—so low you could barely see over it if you stood on a 30-story building. Smoke and other pollutants get trapped inside this thin slice of air, making the air dangerous to breathe. But once the sun warms the ground, the boundary layer rises and expands, reaching heights of 2,000 meters (about 1.2 miles). At that height, smoke disperses upward and the air improves.

Traditionally, scientists have used laser instruments called Doppler lidars to track these changes. But the data they collect can get messy. Clouds, rain, and even swarms of insects can clutter the readings. "Insect swarms can produce absolutely outrageous data," said Chris Geoga, a statistics professor at UW–Madison who co-led the new research.

Because of this messiness, older methods only produce boundary layer estimates every 30 minutes to an hour. That's a problem because the atmosphere changes much faster than that. "Many atmospheric processes happen on much shorter timescales—minutes, not hours," explained Paytsar Muradyan, an atmospheric scientist at Argonne National Laboratory who worked on the project. "And that's where we start to lose important detail."

Geoga and Muradyan developed a machine learning model that learns from how conditions change over time, rather than treating each measurement as completely separate. This lets the system catch rapid shifts—like when the boundary layer shoots upward on a warm morning or shifts during localized wind patterns near lakes. The approach cuts the time lag from hours down to minutes, allowing public health officials to issue smoke warnings much sooner.

The research used data from the Department of Energy's CROCUS Urban Integrated Field Laboratory, a large collaboration led by Argonne. The team believes this tool could eventually help cities across North America give residents earlier warnings when smoke conditions turn dangerous—especially important as wildfires grow more frequent due to climate change.