AccelerationFeatures
A set of acceleration (non-gravitational) features collected over a specific sampling period.
Collected by AccelerometerFeaturesProbe for the SensorSamplingPackage.ACCELERATION_FEATURES measure. Each feature is calculated per axis (x, y, z prefix), in m/s^2 or as a count.
The set of features is inspired from the Medium article on Feature Engineering on Time-Series Data for Human Activity Recognition and contains the following 15 simple statistical features:
- mean
- standard deviation
- average absolute deviation
- minimum value
- maximum value
- difference of maximum and minimum values
- median
- median absolute deviation
- inter-quartile range
- negative values count
- positive values count
- number of values above mean
- energy
- average resultant acceleration
- signal magnitude area
Most of these features are self-explanatory, except:
- Energy of a signal in every axis is computed by taking the mean of sum of squares of the values in a window in that particular axis.
- Average resultant acceleration over the window is computed by taking average of the square roots of the values in each of the three axis squared and added together.
- Signal magnitude area is defined as the sum of absolute values of the three axis averaged over a window.
- Inheritance
-
- Object
- Serializable
- Data
- SensorData
- AccelerationFeatures
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
AccelerationFeatures.fromAccelerometerReadings
- List<
UserAccelerometerEvent> readings
Calculates the features from a non-empty list of accelerometer readings.
AccelerationFeatures.fromJson
AccelerationFeatures
Properties
avgResultAcceleration
count
The number of accelerometer readings the features are calculated from.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
signalMagnitudeArea
xAad
xAboveMean
xEnergy
xIqr
xMad
xMax
xMaxMinDiff
xMean
xMedian
xMin
xNegCount
xPosCount
xStd
yAad
yAboveMean
yEnergy
yIqr
yMad
yMax
yMaxMinDiff
yMean
yMedian
yMin
yNegCount
yPosCount
yStd
zAad
zAboveMean
zEnergy
zIqr
zMad
zMax
zMaxMinDiff
zMean
zMedian
zMin
zNegCount
zPosCount
zStd
Methods
toJson
Return a JSON encoding of this object.