Jump to content
munny

Raw ECG Signal Processing with MSP430

Recommended Posts

Hello,

I am working on a project where I am trying to acquire ECG data for further analysis. Using AD8232 sensor I was able to get my raw data. So far I am using MSP430F5438A and my compiler is Code Composer Studio (CCS). I was asking if anyone did the next processing like filtering to remove noise and interference, at msp430. Can you please share your work (Analysis algorithm and Code)? Here in the attachment the graph of the raw data I am getting from my sensor (ADC values actually).

Following is the link to AD8232 sensor datasheet:

Thanks. 

image.thumb.png.178087b2c331e50001b9538200cb6f93.png 

Share this post


Link to post
Share on other sites

I think you first need to assess the signal quality at the output of the amplifier with an oscilloscope, to me it looks like that electrode contact may be bad or the electrodes may be misplaced (assuming the signal is not from a simulator). I would not expect this much noise in the output from the amplifier - IMO you need a far cleaner signal to start with before any analysis can be done, except perhaps be able to extract the heart rate.

Share this post


Link to post
Share on other sites

Actually, I am using the AD8232 sensor that has 3 electrodes. I don't think I'll get better data than that (Might get a little bit better). So I need to do filtering to remove the noise. Do you have any idea how to do that processing in MSP430? Thanks for your response.   

Share this post


Link to post
Share on other sites

One "easy way" is increase the sampling rate and use some moving average or exponential moving average. It's possible to use it without increase the sampling, but will interfere a lot in the waveform.

Another way is apply some IIR or FIR filter. You can try my DSP library in this post https://forum.43oh.com/topic/10495-dsp-and-math-lib/

Share this post


Link to post
Share on other sites
Posted (edited)

I'd start with a literature search.  Just Googling "DSP ECG" throws up some relevant articles, starting with: https://www.intechopen.com/books/applications-of-digital-signal-processing/a-dsp-practical-application-working-on-ecg-signal  (I always start with a literature search.)

Following the citations in the above article brings up standard arrhythmia data sets at http://physionet.org/physiobank/database/mitdb/

You don't mention your application - medical (POC, personal arrhythmia alarm), excercise, JFA...I agree that your measurement data looks very suspect - there's lots of ECG traces on the 'net.

There are also youtube videos, arduino sketches, RPi code for this application ... google "AD8232"

I'd start with matlab & co. to develop the filtering algorithm (though you may find a perfectly good one with a web search).  Only after you have it working on a PC would I worry about MSP code.

 

Edited by NicholasLindan
L'esprit de l'escalier

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×