Scientists in Valencia, Spain have built an AI tool that can warn of droughts six months before they hit.