This model detects the presence of Southern Resident Killer Whale (SRKW) calls in audio recordings from hydrophone networks. It was trained on labeled audio data from the Orcasound hydrophone network in Puget Sound, Washington.
Architecture: ResNet50 with custom classification head
Input: Mel spectrogram (1 channel, 256 mel bins, 312 time frames)
Output: Binary classification (orca call present / not present)
Framework: PyTorch (ported from FastAI)
Model Details
Developed by: Akash Mahajan, Prakruti Gogia, Aayush Agrawal
Model type: Audio classification (binary)
License: OrcaHello RAIL (Responsible AI License) - See LICENSE file
For fine-grained control over audio preprocessing and per-segment predictions.
python
1from src.model_v1 import OrcaHelloSRKWDetectorV1, DetectorInferenceConfig
2from src.model_v1.audio_frontend import AudioPreprocessor
34# Load configuration5config = DetectorInferenceConfig.from_yaml("config.yaml")6model = OrcaHelloSRKWDetectorV1.from_pretrained("orcasound/orcahello-srkw-detector-v1")78# Process segments manually9preprocessor = AudioPreprocessor(config)10for mel_spec, start_s, duration_s in preprocessor.process_segments("audio.wav"):11 X = mel_spec.unsqueeze(0).to(model.device)12 confidence = model.predict_call(X)13print(f"Segment at {start_s:.1f}s: confidence={confidence:.3f}")
Configuration
Configuration can be loaded from YAML to modify inference behavior:
YAML format (config.yaml):
yaml
1audio:2downmix_mono:true3resample_rate:2000045spectrogram:6sample_rate:160007n_fft:25608hop_length:2569mel_n_filters:25610mel_f_min:0.011mel_f_max:10000.01213inference:14window_s:2.0# segment length15window_hop_s:1.0# hop between segments16max_batch_size:8# max segments to process at once in detect_srkw_from_file17strict_segments:true# if false, allow partial final segment1819global_prediction:20aggregation_strategy: mean_top_k # used to convert segment confidences into a file-level `global_confidence` score21mean_top_k:2# top segments to average for global_confidence22pred_global_threshold:0.6# applied to global_confidence for file-level prediction23pred_local_threshold:0.5# threshold for local binary per-segments predictions
Parameter
Description
aggregation_strategy
How segment confidences are combined into a file-level global_confidence score. "mean_top_k" averages the top K most confident segments; "mean_thresholded" averages only segments exceeding pred_local_threshold.
mean_top_k
Number of top segments to average when using mean_top_k strategy.
pred_global_threshold
Threshold (0–1) applied to the aggregated global confidence to produce the final binary file-level prediction.
pred_local_threshold
Confidence threshold (0–1) for per-segment binary predictions (used to diplay in moderator UI). Also selects which segments contribute to global confidence under mean_thresholded.
Refer to repository above for complete setup and configuration details.
Data loading: SpecAugment-style augmentation with frequency masking, annotated calls padded/cropped to fixed 4.0s windows (312 time frames)
Loss: Cross-entropy
Framework: FastAI (original training)
Citation
BibTeX:
Example below:
bibtex
1@misc{akash_mahajan_2026,
2 author = { Akash Mahajan and Prakruti Gogia and Aayush Agrawal },
3 title = { orcahello-srkw-detector-v1 (Revision 6ccff28) },
4 year = { 2020 },
5 url = { https://huggingface.co/orcasound/orcahello-srkw-detector-v1 },
6 doi = { 10.57967/hf/7703 },
7 publisher = { Hugging Face },
8}
Grab the latest DOI with revision from the model card here.
License
This model is released under the OrcaHello RAIL (Responsible AI License), which includes specific restrictions to promote conservation of endangered Southern Resident Killer Whales.
Key restrictions:
Prohibits use in violation of Marine Mammal Protection Act
Prohibits support for captive whale industry
Requires adherence to "Be Whale Wise" guidelines
Refer to the included LICENSE file for complete terms.
Notes
Environmental Impact
This model supports conservation of the critically endangered Southern Resident Killer Whale population (currently ~75 individuals as of Jan 2026). As a component of OrcaHello’s live monitoring pipeline, it helps:
Filter 24hr hydrophone audio down to likely SRKW-call candidates for review
Enable human-in-the-loop confirmation by experts before sending alerts/notifications
Support downstream mitigation actions (e.g., coordinated vessel slow-downs and pausing pile-driving) during confirmed whale presence
Engage citizen scientists in conservation via notifications on the Orcasound live listening web-app