<div dir="ltr">Dear Jumana,<div><br></div><div>> Do you think this would be wrong? I thought it seemed a bit odd to report it like this in a paper.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">0.1Hz IIR high-pass filter can be found in EEG amplifiers, so in that sense it is not strange at all. But I'm not sure if using IIR for high-pass and FIR for low-pass is the better than using FIR filter for both. I would appreciate if Andreas can comment on this.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto </div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 8:55 AM, Ahmad, Jumana <span dir="ltr"><<a href="mailto:jumana.ahmad@kcl.ac.uk" target="_blank">jumana.ahmad@kcl.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi both, Based upon the suggestion of FIR not being suitable for 0.1Hz high pass, I have now changed my data to do a butterworth IIR filter from ERP lab to remove <0.1, and I used the EEGlab FIR filter to remove 40hz+.<br>
Do you think this would be wrong? I thought it seemed a bit odd to report it like this in a paper.<br>
Best wishes,<br>
Jumana<br>
<span class="gmail-"><br>
-----Original Message-----<br>
From: <a href="mailto:eeglablist-bounces@sccn.ucsd.edu">eeglablist-bounces@sccn.ucsd.<wbr>edu</a> [mailto:<a href="mailto:eeglablist-bounces@sccn.ucsd.edu">eeglablist-bounces@<wbr>sccn.ucsd.edu</a>] On Behalf Of Andreas Widmann<br>
Sent: 27 January 2017 11:28<br>
To: <a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a><br>
Cc: <a href="mailto:eeglablist@sccn.ucsd.edu">eeglablist@sccn.ucsd.edu</a><br>
Subject: Re: [Eeglablist] high frequency oscillation- eeg advice<br>
<br>
</span><div><div class="gmail-h5">Dear Makoto,<br>
<br>
> And I still don't like 0.1Hz high-pass if you use FIR<br>
Why? What is the problem? What would be your suggested alternative?<br>
<br>
> (and I do not know how bad it is to use IIR... I've heard it can<br>
> become 'unstable' but I've never seen it myself)<br>
Here you go:<br>
[b,a]=butter(4,0.1/500,'high')<wbr>;<br>
isstable(b,a)<br>
freqz(b,a)<br>
<br>
But note that possible instability is not the main problem with IIR application in electrophysiology. There are workarounds (e.g. for this example using zpk: [z,p,k]=butter(4,0.1/500,'<wbr>high'); sos=zp2sos(z,p,k); isstable(sos)).<br>
<br>
Best,<br>
Andreas<br>
<br>
<br>
><br>
> > I won't be using granger causality but I will be estimating phase during ITC.<br>
><br>
> Should be ok.<br>
><br>
> Makoto<br>
><br>
> On Thu, Jan 26, 2017 at 2:12 PM, Ahmad, Jumana <<a href="mailto:jumana.ahmad@kcl.ac.uk">jumana.ahmad@kcl.ac.uk</a>> wrote:<br>
> Dear Makoto,<br>
> I actually switched to the pop eeg filt eeglab function and it now Really attenuated anything >40Hz, and my ERPs are cleaner. However I filtering between 0.1-40Hz at the same time in the GUI (I interned the high pass and low pass simultaneously). Is this OK to do? The frequency response looks OK.<br>
><br>
> The filter order was automatically set very high by the GUI, but it's continuous data and I have room without events at the beginning and end of the data so any edge effects can be disgusted. What do you think?<br>
><br>
> Also, this is for my ERP analysis- I trained ICA on a 1Hz high pass filtered set.<br>
> I won't be using granger causality but I will be estimating phase during ITC.<br>
> Best wishes, and thanks,<br>
> Jumana<br>
><br>
> ------------------------------<wbr>------------<br>
> Jumana Ahmad<br>
> Post-Doctoral Research Worker in Cognitive Neuroscience EU-AIMS<br>
> Longitudinal European Autism Project (LEAP) & SynaG Study Room<br>
> M1.26.Department of Forensic and Neurodevelopmental Sciences (PO 23) |<br>
> Institute of Psychiatry, Psychology & Neuroscience | King’s College<br>
> London | 16 De Crespigny Park | London SE5 8AF<br>
><br>
> Phone: 0207 848 5359| Email: <a href="mailto:jumana.ahmad@kcl.ac.uk">jumana.ahmad@kcl.ac.uk</a> | Website:<br>
</div></div>> <a href="https://emea01.safelinks.protection.outlook.com/?url=www.eu-aims.eu&da" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.eu-aims.eu&da</a><br>
> ta=01%7C01%7Cjumana.ahmad%<a href="http://40kcl.ac.uk" rel="noreferrer" target="_blank">40kc<wbr>l.ac.uk</a>%<wbr>7C11c9eb49db93488cde6308d446d4<wbr>d6<br>
> a5%<wbr>7C8370cf1416f34c16b83c72407165<wbr>4356%7C0&sdata=<wbr>drS3rsxWBbt9DqEZs%2BuB<br>
> ogv%2FWxkrT1036B%2FJFk93S1o%<wbr>3D&reserved=0 | Facebook:<br>
> <a href="https://emea01.safelinks.protection.outlook.com/?url=www.facebook.com%" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.facebook.com%</a><br>
> 2Feuaims&data=01%7C01%<wbr>7Cjumana.ahmad%<a href="http://40kcl.ac.uk" rel="noreferrer" target="_blank">40kcl.ac.uk</a>%<wbr>7C11c9eb49db93488cde6<br>
> 308d446d4d6a5%<wbr>7C8370cf1416f34c16b83c72407165<wbr>4356%7C0&sdata=0p8mEVLTcsg<br>
> UKOJmamKJxf%<wbr>2FyGd539690nXNRVPidMzg%3D&<wbr>reserved=0<br>
<span class="gmail-">><br>
> From: Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu">mmiyakoshi@ucsd.edu</a>><br>
> Sent: 26 January 2017 23:49:50<br>
> To: Ahmad, Jumana<br>
> Cc: <a href="mailto:eeglablist@sccn.ucsd.edu">eeglablist@sccn.ucsd.edu</a><br>
> Subject: Re: [Eeglablist] high frequency oscillation- eeg advice<br>
><br>
> Dear Jumana,<br>
><br>
> It's a bad idea to perform ICA with 0.1Hz high-pass filtered data. The cutoff frequency is too low. See this page and the referenced paper.<br>
><br>
</span>> <a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fscc" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fscc</a><br>
> <a href="http://n.ucsd.edu" rel="noreferrer" target="_blank">n.ucsd.edu</a>%2Fwiki%2FMakoto%<wbr>2527s_preprocessing_pipeline%<wbr>23High-pass_fi<br>
> lter_the_data_at_1-Hz_.28for_<wbr>ICA.2C_ASR.2C_and_CleanLine.<wbr>29&data=01%7C<br>
> 01%7Cjumana.ahmad%<a href="http://40kcl.ac.uk" rel="noreferrer" target="_blank">40kcl.ac.uk</a>%<wbr>7C11c9eb49db93488cde6308d446d4<wbr>d6a5%7C837<br>
> 0cf1416f34c16b83c724071654356%<wbr>7C0&sdata=%<wbr>2BhfaaFL0gA4PnSYSmZDqjehiCGAe<br>
> 64MWj%2F2Pbw6FLDk%3D&reserved=<wbr>0<br>
<div><div class="gmail-h5">><br>
> > A 30Hz low pass does not help to get rid of the oscillation, which is really significant in the data.<br>
><br>
> Check the channel frequency spectra and tell me if you see peaks in<br>
> it. If necessary, you can cut it off using a designed low-pass filter<br>
> (not like Butterworth...)<br>
><br>
> > I use a butterworth filter, which is good for ERP analysis with low phase distortion.<br>
><br>
> Do not make qualitative judgement just because something is NOT a classic Butterworth. Of course, if the attenuation is small, the phase 'distortion' is small. But if such small attenuation is not useful, it does not help at all! Also, be careful with the word 'phase'. Particularly people who do not know basics of signal processing believe phase as some magical thing. If you are not performing Granger Causality Analysis or something, you don't need to be so worried about phase issue in practice.<br>
><br>
> > I also already run ICA, but in some datasets there is a very significant high frequency oscillation.<br>
><br>
><br>
> Remember, to eliminate this is more important than being afraid of qualitative phase issue.<br>
><br>
> > However, I can see the high frequency oscillations in my ERP, which is not ideal and now I need to try and get rid of it further.<br>
><br>
> Can I filter again on top of the data which already has already undergone ICA- I only use ICA to remove blinks?<br>
><br>
><br>
> You'd better to filter the data on continuous state. If you need to filter the epoched data, the half of filter length from both ends becomes unreliable.<br>
><br>
> > Should I do cleanline, although it would have to be after ICA now- I read this is not advisable.<br>
><br>
> > Should I use a notch filter?<br>
><br>
><br>
> If you see > 20dB line noise, Cleanline may not help. In this case, I would simply apply a designed low-pass filter, either Hamming (-50dB) or Blackman (-70dB) using firfilt(). See 'Tools' -> 'Filter the data' -> 'Windowed sinc FIR filter'.<br>
><br>
> There are different guys saying different things about data preprocessing. It is confusing, I know! The only good solution for this is to become an engineer yourself...<br>
><br>
> Makoto<br>
><br>
><br>
><br>
> On Tue, Jan 24, 2017 at 7:00 AM, Ahmad, Jumana <<a href="mailto:jumana.ahmad@kcl.ac.uk">jumana.ahmad@kcl.ac.uk</a>> wrote:<br>
> Hi Everyone,<br>
><br>
> I am running a large scale ERP analysis. I filtered 1-40Hz (ICA AMICA), or 0.1-40Hz for the ERP dataset. A 30Hz low pass does not help to get rid of the oscillation, which is really significant in the data. I use a butterworth filter, which is good for ERP analysis with low phase distortion.<br>
><br>
> I also already run ICA, but in some datasets there is a very significant high frequency oscillation.<br>
><br>
> I do not use cleanline, which is not typical in the literature I have been basing my pipeline on.<br>
><br>
><br>
><br>
> However, I can see the high frequency oscillations in my ERP, which is not ideal and now I need to try and get rid of it further.<br>
><br>
> Can I filter again on top of the data which already has already undergone ICA- I only use ICA to remove blinks?<br>
><br>
> Should I do cleanline, although it would have to be after ICA now- I read this is not advisable.<br>
><br>
> Should I use a notch filter?<br>
><br>
><br>
><br>
> Any help would be appreciated.<br>
><br>
> Best wishes,<br>
><br>
> Jumana<br>
><br>
><br>
><br>
> ------------------------------<wbr>------------<br>
><br>
> Jumana Ahmad<br>
><br>
> Post-Doctoral Research Worker in Cognitive Neuroscience<br>
><br>
> EU-AIMS Longitudinal European Autism Project (LEAP) & SynaG Study<br>
><br>
> Room M1.09. Department of Forensic and Neurodevelopmental Sciences (PO<br>
> 23) | Institute of Psychiatry, Psychology & Neuroscience | King’s<br>
> College London | 16 De Crespigny Park | London SE5 8AF<br>
><br>
><br>
><br>
> Phone: 0207848 0260| Email: <a href="mailto:jumana.ahmad@kcl.ac.uk">jumana.ahmad@kcl.ac.uk</a> | Website:<br>
</div></div>> <a href="https://emea01.safelinks.protection.outlook.com/?url=www.eu-aims.eu&da" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.eu-aims.eu&da</a><br>
> ta=01%7C01%7Cjumana.ahmad%<a href="http://40kcl.ac.uk" rel="noreferrer" target="_blank">40kc<wbr>l.ac.uk</a>%<wbr>7C11c9eb49db93488cde6308d446d4<wbr>d6<br>
> a5%<wbr>7C8370cf1416f34c16b83c72407165<wbr>4356%7C0&sdata=<wbr>drS3rsxWBbt9DqEZs%2BuB<br>
> ogv%2FWxkrT1036B%2FJFk93S1o%<wbr>3D&reserved=0 | Facebook:<br>
> <a href="https://emea01.safelinks.protection.outlook.com/?url=www.facebook.com%" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.facebook.com%</a><br>
> 2Feuaims&data=01%7C01%<wbr>7Cjumana.ahmad%<a href="http://40kcl.ac.uk" rel="noreferrer" target="_blank">40kcl.ac.uk</a>%<wbr>7C11c9eb49db93488cde6<br>
> 308d446d4d6a5%<wbr>7C8370cf1416f34c16b83c72407165<wbr>4356%7C0&sdata=0p8mEVLTcsg<br>
> UKOJmamKJxf%<wbr>2FyGd539690nXNRVPidMzg%3D&<wbr>reserved=0<br>
><br>
><br>
><br>
> ******************************<wbr>******************************<wbr>**********<br>
> *****************<br>
><br>
> ******************************<wbr>******************************<wbr>**********<br>
<span class="gmail-">> *****************<br>
><br>
> We are currently looking for volunteers with mild intellectual disability to be part of our exciting and world-leading European project into brain development and social behaviour. Please, do get in touch if you know of anyone who may be interested in taking part.<br>
><br>
> ******************************<wbr>******************************<wbr>**********<br>
> *****************<br>
><br>
> ******************************<wbr>******************************<wbr>**********<br>
> *****************<br>
><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Eeglablist page:<br>
</span>> <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsccn" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fsccn</a><br>
> .<a href="http://ucsd.edu" rel="noreferrer" target="_blank">ucsd.edu</a>%2Feeglab%<wbr>2Feeglabmail.html&data=01%<wbr>7C01%7Cjumana.ahmad%40kcl<br>
> .<a href="http://ac.uk" rel="noreferrer" target="_blank">ac.uk</a>%<wbr>7C11c9eb49db93488cde6308d446d4<wbr>d6a5%<wbr>7C8370cf1416f34c16b83c724071<br>
> 654356%7C0&sdata=s%<wbr>2BBmIxviUD4okj0t44LmkWU%2BXwv%<wbr>2F3CEx929eUSGmloo%3D&<br>
> reserved=0 To unsubscribe, send an empty email to<br>
<span class="gmail-">> <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to<br>
> <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br>
><br>
><br>
><br>
> --<br>
> Makoto Miyakoshi<br>
> Swartz Center for Computational Neuroscience Institute for Neural<br>
> Computation, University of California San Diego<br>
><br>
><br>
><br>
> --<br>
> Makoto Miyakoshi<br>
> Swartz Center for Computational Neuroscience Institute for Neural<br>
> Computation, University of California San Diego<br>
> ______________________________<wbr>_________________<br>
> Eeglablist page:<br>
</span>> <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsccn" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fsccn</a><br>
> .<a href="http://ucsd.edu" rel="noreferrer" target="_blank">ucsd.edu</a>%2Feeglab%<wbr>2Feeglabmail.html&data=01%<wbr>7C01%7Cjumana.ahmad%40kcl<br>
> .<a href="http://ac.uk" rel="noreferrer" target="_blank">ac.uk</a>%<wbr>7C11c9eb49db93488cde6308d446d4<wbr>d6a5%<wbr>7C8370cf1416f34c16b83c724071<br>
> 654356%7C0&sdata=s%<wbr>2BBmIxviUD4okj0t44LmkWU%2BXwv%<wbr>2F3CEx929eUSGmloo%3D&<br>
> reserved=0 To unsubscribe, send an empty email to<br>
<span class="gmail-">> <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to<br>
> <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br>
<br>
</span>______________________________<wbr>_________________<br>
Eeglablist page: <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsccn.ucsd.edu%2Feeglab%2Feeglabmail.html&data=01%7C01%7Cjumana.ahmad%40kcl.ac.uk%7C11c9eb49db93488cde6308d446d4d6a5%7C8370cf1416f34c16b83c724071654356%7C0&sdata=s%2BBmIxviUD4okj0t44LmkWU%2BXwv%2F3CEx929eUSGmloo%3D&reserved=0" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fsccn.ucsd.edu%<wbr>2Feeglab%2Feeglabmail.html&<wbr>data=01%7C01%7Cjumana.ahmad%<wbr>40kcl.ac.uk%<wbr>7C11c9eb49db93488cde6308d446d4<wbr>d6a5%<wbr>7C8370cf1416f34c16b83c72407165<wbr>4356%7C0&sdata=s%<wbr>2BBmIxviUD4okj0t44LmkWU%2BXwv%<wbr>2F3CEx929eUSGmloo%3D&reserved=<wbr>0</a><br>
<div class="gmail-HOEnZb"><div class="gmail-h5">To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>