Strengthening Resilience in Critical Infrastructure Systems: A Deep Learning Approach for Smart Early Warning of Critical States