TU Dortmund · Case Studies I (Applied Statistical Modeling)Statistics2024Team of 4 · Prof. Paul Bürkner & Dr. Šimon Kucharský

Eye-Tracking Fixation Dynamics & Detector Robustness

Testing lifespan age hypotheses and within-trial fixation dynamics across 7,250 NEMO Science Museum visitors while separating true cognitive patterns from kiosk UI defaults, fixation-order survivorship bias, 10-second right-censoring, and detector thresholds.

PythonMixed-Effects (REML)Cubic B-SplinesHessels / I-VTSignal ProcessingSciPypandasMatplotlib
+14.5% Rise Ambient-to-Focal Trend

Over uncensored trial time (0.5 -> 7.0 s), median duration climbs from 199.2 ms to 228.2 ms before plateauing (LRT p = 9.2e-248).

No Age U-Curve Lifespan Shift ~12 ms

Continuous Age splines (ages 3-93) show zero late-life rebound (-0.30%/decade, p = 0.123), dwarfed by viewer baselines (ICC 4.0%).

21.1% Spike DoB = 2000 Audit

Flagged 1,532 visitors defaulting to birth year 2000 (5x adjacent cohorts) and verified all models with and without them.

12-Config OFAT Real 60 Hz Trace Audit

Re-parsed 1,000 real 60 Hz gaze traces varying one parameter at a time (Adaptive Hessels + independent I-VT 20-40 deg/s).

The Problem

Why this mattered

Most eye-tracking studies rely on small, homogeneous university cohorts, leaving lifespan hypotheses (that fixation durations shorten during childhood and lengthen again in older adulthood) difficult to test cleanly. On large museum free-viewing datasets (Strauch et al., 2023; 10-second viewing at 60 Hz), naive analyses run into four traps at once: unflagged kiosk UI birth-year defaults (DoB = 2000), heavily right-skewed durations that violate Gaussian residual assumptions, survivorship bias when indexing time by fixation order, and hard right-censoring at the 10-second trial cutoff.

My Contribution

What I built and owned

Completed as a 4-person M.Sc. Case Study at TU Dortmund (Prof. Paul Bürkner and Dr. Šimon Kucharský, Winter Term 2024/25). I handled raw NEMO preprocessing, Hessels and I-VT fixation extraction across the 60 Hz recordings, Python EDA, and the individual technical report, implementing a unit-tested Python pipeline with an exact Woodbury REML/ML random-intercept LMM solver (verified to match lme4 to 5 digits), continuous cubic B-splines for age and onset time, explicit censoring and DoB = 2000 sensitivity audits, and a 12-configuration OFAT detector benchmark on 1,000 real gaze traces.

Data Audit, Log-Normal Spline LMM & OFAT Robustness

01 · Audit & Log-Normal LMM

DoB = 2000 Spike & Residual Diagnostics

Audited 7,250 valid free-viewing visitors (183,627 fixations) and isolated 1,532 records stuck at kiosk default DoB = 2000 (Age 23). Modeled log(duration) via an exact REML/ML Log-Normal LMM instead of skewed raw-scale Gaussian models (cutting residual skewness from 4.82 to 0.42 and max outlier from 31.8 SD to 5.9 SD), and ran participant-level Kruskal-Wallis tests on independent viewer means.

02 · Continuous Splines & Censoring

Elapsed Onset vs. Fixation Order

Replaced fixation-order indexing (which drops artificially past Order 22 because only fast-saccading viewers reach 25-36 fixations in 10 s) with 5-df cubic B-splines over continuous trial onset time and continuous age, isolating the uncensored 0-8 s interior (>99% natural completions) from the 8-10 s right-censoring zone.

03 · OFAT & I-VT Detector Audit

1,000 Real 60 Hz Traces Re-Parsed

Implemented clean MIT-licensed adaptive slow/fast velocity (Hessels et al., 2020) and fixed-threshold I-VT (Salvucci & Goldberg, 2000) detectors. Re-extracted fixations on 1,000 age-stratified 60 Hz traces across 12 one-factor-at-a-time settings (lambda, min_fix, min_amp, and I-VT 20-40 deg/s) and refit the LMM on every sweep.

Nested Log-Normal Mixed-Effects Model Sensitivity Across 5 Cohorts

Exact ML Likelihood Ratio Tests and REML variance components for log(duration) ~ ns(onset, 5) + ns(age, 5) + (1 | ID).

Sensitivity CohortFixations (n)Visitors (G)ICC / R²cOnset Rise (0.5->7 s)Onset LRT pAge Slope (/10 yr)Age Spline p
All Valid Free-Viewing (onset <= 8 s) 156,598 7,250 4.0% / 4.7% +14.5% (199->228 ms) 9.2e-248 -0.30% 0.123
Excl. DoB = 2000 Default (onset <= 8 s) 123,214 5,718 4.0% / 4.7% +14.8% (200->229 ms) 7.0e-198 -0.32% 0.085
Strict Valid = True & DoB != 2000 98,234 4,546 4.0% / 4.7% +15.5% (200->231 ms) 4.3e-164 -0.51% 0.024
Excl. Initial Cross Fixation (Order > 0) 149,348 7,247 4.0% / 4.5% +11.4% (206->229 ms) 2.7e-162 -0.35% 0.138
Full 0-10 s (Incl. Censored Tail) 183,627 7,250 3.7% / 4.6% +17.7% (cutoff bias) < 1e-300 -0.20% 0.179

OFAT detector audit on 1,000 stratified 60 Hz traces (results/ofat_robustness.csv): across all 12 Adaptive Hessels (lambda 2.0-3.0, min_fix 40-100 ms, min_amp 0.5-1.5 deg) and I-VT (20-40 deg/s) settings, the uncensored 0.5->7.0 s rise held consistently between +9.2% and +14.1% (all p <= 2.0e-28). Fixed-threshold I-VT induced a small -1.6% to -1.9%/decade age artifact from unadapted tracking noise that vanished under noise-adaptive Hessels thresholds (-0.40% to -0.53%/decade, p > 0.21).

Experimental Stimulus, Data Audit & OFAT Diagnostics

Original NEMO stimulus (Strauch et al., 2023) and diagnostic plots generated directly by src/run_analysis.py. Click any figure to inspect full resolution.

Key Takeaways

  • Separating continuous trial onset time (0-8 s uncensored interior) from fixation-order survivorship bias and 10-second trial-end right-censoring turned an apparent late-trial drop into the textbook ambient-to-focal progression (+14.5% median rise from 0.5 s to 7.0 s, then plateau).
  • Continuous non-linear age splines across 7,250 visitors (ages 3-93) show no late-life U-shaped increase in fixation duration; any childhood shortening is ~10-12 ms and explains < 0.05% of variance compared to individual viewer baselines (ICC 4.0%) and within-trial scene salience (~95%).
  • Auditing raw demographics caught 1,532 visitors (21.1%) stuck at kiosk default DoB = 2000, and switching from raw-duration LMM to Log-Normal LMM fixed severe skew (4.82 -> 0.42) and kurtosis (65.1 -> 0.42) violations.
  • True one-factor-at-a-time (OFAT) re-extraction on 1,000 real 60 Hz gaze traces showed why noise-adaptive velocity detectors (Hessels et al., 2020) outperform fixed-threshold I-VT in heterogeneous populations: I-VT fragmented noisier older-viewer recordings into a spurious -1.9%/decade age slope that disappeared under adaptive thresholding.