Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# 2 . Find the peaks and troughs for the Red and IR channel using a scipy method. Output the heart rate in beats per

#2.Find the peaks and troughs for the Red and IR channel using a scipy method.
Output the heart rate in beats per min(BPM) for both the Red and IR channel with text label and rounded to 2 decimal places. Remember Red and IR channel are switched in the data.
Plot the results and mark the peaks and troughs for the red channel and graph. See Plot 3 as an example.
Calculate the Average Peak Value, the Average Trough Value, the average Ratio of Ratios, And the average SpO 2 for the entire run. Output that to the console with text labels and rounded to 2 decimal places.
h= None # must be above absolute value of y axis
t= None # vertical distance to neighboring values
p=400 # height above surrounding baseline, previous 500, might make scalable to PPG signal
w=10, # width of the peak (at half peak height)
INTERCEPT_SPO2=130,#SpO2= INTERCEPT_SPO2-SLOPE_SPO2*Ratio
SLOPE_SPO2=36
Attachments
#3.
Starting with the solution for HW#2 add an additional section of code that calculates the BPM heart rate only for beats where there is exactly 1 peak in between the adjacent troughs. Now recalculate this new heart rate, BPM2, and display it's average and standard deviation for the ~40 second interval (output to console with 2 decimal places and properly labeled). do this for file number 9. You only need to do this for the IR channel (remembering that IR and red are mislabeled).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Infrastructure For Medical Research In Databases

Authors: Thomas Heinis ,Anastasia Ailamaki

1st Edition

1680833480, 978-1680833485

More Books

Students also viewed these Databases questions

Question

what numbers do I need to figure variable factory overhead

Answered: 1 week ago

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago