AIResearch AIResearch
Back to articles
Science

AI Learns Safety from Watching Experts

AI learns safety by watching experts, making self-driving cars and robots safer without complex rules. Discover how this simple method prevents accidents and builds trust in automation.

AI Research
November 14, 2025
3 min read
AI Learns Safety from Watching Experts

Autonomous systems like self-driving cars and robots need to operate safely, but teaching them what to avoid can be challenging when the dangers are hard to define mathematically. A new approach from researchers at Washington University in St. Louis shows that artificial intelligence can learn safety rules simply by observing expert demonstrations, potentially making autonomous systems safer without requiring complex programming of every possible hazard.

The key finding is that AI can learn what constitutes a safe state by watching how experts perform tasks while avoiding failures. The researchers developed a method called ICL-CBF (Inverse Constraint Learning for Control Barrier Functions) that trains neural networks to distinguish between safe and unsafe states based solely on expert demonstrations. This approach allows autonomous systems to maintain safety while minimally interfering with their primary tasks.

Methodologically, the system works by first observing expert demonstrations that successfully complete tasks while avoiding failures. It then uses these demonstrations to train a classifier that identifies which states are safe versus unsafe. This classifier is used to label new data, which in turn trains a control barrier function—a mathematical safety filter that can adjust a system's controls to prevent it from entering dangerous states. The process iterates, with each round improving the safety classifier and barrier function.

Results from four experimental scenarios demonstrate the effectiveness of this approach. In a simple 2D robot navigation task, the learned safety filters achieved 80.6% success rates with only 2.14% collision rates, outperforming existing baseline methods. For more complex systems like inverted pendulums and quadrotors, the method maintained comparable safety performance to systems trained with ground-truth safety labels, despite having no explicit safety information provided during training. The researchers found that their approach was particularly effective in scenarios where failure states are non-obvious or hard to specify mathematically, such as avoiding tailgating in autonomous driving.

The real-world implications are significant for any application where autonomous systems must operate safely in complex environments. This method could enable self-driving cars to learn safe driving behaviors from human demonstrations, allow industrial robots to operate safely around humans without explicit programming of every hazard, and help drones navigate complex environments by learning from expert pilots. The approach is especially valuable because it doesn't require manually specifying all possible dangers, which can be impractical in real-world settings.

Limitations noted in the paper include sensitivity to certain hyperparameters and reduced effectiveness in very high-dimensional action spaces. The method also assumes access to accurate system dynamics and expert demonstrations that implicitly avoid failures. When these assumptions don't hold, the learned safety guarantees may be compromised. The researchers also found that the approach works best when the expert demonstrations sufficiently cover the state space beyond just the constraint set.

This research represents an important step toward making autonomous systems safer by learning from human expertise rather than relying solely on programmed rules. As autonomous technology becomes more prevalent in critical applications, methods that can learn safety constraints from demonstration could help bridge the gap between theoretical safety guarantees and practical deployment.

About the Author

Guilherme A.

Guilherme A.

Former dentist (MD) from Brazil, 41 years old, husband, and AI enthusiast. In 2020, he transitioned from a decade-long career in dentistry to pursue his passion for technology, entrepreneurship, and helping others grow.

Connect on LinkedIn