sukriramli commited on
Commit
666d084
·
verified ·
1 Parent(s): 07a1014

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +55 -2
README.md CHANGED
@@ -1,2 +1,55 @@
1
- # Bird Classifier
2
- Auto deployed system ✅
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ tags:
6
+ - bioacoustics
7
+ - audio-classification
8
+ - bird-sound-identification
9
+ - pytorch
10
+ - vision-transformers
11
+ - protoclr
12
+ - umap
13
+ - hdbscan
14
+ pipeline_tag: audio-classification
15
+ library_name: pytorch
16
+ metrics:
17
+ - accuracy
18
+ ---
19
+
20
+ # 🦅 Edge-Optimized Bioacoustic Atlas & Real-Time Avian Classifier
21
+
22
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1EL5VS_vAKvojPf5UPuQVFbK5gkgP51hB?usp=sharing)
23
+ [![Hugging Face Repository](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Repository-blue)](https://huggingface.co/sukriramli/tiny-bird-diffusion)
24
+ [![Framework: PyTorch](https://img.shields.io/badge/Framework-PyTorch-ee4c2c?logo=pytorch)](https://pytorch.org/)
25
+ [![Optimization: UMAP + HDBSCAN](https://img.shields.io/badge/Optimization-UMAP%20%2B%20HDBSCAN-green)]()
26
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
27
+
28
+ A decoupled, ultra-lightweight machine learning pipeline designed for low-latency edge deployment, automated avian species tracking, and interactive audio streaming.
29
+
30
+ By leveraging **Prototypical Contrastive Learning (ProtoCLR)** backbones combined with advanced topological manifold compression (**UMAP & HDBSCAN**), this system projects complex audio waveforms onto a dense, 2D geometric map. The resulting production architecture handles **168 unique biological species** across **149 autonomous eco-acoustic clusters** natively in a client browser window with sub-second latency—completely bypassing the need for compute-heavy cloud inferencing heads.
31
+
32
+ ---
33
+
34
+ ## 🛠️ The System Architecture Problem & Our Solution
35
+
36
+ ### Our Decoupled Geometric Solution
37
+ This repository implements a **decoupled mathematical pattern**. Heavy feature extraction is processed upfront. The complex high-dimensional latent space is then permanently compressed into a frozen geometric lookup coordinate plane. The client device only runs low-compute spatial distance algorithms, achieving zero-lag edge inference.
38
+
39
+ ---
40
+
41
+ ## 🔬 Core Engineering Pillars
42
+
43
+ ### 1. High-Ratio Manifold Compression
44
+ Instead of forcing edge hardware to hold dense classification layer weights, we isolate the 512-dimensional floating-point latent vectors generated by the transformer. We utilize **UMAP (Uniform Manifold Approximation and Projection)** to topology-map this high-dimensional array down to a highly constrained 2D coordinate vector (X, Y). This slashes the database RAM footprint by over **99%** while preserving semantic biological boundaries.
45
+
46
+ ### 2. Acoustic Domain Shift Mitigation (augment.py)
47
+ Pre-trained foundation models are typically trained on pristine, studio-grade wildlife audio recordings, causing them to fail frequently in noisy consumer spaces. To bridge this gap, our data preparation pipeline routes clean data shards through a custom acoustic corruption environment mimicking real-world conditions.
48
+
49
+ ---
50
+
51
+ ## 📁 Modular Codebase Layout
52
+
53
+ * `augment.py`: Digital Signal Processing (DSP) environment warping functions (Noise, Echo, Muffling filters).
54
+ * `pipeline.py`: Low-latency engineering pipeline managing model configuration and UMAP coordinate projection.
55
+ * `api.py`: Clean, production-ready prediction endpoint designed for real-time app integration.