Skip to content

sergezaugg/spectrogram_image_clustering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive app for pre-annotation of spectrogram images aided by deep-leaning based clustering

Overview

  • An interactive Streamlit dashboard for pre-annotation of spectrogram images using deep learning features.
  • Built for exploration and semi-automated labeling of acoustic datasets.
  • Explore large collections of unselected spectrogram images.
  • Tune clustering parameters to find consistent groups.
  • Pool and download these groups as dummy-coded data frames for downstream annotation or machine learning.
  • See the deployed version here

Features

  • Data Source Selection: Choose from pre-extracted datasets with spectrograms features.
  • Feature Extraction: Uses features from Image DNNs (IDNN) and Spectrogram AutoEnCoders (SAEC).
  • Interactive Clustering: Intuitive DBSCAN-based clustering with adjustable parameters in 2 to 16 dims.
  • Pre-partition: Data pre-partitionning with K-means to reduce memory consumption by DBSCAN
  • Visualization: UMAP-based 2D scatterplots for cluster previews.
  • Image Pooling: Assign several consistent clusters to a class and export as CSV for annotation.

Data Preparation to feed this app

Usage

  1. Install dependencies:
    pip install -r requirements.txt
  2. Run the app:
    streamlit run st_dashboard/stmain.py
  3. Follow the sidebar instructions:
    • Select a data source and feature sets.
    • Adjust clustering parameters.
    • Explore, pool, and export clusters.

File Structure

  • st_dashboard/ — Main Streamlit app and utility modules.
  • pics/ — Images for the UI.
  • .streamlit/ — Streamlit configuration.
  • requirements.txt — Python dependencies.

License

MIT License. See LICENSE.

Acknowledgements

  • Recordings: xeno-canto
  • Feature extraction and clustering: See linked GitHub projects above.
  • Created by Serge Zaugg.

For more details and a live demo, see the deployed app

About

Interactive app for pre-annotation of spectrogram images aided by deep-leaning based clustering

Topics

Resources

License

Stars

Watchers

Forks

Languages