Tools for unsupervised classification of acoustic signals
DAS-unsupervised provides tools for pre-processing acoustic signals for unsupervised classification:
- extract waveforms or spectrograms of acoustic events from a recording
- normalize the duration, center frequency, amplitude, or sign of waveform/spectrograms
Unsupervised classification itself is performed using existing libraries:
- dimensionality reduction: umap
- clustering: hdbscan or scikit-learn
Can be used in combination with DAS, a deep learning based method for the supervised annotation of acoustic signals.
Installation
pip install das-unsupervised
Demos
Illustration of the workflow and the method using vocalizations from:
Acknowledgements
Code from the following open source packages was modified and integrated into das-unsupervised:
- avgn (Sainburg et al. 2020)
- noisereduce
- fly pulse classifier (Clemens et al. 2018)
Data sources:
- flies: David Stern (Stern, 2014)
- mice: data provided by Kurt Hammerschmidt (Ivanenko et al. 2020)
- birds: Bengalese finch song repository (Nicholson et al. 2017)
References
-
T Sainburg, M Thielk, TQ Gentner (2020) Latent space visualization, characterization, and generation of diverse vocal communication signals. Biorxiv . https://doi.org/10.1101/870311
-
J Clemens, P Coen, F Roemschied, T Perreira, D Mazumder, D Aldorando, D Pacheco, M Murthy (2018) Discovery of a New Song Mode in Drosophila Reveals Hidden Structure in the Sensory and Neural Drivers of Behavior. Current Biology 28, 2400–2412.e6 (2018). https://doi.org/10.1016/j.cub.2018.06.011
-
D Stern (2014). Reported Drosophila courtship song rhythms are artifacts of data analysis. BMC Biology
-
A Ivanenko, P Watkins, MAJ van Gerven, K Hammerschmidt, B Englitz (2020) Classifying sex and strain from mouse ultrasonic vocalizations using deep learning. PLoS Comput Biol 16(6): e1007918. https://doi.org/10.1371/journal.pcbi.1007918
-
D Nicholson, JE Queen, S Sober (2017). Bengalese finch song repository. https://doi.org/10.6084/m9.figshare.4805749.v5
Metadata
Release files for das_unsupervised 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| das_unsupervised-0.6.1.tar.gz | 9.7 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| das_unsupervised-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 MB
Release files / das_unsupervised-0.6.1.tar.gz
| Download URL | das_unsupervised-0.6.1.tar.gz |
|---|---|
| Size | 9.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47dc7f07a9932743205cd74e585c6b96edcb1665a32865b44d1fc4b8d7370ae5
|
|
BLAKE2b-256 checksum How to use checksums |
465f1a33d9140cf7a2138660c4307b5386d0789ec0851c552308aa4f8fd95802
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / das_unsupervised-0.6.1-py3-none-any.whl
| Download URL | das_unsupervised-0.6.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a10cc0f32fc5745e5ceac27aafad1f33563b87d02bce5770b2ce131aa1ae00f3
|
|
BLAKE2b-256 checksum How to use checksums |
d43cfea489ba2dd9f4751a843ae31020251571ed6f718558740ac83ba5ac4edc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Security for das_unsupervised 0.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.