Data-Driven Resilience Planning in Smallholder Agroecosystems