Giter Club home page Giter Club logo

kaggle-birdclef-2021's Introduction

1st Place Winning Solution - BirdCLEF 2021 - Birdcall Identification

Below is our solution for the BirdCLEF 2021 - Birdcall Identification.

If you want to reproduce our results, please check share_solution/working directory.

Overview

To overview our solution, please check here.

To put it simply, our solution is composed of the three stage training.

1st stage

Building melspectrogram classifier (0:nocall, 1:somebird singing) from freefield1010 data. (hereinafter referred to as "nocall detector")

freefield1010

2nd stage

Building melspectrogram multilabel(397dims) classifier to identify which birds are singing in a clip(7sec). Before building it, we make 2nd stage input labels weighted with call probablility.

  • training: train_short_audio data
  • validation: train_soundscapes data

3rd stage

Candidate extraction from 2nd stage output (five birds extracted per clip(7sec)). The train_metadata & forward/backward frame information are added as features and then classification for each of candidates (0:unlikely 1:likely) is performed by lightgbm.

  • training: train_short_audio data
  • validation: train_soundscapes data

To reproduce the result, please follow the steps below.

Make sure you put datasets shown below in the right directory. All of the ipynb files have been confirmed to work in the Kaggle notebook environment. (You can just imitate the same directory structure as Kaggle, like input, working.)

1. BUILD NOCALL DETECTOR

We use the nocall detector for the following two purposes.

  • A. To modify 2nd stage input data labels.
  • B. To attach labels to 3rd stage input data. At this time, threshold is 0.5 (hard labeling).

Check the code below.

2. TRAIN CALL PROBABILITIES

In this stage, we train call probabilities for each birds with no call probability on th e 1st stage.

Check the code below.

3. EXTRACT CANDIDATES & ADD FEATURES & TRAIN LIGHTGBM & FIND A BEST THRESHOLD & MAKE SUBMISSION

Check the code below.

(Appendix 1) TRAIN_SHORT_AUDIO → MELSPECTROGRAM IMAGES

Here is a useful code by kneroma@Kaggle (maybe known as kkiller) to perform that.

(https://www.kaggle.com/kneroma/birdclef-mels-computer-public)

(Appendix 2) TRAIN_SHORT_AUDIO (images) → NOCALL PROBABILITIES

nocall detector models (Ⅰ)

  • /output
    • inference results for train_short_audio are outputted.

(Appendix 3) TRAIN_SHORT_AUDIO (images) → 397dims birdcall probabilities

Check the code below.

kaggle-birdclef-2021's People

Contributors

namakemono avatar nishimori-m avatar unonao avatar start-t 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.