Answered step by step
Verified Expert Solution
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
#Find the peaks and troughs for the Red and IR channel using a scipy method.
Output the heart rate in beats per min for both the Red and IR channel with text label and rounded to 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 as an example.
Calculate the Average Peak Value, the Average Trough Value, the average Ratio of Ratios, And the average SpO for the entire run. Output that to the console with text labels and rounded to decimal places.
None # must be above absolute value of y axis
None # vertical distance to neighboring values
# height above surrounding baseline, previous might make scalable to PPG signal
# width of the peak at half peak height
INTERCEPTSPO#SpO INTERCEPTSPOSLOPESPORatio
SLOPESPO
Attachments
#
Starting with the solution for HW# add an additional section of code that calculates the BPM heart rate only for beats where there is exactly peak in between the adjacent troughs. Now recalculate this new heart rate, BPM and display it's average and standard deviation for the ~ second interval output to console with decimal places and properly labeled do this for file number You only need to do this for the IR channel remembering that IR and red are mislabeled
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started