Skip to main content

Chimpanzee Drumming Detector

This is a python program for detecting chimpanzee drumming in long-term rainforest recordings.

The associated publication can be read at:

This program only contains the test pipeline, not the training pipeline.

Installation

Either install the latest stable release from PyPI

pip install ChimpDrummingDetector

Alternatively, you can install this package through to code on this repository. Simply download this repository as a zip, and then do:

cd path/to/downloaded/zip
unzip ChimpDrummingDetector.zip
cd ChimpDrummingDetector
pip install ChimpDrummingDetector

Usage

In your python code, do

import chimp_detector

path_to_wave_to_analyze = path/to/wave.wav 
detection_result = chimp_detector.detect_drumming(path_to_wave_to_analyze)
  • Input: A wave file. Might be mono or stereo
  • Output: A pandas dataframe with following columns
    • timepoints_in_seconds [float]: The analyzed timepoints
    • drumming_probability [float]: Probability of chimpanzee drumming in range [0,1] for the respective timepoint
    • drumming_binarized [boolean]: Binarization of probability with threshold 0.5, where TRUE means "there is drumming in this frame".

Dependencies

This Packages requires:

  • Python version 3.8
  • librosa==0.8.0
  • tensorflow==2.3.1
  • pandas==1.1.2
  • numpy==1.18.5

Citation

Please cite this paper in your publication if you use this program for your research.

@article{anders2021compensating,
  title={Compensating class imbalance for acoustic chimpanzee detection with convolutional recurrent neural networks},
  author={Anders, Franz and Kalan, Ammie K and K{\"u}hl, Hjalmar S and Fuchs, Mirco},
  journal={Ecological Informatics},
  volume={65},
  pages={101423},
  year={2021},
  publisher={Elsevier}
  }

Release files for ChimpDrummingDetector 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ChimpDrummingDetector 0.0.3
File Size Uploaded
ChimpDrummingDetector-0.0.3.tar.gz 3.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ChimpDrummingDetector 0.0.3
File Interpreter ABI Platform
ChimpDrummingDetector-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 MB

Release files / ChimpDrummingDetector-0.0.3.tar.gz

Download URL ChimpDrummingDetector-0.0.3.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
49e9165b7c17680514f438909e99fbc950ffe514b071d79ce8685f23bd941948
BLAKE2b-256 checksum
How to use checksums
8e22294272632b374f8bc03c57029707b776eb093ef89a200f7b058846861121
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release files / ChimpDrummingDetector-0.0.3-py3-none-any.whl

Download URL ChimpDrummingDetector-0.0.3-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
195a1db6633c8e869d8f9825aee4c34bd13525cb321c1392ce955599ed92c73d
BLAKE2b-256 checksum
How to use checksums
b8ad1c59b1b34e1782ce04176fe53deb90bc1cbfe6c5c7712b9df0a0588117d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page