04-06-2010 05:07 PM
We are trying to remove baseline wandering from an ECG. However, the new waveform does not look like the ECG (as shown below). When we use 1 as our value the waveform looks exactly the same and does not remove any baseline wandering. When we use -1 it just smooths everything out as well as when we use 0.34 (the value we calculated for our trend level). I have attached the code and screen shots are included. The sampling rate was 250 samples/sec and the number of samples taken was 1500.
Screen shot for value of 0.34
Screen shot for value of 1
Any help would be appreciated. Thank You!
04-07-2010 05:05 PM
Hello Laudie3a,
After reading you post, it seems that you are having issues with removing the baseline from your ECG signals. After reviewing WA Detrend VI help file, I found a good explanation how this VI works and there is an example in LabVIEW how to use this VI called Detrend and Trend Estimation VI. I also found a DeveloperZone article talking specifically about processing ECG signals using this VI as well called LabVIEW for ECG Signal Processing.
I hope this helps you with your problem but if you have any more questions, please post back so we can work on it.
JimS
04-08-2010 10:48 AM
04-08-2010 11:28 AM
04-13-2010 03:17 PM
04-13-2010 03:51 PM
04-14-2010 06:05 AM
S.E.Johnson wrote:
So let's see some pictures of waveforms that at least have some resemblance to an ECG before we spend any more time trying to help you design filters - I think that this should be your primary goal at this time.I can see a glimpse of something (and a hope) that might resemble an ECG in this picture. The rest is pure garbage. You should trust us on this one. You will only waste time else.
![]()
04-14-2010 07:27 AM
CoqRouge provided a good suggestion.
Using a filter will result in filtering your desired signal.
You have to take care of the source signal because it is overwelmed with noise.
If CoqRouge's suspicion is correct (and it appears to be so), then your noise is way bigger than your signal, and it is in the similar frequency range as your desired signal, which is why filtering will serve no purpose (other than giving you a flatline... 😮 )
04-14-2010 11:32 AM
That's definitely an ECG signal that CoqRouge has circled - and it's possible to make out the QRS complex embedded in the high amplitude noise earlier in the signal at similar intervals.
That high amplitude noise is NOT what we call a "wandering baseline" (which is a slow shift in the DC level of the signal). Instead, this looks like movement artifact to me, which is caused by rapid shifts in electrode offset potentials due to displacement of the electrode/gel/skin interface which makes the electrodes very sensitive movement transducers. Try to keep everything as stationary as possbile - tape the lead wires coming from the electrodes down to the skin near the electrode.
04-14-2010 02:20 PM