Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- neuroscience,
|
| 4 |
+
- spike-sorting
|
| 5 |
+
- electrophysiology
|
| 6 |
+
- mouse
|
| 7 |
+
- neuropixels
|
| 8 |
+
- scikit-learn
|
| 9 |
+
- spikeinterface
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# π§ UnitRefine Human SUA Classifier
|
| 13 |
+
|
| 14 |
+
## π Model Summary
|
| 15 |
+
|
| 16 |
+
This model is part of the **UnitRefine** pipeline and is trained to classify **single-unit activity (SUA)** in **humans Behnke Fried electrodes recordings**. It uses supervised machine learning to distinguish well-isolated units from multi-unit activity (MUA) and noise based on unit-level spike metrics.
|
| 17 |
+
|
| 18 |
+
The classifier is designed for **fast, automated unit curation**, and generalizes across **multiple recordings and brain regions**, achieving high accuracy even with limited training data.
|
| 19 |
+
|
| 20 |
+
The training data includes recordings from **Dr. Florian Mormann**(University of Bonn Medical Center) and **Dr. Xiaonan Richard Sun**(Dartmouth-Hitchcock Medical Center).
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## π Use Cases
|
| 25 |
+
|
| 26 |
+
- Automated post-processing of spike sorting output
|
| 27 |
+
- Removing low-quality or noisy units prior to analysis
|
| 28 |
+
- Reducing manual curation effort in large-scale neural recordings
|
| 29 |
+
- Benchmarking unit quality metrics against expert annotations
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## 𧬠Metric Selection
|
| 34 |
+
|
| 35 |
+
For information on which spike metrics were used to train this classifier, please refer to the `model_info.json` file included in the repository.
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## π‘ How to Use
|
| 40 |
+
|
| 41 |
+
This model can be used to **automatically identify SUA units** from spike-sorted data. If you are working with a `SortingAnalyzer` object, you can run the following:
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
from spikeinterface.curation import auto_label_units
|
| 45 |
+
|
| 46 |
+
labels = auto_label_units(
|
| 47 |
+
sorting_analyzer=sorting_analyzer,
|
| 48 |
+
repo_id="AnoushkaJain3/UnitRefine-human-sua-classifier",
|
| 49 |
+
trusted=["numpy.dtype"]
|
| 50 |
+
)
|
| 51 |
+
```
|
| 52 |
+
This returns a dictionary of predicted labels per unit (1 = SUA, 0 = MUA/Noise).
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
## π Citation
|
| 56 |
+
|
| 57 |
+
If you find [UnitRefine](https://github.com/anoushkajain/UnitRefine) models useful in your research, please cite: **[biorxiv paper](https://www.biorxiv.org/content/10.1101/2025.03.30.645770v1.full.pdf)**.
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
## π Resources
|
| 61 |
+
|
| 62 |
+
- **GitHub Repository:** [UnitRefine](https://github.com/anoushkajain/UnitRefine)
|
| 63 |
+
- π **SpikeInterface Tutorial β Automated Curation:**
|
| 64 |
+
[View Here](https://spikeinterface.readthedocs.io/en/latest/tutorials_custom_index.html#automated-curation-tutorials)
|
| 65 |
+
|
| 66 |
+
UnitRefine is **fully integrated with SpikeInterface**, making it easy to incorporate into existing workflows. π
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
## π Acknowledgments
|
| 70 |
+
|
| 71 |
+
Special thanks to **Dr. Florian Mormann**, **Dr. Xiaonan Richard Sun**, **Yeonglong (Albert) Ay** and **Alana Darcher** for generously providing the datasets used to train and evaluate this model.
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## π©βπ¬ Authors
|
| 76 |
+
|
| 77 |
+
**Anoushka Jain**
|
| 78 |
+
PhD Researcher, Musall Lab, Forschungszentrum JΓΌlich
|
| 79 |
+
|
| 80 |
+
**Chris Halcrow**
|
| 81 |
+
Lead Developer, SpikeInterface
|