heartbeats
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
heartbeats [2010/05/28 23:43] – Updating to new version jochen | heartbeats [2010/06/14 23:33] – jochen | ||
---|---|---|---|
Line 8: | Line 8: | ||
The [[xff]] IO reading class now supports reading the following formats: | The [[xff]] IO reading class now supports reading the following formats: | ||
* ACQ (up until version <= 3.9.7) | * ACQ (up until version <= 3.9.7) | ||
- | * TXT (use ''< | + | * TXT (use ''< |
and further formats might be added based on request and urgency. | and further formats might be added based on request and urgency. | ||
Line 102: | Line 102: | ||
==== Problems ==== | ==== Problems ==== | ||
Sometimes, the data is **very** noisy (like this): | Sometimes, the data is **very** noisy (like this): | ||
+ | |||
{{: | {{: | ||
Line 109: | Line 110: | ||
Naturally, it is possible to script this function, save the pre-detected heartbeats (without manual interaction/ | Naturally, it is possible to script this function, save the pre-detected heartbeats (without manual interaction/ | ||
+ | For instance, if the raw signal looks like this | ||
+ | |||
+ | {{: | ||
+ | |||
+ | A two-pass detection scheme can be employed: | ||
+ | |||
+ | <code matlab heartbeats_crisp_detection.m> | ||
+ | data = xff(' | ||
+ | |||
+ | % then z-transform the third column (in our case) and take the 4th power | ||
+ | pdata = ztrans(data.Data(:, | ||
+ | |||
+ | % pre-detect beats | ||
+ | % since we used the 4th power, the skew detection threshold must be lowered | ||
+ | % and our signal has short spikes, so the detection length threshold also! | ||
+ | bp = heartbeats(pdata, | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | |||
+ | % then pass this along with the actual signal back in | ||
+ | [bp, bs, bf, bv, cp, wgd, wd] = heartbeats(data.Data(:, | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' |
heartbeats.txt · Last modified: 2010/06/29 17:17 by jochen