To shed new light on the contribution of different brain regions and neural circuits to specific mental functions, neuroscientists and medical researchers rely on advanced imaging techniques and neural probes. These are electronic devices embedding electrodes, components that can measure the electrical impulses produced by neurons, which are known as spikes.