A Python pipeline for analyzing pupillary light reflex (PLR) data from eye-tracking tests.
This project provides tools and scripts for analyzing pupillary light reflex data collected from eye-tracking experiments. The analysis pipeline is designed to process raw data, extract meaningful insights, and generate visualizations.
The pupillary light reflex (PLR) is a physiological response where the pupil constricts or dilates in response to changes in light intensity. This reflex is controlled by the autonomic nervous system and provides valuable insights into neurological and ocular health. By analyzing PLR data, researchers can study various conditions, including brain injuries, neurological disorders, and visual impairments.
- Data cleaning and preprocessing (removal of invalid frames, handling missing data)
- Blink detection and filtering
- Jitter removal using Savitzky-Golay filtering
- Signal quality assessment (precision, stability score, overall quality)
- Advanced pupil metrics calculation
- Visualization of eye tracking data
The following documents are available in the docs
folder:
- Landmark Definitions: Provides definitions and explanations of key landmarks used in the analysis.
- Ideas: Development ideas and notes about signal processing techniques.
The plr_data
folder contains raw data files organized by unique identifiers. Each subfolder corresponds to a specific dataset.
To get started with the project:
- Clone the repository:
git clone https://github.com/lejrn/analyze-eye-tracking-data.git
- Install dependencies using Poetry:
poetry install
- Run the notebook "notebooks/backbone.ipynb"
Follow the Code Style Guidelines for consistent and maintainable code. Use the commit message template provided in Commit Message Instructions.
This project is intended for non-commercial use. A specific license has not yet been chosen.