Giter Site home page Giter Site logo

fsoft-aic / neupronet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reml-ai/neupronet

0.0 0.0 0.0 3.18 MB

[Neural Computing and Applications] NeuProNet: Neural Profiling Networks for Sound Classification

License: MIT License

Shell 0.06% C++ 0.56% Python 97.89% Lua 0.11% Cuda 1.02% Cython 0.36%

neupronet's Introduction

NeuProNet: Neural Profiling Networks for Sound Classification

The official repository for the paper "NeuProNet: Neural Profiling Networks for Sound Classification".

Overview

Real-world sound signals exhibit various aspects of grouping and profiling behaviors, such as being recorded from identical sources, having similar environmental settings, or encountering related background noises. In this work, we propose novel neural profiling networks (NeuProNet) capable of learning and extracting high-level unique profile representations from sounds. An end-to-end framework is developed so that any backbone architectures can be plugged in and trained, achieving better performance in any downstream sound classification tasks. We introduce an in-batch profile grouping mechanism based on profile awareness and attention pooling to produce reliable and robust features with contrastive learning. Furthermore, extensive experiments are conducted on multiple benchmark datasets and tasks to show that neural computing models under the guidance of our framework gain significant performance gaps across all evaluation tasks. Particularly, the integration of NeuProNet surpasses recent state-of-the-art (SoTA) approaches on UrbanSound8K and VocalSound datasets with statistically significant improvements in benchmarking metrics, up to 5.92% in accuracy compared to the previous SoTA method and up to 20.19% compared to baselines. Our work provides a strong foundation for utilizing neural profiling for machine learning tasks.

About this implementation

This implementation is based on the fairseq toolkit. Our main source code was written in the following directory:

Requirements and Installation

Please follow the instructions to install the framework.

Additionally, install librosa and efficientnet_pytorch:

pip install librosa soundfile efficientnet_pytorch

Training

Without NeuProNet:

fairseq-hydra-train task.data=$DATA_PATH task.profiling=False --config-dir examples/NeuProNet/config/finetuning --config-name urbansound8k

fairseq-hydra-train task.data=$DATA_PATH task.profiling=False --config-dir examples/NeuProNet/config/finetuning --config-name vocalsound

With NeuProNet:

fairseq-hydra-train task.data=$DATA_PATH task.profiling=True --config-dir examples/NeuProNet/config/finetuning --config-name urbansound8k

fairseq-hydra-train task.data=$DATA_PATH task.profiling=True --config-dir examples/NeuProNet/config/finetuning --config-name vocalsound

Evaluation

For evaluating models trained on VocalSound:

fairseq-validate --path $TRAINED_MODEL_PATH --task audio_finetuning $DATA_PATH --valid-subset test --batch-size 128

For evaluating models trained on UrbanSound8k:

fairseq-validate --path $TRAINED_MODEL_PATH --task audio_finetuning $DATA_PATH --valid-subset valid --batch-size 512

neupronet's People

Contributors

khanhtungtran avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.