Create a scatter plot of first differences within HRV by plotting [(4x(n+2)−3x(n+1)−x(n+3))/2] against [(4x(n+1)−3x(n)−x(n+2))/2] for a signal, x.
Compute, in the anti-clockwise direction, the angle, αn, that each point in the scatter plot makes with the abscissa, such that data-points in the first quadrant of the scatter plot will make acute angles with the abscissa, those in the second quadrant will make obtuse angles, and those in the third and fourth quadrants will make reflex angles.
Sum the angles, αn, computed in Step 2, and divide the total by the number of data-points, N, in the HRV signal. Designate this total as the Real Angle Sum (RAS), .
Count the number of points in the scatter plot which fall within the first quadrant, and denote this by .
Divide by N to find the proportion of the total number of points that lie in the first quadrant, , that is .
Repeat Steps 4 and 5 to compute the proportion of points in the second and fourth quadrants together, .
Course-grain the HRV signal to access the signal at a higher temporal scale, and repeat Steps 4 and 5 to compute the proportion of points in the third quadrant, .
The metrics RAS, , and are the four outputs of ClassA.
Create a three-dimensional plot of against against to identify different states of stress. The overall trend in the data is indicated by RAS.
|