Data Acquisition
Uploading motion data
Add sensor recordings to a Motion project from CSV or JSON files.
Try it in StudioGoal
By the end of this page your project will contain labelled sensor recordings, split into training and testing data.
What a recording file looks like
Each file is one recording of one movement. PetalEdge reads two formats.
CSV
The first row is the header. Every other row is one moment in time.
timestamp,accX,accY,accZ
0,0.12,9.71,0.40
10,0.35,9.52,0.61
20,0.88,9.10,0.94
| Rule | Details |
|---|---|
| Timestamp column (optional) | The first column may be called timestamp, time, time_ms, timestamp_ms or t. Its values are in milliseconds. |
| Frequency | Studio works out the frequency from the timestamps (here a row every 10 ms means 100 Hz). Without a timestamp column, Studio uses 100 Hz. |
| Axis columns | Every other column is one sensor axis. Common names are accX, accY, accZ, gyrX, gyrY, gyrZ. |
| Other spellings | ax, acc_x or accelX are read as accX; gx, gyro_x or gyroX as gyrX, and so on. Use only one spelling per axis in a file. |
| Values | Every cell must be a number, and every row must have the same number of columns. |
JSON
{
"interval_ms": 10,
"sensors": [{ "name": "accX" }, { "name": "accY" }, { "name": "accZ" }],
"values": [
[0.12, 9.71, 0.40],
[0.35, 9.52, 0.61]
]
}
sensors names the axes, each row in values has one number per sensor, and interval_ms is the time between rows (10 ms means 100 Hz).
Steps
- Open Data acquisition in Studio.
- Choose an Upload category:
- Training data: all files go to the training set.
- Testing data: all files go to the test set.
- Automatically split between training and testing: Studio puts about 80 % of the files in training and 20 % in testing. The split is decided by the file name, so the same file always lands in the same set.
- Choose a Label option:
- Infer from filename: the text before the first
.becomes the label, sowave.01.csvis labelled wave. - Leave data unlabeled: upload now and add labels later on the Data labeling page.
- Enter label: give every file in this upload the same label.
- Infer from filename: the text before the first
- Drag your files onto Drag & drop sensor recordings here, or select Choose files or Upload folder.
- Select Upload N files.
Result
Your recordings appear on the Data labeling page, each with its label and its training or testing split.