CSV acquisition format

You can import data in CSV format using either the upload functionality in the Studio (Go to Data acquisition, then press the upload icon) or through the Edge Impulse CLI.

The format below is the default format used by our Ingestion API. If you need more flexibility, the CSV Wizard feature can help you to set a CSV parser to easily import CSV files formatted differently.

CSV format

Edge Impulse requires CSV data to be stored in a particular format. You'll need to create one CSV file per sample (e.g. a machine with a fault state). The first row should be a header describing the sensor axes, and each row should be a single reading at a particular time. For multi-axis, time-series data, the first column name must be timestamp in millisecond format. It should have constant intervals between lines (ie: 16 below), the data ingestion service will infer the sampling frequency from the intervals. For example, this is data from an accelerometer:


For a single, multi-axis reading (i.e. something that is not time-series data), you can omit the timestamp. Note that you must have 1 header row and only 1 data row. This is an example from a single, triple-axis accelerometer:


CSV filename

If you prefix the file name with the name of the label, the uploader will automatically assign the right labels to your data. The prefix should end with a period before the sample name in the following format:


For example, faultstate1.sample0.csv will tell the Studio that the containing data should have the label faultstate1.


This repository provides examples that show how to save data in CSV format to be uploaded to Edge Impulse.

Last updated