Bioacoustics and artificial intelligence facilitate ecological studies of animal populations