birdsong-recognition-dataset


Namebirdsong-recognition-dataset JSON
Version 0.3.2.post1 PyPI version JSON
download
home_pageNone
SummaryFunctions for working with this data repository: https://figshare.com/articles/BirdsongRecognition/3470165
upload_time2024-02-02 01:32:31
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Project Status: Unsupported – The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.](https://www.repostatus.org/badges/latest/unsupported.svg)](https://www.repostatus.org/#unsupported)

This project is no longer actively maintained, 
although the code uses core, stable functions from Python, Numpy, and SciPy, so it is likely to work.
There is an updated version of the core code in this package in crowsetta: https://crowsetta.readthedocs.io
If you need to load the annotations from this dataset, please use that instead.

![Build Status](https://github.com/NickleDave/birdsong-recognition-dataset/actions/workflows/ci.yml/badge.svg)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4584210.svg)](https://doi.org/10.5281/zenodo.4584210)
![PyPI version](https://badge.fury.io/py/birdsong-recognition-dataset.svg)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
# birdsong-recognition-dataset
Python utility for working with data from the following repository:  
Koumura, T. (2016). BirdsongRecognition (Version 1). figshare.  
<https://doi.org/10.6084/m9.figshare.3470165.v1>  
<https://figshare.com/articles/BirdsongRecognition/3470165>

The repository contains .wav files of Bengalese finch song from ten birds
and annotation for the songs in .xml files.

This repository provides a great resource, and was used to benchmark
a sliding window-based neural network for segmenting and labeling
the elements of birdsong, as described in the following paper:  
Koumura, Takuya, and Kazuo Okanoya.  
"Automatic recognition of element classes and boundaries in the birdsong
with variable sequences."  
PloS one 11.7 (2016): e0159188.  
<https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0159188>  

The code for the network can be found here:  
<https://github.com/cycentum/birdsong-recognition>

The original code was released under the GNU license:  
<https://github.com/cycentum/birdsong-recognition/blob/master/LICENSE>

The `birdsongrec` module is used with the [`crowsetta`](https://github.com/NickleDave/crowsetta)
 package to make the repository a dataset available in the
[`hybrid-vocal-classifier`](https://hybrid-vocal-classifier.readthedocs.io/en/latest/)
and [`vak`](https://github.com/NickleDave/vak) libraries.

### Installation
#### with `pip`

```console
$ pip install birdsong-recognition-dataset
```

#### with `conda`

```console
$ conda install birdsong-recognition-dataset -c conda-forge
```

### Usage

The main thing that `birdsongrec` gives you is easy access to the
annotation, without having to deal with the .xml file format.

This format is schematized in [this XML schema file](./doc/xsd/AnnotationSchema.xsd),
adapted [from the original](https://github.com/cycentum/birdsong-recognition/blob/master/xsd/AnnotationSchema.xsd) 
under the [GNU license](https://github.com/cycentum/birdsong-recognition/blob/master/LICENSE)
(file is unchanged except for formatting for readability).

To access the annotation in the `Annotation.xml` files for each bird,
use the `parse_xml` function.
```Python
>>> from birdsongrec import parse_xml
>>> seq_list = parse_xml(xml_file='./Bird0/Annotation.xml', concat_seqs_into_songs=False)
>>> seq_list[0]
Sequence from 0.wav with position 32000 and length 43168
>>> seq_list[0].syls[:3]
[Syllable labeled 0 at position 2240 with length 2688, Syllable labeled 0 at position 8256 with length 2784, Syllable labeled 0 at position 14944 with length 2816]  
```

Notice that this package preserves the abstraction of the original code,
where syllables and sequences of syllables are represented as objects.
This can be helpful if you are trying to replicate functionality from
that code.  
**Importantly, each song is broken up into a number of "sequences".**
You can set the flag `concat_seqs_into_songs` to `True` if you want
`parse_xml` to concatenate sequences by song (.wav file), so that each
Sequence is actually all the sequences from one song.  
If you are using the annotation to work with the dataset for
some other purpose, you may find it more convenient to work with some
other format. For that, please check out the
[`crowsetta`](https://github.com/NickleDave/crowsetta)
tool, that helps with building datasets of annotated vocalizations
in a way that's annotation-format agnostic.

The `birdsongrec` package also provides a convenience function to load the annotation
for an individual song, `load_song_annot`. This is basically a wrapper
around `parse_xml` that filters out the songs you don't want.
```Python
>>> from birdsongrec import load_song_annot
>>> wav1 = load_song_annot(wav_file='1.wav')
>>> print(wav1)                                                                                                  
Sequence from 1.wav with position 32000 and length 214176  
```

### Getting Help
Please feel free to raise an issue here:  
https://github.com/NickleDave/birdsong-recognition-dataset/issues

### License
[BSD License](./LICENSE).

### Citation
If you use this package, please cite the DOI:  
[![DOI](https://zenodo.org/badge/159952839.svg)](https://zenodo.org/badge/latestdoi/159952839)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "birdsong-recognition-dataset",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "David Nicholson <nickledave@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/65/06/867e07158d9e18ee7cf2f5caf561879d7cf804bec3c96cd445405438aabc/birdsong-recognition-dataset-0.3.2.post1.tar.gz",
    "platform": null,
    "description": "[![Project Status: Unsupported \u2013 The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.](https://www.repostatus.org/badges/latest/unsupported.svg)](https://www.repostatus.org/#unsupported)\n\nThis project is no longer actively maintained, \nalthough the code uses core, stable functions from Python, Numpy, and SciPy, so it is likely to work.\nThere is an updated version of the core code in this package in crowsetta: https://crowsetta.readthedocs.io\nIf you need to load the annotations from this dataset, please use that instead.\n\n![Build Status](https://github.com/NickleDave/birdsong-recognition-dataset/actions/workflows/ci.yml/badge.svg)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4584210.svg)](https://doi.org/10.5281/zenodo.4584210)\n![PyPI version](https://badge.fury.io/py/birdsong-recognition-dataset.svg)\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n# birdsong-recognition-dataset\nPython utility for working with data from the following repository:  \nKoumura, T. (2016). BirdsongRecognition (Version 1). figshare.  \n<https://doi.org/10.6084/m9.figshare.3470165.v1>  \n<https://figshare.com/articles/BirdsongRecognition/3470165>\n\nThe repository contains .wav files of Bengalese finch song from ten birds\nand annotation for the songs in .xml files.\n\nThis repository provides a great resource, and was used to benchmark\na sliding window-based neural network for segmenting and labeling\nthe elements of birdsong, as described in the following paper:  \nKoumura, Takuya, and Kazuo Okanoya.  \n\"Automatic recognition of element classes and boundaries in the birdsong\nwith variable sequences.\"  \nPloS one 11.7 (2016): e0159188.  \n<https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0159188>  \n\nThe code for the network can be found here:  \n<https://github.com/cycentum/birdsong-recognition>\n\nThe original code was released under the GNU license:  \n<https://github.com/cycentum/birdsong-recognition/blob/master/LICENSE>\n\nThe `birdsongrec` module is used with the [`crowsetta`](https://github.com/NickleDave/crowsetta)\n package to make the repository a dataset available in the\n[`hybrid-vocal-classifier`](https://hybrid-vocal-classifier.readthedocs.io/en/latest/)\nand [`vak`](https://github.com/NickleDave/vak) libraries.\n\n### Installation\n#### with `pip`\n\n```console\n$ pip install birdsong-recognition-dataset\n```\n\n#### with `conda`\n\n```console\n$ conda install birdsong-recognition-dataset -c conda-forge\n```\n\n### Usage\n\nThe main thing that `birdsongrec` gives you is easy access to the\nannotation, without having to deal with the .xml file format.\n\nThis format is schematized in [this XML schema file](./doc/xsd/AnnotationSchema.xsd),\nadapted [from the original](https://github.com/cycentum/birdsong-recognition/blob/master/xsd/AnnotationSchema.xsd) \nunder the [GNU license](https://github.com/cycentum/birdsong-recognition/blob/master/LICENSE)\n(file is unchanged except for formatting for readability).\n\nTo access the annotation in the `Annotation.xml` files for each bird,\nuse the `parse_xml` function.\n```Python\n>>> from birdsongrec import parse_xml\n>>> seq_list = parse_xml(xml_file='./Bird0/Annotation.xml', concat_seqs_into_songs=False)\n>>> seq_list[0]\nSequence from 0.wav with position 32000 and length 43168\n>>> seq_list[0].syls[:3]\n[Syllable labeled 0 at position 2240 with length 2688, Syllable labeled 0 at position 8256 with length 2784, Syllable labeled 0 at position 14944 with length 2816]  \n```\n\nNotice that this package preserves the abstraction of the original code,\nwhere syllables and sequences of syllables are represented as objects.\nThis can be helpful if you are trying to replicate functionality from\nthat code.  \n**Importantly, each song is broken up into a number of \"sequences\".**\nYou can set the flag `concat_seqs_into_songs` to `True` if you want\n`parse_xml` to concatenate sequences by song (.wav file), so that each\nSequence is actually all the sequences from one song.  \nIf you are using the annotation to work with the dataset for\nsome other purpose, you may find it more convenient to work with some\nother format. For that, please check out the\n[`crowsetta`](https://github.com/NickleDave/crowsetta)\ntool, that helps with building datasets of annotated vocalizations\nin a way that's annotation-format agnostic.\n\nThe `birdsongrec` package also provides a convenience function to load the annotation\nfor an individual song, `load_song_annot`. This is basically a wrapper\naround `parse_xml` that filters out the songs you don't want.\n```Python\n>>> from birdsongrec import load_song_annot\n>>> wav1 = load_song_annot(wav_file='1.wav')\n>>> print(wav1)                                                                                                  \nSequence from 1.wav with position 32000 and length 214176  \n```\n\n### Getting Help\nPlease feel free to raise an issue here:  \nhttps://github.com/NickleDave/birdsong-recognition-dataset/issues\n\n### License\n[BSD License](./LICENSE).\n\n### Citation\nIf you use this package, please cite the DOI:  \n[![DOI](https://zenodo.org/badge/159952839.svg)](https://zenodo.org/badge/latestdoi/159952839)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Functions for working with this data repository: https://figshare.com/articles/BirdsongRecognition/3470165",
    "version": "0.3.2.post1",
    "project_urls": {
        "Source": "https://github.com/NickleDave/birdsong-recognition-dataset"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0c27565de82da834a52bfcb9c9e315ea2f90e6e6279dfd613b959ae7dfb3d18f",
                "md5": "580f2c574bdff3d295ae041990247774",
                "sha256": "72c4288b39a06b2253a50ee62f28202a0ff7765152183d8f0782d25484694e0c"
            },
            "downloads": -1,
            "filename": "birdsong_recognition_dataset-0.3.2.post1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "580f2c574bdff3d295ae041990247774",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10936,
            "upload_time": "2024-02-02T01:32:30",
            "upload_time_iso_8601": "2024-02-02T01:32:30.011182Z",
            "url": "https://files.pythonhosted.org/packages/0c/27/565de82da834a52bfcb9c9e315ea2f90e6e6279dfd613b959ae7dfb3d18f/birdsong_recognition_dataset-0.3.2.post1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6506867e07158d9e18ee7cf2f5caf561879d7cf804bec3c96cd445405438aabc",
                "md5": "1ac09ac19131875f83e08fbbe79c881b",
                "sha256": "7d3378b07623c0220543501aa9c8e52cb2602963ac23abe6ba9ec563cc3957f5"
            },
            "downloads": -1,
            "filename": "birdsong-recognition-dataset-0.3.2.post1.tar.gz",
            "has_sig": false,
            "md5_digest": "1ac09ac19131875f83e08fbbe79c881b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 19156,
            "upload_time": "2024-02-02T01:32:31",
            "upload_time_iso_8601": "2024-02-02T01:32:31.935446Z",
            "url": "https://files.pythonhosted.org/packages/65/06/867e07158d9e18ee7cf2f5caf561879d7cf804bec3c96cd445405438aabc/birdsong-recognition-dataset-0.3.2.post1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-02 01:32:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "NickleDave",
    "github_project": "birdsong-recognition-dataset",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "birdsong-recognition-dataset"
}
        
Elapsed time: 0.18665s