Smart Resilience