- van der Molen, Tjitse;
- Lim, Max;
- Bartram, Julian;
- Cheng, Zhuowei;
- Robbins, Ash;
- Parks, David;
- Petzold, Linda;
- Hierlemann, Andreas;
- Haussler, David;
- Hansma, Paul;
- Tovar, Kenneth;
- Kosik, Kenneth
With the use of high-density multi-electrode recording devices, electrophysiological signals resulting from action potentials of individual neurons can now be reliably detected on multiple adjacent recording electrodes. Spike sorting assigns these signals to putative neural sources. However, until now, spike sorting can only be performed after completion of the recording, preventing true real time usage of spike sorting algorithms. Utilizing the unique propagation patterns of action potentials along axons detected as high-fidelity sequential activations on adjacent electrodes, together with a convolutional neural network-based spike detection algorithm, we introduce RT-Sort (Real Time Sorting), a spike sorting algorithm that enables the sorted detection of action potentials within 7.5ms±1.5ms (mean±STD) after the waveform trough while the recording remains ongoing. RT-Sorts true real-time spike sorting capabilities enable closed loop experiments with latencies comparable to synaptic delay times. We show RT-Sorts performance on both Multi-Electrode Arrays as well as Neuropixels probes to exemplify RT-Sorts functionality on different types of recording hardware and electrode configurations.