#  Activity recognition enums

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/activity_recognition_enums.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/activity_recognition_enums.html)

All the enums are defined in the activity recognition are used by QESDK Sensor API.

The following enums represent the various activity recognition states used by the QESDKSensor
      API.

| Enum values | Enum values |
| --- | --- |
| SNS\_AR\_UNKNOWN = 0 | UNKNOWN is reported when the algorithm is unable to detect the current activity state. |
| SNS\_AR\_STATIONARY = 1; | User is relatively stationary. |
| SNS\_AR\_PED = 2; | User is classified as a pedestrian. |
| SNS\_AR\_NMV = 3; | User is in a nonmotorized vehicle. |
| SNS\_AR\_MV = 4; | User is in a motorized vehicle. |
| SNS\_AR\_WALK = 5; | User is walking |
| SNS\_AR\_RUN = 6; | User is running |
| SNS\_AR\_BICYCLE = 7; | User is on a bicycle |
| SNS\_AR\_CAR = 8; | User is in a car |
| SNS\_AR\_AIRPLANE = 9; | User is in an airplane |

The activity recognition states are not completely independent, some states might be nested
      and co-related.

Table : Co-relation of activity recognition states

| **1st state** | **2nd state** | **3rd state** | **Interpretation** |
| --- | --- | --- | --- |
| SNS\_AR\_UNKNOWN |  |  | State unknown |
| SNS\_AR\_STATIONARY |  |  | User is stationary while not in vehicle |
| SNS\_AR\_PED | SNS\_AR\_WALK |  | User is walking at normal or slow speed |
| SNS\_AR\_PED | SNS\_AR\_RUN |  | User is running |
| SNS\_AR\_NMV | SNS\_AR\_BIKE |  | User is riding a bike |
| SNS\_AR\_NMV | SNS\_AR\_BIKE | SNS\_AR\_STATIONARY | User is stationary while on bike |
| SNS\_AR\_MV |  |  | User in nonstationary motorized vehicle (car/bus/train) |
| SNS\_AR\_MV | SNS\_AR\_CAR |  | User in non-stationary car |
| SNS\_AR\_MV | SNS\_AR\_CAR | SNS\_AR\_STATIONARY | User in stationary car |
| SNS\_AR\_MV | SNS\_AR\_STATIONARY |  | User in stationary<br><br><br>              <br>motorized vehicle<br><br><br>              <br>(car/bus/train) |
| SNS\_AR\_MV | SNS\_AR\_AIRPLANE |  | User in nonstationary  airplane |

**Parent Topic:** [Activity recognition](https://docs.qualcomm.com/doc/80-PK177-134/topic/activity_recognition.html)

Last Published: Nov 14, 2024

[Previous Topic
Activity recognition](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/activity_recognition.md) [Next Topic
Encoding and decoding protobuf messages](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/encoding_and_decoding_protobuf_messages.md)