Giter Site home page Giter Site logo

atharv-naik / whale-call-classification Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.67 MB

Trained a CNN model to classify whale calls into an A-call or not

License: MIT License

Jupyter Notebook 56.85% Python 43.15%
audio-feature-extraction machine-learning convolutional-neural-networks deep-learning

whale-call-classification's Introduction

Whale Call Classification

This project aims to classify Blue whale calls into A-calls or not based on a training dataset provided as a part of ISI DataFest Integration 2023. A-Calls are the most commonly heard vocalization of Blue whales and play an important role in their communication and behavior.

The project uses a Convolutional Neural Network (CNN) to classify the Blue whale calls. The CNN model is trained on a training dataset consisting of ~2600 samples and validated on a ~10% samples. The trained model was then tested on a separate testing dataset consisting of ~1000 samples.

Installation

Clone the repo and cd into it. To install the required packages, run the following command:

pip install -r requirements.txt

Download the dataset from the competetion link here or using the kaggle API, run:

kaggle competitions download -c datafestintegration2023

Make sure the dataset is in the same directory as the working directory.

Usage

First preprocess the data. Install ffmpeg which is a dependancy for make_aiff.py and then preprocess the data. Run the following commands:

sudo apt install ffmpeg
python make_aiff.py
python preprocess.py

To train the model, run the following command:

python train.py

Dataset

The dataset consists of labeled audio files of Blue whale calls in WAV format. The files are categorized as A-call or not based on their spectrogram.

Model Architecture

The CNN model consists of 3 convolutional layers, followed by 2 fully connected layers, and an output layer. The model is trained with binary cross-entropy loss and Adam optimizer.

Results

The model achieved an accuracy of 97% on the test set.

Authors

License

This project is licensed under the MIT license. License: MIT

whale-call-classification's People

Contributors

arg-10 avatar atharv-naik avatar somnathroy123 avatar

Stargazers

 avatar

Watchers

 avatar  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.