Feature set (Intermediate feature files)
Inside the data/featureset
or data/pkl
folder, you won’t find any files in this folder until you run the codes. Files in data/featureset
folder are in .csv
format and files in data/pkl
folder are in binary format .pkl
. Both will share the same filename and have the same content/values once loaded in the program.
[session name]_[feature set type].[window size].[data type].csv
[session name]_[feature set type].[window size].[data type].pkl
There will be two data types: one is for feature vector (.data.csv
or .data.pkl
) and the other is for class label (.class.csv
or .class.pkl
). They are associated with each other.
For example, session1_BFW.40.data.csv
represents feature vectors for session 1 and the features are computed with data from both wrists and with window size of 40 samples (which is 1s under 40 Hz sampling rate).
As another example, session_all_DW.600.class.csv
represents class labels for all sessions and the corresponding .data.csv
is computed with dominant wrist accelerometer data with window size 600 samples (which is 15s under 40 Hz sampling rate).
Feature vector file format
There will be a header row. The first column is the index of current segment (start from 0). And the rest columns are different features. It’s easy to understand the meaning through the names, or you may refer to the documentation of the source codes.
Class label file format
There will be a header row with all necessary or unnecessary columns, you can choose to use any of them.
Column name
Meaning
segment
index of current segment (start from 0)
STARTTIME
start time of current segment
ENDTIME
end time of current segment
seg duration
the duration of current segment in seconds
session
the number indicate which session current segment belongs to
sensor
which sensor does current segment row belongs to (DW, NDW, and BFW), refer to footnote 5 for explanation.
inside puff/puff duration
The duration of puffing happens within current segment / the duration of this current puffing
inside puff/segment duration
The duration of puffing happens within current segment / the duration of this current segment
prototypical?
Whether it’s prototypical puff or not (0, 1) if no-puff, leave empty string
puff index
the index of puff for current segment from current sensor
puff side
left or right
car percentage
The percentage of time that in-car activity occupies current segment
talk percentage
The percentage of time that talking activity occupies current segment
unknown percentage
The percentage of time that unknown-activity occupies current segment
drinking percentage
The percentage of time that drinking-beverage activity occupies current segment
reading percentage
The percentage of time that reading-paper activity occupies current segment
eating percentage
The percentage of time that eating-a-meal activity occupies current segment
smoking percentage
The percentage of time that smoking activity occupies current segment
computer percentage
The percentage of time that using-computer activity occupies current segment
phone percentage
The percentage of time that using-phone activity occupies current segment
walking percentage
The percentage of time that walking posture occupies current segment
superposition percentage
The percentage of time that activity superposition happens during current segment[6]</sup>
name
The name of the class assigned to this segment
target
The index of the class assigned to this segment
Last updated
Was this helpful?