Skip to content

Conversation

@yger
Copy link
Collaborator

@yger yger commented Feb 21, 2025

Because this code has been asked by several people, I have the feeling that there might be the need for such a preprocessing Node, to remove artefacts. The idea is the following: the node creates an low-pass filtered version of the rectified signal, compute the noise levels of this new signal, and detect thresholds crossings (onsets/offsets). We are then using these detected time periods to feed a silence_periods nodes, such that periods spotted by the enveloppe will be blanked.

Do you think such a node can be useful? For people using tetrode/few channels it seems to matter quite a lot. For denser probes, this could be debatted, and especially one could think about extending the silence_periods node to work on a per_channel basis instead of across all channels. But this could be debated

@alejoe91 alejoe91 added the preprocessing Related to preprocessing module label Feb 21, 2025
@zm711
Copy link
Member

zm711 commented Feb 22, 2025

We already have remove_artifacts.py with the US spelling of artifacts. Should probably keep the spelling unified for all artifact based stuff. (Chris is really going to hate me).

@samuelgarcia
Copy link
Member

@alejoe91 I am OK with this. Do you want to read again ? and validate ?

@alejoe91 alejoe91 changed the title Remove artefacts based of an enveloppe Remove artefacts based of an envelope Dec 23, 2025
@samuelgarcia samuelgarcia merged commit d7554f6 into SpikeInterface:main Dec 23, 2025
15 checks passed
@yger yger deleted the thr_crossings branch December 29, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preprocessing Related to preprocessing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants