Abstract
We implemented Machine Learning (ML) techniques to advance the study of sperm whale (Physeter macrocephalus) bioacoustics. This entailed employing Convolutional Neural Networks (CNNs) to construct an echolocation click detector designed to classify spectrograms generated from sperm whale acoustic data according to the presence or absence of a click. The click detector achieved 99.5% accuracy in classifying 650 spectrograms. Long short-term memory (LSTM) and gated recurrent unit (GRU) recurrent neural networks were trained to perform classification tasks, including coda type classification (up to 97.5% accuracy), vocal clan classification (up to 95.3% accuracy), and individual whale identification (99.4% accuracy). These results demonstrate the feasibility of applying ML to sperm whale bioacoustics and establish the validity of constructing neural networks to learn meaningful representations of whale vocalizations.
Introduction
Sperm whales are highly social predators that communicate using "codas"—stereotyped sequences of broadband clicks. These vocalizations are essential for maintaining social bonds and identifying "vocal clans," which are groups sharing specific dialects. Traditionally, analyzing these sounds has been a manual, labor-intensive process, requiring thousands of hours of expert annotation. Beyond the sheer volume of data, human analysis is prone to subjective bias. To better understand whale culture and conservation needs, there is a critical requirement for automated, scalable, and objective tools capable of processing massive underwater acoustic datasets to identify specific individuals and social structures.
Methodology
This study utilized two primary long-term datasets: the Dominica Dataset (~9,000 codas collected over 11 years) and the Eastern Tropical Pacific (ETP) Dataset (~17,000 codas covering 89 groups). The researchers employed two distinct deep learning strategies to process this data:
Click Detection via Computer Vision
The team used Convolutional Neural Networks (CNNs) to detect echolocation clicks within spectrograms. By treating sound detection as an image classification problem, the model was trained to distinguish between segments containing clicks and those containing only background noise.
Sequence Modeling and the "Proxy Task"
For coda classification, the researchers utilized Recurrent Neural Network (RNN) architectures, specifically LSTMs and GRUs. Because labeled whale data is scarce, the authors implemented a self-supervised learning approach. They first trained the RNN on a "proxy task": predicting the timing of the next click in a sequence. Once the model learned the underlying rhythmic structure of whale speech, transfer learning was used to fine-tune the network for specific tasks like identifying clans or individuals.
Results
The quantitative performance of the deep learning models was exceptionally high across all tested categories:
- Click Detection: The CNN achieved a near-perfect 99.5% accuracy in identifying clicks within spectrograms.
- Coda Classification: The models categorized 23 coda types from the Dominica set with 97.5% accuracy and 43 types from the ETP set with 93.6% accuracy.
- Vocal Clan Identification: The system successfully distinguished between social dialects with 95.3% (Dominica) and 93.1% (ETP) accuracy. Visualization of the learned representations shows clear clustering between different vocal groups.
- Individual Identification: In a test between two specific whales from the Dominica dataset, the model achieved 99.4% accuracy.
Discussion and Conclusion
The success of the proxy task suggests that whale codas possess an underlying structural logic—a "grammar" of sorts—that neural networks can decode. The high accuracy in clan and individual classification confirms that the timing between clicks (Inter-Click Intervals) carries sufficient information to serve as a social fingerprint, much like human accents or voiceprints.
While these results represent a major proof of concept, challenges remain. The models currently struggle with rare coda types due to data scarcity, and the coda classifiers still require pre-processed click intervals rather than raw audio. Future work aims to develop "end-to-end" systems that can transform raw underwater recordings directly into social transcripts, providing a scalable tool for marine biology and conservation.
Summary updated