Skip to main content

scikit-maad

scikit-maad logo

scikit-maad is an open source Python package dedicated to the quantitative analysis of environmental audio recordings. This package was designed to

  1. load and process digital audio,
  2. segment and find regions of interest,
  3. compute acoustic features, and
  4. estimate sound pressure level.

This workflow opens the possibility to scan large audio datasets and use powerful machine learning techniques, allowing to measure acoustic properties and identify key patterns in all kinds of soundscapes.

PyPI version Project Status: Active – The project has reached a stable, usable state and is being actively developed. License DOI Maintenance Downloads Citation Badge

Operating Systems

scikit-maad seamlessly supports Linux, macOS, and Windows operating systems.

Interpreter

The latest version of scikit-maad requires one of these interpreters:

  • Python 3.9, 3.10, 3.11 or 3.12

Packages dependency

scikit-maad requires these Python packages to run:

  • matplotlib >=3.6
  • numpy >= 1.21
  • pandas >= 1.5
  • scikit-image >= 0.23.1
  • scipy >= 1.8

Installing from PyPI

scikit-maad is hosted on PyPI. The easiest way to install the package is using pip the standard package installer for Python:

$ pip install scikit-maad

Quick start

The package is imported as maad. To use scikit-maad tools, audio must be loaded as a numpy array. The function maad.sound.load is a simple and effective way to load audio from disk. For example, download the spinetail audio example to your working directory. You can load it and then apply any analysis to find regions of interest or characterize your audio signals:

from maad import sound, rois
s, fs = sound.load('spinetail.wav')
rois.find_rois_cwt(s, fs, flims=(4500,8000), tlen=2, th=0, display=True)

For advance users

Installing from source

If you are interested in developing new features for scikit-maad or working with the latest version, clone and install it:

$ git clone https://github.com/scikit-maad/scikit-maad.git
$ cd scikit-maad
$ pip install --editable .

Running tests

Install the test requirements:

$ pip install pytest

And run the tests:

$ cd scikit-maad
$ pytest

Examples and documentation

Runnin all examples requires to install the following packages :

Citing this work

If you find scikit-maad usefull for your research, please consider citing it as:

  • Ulloa, J. S., Haupert, S., Latorre, J. F., Aubin, T., & Sueur, J. (2021). scikit‐maad: An open‐source and modular toolbox for quantitative soundscape analysis in Python. Methods in Ecology and Evolution, 2041-210X.13711. https://doi.org/10.1111/2041-210X.13711

or use our citing file for custom citation formats.

Feedback and contributions

Improvements and new features are greatly appreciated. If you would like to contribute submitting issues, developing new features or making improvements to scikit-maad, please refer to our contributors guide. To create a positive social atmosphere for our community, we ask contributors to adopt and enforce our code of conduct.

About the project

In 2018, we began to translate a set of audio processing functions from Matlab to an open-source programming language, namely, Python. These functions provided the necessary tools to replicate the Multiresolution Analysis of Acoustic Diversity (MAAD), a method to estimate animal acoustic diversity using unsupervised learning (Ulloa et al., 2018). We soon realized that Python provided a suitable environment to extend these core functions and to develop a flexible toolbox for our research. During the past few years, we added over 50 acoustic indices, plus a module to estimate the sound pressure level of audio events. Furthermore, we updated, organized, and fully documented the code to make this development accessible to a much wider audience. This work was initiated by Juan Sebastian Ulloa, supervised by Jérôme Sueur and Thierry Aubin at the Muséum National d'Histoire Naturelle and the Université Paris Saclay respectively. Python functions have been added by Sylvain Haupert, Juan Felipe Latorre (Universidad Nacional de Colombia) and Juan Sebastián Ulloa (Instituto de Investigación de Recursos Biológicos Alexander von Humboldt). For an updated list of collaborators, check the contributors list.

License

To support reproducible research, the package is released under the BSD open-source licence, which allows unrestricted redistribution for commercial and private use.

Metadata

Release files for scikit-maad 1.5.2

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

Source distribution (sdist)

Source distribution for scikit-maad 1.5.2
File Size Uploaded
scikit_maad-1.5.2.tar.gz 157.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scikit-maad 1.5.2
File Interpreter ABI Platform
scikit_maad-1.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 325.1 kB

Release files / scikit_maad-1.5.2.tar.gz

Download URL scikit_maad-1.5.2.tar.gz
Size 157.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92c55b0fed3659db50eedc278798ed19dfbfc352ce33a6f82f2fb53b2886b292
BLAKE2b-256 checksum
How to use checksums
4c75ae5a8d4a763aff22edfcf21301b45ebdb989897eee51d7aff3c64ef372b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / scikit_maad-1.5.2-py3-none-any.whl

Download URL scikit_maad-1.5.2-py3-none-any.whl
Size 167.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c27caafbaab65b39637d36e6f3e3697caf183955526bab75fd8e7d30c81ce864
BLAKE2b-256 checksum
How to use checksums
f1e10317d2dbfa2b280af89df7467aab8c8f46867c004d40d30765331e5ea683
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release history Release notifications | RSS feed

This release

1.5.2 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.12

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

0.1.4

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