partitioning signal into windows
7 次查看(过去 30 天)
显示 更早的评论
Hi all, am working on a system to detect fall from an elderly person..my algorithm is as follows..but i have problem in partitioning the signals in moving windows...any ideas on the code to be used?
Fall Detection Algorithm
The fall detection algorithm is implemented as follows.
• The resultant acceleration signal is partitioned using a
1.5-s window segment with 50% overlap (S).
• For a segment, the following values are computed: the
maximum resultant acceleration of the segmented
signal (Smax), the minimum resultant acceleration of
the segmented signal (Smin), the time when Smax occurs
(Imax), and the time when Smin occurs (Imin).
• The resultant acceleration signal is classified as a fall
if (Smax ≥ MaxTh) and (Smin ≤ MinTh) and (Imin < Imax),
where MaxTh = 1.75g and MinTh = 0.75g.
• Otherwise, the signal is classified as an ADL. This
0 个评论
回答(2 个)
Walter Roberson
2011-12-30
5 个评论
Walter Roberson
2012-1-4
For non-overlapping windows, you have a problem because your data length is not a multiple of the window size.
When the data is a multiple of the data size, usually the easiest way to proceed for non-overlapping windows is to reshape() the data to be (window size) by (number of segments); then you can mean() and std() against the first dimension (the default) and so do all the segment calculations at the same time.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!