Resilience and safety for in-time monitoring, prediction, and mitigation of emergent risks in commercial aviation