New artificial intelligence could save both elephant and human lives