
LHIPA - Low-High Index of Pupillary Activity and Mental Load Calculator
Zefwih
$53.90
(no ratings)
Jump AssetStore
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.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. Typical values range between X and Y (example: 0.05 = low load, 0.25 = high load).Key FeaturesPlug & 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 settingsWell-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 contact@zefwih.com.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 using Symlet16-Wavelet transformation.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 testingUsageCall the LHIPA function regulary while using eye tracker or in retrospect with recorded pupil diameter.Method inputspupilData: 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 outputLHIPA: Number of Maxima per second depended on sampling rate as float value between 0 and 1.Logfile with LHIPA values when using LHIPA Testing SceneTechnical RequirementsUnity 2020.1 or newerTextMeshPro 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.