What is detrend / high-pass preview?

Topic | 2 min read

A previewable local transform for slow trend or low-frequency attenuation before saving a run.

Methods

Detrend and filters offers linear detrend, polynomial detrend, robust moving-median detrend, an optional high-pass filter and a line-noise notch at 50 or 60 Hz.

Before/after trace and PSD comparisons show how the preview changes the selected window.

Saved runs record method, order, window, cutoff, applied channels, affected windows, sample rate, and warnings.

Infraslow

Infraslow power is valid only with true DC-coupled recordings. High-pass filtering, detrending, or baseline-style operations may change infraslow power. Use Raw or an Infraslow-safe preparation run when inspecting infraslow activity.

Use Raw or an Infraslow-safe preprocessing run when the research question depends on 0.016-0.1 Hz activity.

Line-noise notchNew in 1.2

Line-noise notch, under Detrend and filters, takes mains interference out of every channel of the saved run. Choose 50 Hz in most of the world and 60 Hz in most of the Americas, South Korea, Taiwan and western Japan; a spectrum of the recording shows a sharp peak at the right one.

It is narrow (Q 30). At 50 Hz the power within 1.3 Hz of the line is more than halved, and beyond 2.4 Hz less than 1 dB is lost (5 % at 45 Hz); at 60 Hz the same holds within 1.6 Hz and beyond 3 Hz.

It runs forward and backward, so no peak or event moves in time. It does not touch slow activity, so it adds no infraslow warning.

Analyses, the cleaned tab, Export BDF+… and Research Handoff use the notched signal, and an exported file's header says N:50Hz or N:60Hz. The Viewer's own Notch changes only what is drawn.

It takes out the line itself, not its harmonics (100 Hz, 120 Hz and above). A channel sampled at twice the line frequency or less is left as it is, and the run says so.

In an analysis the first and last half second of the range settle as the filter starts and stops, as with any zero-phase filter; an export and the cleaned tab read a little more on each side, so they have no such edge inside the recording.

The method is SciPy's iirnotch run forward and backward as its filtfilt does, checked against SciPy point by point on four real recordings; the validation page has the figures.

What is detrend / high-pass preview?

Topic | 1 min read

A previewable local transform for slow trend or low-frequency attenuation before saving a run.

Methods

Preview supports linear detrend, polynomial detrend, robust moving-median detrend, and optional high-pass filtering.

Before/after trace and PSD comparisons show how the preview changes the selected window.

Saved runs record method, order, window, cutoff, applied channels, affected windows, sample rate, and warnings.

Infraslow

Infraslow power is valid only with true DC-coupled recordings. High-pass filtering, detrending, or baseline-style operations may change infraslow power. Use Raw or an Infraslow-safe preparation run when inspecting infraslow activity.

Use Raw or an Infraslow-safe preprocessing run when the research question depends on 0.016-0.1 Hz activity.