Biology

Smoothing EKG Data

January 17, 2014

The PASPORT EKG Sensor can be a greate resource to get your students interested in the heart cycle. After collecting data they can use the annotation and analysis tools to label the different waves and calculate the intervals between them. In the example below, raw data has been collected and annotated by students.


ekg sensor data


The data is certainly usable, but the P-wave is a little hard to differentiate from background noise. Fortunately, SPARKvue™ and PASCO Capstone™ both support calculators with a selection of built in functions that can help us process the data. To create a calculation build a new page with two graphs, one displaying the output voltage of the EKG sensor. 


ekg sensor data on two graphs


On the second graph, instead of selecting a sesnor measurement, choose the user-entered tab at the top of the page and then create/edit calculation. 


creating a calculation


The final step is to create a calculation using the smooth function which is in the special functions list. I've chosen to call my output EKG with the units still in mV. The smooth function takes three variables SMOOTH( number of data points, measurement(y), measurement (x)) and outputs an average for the number of data points entered. The cost of this processing is fewer data points, which with the very short intervals of the QRS complex can reduce the resolution of the sensor. The best results of this calculation will be at the highest sample rates, where it has more data to process.
In the formula box add the following equation.



Now return to the graph and choose the calculated data for the second display.


raw versus smoothed ekg data


With the graphs scaled exactly the same it's easy to see how the noise has been reduced as a result of the smooth function. It's also important to note that the amplitude of the QRS waves have been reduced. Depending on the type of analysis your students will be doing the number of data points being smoothed should be adjusted in the calculation. Here are some examples with 3, 6, and 12 data points being smoothed.


ekg data with 3pt, 6pt, 12pt smoothing applied

Having students collect and analyze data on themselves can be a great way to keep them engaged and curious.  But please remember that PASCO sensors are an educational tool and not intented for medical diagnostics. If you have any questions please contact our teacher support staff and visit our Facebook Page to share your ideas on using PASCO sensors. 

 

Related Products:

  • PASPORT EKG Sensor (PS-2111)
  • SPARKlink Air (PS-2011)