> For the complete documentation index, see [llms.txt](https://documentation.virtuedeep.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.virtuedeep.tech/affective-computing-by-virtue/designing-solutions-powered-by-affective-computing/understanding-data-inputs.md).

# Understanding data inputs

Learn about the primary groups of user analysis variables and how to set up data inputs for them.

Affective Computing uses the following types of data for user analysis:

<table><thead><tr><th width="187">Type</th><th>Description</th><th>Input variables</th></tr></thead><tbody><tr><td>Physiological data</td><td><p>Involuntary responses of the human body that cannot be manipulated. </p><p></p><p>You can use external devices or sensors that meet the following criteria to detect and collect this data:</p><ul><li>Constant, real-time data reading</li><li>Bluetooth &#x26; ANT+ compatibility</li><li>BLE (Bluetooth Low Energy) support</li><li>SDK availability</li><li>Accessibility of data via Python</li></ul></td><td><ul><li>Heart rate</li><li>Speech</li><li>Galvanic Skin Response (GSR)</li><li>Brain (EEG)</li><li>Blood pressure</li><li>Breath</li></ul><p>For detailed information, see <a data-mention href="#physiological-input-variables">#physiological-input-variables</a>.</p></td></tr><tr><td>User motion data</td><td>Data related to physical movements, reactions, and behavior. This data reflects user behavior in specific situations.<br><br>For example, this could include speech (how questions were answered), joystick movement, and more.</td><td><ul><li>Speech analysis variables (Time to answer, meaning, number of words, duration of answer, no answer, and pauses between words)</li><li>Interaction with a front end</li><li>QR activation</li><li>Domain-specific technical variables</li><li>Facial recognition</li></ul><p>For detailed information, see <a data-mention href="#user-motion-input-variables">#user-motion-input-variables</a>.</p></td></tr><tr><td>Environmental data</td><td>The stimuli that surrounds the user, such as location, time, weather, and more.<br><br>This data provides the environmental context during user-solution interactions.</td><td><ul><li>Date</li><li>Time</li><li>Location</li><li>Speed</li><li>Facial recognition</li><li>Crowd counting</li><li>Weather</li><li>Pollution</li><li>Signals (technical variables for the Safety domain) such as traffic signals</li><li>Other domain-specific technical variables</li></ul><p>For detailed information, see <a data-mention href="#environmental-input-variables">#environmental-input-variables</a>.</p></td></tr></tbody></table>

## Physiological input variables

The following table describes how to configure data inputs for each physiological data variable:

<table><thead><tr><th width="121">Variable</th><th width="169">Description</th><th width="100">Source*</th><th data-type="checkbox">Combined sources?</th><th>Device</th><th width="133">Type of data</th><th width="142">Data</th></tr></thead><tbody><tr><td>Heart rate</td><td>The heart rate (beats per minute) during the stage</td><td>Front end</td><td>true</td><td>Wearable heart rate sensor with BLE</td><td>Structured;  Beats per minute (BPM)</td><td>Values from 50 to 200</td></tr><tr><td>Speech</td><td>The frequency of the user's voice during the stage</td><td>Front end</td><td>true</td><td>Edge’s microphone settings</td><td>Structured; Hertz (Hz)</td><td>Audio files</td></tr><tr><td>Galvanic Skin Response (GSR)</td><td>Any sweating during the stage</td><td>Front end</td><td>true</td><td>Wearable GSR sensor with BLE</td><td>Structured; Hertz (Hz)</td><td>Values from 0 to 50</td></tr><tr><td>Brain (EEG)</td><td><p>The electrical activity of the brain during the stage. </p><p>Affective Computing  supports the following 5 EEG channels in the following order and format: <br><br>{ "AF3", "T7", "Pz", "T8", "AF4" }<br><br>Each channel is a key-value pair.</p></td><td>Front end</td><td>false</td><td>Wearable EGG sensor with BLE</td><td>Structured; Hertz (Hz)</td><td>Values from 4 to 200</td></tr><tr><td>Blood Pressure</td><td>Indicates the user's efforts during intense physical activity during the stage.</td><td>Front end</td><td>true</td><td>Wearable SpO2 sensor with BLE</td><td></td><td></td></tr><tr><td>Breath</td><td>Indicates the user's efforts during intense physical activity during the stage.</td><td>Front end</td><td>true</td><td>Wearable SpO2 sensor with BLE</td><td></td><td></td></tr></tbody></table>

{% hint style="info" %}
**\*Source**: Indicates from where the data can be obtained. It could be obtained from the end-user facing front end (for example, an app's GUI) or from Affective Computing's analysis itself.

**\*Combined sources?**: Indicates whether this data input needs to be combined with other sources or is sufficient by itself
{% endhint %}

## User motion input variables

The following table describes how to configure data inputs for each user motion data variable:

<table><thead><tr><th width="132">Variable</th><th>Description</th><th width="102">Source*</th><th>Device</th><th>Type of data</th><th width="98">Data</th><th width="129">Mandatory?*</th></tr></thead><tbody><tr><td>Time to answer</td><td>How long the users take to respond to a question.</td><td>Affective Computing</td><td>-</td><td>Structured; Seconds</td><td>Values from 0 to infinity</td><td>Yes, if Speech is selected as a physiological input variable.</td></tr><tr><td>Meaning</td><td>The literal meaning of the words spoken.</td><td>Affective Computing</td><td>-</td><td>Unstructured; Text</td><td>Audio</td><td>Yes, if Speech is selected as a physiological input variable.</td></tr><tr><td>Number of words</td><td>The number of words  in the user's answer.</td><td>Affective Computing</td><td>-</td><td>Structured; Numbers</td><td>Values from 0 to infinity</td><td>Yes, if Speech is selected as a physiological input variable.</td></tr><tr><td>Duration of the answer</td><td>Time taken to answer.</td><td>Affective Computing</td><td>-</td><td>Structured; Seconds</td><td>Values from 0 to infinity</td><td>Yes, if Speech is selected as a physiological input variable.</td></tr><tr><td>No answer</td><td></td><td>Affective Computing</td><td>-</td><td>Structured; Audio</td><td>-</td><td>Yes, if Speech is selected as a physiological input variable.</td></tr><tr><td>Pauses between words</td><td>Number of seconds between words in the user's answer.</td><td>Affective Computing</td><td>-</td><td>Structured; Seconds</td><td>Values from 0 to infinity</td><td>Yes, if Speech is selected as a physiological input variable.</td></tr><tr><td>Interaction with a front end or UI</td><td>This variable depends entirely on how the solution is designed and could include multiple options.</td><td>Front end</td><td>The app or device that provides the UI or front end used for the interaction</td><td>Triggered action</td><td>Depends on the solution's requirements.</td><td>No</td></tr><tr><td>QR activation</td><td>The user triggers predefined logics by scanning a QR code. </td><td>Front end</td><td>Camera used for scanning the code</td><td>Triggered action</td><td></td><td>No</td></tr><tr><td>Other domain-specific technical data</td><td>This variable depends on the solution's domain and could include multiple parameters.</td><td>Front end</td><td>The app or device that provides the UI or front end used for the interaction</td><td>Triggered action</td><td>Depends on the solution's requirements.</td><td>No</td></tr><tr><td>Facial recognition</td><td>User identification to trigger predefined logics or user facial data processing to identify expressions</td><td>Front end</td><td>Camera used for facial recognition</td><td>Unstructured; Video processing</td><td>Video</td><td>No</td></tr></tbody></table>

{% hint style="info" %}
**\*Source**: Indicates from where the data can be obtained. It could be from the end-user facing front end (for example, an app's GUI) or from Affective Computing's analysis itself.

\***Mandatory?**: Indicates whether this data input is required for all projects.
{% endhint %}

## Environmental input variables

The following table describes how to configure data inputs for each environmental data variable:

| Variable                             | Description                                                             | Source                                   | Device                                                                       | Type of data                    | Data                                    | Mandatory? |
| ------------------------------------ | ----------------------------------------------------------------------- | ---------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------- | --------------------------------------- | ---------- |
| Date                                 | Date                                                                    | Front end                                | The app or device that provides the UI or front end used for the interaction | Structured; MM/DD/YYYY          |                                         | Yes        |
| Time                                 | Time of the day and time zone                                           | Front end                                | The app or device that provides the UI or front end used for the interaction | Structured; TIME-ZONE\_HH:MM:SS | Values from 00:00:00 to 23:59:59        | Yes        |
| Location                             | User location GPS coordinates                                           | Front end                                | GPS sensor                                                                   | Structured; Lat,Long            |                                         | No         |
| Speed                                | Movement speed                                                          | Front end                                | GPS sensor                                                                   | Structured; km/h                | Values from 0 to 400                    | No         |
| Facial recognition                   | User identification to trigger predefined logics                        | Front end                                | IP camera                                                                    | Unstructured; video processing  |                                         | No         |
| Crowd counting                       | Random face detection and counting                                      | Data provided by your on-premises server | IP camera                                                                    | Unstructured; video processing  |                                         | No         |
| Weather                              | Weather information based on user location                              | External data feed                       | External data feed (based on user's GPS location)                            | Structured                      | Depends on the external data feed       | No         |
| Pollution                            | Level of contaminants in the air based on user location                 | External data feed                       | External data feed (based on user's GPS location)                            | Structured                      | Depends on the external data feed       | No         |
| (Technical data for safety) Signals  | External signs such as traffic signals.                                 | Front end                                | Camera                                                                       | Unstructured; image processing  |                                         | No         |
| Other domain-specific technical data | Depends on the solution's domain and could include multiple parameters. | Front end                                | The app or device that provides the UI or front end used for the interaction | Triggered action                | Depends on the solution's requirements. | No         |

{% hint style="info" %}
**\*Source**: Indicates where the data can be obtained. It could be from an end-user facing front end (for example, an app's GUI) or from Affective Computing's analysis itself.

\***Mandatory?**: Indicates whether this data input is required for all projects
{% endhint %}

## Recommended devices

The following table lists recommended devices you can use for collecting different types of data:

<table><thead><tr><th width="133">Input</th><th>Type of Data</th><th>Hardware</th><th>Type</th><th>Suggested brand</th></tr></thead><tbody><tr><td>Heart Rate (HR)</td><td>Structured data; BPM</td><td>Sensors</td><td>Arm sensors</td><td><a href="https://www.amazon.es/moofit-Frecuencia-Impermeable-Rechargeable-Compatible/dp/B0B7J39WWG/ref=sr_1_4?__mk_es_ES=%C3%85M%C3%85%C5%BD%C3%95%C3%91&#x26;keywords=banda%2Bbrazo%2Bpulsometro&#x26;sr=8-4&#x26;th=1">Moofit</a></td></tr><tr><td></td><td></td><td></td><td>Chest sensors</td><td><a href="https://www.amazon.com/LIVLOV-Monitor-Bluetooth5-0-Waterproof-Peloton/dp/B09KNNBJSW/ref=sr_1_21?crid=VQIHAV4APY0H&#x26;keywords=ANT%2B+heart+rate+monitor&#x26;qid=1663086028&#x26;sprefix=ant%2B+heart+rate+monitor+%2Caps%2C184&#x26;sr=8-21">Liv</a></td></tr><tr><td></td><td></td><td></td><td>Finger sensor</td><td><a href="https://cloud.ouraring.com/v2/docs">OURA</a></td></tr><tr><td></td><td></td><td>Smartbands</td><td>Wristband</td><td><p><a href="https://shop.helohealth.com/shop/biosense-health-band-17#attr=7">HELO</a> </p><p><a href="https://www.amazon.ae/Mio-Monitor-Wristband-Medium-Electric/dp/B00MZC9DQI/ref=sr_1_3?crid=1XU2SUUEV1336&#x26;keywords=mio%2Bslice%2Bheart%2Brate&#x26;qid=1677046094&#x26;sprefix=MIO%2BSLICE%2Caps%2C568&#x26;sr=8-3&#x26;th=1&#x26;psc=1">MIO</a>/<a href="https://www.amazon.ae/Mio-Slice-Heart-Rate-Monitors-Navy-Small/dp/B01N6HFEFV/ref=sr_1_41?crid=3BGCK8OHO8EYN&#x26;keywords=MIO%2Bheart%2Brate&#x26;qid=1677047031&#x26;sprefix=mio%2Bheart%2Brate%2Caps%2C246&#x26;sr=8-41&#x26;th=1">MIO3</a> </p><p><a href="https://www.garmin.com/en-US/p/782585#specs">Garmin Vivosmart 5</a></p></td></tr><tr><td>HR &#x26; Skin (GSR)</td><td>Structured data; BPM and Hz</td><td>Sensors</td><td>Wristband</td><td>-</td></tr><tr><td></td><td></td><td></td><td>Armband</td><td><a href="https://kenzen.com/end-to-end-health-and-safety-monitoring/">Kenzen</a></td></tr><tr><td>Speech</td><td>Structured; text</td><td>Microphone</td><td>Any microphone device</td><td>-</td></tr><tr><td>EEG</td><td>Non-structured data; Hz</td><td>-</td><td>Headset</td><td><p><a href="https://www.amazon.com/Flowtime-Biosensing-Meditation-Brainwave-Mindfulness/dp/B0824L385C?dchild=1&#x26;keywords=eeg+headset&#x26;qid=1634053580&#x26;sr=8-2-spons&#x26;psc=1&#x26;smid=A3DULU1O5YYX3I&#x26;spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEzOFdFMlRNRThLSkcwJmVuY3J5cHRlZElkPUEwNjA0MzY2MjNNUkJaOEZWNTk2MSZlbmNyeXB0ZWRBZElkPUEwMjU1Nzg2MVQyVzlCMlZZWktQViZ3aWRnZXROYW1lPXNwX2F0ZiZhY3Rpb249Y2xpY2tSZWRpcmVjdCZkb05vdExvZ0NsaWNrPXRydWU%3D&#x26;linkCode=sl1&#x26;tag=bestaiassista-20&#x26;linkId=8adb2c988675a25feff7a73944e29b54&#x26;language=en_US&#x26;ref_=as_li_ss_tl">Entertech Flowtime</a>, <a href="https://www.emotiv.com/commercial-eeg-headsets-for-enterprise/#">MN8</a> (Emotiv), <a href="https://store.myndplay.com/products.php?prod=48">Myndplay</a></p><p><a href="https://neurosity.co/tech-specs">Neurosity</a> </p><p><a href="https://choosemuse.com/how-it-works/">Muse</a> </p><p><a href="https://www.mendi.io/?discount=mendiwithdrcody">Mendi</a> </p><p><a href="https://focuscalm.com/">Focuscalm</a></p></td></tr><tr><td></td><td></td><td></td><td>Headphones</td><td><p><a href="https://mbraintrain.com/smartfones/">MBT</a></p><p><a href="https://www.neurable.com/headphones">Neurable</a></p></td></tr></tbody></table>

## Plugging in an external or synthetic data set

We strongly recommend providing only data collected from real humans (by making them participate in your solution experiences) as input for your human-centered solution.&#x20;

This is because diagnosing and analyzing real humans provides Affective Computing with comprehensive context of the solution experience, such as limitations, boundaries, and genuine human reactions to events, and helps you deliver realistic personalization to your users.

For example, consider a solution that simulates and validates a thrill ride in a theme park. Unless the required input data (speech and heart rate) is collected from real users based on their participation in this specific experience, the inputs wouldn't be relevant and cannot help Affective Computing understand the context of the experience comprehensively. (If your solution aims at pre-validation, the experience can be run in virtual reality with real human users for data collection.)

Nonetheless, if required (for example, for fast and low-level validation where accurate personalization is not a key factor), when setting up your solution, you can plug in an external data set or generate and use a synthetic data set.

{% hint style="danger" %}
Using pre-existing or synthetic data reduces the human-centricity of your solution.
{% endhint %}

You would need to do this manually; you must normalize, transform (to the format required by your solution), and feed the data into your solution using the APIs (using a script or worker) as that of different users.

## How to define data inputs for your project

You must declare (define) data inputs in your project for each type of (raw or synthetic) external data that you want to utilize in your solution. You can define and manage data inputs for your projects using the Portal or our public APIs.

### Working with data inputs using the Portal

{% content-ref url="/pages/jG2ledVoSBRUjGK8prW0" %}
[Defining data inputs](https://documentation.virtuedeep.tech/guides/using-the-portal/defining-data-inputs.md)
{% endcontent-ref %}

### Working with data inputs using APIs

{% content-ref url="/spaces/vj8sRVTP47RXCgM8y0Lm/pages/It9jOvOIvaadwMIuRRDm" %}
[Create a project](https://documentation.virtuedeep.tech/guides/using-the-public-apis/working-with-projects/create-a-project.md)
{% endcontent-ref %}

{% content-ref url="/spaces/vj8sRVTP47RXCgM8y0Lm/pages/uTAo5C3lOgAPQfkq7oBM" %}
[Viewing available data inputs (interaction setups)](https://documentation.virtuedeep.tech/guides/using-the-public-apis/viewing-available-data-inputs-interaction-setups.md)
{% endcontent-ref %}
