Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# 2 . Build an app that will take a file number and read in one of the PPG Data _ # . csv files

#2.Build an app that will take a file number and read in one of the PPG Data_#.csv files and determine what percentage of each file's mean normalized magnitude of Acceleration is in a period of at least 3 seconds long with the Normalized Magnitude being within the threshold. Use a moving window of 3 sec (300 samples) to find low-activity sections. Assign the low-activity sections a value of 1 and all other periods, the high-activity sections, a value of 0. Note the high-activity sections can be less than 300 samples. Be sure to drop the first 8 rows of data from the pandas data frame to eliminate the corrupted "warm-up" data at the beginning of each data file.
Show graphically when magnitude is within or not within the low-activity range. See Plot 4 example (note this example was done on multiple files put together and used instead a 10 second window.
You App should build the file path to read using an integer input variable that is the file number.
Simplified Grading Scheme:
10 pts for completely correct solution with good coding practices
7 pts for an incorrect solution but a solid attempt and good coding
5 pts for a reasonable attempt
0 pts for no attempt or a trivial attempt.
#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

Step: 3

blur-text-image

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

Mastering Big Data Interview 751 Comprehensive Questions And Expert Answers

Authors: Mr Bhanu Pratap Mahato

1st Edition

B0CLNT3NVD, 979-8865047216

More Books

Students also viewed these Databases questions

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago