Skip to content

Commit

Permalink
docs: rm rf-feature-list.md and move feature descriptions to GLOSSARY.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed Oct 17, 2024
1 parent 284f15a commit 3295ef5
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 36 deletions.
38 changes: 37 additions & 1 deletion GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,40 @@
- **Steps25thAt**: Average time of day when 25% of steps was accumulated.
- **Steps50thAt**: Average time of day when 50% of steps was accumulated.
- **Steps75thAt**: Average time of day when 75% of steps was accumulated.
- **Steps95thAt**: Average time of day when 95% of steps was accumulated.
- **Steps95thAt**: Average time of day when 95% of steps was accumulated.


## Random Forest Feature List
The table below describes the handcrafted features used as inputs to the Random Forest model.
These features are extracted from the Euclidean norm of the triaxial accelerometer data.

| Feature Name | Description | Units |
|---------------------------------|--------------------------------------------------------------------|----------------|
| <b>Moment features</b> |
| avg | Mean | g |
| std | Standard deviation | g |
| skew | Skewness | |
| kurt | Kurtosis | |
| <b>Quantile Features</b> |
| min | Minimum | g |
| q25 | Lower quartile | g |
| med | Median | g |
| q75 | Upper quartile | g |
| max | Maximum | g |
| <b>Autocorrelation features</b> |
| acf_1st_max | Maximum autocorrelation | |
| acf_1st_max_loc | Location of 1st autocorrelation maximum | s |
| acf_1st_min | Minimum autocorrelation | |
| acf_1st_min_loc | Location of 1st autocorrelation minimum | s |
| acf_zeros | Number of autocorrelation zero-crossings | |
| <b>Spectral features</b> |
| pentropy | Signal's spectral entropy | nats |
| power | Signal's total power | g<sup>2</sup>/s |
| f1, f2, f3 | 1st, 2nd and 3rd dominant frequencies | Hz |
| p1, p2, p3 | Power spectral densities of respective dominant frequencies | g<sup>2</sup>/s |
| fft0, fft1, fft2, ... | Power spectral density for frequencies 0Hz, 1Hz, 2Hz, ... | g<sup>2</sup>/s |
| <b>Peak features</b> |
| npeaks | Number of peaks in the signal per second | 1/s |
| peaks_avg_promin | Average prominence of peaks | g |
| peaks_min_promin | Minimum prominence of peaks | g |
| peaks_max_promin | Maximum prominence of peaks | g |
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ $ stepcount sample.cwa -t rf

When using the random forest model, a set of signal features is extracted from the accelerometer data.
These features are subsequently used as inputs for the model's classification process.
For a comprehensive list of the extracted features, see [this list](https://github.com/OxWearables/stepcount/blob/main/rf-feature-list.md).
For a comprehensive list of the extracted features, see [the glossary](https://github.com/OxWearables/stepcount/blob/main/GLOSSARY.md#random-forest-feature-list).


### Crude vs. Adjusted Estimates
Expand Down
34 changes: 0 additions & 34 deletions rf-feature-list.md

This file was deleted.

0 comments on commit 3295ef5

Please sign in to comment.