Abstract
Purpose
Ideally, the multifocal electroretinogram (mfERG) is recorded without noticeable intrusion of mains interference. However, sometimes contamination is difficult to avoid. A post-processing digital notch filter can help to recover the retinal response even in severe cases of mains interference. While a digital filter can be designed to have little to no impact on peak times, filtering out mains interference also removes the retinal signal content of the same frequency, which may result in a change of amplitude. The present study addressed this issue in the standard first order kernel mfERG.
Methods
In 24 recordings from routine exams with no perceivable mains interference, the effects of 50-Hz and 60-Hz non-causal digital notch filters on amplitude and peak time were assessed. Furthermore, the effect of filtering on contaminated traces was demonstrated and simulated mains interference was used to provide an example of nonlinear superposition of retinal signal and mains interference.
Results
mfERG amplitudes were reduced by 0%–15% (median 6%) with the 50-Hz filter and remained virtually unaffected with the 60-Hz filter. Simulations illustrate that spurious high-frequency components can occur in the filtered signal if a strongly contaminated signal is clipped due to a limited input range of the analog-to-digital converter.
Conclusion
The application of a 50-Hz digital notch filter to mfERG traces causes a mild amplitude reduction which will not normally affect the clinical interpretation of the data. The situation is even more favorable with a 60-Hz digital notch filter. Caution is necessary if the assumption of linear additivity of retinal signal and mains interference is violated.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
Introduction
When recording a multifocal electroretinogram (mfERG), care should be taken to minimize the intrusion of mains interference [1]. However, tracking down the reasons for such interference can sometimes be challenging and time consuming. Occasionally, for instance with young children or with frail patients, delays in the examination procedure can be detrimental to the patient’s ability to cope with the measurement. In such cases, one might have to accept a suboptimal quality of the recorded data.
Excessive mains interference may be removed by means of a notch filter. Generally, filtering is considered to represent a useful technique for improving signal quality in electrophysiology [2, 3]. However, because the mfERG includes signal components at the same frequency as the mains interference, such a filter will not only eliminate the interference, but also affect the signal proper, as emphasized by the ISCEV mfERG standard [1]. Although alternative approaches have been proposed (e.g., by Fisher et al. [4]), a notch filter has the advantage of being very simple and easy to implement.
Actual empirical evidence for a substantial adverse effect of applying a notch filter to mfERG recordings or other retinal potentials is relatively scarce, though. Bock et al. [5] have demonstrated that the application of an analog 50-Hz notch filter can result a considerable reduction in amplitude with a marked increase in peak time in mfERG recordings. A study by Lachapelle and Molotchnikoff [6] showed amplitudes and the shape of the photopic full-field ERG response to be altered by a 60-Hz analog notch filter. In contrast, appropriate digital filters appear to have only little effect on the actual mfERG response, as demonstrated by Ledolter et al. [7] who applied an off-line 50-Hz notch filter to mfERGs recorded using a 2-global-flash stimulus sequence. Jingzhou et al. [8] applied an adaptive wave trap (details not provided) to eliminate simulated mains interference from an mfERG signal, and found the amplitudes and peak times to be mostly preserved.
The present article provides a quantitative and qualitative account of the effects of a post-processing digital notch filter on the first order kernel mfERG curves obtained with standard stimulation, i.e., the type of mfERG which is most often used in clinical applications. Importantly, while analog filters (or any ‘real-time’ filters applied at the time of data acquisition) cause a signal delay, this is not necessarily the case with post-processing digital filters as these can be designed to be ‘non-causal’ [9, 10]. This means, for instance, that peak times are preserved except for those changes that are directly related to the absence of that part of the signal which has been filtered out.
mfERG epochs are relatively short, typically in the order of one tenth of a second (T = 0.1 s). If the frequency spectrum of such an epoch is computed, the frequency resolution is relatively coarse (Δf = 1/T = 10 Hz). This implies that eliminating one line of the frequency spectrum may have the potential of eliminating a considerable fraction of the signal. This could have an adverse effect on the mfERG, possibly reducing its ability to serve as a diagnostic tool.
The effectiveness of a notch filter in reducing mains interference depends on the frequency of the interference being sufficiently stable. Although imbalance between use and generation of electricity within the electrical grid may cause fluctuations in mains frequency [11], these are typically very small (Fig. 1) and well below the coarse frequency resolution in mfERG filtering. Another possible reason for frequencies deviating from the nominal power line frequency is a variability in amplitude, which gives rise to ‘side bands’ in the frequency spectrum [12]. However, within the short epoch length, sizable fluctuations in amplitude are unlikely.
Higher harmonics may contaminate the signal if the mains interference is not perfectly sinusoidal. Even if higher harmonics are relatively low on the level of the regional electrical grid, local electrical equipment may introduce various types of distortions [13]. Higher harmonics could furthermore be introduced if the mains interference adds nonlinearly to the physiological signal, for instance due to amplifier nonlinearities or because the input range of the analog-to-digital converter is exceeded. Higher harmonics may be filtered out by extending the notch filter into a comb filter [14]. However, it is also possible to apply a low-pass filter to eliminate the respective signal components without adverse effect on the diagnostic value of the mfERG as shown by Han et al. [15]. The present article is therefore primarily concerned with the first harmonic.
Methods
The present study re-analyzed existing mfERG data that were taken from routine examinations based on specific features as detailed in the results section. The use of the data had been approved by the local institutional review board. In addition to illustrating the effects of filtering by presenting qualitative examples, the present article also provides a quantitative account of amplitude (N1–P1) and peak time (P1) changes in a series of 24 routine mfERG recordings. About 20 of these were taken from 20 consecutive patients (one eye per patient) who met the inclusion criteria, starting at a random historical date. Primarily the central response was assessed. Inclusion of a patient’s eye was based on this response being not more than 50% below the lower limit of the lab’s normal range and not being perceivably contaminated by mains interference. If both eyes met the inclusion criteria, one eye was chosen at random. The other 4 recordings were specifically included to represent the upper range of amplitudes (above the median of the normal values), which was not well represented by the initial 20 patients. Because the study protocol as approved by the institutional review board prescribed the anonymized extraction of the mfERG data from the patient record, no further patient details are available.
All data had been acquired with dilated pupils using a VERIS Science 4.8 system and fiber electrodes (Ex-Stat 22/1, Statex GmbH, Bremen, Germany). Stimuli with 61 hexagons were presented on a FIMI Philips GD402/21CY9 CRT monitor with a frame rate of 75 Hz and a luminance of 500 cd/m2 for the white hexagons. For the present study, standard first order kernel mfERG curves were processed and filtered by applying the following steps.
-
1.
Trimming the length of the mfERG curve to a multiple of 20 ms, which is the period of 50 Hz mains interference (or to a multiple of 16.67 ms in the case of 60 Hz). In our case, the resulting length is 100 ms. This ensures that the Fourier transform includes a spectral line exactly at 50 Hz and at 60 Hz.
-
2.
Removing a linear trend in the data, defined by the first and the last point of the mfERG trace, in order to avoid introducing spurious spectral components [16].
-
3.
Computing the discrete Fourier transform.
-
4.
Zeroing the amplitude at 50 Hz or at 60 Hz. This represents a non-causal filter with zero phase-shift.
-
5.
Computing the inverse discrete Fourier transform to reconstruct the mfERG curve.
-
6.
Restoring the linear trend (cf. Point 2).
All analyses for the present study were performed with Igor Pro 8 (Wavemetrics, Inc.). Generally, the mains frequency in the present study was 50 Hz. However, the main quantitative analyses were also performed with a 60-Hz notch filter.Footnote 1 Furthermore, a potential filtering artifact is demonstrated using an mfERG trace that has been artificially contaminated by adding a 50-Hz sine wave.
Results
In all patients assessed for the present study, the dominant spectral components of the mfERG were in a lower frequency range than the mains frequency. An example is provided in Fig. 2 (top). Mains interference manifests itself as a strong increase in the 50-Hz spectral component (Fig. 2, bottom). Setting the 50-Hz line in the spectrum to zero eliminates the mains interference and reveals a typical mfERG response.
Figure 3 illustrates for two sample recordings without noticeable contamination by mains interference that filtering does not have a sizable effect on the curve shape. This is confirmed by our sample of 24 patients (Fig. 4). The amplitude reduction caused by the 50-Hz notch filter ranged from 0.0% to 15.2% with a median of 6.0% (CI95% (bootstrap): 4.5%…8.2%) without a sizable dependence on original amplitude. Peak times remained unchanged or shifted by usually not more than one sampling point (Δt = 0.83 ms). With a 60-Hz filter, responses were virtually unaffected.
In order to ensure that filtering would not erroneously introduce an asymmetry between responses at temporal and nasal retinal locations, we compared the effects at the respective locations. A marginal difference was found for the 50-Hz filter (nasal amplitude reduction 6.7%, CI95%: 5.3%…8.0%; temporal amplitude reduction, 10.6%, CI95%: 9.4%…13.3%) while the 60-Hz filter hat no effect on amplitude at both locations.
Figure 5 illustrates that strong contamination is reliably removed by the notch filter, while uncontaminated curves remain almost unchanged.
The data shown in Fig. 6 was created by superimposing an artificial 50-Hz signal onto a measured mfERG response. Three different assumed input ranges of an analog-to-digital converter are displayed. If parts of the signal are clipped due to the limited input range, this results in spurious response components.
Discussion
It is not the intention of the present article to advocate bad recording techniques. ‘There is no substitute for good data’ (‘Hansen’s Axiom’, as cited by Luck [17]). Ideally, the recorded signals would have no perceivable mains interference. However, in those cases where mains interference cannot be avoided, filtering may be essential for making a recording interpretable. As shown above, applying a digital post-processing 50-Hz notch filter does not have a profound effect on the mfERG traces. In particular, there seems to be very little danger that the clinical interpretation of an mfERG would be substantially misguided by filter-related distortions of the mfERG traces. The alternative of leaving the traces contaminated by mains interference appears to be worse. The availability of reference ranges for filtered data would further facilitate the assessment of filtered patient recordings. Importantly, the 60-Hz filter has nearly no effect on the signal amplitude.
The median effect of 6% is lower than the mean relative intersession coefficient of variation reported by Meigen and Friedrich [18], who also used fiber electrodes. The tracking of subtle changes of mfERG amplitude over time could be further facilitated by submitting all recordings of a patient to a notch filter irrespective of the presence of mains interference.
Obviously, if a pathological condition were to alter the shape of a patient’s mfERG response such that a larger part of its spectral content would concentrate at the mains frequency, filtering would have a more detrimental effect. However, considering typical clinical cases, this concern appears more hypothetical than real. Normally, pathological signal changes, such as reduced amplitudes and increased peak times, would not cause the major frequency components to shift toward 50 Hz. This does not completely exclude small differential effects of filtering, for instance if responses from pathologically affected and unaffected parts of the visual field are compared within a patient.
It cannot be excluded that the amplitude reduction shown in Fig. 4 in the case of a 50-Hz notch filter partly reflects the removal of small amounts of mains interference that is invisible to the naked eye. However, the effect size appears to be approximately proportional to the response amplitude. This is expected for the respective retinal response component if the relative spectral composition of the response is independent of the amplitude. The marginal difference in filter effect between nasal and temporal locations should not be overrated given that the data was selected based on the characteristics of the central mfERG trace.
Before applying a notch filter to a massively contaminated recording, it seems worth to inspect the curves for features that would imply that the assumption of simple additivity of the mfERG proper and the mains interference is violated or that would result in a gross deviation of the latter from a sinusoidal shape. In particular, if the recorded signal (contaminated by mains interference) exceeds the input range of the analog-to-digital converter, adverse effects of filtering cannot be excluded. Caution is also necessary when interpreting recordings with large mains interference in the absence of any clear retinal responses, as this may be a sign of fundamental technical problems such as a broken electrode lead.
As long as the retinal signal and the interference signal superimpose linearly, the phase of the interference signal does not have an impact on the filtered signal. This is because the superposition (i.e., the sum) of two sinusoids of the same frequency is itself a sinusoid of exactly that frequency [19]. Therefore, filtering out the sum signal is equivalent to filtering out both constituent signals, namely the mains interference and the physiological signal component at the respective frequency, irrespective of their phases.
In summary, while it is clearly preferred to avoid mains interference during recording, a post-processing digital notch filter is a valuable tool in some situations and may greatly help to make contaminated mfERG data interpretable.
Data availability
Data are available from the author upon reasonable request.
Notes
Note that the effect of a 60-Hz notch filter on the retinal response can be assessed despite the data having been collected in a region with 50-Hz mains frequency. The retinal response (approximated by recorded mfERG traces without noticeable mains interference) does not depend on the mains frequency.
References
Hoffmann MB, Bach M, Kondo M et al (2021) ISCEV standard for clinical multifocal electroretinography (mfERG) (2021 update). Doc Ophthalmol 142:5–16. https://doi.org/10.1007/s10633-020-09812-w
Widmann A, Schröger E, Maess B (2015) Digital filter design for electrophysiological data—a practical approach. J Neurosci Methods 250:34–46. https://doi.org/10.1016/j.jneumeth.2014.08.002
de Cheveigné A, Nelken I (2019) Filters: when, why, and how (not) to use them. Neuron 102:280–293. https://doi.org/10.1016/j.neuron.2019.02.039
Fisher AC, Taktak AFG, Hagan RP, Brown MC (2006) Automated post hoc removal of power-line and CRT frame pulse contamination from retinal and cortical evoked potentials (EPs). Doc Ophthalmol 112:169–175. https://doi.org/10.1007/s10633-006-9000-6
Bock M, Gerth C, Lorenz B (2000) Impact of notch filter use on waveforms of first- and second-order-kernel responses from multifocal ERGs. Doc Ophthalmol 101:195–210. https://doi.org/10.1023/a:1002720819696
Lachapelle P, Molotchnikoff S (1986) A composite nature for the photopic b-wave of the human electroretinogram as evidenced by the use of the 60 Hz notch filter. Can J Ophthalmol 21:19–22
Ledolter AA, Todorova MG, Schoetzau A, Palmowski-Wolfe AM (2016) Impact of a digital power line filter in the 2-global-flash multifocal electroretinogram of glaucoma patients compared to controls. Curr Eye Res 41:70–78. https://doi.org/10.3109/02713683.2014.1002043
Zhang J, Zhou Z, Teng J, et al (2009) Research on detecting method of multifocal electroretinal signal. In: 2009 2nd international conference on biomedical engineering and informatics. pp 1–4. https://doi.org/10.1109/BMEI.2009.5305158
Semmlow J (2018) Analysis of discrete linear systems—the z-transform and applications to filters. In: Semmlow J (ed) Circuits. Academic Press, Signals and Systems for Bioengineers (Third Edition), pp 345–397
Lynch KM, Marchuk N, Elwin ML (2016) Digital signal processing. In: Lynch KM, Marchuk N, Elwin ML (eds) Embedded Computing and Mechatronics with the PIC32. Newnes, Oxford, pp 341–374
UCTE (2004) P1 Load-Frequency Control and Performance (v2.2). In: Operation handbook https://www.ucte.org/resources/publications/ophandbook/
Roder H (1931) Amplitude, phase, and frequency modulation. Proc Inst Radio Eng 19:2145–2176. https://doi.org/10.1109/JRPROC.1931.222283
Arrillaga J, Watson NR (2003) Power System Harmonics, 2nd edn. Wiley, Chichester
Orfanidis SJ (2018) Applied Optimum Signal Processing. Author, Piscataway, NJ
Han Y, Bearse MA, Schneck ME et al (2004) Towards optimal filtering of “standard” multifocal electroretinogram (mfERG) recordings: findings in normal and diabetic subjects. Br J Ophthalmol 88:543–550. https://doi.org/10.1136/bjo.2003.026625
Bach M, Meigen T (1999) Do’s and don’ts in Fourier analysis of steady-state potentials. Doc Ophthalmol 99:69–82. https://doi.org/10.1023/A:1002648202420
Luck SJ (2014) An Introduction to the Event-Related Potential Technique. MIT Press, Cambridge, MA
Meigen T, Friedrich A (2002) Zur Reproduzierbarkeit von multifokalen ERG-Ableitungen. Ophthalmologe 99:713–718. https://doi.org/10.1007/s00347-002-0630-0
Gelfand IM, Saul M (2001) Trigonometry. Birkhäuser, Boston
Cleveland WS, McGill R (1984) The many faces of a scatterplot. J Am Stat Assoc 79:807–822
Funding
Open Access funding enabled and organized by Projekt DEAL. Intramural funds were used for this study.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The author reports no conflict of interest.
Informed consent
No procedures on humans were performed specifically for this study. In agreement with the study protocol approved by the institutional review board of the University of Freiburg, no informed consent needed to be obtained.
Ethical approval
The study had been approved by the institutional review board of the University of Freiburg.
Statement of human rights
No procedures on humans were performed specifically for this study.
Statement on the welfare of animals
This article does not contain any studies with animals performed by the author.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Heinrich, S.P. Removing mains interference from the mfERG by applying a post-processing digital notch filter: for the good or the bad?. Doc Ophthalmol 144, 31–39 (2022). https://doi.org/10.1007/s10633-021-09861-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10633-021-09861-9