{"id":21449161,"url":"https://github.com/mdfirman/citynet","last_synced_at":"2025-07-14T20:31:33.126Z","repository":{"id":36840166,"uuid":"41147082","full_name":"mdfirman/CityNet","owner":"mdfirman","description":"A neural network classifier for urban soundscapes","archived":false,"fork":false,"pushed_at":"2024-01-24T10:27:42.000Z","size":56848,"stargazers_count":30,"open_issues_count":2,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T14:44:59.876Z","etag":null,"topics":["audio-classification","biodiversity","deep-learning","ecoacoustics","ecology","london","neural-network","soundscapes","urban-ecology"],"latest_commit_sha":null,"homepage":"http://londonsounds.org/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdfirman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-08-21T09:17:30.000Z","updated_at":"2024-11-20T16:23:12.000Z","dependencies_parsed_at":"2024-01-29T06:10:02.634Z","dependency_job_id":"810e1613-d83f-4ecf-bf01-ac8af6f17c5b","html_url":"https://github.com/mdfirman/CityNet","commit_stats":{"total_commits":241,"total_committers":4,"mean_commits":60.25,"dds":"0.15352697095435686","last_synced_commit":"ee624c2d298af47d6140923dd52b53fb5f688776"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mdfirman/CityNet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfirman%2FCityNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfirman%2FCityNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfirman%2FCityNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfirman%2FCityNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdfirman","download_url":"https://codeload.github.com/mdfirman/CityNet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdfirman%2FCityNet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265344830,"owners_count":23750566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-classification","biodiversity","deep-learning","ecoacoustics","ecology","london","neural-network","soundscapes","urban-ecology"],"created_at":"2024-11-23T03:18:48.608Z","updated_at":"2025-07-14T20:31:31.415Z","avatar_url":"https://github.com/mdfirman.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CityNet - a neural network for urban sounds\n\nCityNet is a machine-learned system for estimating the level of **biotic** and **anthropogenic** sound at each moment in time in an audio file.\n\nThe system has been trained and validated on human-labelled audio files captured from green spaces around London.\n\nCityNet comprises a neural network classifier, which operates on audio spectrograms to produce a measure of biotic or anthropogenic activity level.\n\nMore details of the method are available from the paper:\n\n\u003e **[CityNet - Deep Learning Tools for Urban Ecoacoustic Assessment](https://doi.org/10.1101/248708)**\n\u003e\n\u003e Alison J Fairbrass, Michael Firman, Carol Williams, Gabriel J Brostow, Helena Titheridge and Kate E Jones\n\u003e\n\u003e **doi**: https://doi.org/10.1101/248708\n\n\nAn overview of predictions of biotic and anthropogenic activity on recordings of London sounds can be seen at our website [londonsounds.org](http://londonsounds.org).\n\n[![Screenshot of urban sounds website](website/website.png)](http://londonsounds.org)\n\n\n\n\n\n## Requirements\n\nThe system has been tested using the dependencies in `environment.yml`. Our code works with python 3.\n\nYou can create an environment with all the dependencies installed using:\n\n```bash\nconda env create -f environment.yml -n citynet\nconda activate citynet\n```\n\n## How to classify a new audio file with CityNet\n\n- Run `python demo.py` to classify an example audio file.\n- Predictions should be saved in the folder `demo`.\n- Your newly-created file `demo/prediction.pdf` should look identical to the provided file `demo/reference_prediction.pdf`:\n\n## How to classify multiple audio files\n\nYou can run CityNet on a folder of audio files with:\n\n```bash\npython multi_predict.py path/to/audio/files\n```\n\nThis will save summaries of what is found in each wav file found to `prediction_summaries.csv`.\n\n\n## Hardware requirements\n\nFor training and testing we used a 2GB NVIDIA GPU. The computation requirements for classification are pretty low though, so a GPU should not be required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdfirman%2Fcitynet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdfirman%2Fcitynet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdfirman%2Fcitynet/lists"}