eyeris: A flexible, extensible, and reproducible pupillometry preprocessing framework in R

The paper introduces **eyeris**, an open-source, modular, and FAIR-compliant R framework designed to standardize pupillometry preprocessing by offering an intuitive, reproducible pipeline with best-practice signal processing and interactive quality control reports to address the current lack of robust tools in the field.

Original authors: Schwartz, S. T., Yang, H., Xue, A. M., He, M.

Published 2026-02-26
📖 5 min read🧠 Deep dive
⚕️

This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine you are trying to listen to a faint, beautiful melody played by a violinist in a noisy room. The room has wind blowing (wind noise), people walking by (footsteps), and the violinist occasionally sneezes (blinks). If you want to study the melody itself, you first have to clean up the recording. You need to remove the wind, the footsteps, and the sneezes, and then smooth out the static so the music is clear.

In the world of psychology and neuroscience, scientists use pupillometry to listen to the "music" of the brain. They measure how much a person's pupil (the black center of the eye) dilates or shrinks. This tiny change is a window into the mind, revealing things like how much attention someone is paying, how stressed they are, or how hard they are thinking.

However, just like that noisy room, the raw data from eye-tracking cameras is messy. It's full of "sneezes" (blinks), "footsteps" (head movements), and "static" (glitches). Until now, every scientist had to clean their own data using their own unique, often messy, method. This is like asking 100 different people to clean the same violin recording, but everyone uses a different vacuum cleaner, a different sponge, and a different amount of soap. The result? You can't compare their findings because the "clean" data looks different for everyone.

Enter eyeris: The "Gold Standard" Cleaning Robot.

The authors of this paper, led by Shawn Schwartz, have built a new tool called eyeris (pronounced like "iris," the colored part of your eye). Think of eyeris as a highly sophisticated, automated, and transparent cleaning robot designed specifically for pupil data.

Here is how it works, using some simple analogies:

1. The "Glass Box" (No Magic Tricks)

Many software tools are "black boxes." You put data in, press a button, and magic happens. You don't know what the machine did inside.
eyeris is a "Glass Box." Imagine a robot with a clear glass body. You can see every single step it takes.

  • Step 1: It spots the "sneezes" (blinks) and carefully cuts them out, filling the gap with a smooth guess so the music doesn't stop.
  • Step 2: It removes the "footsteps" (sudden spikes caused by head movement).
  • Step 3: It smooths out the "static" using a filter, like a high-end audio equalizer, to make the signal clearer.
  • Step 4: It organizes the data into neat little chapters (called "epochs") based on when the experiment started and stopped.

Because you can see inside the box, you know exactly how the data was cleaned. This stops scientists from accidentally (or intentionally) tweaking the cleaning process to get the results they want.

2. The "Recipe Book" (Standardization)

Before eyeris, if you asked two chefs to make a cake, one might use salt instead of sugar, and the other might bake it for 10 minutes instead of 30. You'd get two very different cakes.
eyeris provides a standardized recipe. It tells scientists: "First, do this. Then, do that. Use these specific settings."
This ensures that if a scientist in New York and a scientist in Tokyo both use eyeris on the same data, they get the exact same "clean" cake. This makes it possible to compare studies and trust the results.

3. The "Auto-Reporter" (Quality Control)

Cleaning a dataset is hard work. Usually, scientists have to manually look at thousands of graphs to check if the cleaning went well. It's like a librarian checking every single book in a library by hand.
eyeris is like a super-librarian that automatically generates a beautiful, interactive report for every single participant.

  • It shows you a "Before" picture (the messy data).
  • It shows you an "After" picture (the clean data).
  • It highlights any weird spots that need attention.
  • It does this for thousands of trials in seconds, saving researchers hours of boring work.

4. The "Digital Filing Cabinet" (Organization)

Finally, eyeris doesn't just clean the data; it organizes it. It puts everything into a neat, labeled filing cabinet (using a system called BIDS).

  • It separates the "raw" messy files from the "clean" files.
  • It creates a database so researchers can easily search through data from hundreds of people without getting lost in a pile of thousands of paper files.

Why Does This Matter?

Science is currently facing a "reproducibility crisis." This means that when scientists try to repeat each other's experiments, they often get different results. A big reason for this is that everyone was cleaning their data differently.

By introducing eyeris, the authors are giving the field of pupillometry the same kind of reliable, standardized tools that other fields (like MRI brain scanning) already have. It makes the science fairer, clearer, and more trustworthy.

In short: eyeris is the new, open-source, transparent, and easy-to-use tool that helps scientists clean up the "noise" in eye-tracking data so they can finally hear the true "music" of the human mind.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →