Register to reply

Question about ECG filters

by samaaa
Tags: filters
Share this thread:
samaaa
#1
Aug24-13, 08:36 PM
P: 48
Hi guys

i built an ECG system(preamplifier and filters), but i faced a problem in the filters:

the standard of ECG filters is 0.1 Hz cuttoff frequency for highpass filter and 100 Hz for lowpass filter

but i only obtain a good ECG signal when i make the cuttoff frequency of highpass filter 1 Hz and lowpass of cutoff frequency 80 Hz(8 order)

is my ECG filters correct(1 Hz and 80 Hz)?
or the filters cuttoff frequencies should be as the ECG filters standard?

i ask this question because i am writing a research paper.
Phys.Org News Partner Engineering news on Phys.org
Eye implant could lead to better glaucoma treatment
Electricity helping the blind navigate
Lawsuits challenge US drone, model aircraft rules (Update)
skeptic2
#2
Aug24-13, 09:40 PM
P: 1,810
When the cutoff frequencies were at 0.1 and 100 Hz, how is the waveform distorted? If you can post schematics and waveform captures we can better analyze the problem.
samaaa
#3
Aug25-13, 07:16 AM
P: 48
Quote Quote by skeptic2 View Post
When the cutoff frequencies were at 0.1 and 100 Hz, how is the waveform distorted? If you can post schematics and waveform captures we can better analyze the problem.
ok ,this the ECG signal when the cutoff frequency of lowpass filter is 100 Hz

and this the ECG signal when the cutoff frequency of lowpass filter is 80 Hz

skeptic2
#4
Aug25-13, 10:10 AM
P: 1,810
Question about ECG filters

The fact that the noise is reduced so dramatically by such a small shift in cutoff frequency is impressive and likely due to your use of an 8 order filter. First I would consider sources of 120 Hz such as the rectified power supply. Of course it may not be 120 Hz noise and it would help to expand the display to see if you can determine the frequency.
samaaa
#5
Aug25-13, 11:04 AM
P: 48
Quote Quote by skeptic2 View Post
First I would consider sources of 120 Hz such as the rectified power supply. Of course it may not be 120 Hz noise and it would help to expand the display to see if you can determine the frequency.
i am not using power supply , i use two batteries (of 6 volt)

how can i determine the frequency noise?
and how can i prevent it from Interfere with ECG signal?
dlgoff
#6
Aug25-13, 11:34 AM
Sci Advisor
PF Gold
dlgoff's Avatar
P: 2,720
Quote Quote by samaaa View Post
... how can i prevent it from Interfere with ECG signal?
Looks like you've done that. A schematic of the filters would be nice to see though.
samaaa
#7
Aug25-13, 12:04 PM
P: 48
Quote Quote by dlgoff View Post
Looks like you've done that. A schematic of the filters would be nice to see though.
i use digital filter(matlab) , my hardwere is only preamplifier.
skeptic2
#8
Aug25-13, 01:43 PM
P: 1,810
Can you use Matlab to calculate the FFT of your waveform? That will give you a good idea what coefficients you should use for your filters.
samaaa
#9
Aug25-13, 02:33 PM
P: 48
Quote Quote by skeptic2 View Post
Can you use Matlab to calculate the FFT of your waveform? That will give you a good idea what coefficients you should use for your filters.
ok dear i will do that as soon as, thank you
meBigGuy
#10
Aug25-13, 09:01 PM
P: 1,084
I agree. The FFT will indicate what undesireable frequency components may be causing the noise. But, not where they are coming from.

The next questions will probably be: What is the sample rate of the system, and what are you using for an anti-alias filter?

For the FFT use as many points as you can and experiment with the windowing function for the best results.
NascentOxygen
#11
Aug26-13, 02:35 AM
HW Helper
Thanks
P: 5,303
In a region where the mains frequency is 50Hz, it is very difficult to avoid picking up 50 Hz (and harmonics) on body electrodes even if your entire circuit is battery powered and has no reference to the mains.
samaaa
#12
Aug26-13, 11:18 AM
P: 48
Quote Quote by skeptic2 View Post
Can you use Matlab to calculate the FFT of your waveform? That will give you a good idea what coefficients you should use for your filters.
Quote Quote by meBigGuy View Post
I agree. The FFT will indicate what undesireable frequency components may be causing the noise.
this is the FFT of ECG signal

it very clear that the noise 100 Hz com from power line harmonic

Quote Quote by meBigGuy View Post
The next questions will probably be: What is the sample rate of the system, and what are you using for an anti-alias filter?
sample rate= 400

i am not using anti-alias filter,because the 100 Hz noise i can remove it in matlab

Quote Quote by NascentOxygen View Post
In a region where the mains frequency is 50Hz
yes the frequency of power line in my country is 50 Hz

Quote Quote by NascentOxygen View Post
it is very difficult to avoid picking up 50 Hz (and harmonics) on body electrodes even if your entire circuit is battery powered and has no reference to the mains.
No solution
skeptic2
#13
Aug26-13, 12:45 PM
P: 1,810
Why do you think the standard cutoff frequency is 100 Hz? Is the standard ECG designed for use in a 60 Hz country and the 100 Hz cutoff would then be effective for 120 Hz? I find it hard to believe that even when the heart is in fibrillation that you would have signals above 80 Hz. Can you think of any reason why an 80 Hz cutoff would not work?
berkeman
#14
Aug26-13, 04:07 PM
Mentor
berkeman's Avatar
P: 41,012
How many leads are you using for the EKG pickups on the body? Can you post your schematic (as has been mentioned already). Do you have a ground lead as part of your circuit (like below). It's good that you are just battery-powering your circuit!

http://www.cs.wright.edu/~phe/EGR199/Lab_1/fig3.gif

berkeman
#15
Aug26-13, 04:08 PM
Mentor
berkeman's Avatar
P: 41,012
Oh, and I agree that your upper cutoff frequency should ratio lower since the 100Hz number is likely meant for countries that use the 60Hz AC Mains frequency.
samaaa
#16
Aug26-13, 04:19 PM
P: 48
Quote Quote by skeptic2 View Post
Why do you think the standard cutoff frequency is 100 Hz?
I read in many book, the ecg lowpass filter is 100 hz cutoff frequency

Quote Quote by skeptic2 View Post
Why do you think the standard cutoff frequency is 100 Hz? Is the standard ECG designed for use in a 60 Hz country and the 100 Hz cutoff would then be effective for 120 Hz?
Yes, I think that

Quote Quote by skeptic2 View Post
I find it hard to believe that even when the heart is in fibrillation that you would have signals above 80 Hz. Can you think of any reason why an 80 Hz cutoff would not work?
i also see that 80 Hz cutoff work properly but as i mentioned i am writing a research paper, my work must be
agree with a reference book or with another research paper
samaaa
#17
Aug26-13, 04:34 PM
P: 48
Quote Quote by berkeman View Post
How many leads are you using for the EKG pickups on the body? Can you post your schematic (as has been mentioned already). Do you have a ground lead as part of your circuit (like below).

i use three leads ,one lead is grounded(right lead),
my schematic is like(similar) the schematic you put it:
http://www.cs.wright.edu/~phe/EGR199/Lab_1/fig3.gif

Quote Quote by berkeman View Post
Oh, and I agree that your upper cutoff frequency should ratio lower since the 100Hz number is likely meant for countries that use the 60Hz AC Mains frequency.
i agree with you too
B.C.
#18
Aug27-13, 01:49 PM
P: 5
The power line waveform is thought of as being a sine wave, but what if there are harmonics present? What happens to those harmonics at your 400 Hz sampling rate?

Also consider what happens if you are sampling at an integer multiple of the power line frequency.


Register to reply

Related Discussions
IIR filters question Electrical Engineering 1
Simple RC filters phase question Advanced Physics Homework 2
Simple question about filters General Math 1
Polaroid filters question ... please help Advanced Physics Homework 3
Understand how a low pass filter Electrical Engineering 1