View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.1
- Last updated
- First released
- Unity version
- 6000.0.25 or later
- Package size
- 4.3 MB
- Files
- 47
- Favorites
- 1
- Views in the past week
- 6
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $49.00 on
Keywords
LHIPA - Low-High Index of Pupillary Activity and Mental Load Calculator
Easily compute LHIPA from pupil diameter data! This tool provides a simple way to analyze cognitive load and attention using eye tracking. Works for real-time and recorded eye tracking data.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 5
LHIPA - Low-High Index of Pupillary Activity and Mental Load Calculator screenshot 1
About this asset
The LHIPA (Low-High Index of Pupillary Activity) is a metric used in cognitive science and human-computer interaction to measure cognitive load based on fluctuations in pupil diameter. It helps researchers and developers analyze mental workload in tasks such as gaming, training simulations, and usability studies.
This asset provides an easy-to-use LHIPA calculation script for Unity. Simply provide a list of pupil diameter values and the duration of the measurement, and the tool will output the corresponding LHIPA value.
How is LHIPA used?
A higher LHIPA value indicates greater cognitive load, while a lower value suggests minimal effort or distraction.
Key Features
- Plug & Play: Load the script in your scene and call the LHIPA function with pupil diameter data. LHIPA is computed automatically!
- Works across platforms: Suitable for desktop, mobile, and VR applications.
- Live & recorded data: Supports real-time calculation and post-processing of recorded eye-tracking data.
- Customizable settings
- Well-documented & example scenes: Includes two demo scenes for testing and integration examples.
For further reading and scientific background, see:
Duchowski, Andrew T., et al. "The low/high index of pupillary activity." Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems. 2020.
We are always interested in scientific collaborations. Please reach out to [email protected].
From the publisher's Asset Store listing.
Technical details
Calculate the Low-to-High Index of the pupil amplitude (LHIPA) based on signal of pupil diameters. The LHIPA is a measure of cognitive load based on analyzing high-frequency changes in pupil diameter irrespective of sampling rate. It is calculated by determining the power in a high-frequency band of the pupil signal.
Values in this implementation can vary significantly depending on the sampling rate and recording duration used. A value indicating high cognitive load under settings with a specific sampling rate and recording duration might indicate low cognitive load under different settings. Therefore, the absolute LHIPA value itself is not what matters; rather, it is the relative comparison of LHIPA values calculated using the same settings.
What's Included?
- LHIPA Calculation Script – The core algorithm for computing LHIPA.
- 2 Example Scenes:
- Eye Tracking Simulator: Live LHIPA computation with adjustable settings.
- LHIPA Testing Scene: Load recorded eye-tracking data and analyze LHIPA values.
- 2 Prefabs:
- Eye Tracking Simulator UI – A sample setup for live LHIPA processing.
- LHIPA Tester UI – Test and visualize LHIPA calculations from recorded data.
- Pupil Diameter Example Input Arrays: For testing
Usage
Call the LHIPA function regulary while using eye tracker or in retrospect with recorded pupil diameter.
Method inputs
- pupilData: Array of pupil diameters in float format. Array must contain at least 32*8 values.
- durationInSeconds: Time in seconds between first and last pupil data array element.
- modMaxCorrectionThreshold: The modMaxThreshold cuts off modulus maxima values that are too small and should not be recognized in LHIPA calculation.
- debugLog: Define if you want to print all intermediate results of each calculation on console.
Method output
- LHIPA: Number of Maxima per second depended on sampling rate as float value between 0 and 1.
- Logfile with LHIPA values when using LHIPA Testing Scene
Technical Requirements
- Unity 2020.1 or newer
- TextMeshPro required for UI elements: The UI elements are based on the standard Unity UI (UUI) system and TextMeshPro (TMP), making the tool fully compatible with regular UUI/TMP coding.
- Newtonsoft.Json required for reading and writing recorded json data.
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 6000.0.25f1 | Compatible | Compatible | Compatible |
As listed on the Asset Store.