Search other topics…

The Notch Filter in EEG

Accelerate your analytical EEG timelines with rapid-setup, high-density wireless arrays optimized for flexible field deployment.

Accelerate your analytical EEG timelines with rapid-setup, high-density wireless arrays optimized for flexible field deployment.

Electroencephalograms carry both neural cognitive signals and 50 or 60 Hz electrical noise from nearby wiring. Because this interference can distort neural data, researchers frequently apply a notch filter—a narrow band-stop filter that suppresses this specific frequency while leaving the rest of the EEG spectrum intact.

Accelerate your analytical EEG timelines with rapid-setup, high-density wireless arrays optimized for flexible field deployment.

Accelerate your analytical EEG timelines with rapid-setup, high-density wireless arrays optimized for flexible field deployment.

What Is a Notch Filter?

A notch filter is a signal-processing filter that strongly attenuates a narrow range of frequencies while allowing frequencies below and above that range to pass with comparatively little change. The rejected region is called the stopband, and its center is often called the notch frequency. Because the stopband is narrow, the filter is intended for a known, concentrated interference rather than for broad-spectrum noise.

In EEG, the interfering component is often electrical mains contamination introduced through the recording environment, cables, amplifiers, or electrode impedance differences. A notch filter can reduce a prominent 50 Hz or 60 Hz component, depending on the local electrical standard and recording conditions. It does not remove every source of artifact, and it does not distinguish electrical noise from brain activity by meaning; it acts on frequency content.

How a Notch Filter Operates (and What It Doesn't Do)

A notch filter works by creating a sharp dip in what engineers call the filter's magnitude response, which is just a plot of how much a filter allows each frequency to pass through.

At most frequencies, the response sits near full strength, meaning the signal passes through unchanged. At the target frequency, usually 50 or 60 hertz, the response drops sharply, attenuating that frequency band while leaving neighboring frequencies mostly intact. The result, in theory, is a cleaned signal where the power line hum is gone but the brain's own oscillations remain.

What a notch filter does not do is equally important. It is not a general-purpose artifact remover.

Broadband contamination, such as the muscle activity that spreads across a wide range of frequencies during jaw clenching, or the large deflections caused by eye blinks, passes right through a notch filter because that contamination is not confined to a narrow band.

The notch filter also performs no spectral decomposition. It does not break the signal into its component rhythms the way time-frequency analysis does when researchers want to see how power in the theta, alpha, or beta bands changes over time. A notch filter simply removes one narrow slice of frequency content and leaves the rest of the spectral structure exactly where it was.

Band Stop Notch Filter Design Basics

Band-stop design begins with a clear definition of the unwanted frequency and the amount of neighboring spectrum that can be sacrificed. A notch centered at 60 Hz with a very narrow bandwidth behaves differently from one that attenuates 55–65 Hz. The appropriate choice depends on interference stability, signal bandwidth, sampling frequency, and the scientific or clinical question.

Quality factor, commonly written as Q, expresses the relationship between center frequency and bandwidth. A high-Q filter has a narrow stopband relative to its center frequency; a lower-Q design affects a wider region. Greater attenuation and sharper transitions may require higher filter order, but higher order can also increase ringing, computational cost, and sensitivity to implementation details.

Design specifications are best evaluated through both frequency and time-domain behavior. Frequency plots reveal attenuation, bandwidth, and passband ripple, while impulse or step responses show ringing and transient behavior. For EEG, an apparent improvement in the spectrum should be considered alongside waveform morphology, event timing, and any downstream feature extraction.

Notch Filter vs Band Stop Filter: What's the Difference?

A notch filter is generally understood as a narrow form of band-stop filter. Both attenuate frequencies inside a stopband and pass frequencies outside it, but the notch usually targets a specific, isolated frequency or a very small interval.

A broad band-stop filter can be appropriate when interference occupies a wider, well-defined region. A notch is more conservative when the objective is to remove a single line component while retaining nearby activity. In EEG, that apparent conservatism does not eliminate the need for review, because a narrow filter can still affect harmonics, phase, or spectral estimates around the target.

The following comparison summarizes the typical distinction. Actual behavior depends on the filter specification and implementation, so the labels should not substitute for examining the response curve.

Feature

Notch filter

Broad band-stop filter

Typical EEG implication

Stopband width

Narrow

Wider

A notch usually preserves more adjacent frequencies

Main target

One line frequency or small interval

A defined frequency range

The target should match the observed interference

Quality factor

Often high

Often lower

Higher Q can reduce neighboring-band distortion

Common use

Mains hum or a resonant tone

Broad interference or unwanted band

Selection depends on the artifact and research question

The practical difference is therefore one of selectivity. A notch filter is not automatically safer, and a broad band-stop filter is not automatically excessive; each must be judged against the signal features that matter for the recording.

Using a Notch Filter in EEG Signal Processing

EEG signals contain low-amplitude voltage fluctuations generated by distributed neural activity, along with physiological and environmental artifacts. A notch filter may be used during preprocessing when a narrow spectral peak is consistent with mains interference.

It is one operation within a larger workflow that can include:

  • Rereferencing

  • Bad-channel assessment

  • Artifact correction

  • Segmentation

  • Baseline handling

The timing of filtering matters. Applying a filter before epoching can produce edge effects at the boundaries of the continuous recording, while applying it separately to short epochs can create different transients and frequency responses.

Researchers also distinguish offline processing from real-time processing: noncausal or zero-phase methods may be practical for stored data but cannot be used in the same way when decisions must be made immediately.

A notch should be evaluated against the analysis objective. It may be reasonable for reducing a stable line-frequency peak, but it cannot correct electrode motion, muscle activity, eye movements, poor contact, or broadband amplifier noise. The EEG recording context, montage, reference, sampling rate, and artifact profile all influence whether a narrow frequency filter is informative or misleading.

Common Notch Filter Frequencies (50Hz and 60Hz)

The most familiar notch frequencies in EEG are 50 Hz and 60 Hz, corresponding broadly to regional electrical power systems. The correct target is determined by the recording environment, not by a universal preference. A spectrum can show which line component is present, although harmonics and equipment-specific interference may complicate the picture.

A 50 Hz or 60 Hz setting may also influence harmonics at multiples of the fundamental frequency, depending on the filter or acquisition system. A filter centered at the fundamental does not necessarily eliminate every harmonic unless those frequencies are separately addressed or the system documents a harmonic-rejection behavior. Harmonic removal can further alter signal content and should be treated as an explicit processing choice.

The frequencies below are common reference points rather than a complete prescription. They describe the usual reason for selecting each target and the principal caution associated with it.

Target frequency

Common source

Main caution

50 Hz

Mains interference in regions using approximately 50 Hz power

May overlap high-frequency neural or technical signal content

60 Hz

Mains interference in regions using approximately 60 Hz power

A wrong regional setting may leave the artifact intact

100 Hz

A second harmonic of 50 Hz or a separately observed line component

Removing it can affect analyses of higher-frequency activity

120 Hz

A second harmonic of 60 Hz or related equipment interference

The spectral peak should be verified before filtering

These values should be documented with the acquisition location, filter bandwidth, attenuation, and whether harmonics were included. Reporting only “notch filtered” makes later interpretation and replication more difficult.

Common Mistakes When Applying a Notch Filter

The most frequent error is treating a notch filter as a general-purpose cleanup step. A narrow filter has a specific target, so it should be connected to an observed or well-justified interference source. If the artifact is unstable, broad, or dominated by transients, a fixed notch may provide limited benefit while still changing the signal.

Another mistake is ignoring the relationship between filtering and the rest of the preprocessing pipeline. Reference changes, resampling, epoch boundaries, and artifact rejection can all affect the apparent spectrum.

A filter applied without checking the raw recording and its acquisition parameters may conceal a problem that would have been better addressed through electrode maintenance, shielding, grounding, or channel-quality review.

A compact review sequence can help keep the decision auditable:

  • Inspect the unfiltered spectrum and waveform for a stable, narrow interference component.

  • Confirm the local mains frequency and the recording system's sampling and filter settings.

  • Compare candidate bandwidths using both spectral attenuation and time-domain waveforms.

  • Record the filter type, order, center frequency, bandwidth, phase mode, and processing stage.

The Risk of Signal Distortion

Researchers suggest that the notch filter, despite being widely used, carries “the risk of potentially severe signal distortions.

To test this, a 2019 study built synthetic test signals and also worked with real EEG and MEG recordings, including EEG data collected in an unshielded setting where power line noise was especially strong. Using a Butterworth notch filter, a common IIR filter design, they found that line noise was removed effectively. The interference at 50 or 60 hertz disappeared from the frequency spectrum as expected. But the same filtering process introduced distortions in the time domain, meaning the shape of the waveform over time was altered in ways that went beyond simply removing the unwanted frequency.

When the same tests were run using spectrum interpolation instead, the method matched the notch filter's ability to remove line noise, but the study reports it showed “less distortions in the time domain in many common situations.

The advantage was not universal or absolute. It appeared across many common situations, which leaves room for cases where the two methods might perform more similarly, or where other factors could shift the outcome.

Why Removing Power Line Noise from EEG Deserves More Than a Default Fix

A notch filter provides a precise way to attenuate a narrow frequency component, making it relevant to EEG recordings affected by stable mains interference. Its usefulness depends on accurate frequency identification, an appropriate bandwidth, awareness of phase and edge effects, and comparison with the unfiltered signal.

Used as one documented step within broader signal-quality and preprocessing practices in neuroscience set ups, it can reduce interference without unnecessarily discarding neighboring information.

References

  1. Leske, S., & Dalal, S. S. (2019). Reducing power line noise in EEG and MEG data via spectrum interpolation. NeuroImage, 189, 763–776. https://doi.org/10.1016/j.neuroimage.2019.01.026

Frequently Asked Questions

What is the main job of a notch filter in EEG recordings?

A notch filter is a narrow band-stop filter that suppresses one specific frequency—typically the 50 or 60 Hz power line hum—while preserving the rest of the EEG spectrum. It targets only this fixed-frequency electrical noise, not broadband artifacts like muscle activity or eye blinks.

Why are 50 Hz and 60 Hz notch filters common?

These frequencies correspond broadly to the alternating-current power standards used in different regions. Electrical interference from the recording environment can appear as a prominent line component at one of these frequencies and sometimes at its harmonics.

Why not just use independent component analysis (ICA) to remove line noise?

ICA separates different source signals across electrodes, not specific frequency bands, so it is not designed to target a single, fixed-frequency sinusoid like power line hum. The notch filter remains the standard tool because it directly attenuates that one frequency, whereas ICA may not isolate line noise as a separate source.

What kind of signal distortion has been directly observed with notch filters?

A study using both synthetic signals and real EEG data found that a Butterworth notch filter could introduce time-domain distortions, changing the shape of the waveform beyond simply removing the hum. These distortions were documented as potentially severe, though the precise impact on specific neural measures like ERPs was not examined in that same study.

What is the safest way to use a notch filter if you must use one?

If a notch filter is applied, gentler parameters—such as a slightly wider bandwidth and less steep attenuation—may reduce the risk of excessive time-domain ringing, though the exact harm to downstream analyses has not been quantified in the reviewed data. It is also wise to visually compare raw and filtered traces and to document every preprocessing step to catch unexpected distortions.

Can a notch filter remove real brain activity?

Yes. If meaningful neural activity overlaps the target frequency or its affected bandwidth, filtering can reduce that activity. This possibility is especially relevant when analyzing higher-frequency rhythms or harmonics near the notch.

Accelerate your analytical EEG timelines with rapid-setup, high-density wireless arrays optimized for flexible field deployment.

Accelerate your analytical EEG timelines with rapid-setup, high-density wireless arrays optimized for flexible field deployment.

Emotiv is a neurotechnology leader helping advance neuroscience research through accessible EEG and brain data tools.

Christian Burgos

Latest from us

Power Spectral Density in EEG

Power spectral density, or PSD, is the tool that unmixes EEG signals and tells you how much energy each of those speeds, or frequencies, contributes to the overall recording. Once you can read a PSD plot, you are reading a kind of rhythm score for the brain, a chart that shows which tempos dominate and which ones fade into the background.

Read article

The Discrete Cosine Transform

An electroencephalogram (EEG) generates vast amounts of continuous data across dozens of channels over long periods. This volume strains the limited memory of portable headsets, constrains telemedicine networks, and slows real-time brain-computer interfaces (BCIs). Consequently, raw EEG data requires reduction to be processed efficiently.

The discrete cosine transform (DCT), which serves as the mathematical foundation for JPEG compression, resolves this challenge. Just as it compresses images while maintaining recognizability, the DCT reduces EEG signal size while preserving its overall shape. Recognizing its mechanics and boundaries helps determine when the DCT is suitable or when alternative transforms are preferable.

Read article

Empirical Mode Decomposition

Empirical mode decomposition (EMD) was developed as a response to a mismatch between the EEG processing tools and the data it is being asked to interpret. Rather than forcing a signal into a fixed set of sine waves or wavelets chosen in advance, EMD lets the data define its own building blocks. These building blocks are called intrinsic mode functions (IMFs), and the process that generates them requires no assumption that the signal is stationary or linear.

This makes EMD conceptually appealing for EEG, where transient, irregular events are often the exact features a researcher wants to detect. That appeal has driven a body of applied research into seizure detection, emotion classification, artifact removal, and brain-computer interfacing.

Read article

A Guide to the Short-Time Fourier Transform for EEG

A basic Fourier Transform, the classic mathematical tool for breaking a signal into its component frequencies, can tell you which brain rhythms were present somewhere across an entire recording. What it cannot tell you is when they occurred. A short burst of alpha activity that appears the instant someone closes their eyes is a meaningful, time-locked event.

Averaged into a single frequency summary spanning a ten-minute recording, that burst becomes a statistic, indistinguishable from background noise. Recovering the timing of these events is the starting point for any serious EEG research, and it is the exact problem the Short-Time Fourier Transform (STFT) was built to solve.

Read article