Compute Wave Form Average: Algorithm Help Needed

In summary, the conversation involves a parent seeking help for their son's school project on computing the average of systolic and diastolic values in a heart rate waveform. The conversation includes a suggestion to use the derivative to isolate the peak points on the curve and the parent later updates that their son placed 2nd in a development contest for the project.
  • #1
last_to_go
3
0

Homework Statement



My son is working on a school-related project. He is being asked how to compute the average of both systolic and diastolic (heart rate) values. The assignment eludes to averaging measurements over an entire wave form (visualize a heart rate monitor you'd see on ER). The systolic values would be the peak values on a graph whereas the distolic values would be the non-peak values. He needs to be able to disregard minor blips between the actual high and low values. What type of formula/algorithm would work for determining the average of these wave forms?

Homework Equations



I am sorry, I don't have anything to provide.

The Attempt at a Solution



My son has created an algorithm within his computer model, but it doesn't identify and disregard the "blips" that occur inbetween the actual high and low values.

Any help with this would be appreciated...I am simply attempting to help my son while he catches up on some sleep...he's been working for hours/days on his program. Thank you!
 
Physics news on Phys.org
  • #2
Welcome to Physics Forums!

I think I have a method your son could implement to isolate the high and low points out of the rest of the curve, although I can only explain the mathematics of it, hopefully he will see how to program it, it should be pretty straight forward:

Basically we will be using the idea of the derivative, which is the value of the gradient of the tangent to the curve at a point. More information is easily found on derivatives on the internet. Basically its value at a point x=a on the curve y= f(x) is calculated by:

[tex]f'(a) = \lim_{h\to 0} \frac{ f(a+h) - f(a)}{h}[/tex]

where f'(a) denotes the derivative of f(x) at x=a. The "lim of h to 0" part basically means make h a very small number. Something effective enough for this purpose should be [tex]f'(a) = \frac{f(a+ 0.0000001) - f(a)}{0.0000001}[/tex].

You can easily imagine that if we drew the tangent at a peak point on the curves, it will be a horizontal line. In other words, its tangent will be zero.

So basically your son can isolate those points on the curve by specifying he only wants the points where the derivative is equal to zero.

I hope that helps!
 
  • #3
Thank you for your suggestion. I will print it out and show it to him. He attends a local college in MN and has been working on a summer project to display heart pressure readings on a person's cell phone...a bit beyond my comprehension, however I was doing my own research for him on the internet and couldn't focus on the best approach (a bit beyond my comprehension level...I kept getting diverted to RMS calculations...). He's been very diligent in working on the overall solution all summer outside of his summer job (burning the midnight oil). I do appreciate your response. Have a great weekend!
 
  • #4
I wanted to get back to the person that assisted me with my question. My son did complete his project earlier this year and recently learned that he placed 2nd in the development contest. Not too bad for an entering Sophmore if I may say (parent, of course). Although I'm not sure he used your advice I am certain that all input was helpful and definitely appreciated. And, from his father, thank you for your help.

Tom
 
  • #5
Oh that was me! I wouldn't mind knowing it anything I suggested to him was used lol. Good work on 2nd place! 1st next time I'm sure =]
 

1. What is the purpose of computing a wave form average?

The purpose of computing a wave form average is to find the central tendency or average of a set of data points that represent a wave form. This can help to identify any patterns or trends in the data.

2. How is the wave form average calculated?

The wave form average is calculated by adding all of the data points together and then dividing by the total number of data points. This is also known as the arithmetic mean.

3. What is the difference between computing a wave form average and a traditional average?

The difference between computing a wave form average and a traditional average is that a wave form average takes into account the specific shape and pattern of the data points, while a traditional average treats all data points equally.

4. Can the wave form average be affected by outliers in the data?

Yes, the wave form average can be affected by outliers in the data. Outliers can significantly impact the overall average and may need to be removed or addressed in the analysis.

5. How can computing a wave form average be useful in scientific research?

Computing a wave form average can be useful in scientific research as it can help to identify patterns and trends in data, which can then be used to make predictions or draw conclusions about a specific phenomenon. It can also be used to compare different data sets and determine if there are any significant differences in the wave form averages.

Similar threads

Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
847
  • Advanced Physics Homework Help
Replies
8
Views
356
Replies
14
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
2K
  • STEM Academic Advising
Replies
4
Views
856
  • Quantum Physics
Replies
2
Views
1K
  • Quantum Interpretations and Foundations
Replies
33
Views
3K
  • Quantum Interpretations and Foundations
Replies
27
Views
2K
Replies
8
Views
2K
Back
Top