Connect with public sector employers. Explore jobs
Skip to main content

Safe Step: The AI That Knows Which Fire Exit to Avoid Before You Do

Safe Step: The AI That Knows Which Fire Exit to Avoid Before You Do

The alarm sounds and you head for the nearest exit, just as you were trained to. But if the door is clouded by smoke and fire, the ordinary exit sign can't warn you when the closest door has become the most dangerous one. That's a frightening gap for anyone responsible for people in public buildings, from city workers and teachers to nurses and facilities staff. Researchers at the National Institute of Standards and Technology have built an AI model called Safe Step that predicts how a fire will spread and points people toward the exit that will still be safe when they reach it.

An illustration depicting office workers in a stairwell trying to take a safe exit, shown in green, during a fire emergency.
NIST researchers developed a new AI model that can identify safe evacuation routes during a fire. The model can be used with new electronic exit signs, called dynamic emergency exit displays, to show whether an exit is safe to use.Credit: A. Kim/NIST

A fire alarm jolts you from your office desk, and you head for the nearest exit. But what if the closest exit has already been blocked by the fire?

Researchers at the National Institute of Standards and Technology (NIST) and their colleagues have developed a new AI model called Safe Step that can redirect occupants to the safest evacuation route in a fire. Described in the Journal of Building Engineering, the model can be used with electronic displays to show whether an exit is safe to use. 

“Fires can grow and spread,” said Hongqiang “Rory” Fang, a research associate at NIST and first author of the journal paper. “Our model forecasts how the fire is evolving and can help update emergency exit displays to direct people toward the safest exit.”

Safe Step can be used in “smart” buildings, where sensors monitor real-time environmental conditions, such as temperature and air quality. Some of these buildings are testing a new technology called a dynamic emergency exit display, which can indicate that the exit is safe to use or point arrows to a safer route out of the building.

Previous research has proposed using traditional algorithms to find the shortest path for safely evacuating a building fire. However, these algorithms depend entirely on current building conditions and do not consider the cumulative hazards that evacuees can face along the route.

“We asked ourselves, ‘Can we build a better algorithm that predicts how the fire evolves, and in a way that helps save more lives?’” said NIST mechanical engineer Wai Cheong Tam.

Machine Learning for Safe Evacuations

Their model, Safe Step, uses a type of AI known as reinforcement learning. It makes decisions on the safest routes through trial and error. Safe Step uses the building layout to learn evacuation routes and data from a NIST fire simulation tool to anticipate how a fire in the layout develops over time. 

During training, the model learns to forecast how a fire will affect occupants and then guides them to safer evacuation routes. In real-world use, the model does not need to run a simulation of the fire in real time. Instead, it would rely on live sensor data from the building to continuously adjust its recommendations as the fire evolves.

The algorithm needs numbers, though, to determine whether it’s choosing the best route. So NIST researchers used a fire safety metric called the fractional effective dose (FED) of toxic gases. This variable represents the severity of fire hazards to which a person is exposed over time. The lower the FED, the lower the hazard exposure for the occupants. The model chooses the route with the lowest FED, accounting for how toxic gas exposure changes over time as an occupant moves.

Researchers then used the model in two test cases to compare with the traditional algorithm. They also used a more complex single-level building structure and found that the model consistently gave safe evacuation routes.

For example, suppose a fire starts in a room across the hallway, and a small amount of smoke spreads into the hallway. A traditional algorithm would guide the occupant to cross the hallway to get to the closest exit. But what happens if the fire continues to grow and becomes extremely dangerous by the time the occupant crosses the hallway and approaches the exit? That nearest exit is no longer a safe option. Safe Step can anticipate this change and provide data for dynamic exit signs to direct the occupant to a more distant but safer exit at the opposite end of the hallway.

Evacuation Path Planning Using Safe Step
NIST researchers developed a new AI model called Safe Step that can direct occupants to the safest evacuation route during a fire. The model here shows two exit routes (one close to the occupant and one farther away) and directs the occupant to the farthest one, which is the safer exit.

Safe Step’s Next Steps

The current model works for a single-story floor plan. Researchers’ next steps include improving the model’s capabilities to handle multilevel building structures, where an evacuee can go up or down a floor in addition to turning left or right down a hallway.

To most accurately model the evacuation of multiple individuals, researchers plan to build an AI system that has what is known as multiple agents, with each agent corresponding to a different building occupant. Interactions among multiple agents will make the model more adaptable to real fire response and evacuation scenarios. 

For instance, during a fire, congestion can build up at the building’s entrance as multiple people try to exit at the same time. This creates a bottleneck, but with an improved algorithm, the model could direct evacuees to different exits while coordinating access points for firefighters to enter the building. This would make it easier for firefighters to extinguish the fire or rescue vulnerable individuals, such as older adults, children and people with disabilities. 

NIST has more than a century of experience working with other organizations to advance fire safety research. In just the last several decades, by improving smoke alarms and firefighter gear, NIST’s fire research has played a crucial role in reducing fire-related deaths each year.

Researchers estimate that technologies like Safe Step could start appearing in five to 10 years, though widespread adoption will depend on regulatory approval, reliability testing and integration with existing safety systems. 

“This research is still in the early R&D stage, but it represents an important step toward intelligent firefighting where effective use of advanced technologies can protect property and save lives,” said Fang. 

Safe Step may be five to ten years from widespread use. The choices that will decide whether communities benefit from it are being made today, in building codes, safety budgets and emergency plans. Those choices need public servants who understand the technology and will make sure it protects everyone, especially children, older adults and people with disabilities. Join CityGov to find the knowledge, connections and career paths that put you where those decisions get made.


Attribution

Adapted from "New AI Model Shows How to Evacuate for Fires One Safe Step at a Time," National Institute of Standards and Technology (NIST), June 4, 2026. Original article: nist.gov.

Top Paying Jobs in Artificial Intelligence and Fire Services

Highest paying opportunities related to this article

Fire Services

Fire Battalion Chief

Fire Department · Maricopa, Arizona

$128,694.00 - $156,286.00 Annually

Full-time · 11 days agoApply
Fire Services

Firefighter

Fire · Tacoma, Washington

$86,754.67 - $120,195.61 Annually

Full-time · 22 days agoApply
Fire Services

Firefighter

Fire Rescue · Davie, Florida

$67,783.00 - $105,217.00 Annually

Full-time · 18 days agoApply
Fire Services

Lateral Firefighter

Fire Department · Walla Walla, Washington

$78,936.00 - $100,752.00 Annually

Full-time · about 23 hours agoApply