Seismic Resilience-Based Design And Optimization: A Deep Learning And Cyber-Physical Approach