Researchers engineer AI path to prevent power outages