- Details
- Parent Category: Programming Assignments' Solutions
We Helped With This MATLAB Programming Assignment: Have A Similar One?
Assignment Description
Automatic Detection Algorithm of events (signals) in HRV Data using MATLAB
There are two frequency which are Low Frequency(LF) and High Frequency(HF) that been used in this project. The LFHF.m and HRV data are attached together as a reference.
1) By using acceleration data (XAcceleration, YAcceleration,ZAcceleration) , determine the ‘resting’ time to detect the events in LF and HF signals. The ‘resting’ time should be equal to resting time where there is no physical activity occurred at that time. The acceleration must be divided into 2 regions which are the ‘active’ time and the ‘resting’ time. This region must be identified by using filtering (e.g: low/high pass filter) to make the detection signal looks more accurately. Use FFT first to find the frequency for the filtering process.
2) After the ‘active’ and ‘resting’ time is identified, draw a subplot of 3 signals (LF,HF,Acceleration done with filtering process).
3) During length of ‘resting’ time regions, put a horizontal line as a threshold value (the threshold line can obtain from the value of mean along one period of ‘resting’ time) for every LF and HF. Note: the threshold line must be draw for every ‘resting’ time condition of the acceleration signal. The value of threshold line is depending on the number of peaks of the signal within one ‘resting’ time signal. It may different from each other depending on the signal.
4) For HF and LF signal, calculate the width between one peak to other peak that are above the threshold value. Note: Put an indication marks of every width of each of the signal.
5) The value of width, mean,standard deviation and area of the peaks for Low Frequency(LF) and high frequency(HF) in ‘resting’ time signal in acceleration should be appear in notepad. Note: Please put a numbering for ‘resting’ time signal for all the data in notepad. For example, it may contain more than one ‘resting’ time in the signal. For the first ‘resting’ time signal, it is necessary to put “Rest Time Signal 1” and so on.
Example of the signal Script function for calling HFLF.m file:
[LF, HF, LFHF, filterorder, f_low, f_high, W_low, W_high] = Get_LFHF(HRVDatams);