Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/6
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.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
6000.0.25f1
Compatible
Compatible
Compatible
Description

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 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 contact@zefwih.com.

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 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 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.

LHIPA - Low-High Index of Pupillary Activity and Mental Load Calculator

(not enough ratings)
$49
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
655.9 KB
Latest version
1.0
Latest release date
Mar 20, 2025
Original Unity version
6000.0.25
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR
LHIPA - Low-High Index of Pupillary Activity and Mental Load Calculator
$49