This repo contains code to cluster mouse vocalizations using sparse subspace clustering.
-
Download a sample dataset from here.
-
Preprocess the data
- Use MUPET to create a dataset
- Load
workplace/datasets/~.mat
and runprepare_data.m
to collect the syllables detected by MUPET - A file such as
C57_all_RUs.mat
is generated - Note: for the DBA dataset, we only use the first 9000 syllables
- Run
segment_whole_dataset.m
to separate the whole dataset into inlier dataset and outlier dataset
-
Clustering: you can use jupyter notebook "main" to get the results step by step
-
Plot centers and cluster outliers: run
look_center.m
to depict the cluster centers