Using machine learning to decode animal communication