Artificial intelligence to understand plant resilience in harsh environments