Skip to main content

Activity Recognition (lamp.activity_recognition)

Detects the participant's current physical activity using device motion sensors. Available without a wearable โ€” uses the phone's built-in sensors.

Configurationโ€‹

  • SensorSpec: lamp.activity_recognition
  • Sampling: Continuous
  • Platform: iOS, Android

Usageโ€‹

Activity recognition runs in the background. Events are generated when activity state transitions occur.

note

Activity states are entered and exited independently โ€” a participant can simultaneously be walking and on_foot, for example. Each field tracks its own state transitions separately.

Dataโ€‹

Fieldsโ€‹

FieldTypeDescription
runninginteger or null1 = activity entered, 0 = activity exited
cyclinginteger or nullSame as above
automotiveinteger or nullSame as above (in a vehicle)
stationaryinteger or nullSame as above
unknowninteger or nullSame as above
walkinginteger or nullSame as above
on_footinteger or nullSame as above

Each event reports a transition for one or more activity types. A value of 1 means the participant entered that activity state; 0 means they exited it; null means no change.

Cortex Featuresโ€‹

Not currently consumed by Cortex features.

View in Portal | Python SDK | API Reference