AI is helping rescue a nearly extinct bird species