# Sensor data - Variable labels

**URL:** <https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192>\
**Category:** Support\
**Created:** [June 14, 2020, 4:29pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192 "2020-06-14T16:29:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chumanhluan1005](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@chumanhluan1005](https://forum.avicennaresearch.com/u/chumanhluan1005)\
**Post date:** [June 14, 2020, 4:29pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/1 "2020-06-14T16:29:12Z")

</div>

Hi all,

I downloaded sensor data, but have found it difficult to retrieve the meaning of variable labels (I was not the one who coded these). I hope I could find help from this forum.

In the accelerometer data, what do “activity\_type” and “confidence\_level” mean?  
In the screen-state data, what do “FALSE” and “TRUE” mean?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![m.hashemian](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/m/a5b964/32.png) [@m.hashemian](https://forum.avicennaresearch.com/u/m.hashemian)\
**Post date:** [June 15, 2020, 5:05pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/2 "2020-06-15T17:05:18Z")

</div>

Hi @chumanhluan1005

Thanks for your question. I think [this part of our documentation](https://learn.ethicadata.com/documentation/data-sources/motion-sensors/) can help you understand the variables in the exported data.

I should clarify that Accelerometer does not have `activity_type` nor `confidence_interval`. I believe you are referring to the “Activity Recognition” which is another data source.

Thanks.

---

<div class="post-metadata">

**Author:** ![chumanhluan1005](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@chumanhluan1005](https://forum.avicennaresearch.com/u/chumanhluan1005)\
**Post date:** [June 15, 2020, 5:29pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/3 "2020-06-15T17:29:15Z")

</div>

> [@m.hashemian](#):
>
> Activity Recognition

Thank you very much, Hashemian. Yes, that was “Activity Recognition”, not “Accelerator” .

Luan

---

<div class="post-metadata">

**Author:** ![chumanhluan1005](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@chumanhluan1005](https://forum.avicennaresearch.com/u/chumanhluan1005)\
**Post date:** [June 15, 2020, 5:53pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/4 "2020-06-15T17:53:35Z")

</div>

I would also like to ask how I can calculate the total time for the “Screen state” variable when the phone is ON. Sorry for the naive question.

Thanks,

Luan

---

<div class="post-metadata">

**Author:** ![m.hashemian](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/m/a5b964/32.png) [@m.hashemian](https://forum.avicennaresearch.com/u/m.hashemian)\
**Post date:** [June 15, 2020, 6:30pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/5 "2020-06-15T18:30:14Z")

</div>

The data shows when the phone was turned on (`TRUE`), and when it was turned off (`FALSE`). The time the phone was on and user was interacting with the device then will be:

```auto
sum of all (record[n + 1].time - record[n].time) given record[n].state = TRUE

```

Basically the duration from the next “turn off event” to the current “turn on event”.

Hope it makes sense.

---

<div class="post-metadata">

**Author:** ![chumanhluan1005](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@chumanhluan1005](https://forum.avicennaresearch.com/u/chumanhluan1005)\
**Post date:** [June 15, 2020, 7:03pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/6 "2020-06-15T19:03:50Z")

</div>

Thanks, Hashemian. Do you have that in the R programming?

---

<div class="post-metadata">

**Author:** ![m.hashemian](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/m/a5b964/32.png) [@m.hashemian](https://forum.avicennaresearch.com/u/m.hashemian)\
**Post date:** [June 16, 2020, 11:08am UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/7 "2020-06-16T11:08:10Z")

</div>

Unfortunately not. Sorry.

---

<div class="post-metadata">

**Author:** ![chumanhluan1005](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@chumanhluan1005](https://forum.avicennaresearch.com/u/chumanhluan1005)\
**Post date:** [June 25, 2020, 9:11pm UTC](https://forum.avicennaresearch.com/t/sensor-data-variable-labels/192/8 "2020-06-25T21:11:47Z")

</div>

Thanks for your help!
