> 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/analysis/biosensor-analysis/r-notebook-skin-temperature.md).

# R Notebook: Skin Temperature

Run the Skin Temperature R notebook to convert the Biopac SKT100C signal into absolute skin temperature in Celsius or Fahrenheit per stimulus.

*The Skin Temperature R Notebook computes, for each stimulus/respondent pair, the absolute skin temperature, based on a user-chosen gain and temperature scale (Fahrenheit or Celsius) from Biopac.*

This article will walk you through:

1. [*Prerequisites*](#prerequisites)
2. [*How to Analyze in iMotions Desktop*](#how-to-analyze-in-imotions-desktop)
3. [*Algorithm Introduction*](#algorithm-introduction)
4. [*Outputs: Desktop replay*](#outputs)

## Prerequisites

Supported sensors: Biopac (SKT100C)

***Note: The Notebook computes absolute*** ***temperature instead of relative temperature changes, which means that one needs to set the lower frequency response ("HP") to "DC" for data collection. Please*** ***read*** [***here***](https://www.biopac.com/wp-content/uploads/SKT100C.pdf) ***if you*** ***want to know more about the device.***

![one\_for\_all.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-77fd3ffd25d10c305ef2c9748f659d11d40dc1c4%2F56b08e6b03_one_for_all.webp?alt=media)

## How to Analyze in iMotions Desktop

1\. Create a new analysis for the study for which you wish to run the R-Notebook:

![The Add Analysis button on a study in the Library](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-0b352d688758cd75a0a20712355835132fb525d1%2Flab_library_add-analysis-button.png?alt=media)

2\. Advance through the steps "Segmentation Settings" and "Segmentation Criteria" with your preferred selections, until you reach the step "Signal Processing".

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-64e970cd42490f0b1fd7302a162f3a77b90adc0f%2Fb729e619ef_22-1-.webp?alt=media)

3\. By clicking the "+" next to "Active flows" you can select the algorithms you want to use for signal processing. Select the sensor ("Biopac SKT 100C Raw") for which you want to apply the Skin Temperature R Notebook in the drop-down "Device" menu. Select the algorithms in the drop-down “Algorithm” menu.

![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-10bf45d5f9ddfc3e65a11ee4b81a583d7a040573%2F848073aaca_ecpwwouceu28bmpwzylihgmceclip0.webp?alt=media)

4\. Name the analysis in the "Flow name" menu. Alter the parameters to suit your research needs, then click on “Next”. The parameters will be described in detail in the next section of this article: Algorithm Introduction.

![mceclip1.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1e118e10b31bdc09b6aa71092bf1dc8e73ca05ce%2F5d89d2936c_fnolu8xjd0bhs0huvyxgmceclip1.webp?alt=media)

5\. Select the stimuli to be included in the analysis. Then click the "Add" button to add the analysis and close the dialog.

![aanlysis.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1f16d728378791a161ac0e361e0ab2a6dd3a25aa%2F7d4c5727d1_aanlysis-3-.webp?alt=media)

## Algorithm Introduction

1\. Retrieval of the raw signal (expressed in Volt) from the sensor.

2\. Generates the absolute skin temperature, in either Celsius or Fahrenheit, based on your choice of **\[Choose temperature scale]** (Fahrenheit (deg F) or Celsius (deg C)).

To convert to the scale of Fahrenheit, the formula below is used:

*(Raw signal (expressed in Volt) \* gain) + 90*

*To convert to the scale of Celsius, the formula below is used:*

*(Raw signal (expressed in Volt) \* gain + 60) / 2*

Where the gain is set based on your choice of **\[Select corresponding gain used]** (default is 1, you have choices of "0.5", "1", "2", "5").

*Refer to* [*here*](https://www.biopac.com/wp-content/uploads/SKT100C.pdf) *if you want to know more about the gain settings and other settings of the device.*

![one\_for\_all.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a317f7c6a4c879962074f0068c28c13516322cb4%2Fb0e81f6968_one_for_all-3-.webp?alt=media)

## Outputs

### Desktop replay

In the individual replays of data, the calculated calibrated skin temperature, in either Celsius or Fahrenheit, is displayed as follows:

![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-696a5d5bb83cb6952b51b1f64a95c8fb47565c51%2F109ec43c31_lttefctft0ymyztwc7hytamceclip0.webp?alt=media)

* **Signals**:
  * **Calibrated Skin Temperature**: The calculated calibrated skin temperature, in either Celsius or Fahrenheit, of the displayed respondent/stimulus pair.


---

# 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/analysis/biosensor-analysis/r-notebook-skin-temperature.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.
