> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/import-and-post-processing/importing-time-series-data-into-imotions.md).

# Importing Time Series Data into iMotions

Import your own time series data into an iMotions Lab study as CSV files in the Ex\_Data folder, per respondent or as aggregated data per stimulus.

This article describes how to import time series data recorded outside iMotions Lab, such as signals from a sensor iMotions does not support or values you have computed yourself, into a study. You can import data for each respondent and stimulus, or one aggregated series per stimulus into an analysis. iMotions Lab reads the data from CSV files that you place in the study folder, so there is no import dialog.

The respondents and stimuli the data belongs to must already exist in the study, and the respondents must have recordings.

## File format

Each CSV file holds the data for one stimulus.

* The first row is a header row with a name for every column.
* The first column is `Timestamp`, in milliseconds from the start of the stimulus. Timestamps are integers.
* Every other column is one signal. The column header is the signal name shown in iMotions Lab. Values are integers or decimal numbers, with a period as the decimal separator.
* The file has no missing values, such as empty cells or `NaN`. Remove rows that contain them.
* The file is saved without a byte order mark (BOM). In Excel, choose **CSV (Comma delimited)**, not **CSV UTF-8**.
* The file name is the stimulus name exactly as it appears in the study, followed by `.csv`.

Fields are separated by commas by default. To use tabs instead, set **Field Separator** to **Tab** on the **Results** tab of [Global Settings](https://help.imotions.com/lab/getting-started/imotions-global-settings.md#results).

A file with two signals for a stimulus named `iMotions logo`, starting 1 second into the stimulus, is named `iMotions logo.csv` and starts like this:

```
Timestamp,Example Data 1,Example Data 2
1000,0,10
1001,1,10
1002,2,10
1003,3,10
```

## Import data for each respondent

Data for each respondent goes in the study's `Ex_Data` folder, in one folder per respondent and, inside it, one folder per data source:

```
<study folder>\Ex_Data\<respondent name>\<data name>\<stimulus name>.csv
```

1. In iMotions Lab, right-click the study and select **Explore Folder**. The study folder opens in File Explorer.
2. Open the `Ex_Data` folder. If there is none, create it.
3. In `Ex_Data`, create a folder for each respondent, named exactly as the respondent is named in iMotions Lab, including capitalization and spaces.
4. In each respondent folder, create a folder for the data source, for example `Heart rate`. The folder name becomes the name of the signal group in iMotions Lab. You can add several data source folders for the same respondent.
5. Copy the CSV files into the data source folders, one file per stimulus.
6. In iMotions Lab, open the study. If it was already open, clear the respondent selection and select the respondents again.

The imported signals appear in the respondent details and in replay. In the **Signals** panel of replay, each data source folder is a group, and each column in the CSV file is a signal in that group, plotted along the stimulus timeline.

{% hint style="warning" %}
Files and folders whose names do not match a respondent or stimulus in the study are skipped without an error message. If data does not appear, check the names for typing errors, extra spaces and differences in capitalization.
{% endhint %}

## Import aggregated data for a stimulus

Use this when you have one series per stimulus rather than one per respondent, for example an average computed outside iMotions Lab. The data goes in the `Ex_Data` folder of an analysis:

```
<study folder>\Analysis\<analysis name>\Ex_Data\<data name>\<stimulus name>.csv
```

The analysis must have aggregated results for the stimulus. You can check this by selecting the stimulus in the analysis: if the **Aggregate** button is available, the analysis has aggregated results and the import works. If the button is greyed out, the import does nothing. See [Replay and analysis windows](https://help.imotions.com/lab/analysis/replay-and-analysis-windows.md#aggregate).

1. Create the analysis in iMotions Lab, or choose an existing one.
2. In the study folder, open `Analysis\<analysis name>`.
3. Create an `Ex_Data` folder, and in it a folder for the data source.
4. Copy the CSV files into the data source folder, one file per stimulus.
5. Run the analysis again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/import-and-post-processing/importing-time-series-data-into-imotions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
