Window-Based Feature Engineering for Cognitive Workload Detection

Andrew Hallam, R. G. Gayathri, Glory Lee, Atul SajjanhararXiv 2025 · DOI

Abstract

Detecting cognitive workload (CW) is essential for safety-critical environments, yet raw eye-tracking data often lacks the temporal resolution needed for high-accuracy classification. This paper presents a window-based feature engineering pipeline that segments continuous eye-movement streams into discrete temporal windows. By applying advanced tabular deep learning models, specifically TabNet, to these segmented features, the researchers achieved a peak classification accuracy of 91% on the COLET dataset, significantly outperforming traditional aggregate-feature methods.

Introduction

Cognitive workload represents the mental effort required to complete a task. In high-stakes fields such as aviation and healthcare, monitoring this workload is vital for preventing human error. While eye-tracking offers a non-invasive measurement tool, the resulting data—comprising fixations, saccades, and pupil dilation—is inherently noisy and unsynchronized.

Traditional approaches often rely on global aggregate features, such as the average pupil diameter over an entire task duration. However, these methods lose critical temporal dynamics and "spikes" in mental effort. This research addresses the challenge of preserving these temporal signals to enable more precise and potentially real-time workload detection.

Methodology

Detection Pipeline

The proposed methodology shifts from global averages toward a structured temporal segmentation pipeline. The process involves three primary stages: feature extraction from raw data, window-based feature set generation, and final workload detection using machine learning or deep learning models.

Figure 1: High-level pipeline for temporal cognitive workload detection.

Window-Based Partitioning

To capture temporal fluctuations, the eye-tracking data is divided into $X$ equal-length, non-overlapping windows. The study varied $X$ from 5 to 100 windows to investigate how temporal granularity influences model performance. This structure allows the model to treat cognitive workload as a dynamic process across different participants and tasks.

Figure 3: Visualization of the windowing scheme across participants and tasks.

Feature Engineering and Classification

For each temporal window, four key eye-tracking measures were analyzed: pupil dilation, fixations, saccades, and blinks. Statistical features (mean, standard deviation, skewness, and kurtosis) were extracted for each.

The study compared traditional machine learning models (SVM, KNN, Random Forest) against deep learning architectures designed for tabular data, including MLP, 1DCNN, and TabNet. TabNet was particularly notable for its sequential attention mechanism, which allows the model to focus on the most relevant features at specific points in time.

Results and Discussion

Performance Metrics

The results demonstrate a clear correlation between temporal granularity and detection accuracy. As the number of windows increased to 100, performance improved across nearly all models. TabNet emerged as the superior model, achieving a peak accuracy, precision, and F1-score of 0.91 for multi-class classification (Low, Medium, High workload).

Key Insights

  • Granularity and Accuracy: The success of high window counts proves that cognitive workload is better understood as a fluctuating process rather than a static state.
  • Model Resilience: While deep learning models like TabNet excelled at high granularity, traditional models like KNN and SVM also saw significant performance boosts (reaching 0.89 and 0.85 accuracy, respectively), suggesting that windowing is a powerful feature engineering technique regardless of the classifier.
  • Classification Challenges: Models were highly effective at distinguishing between "Low" and "High" workloads, but differentiating between "Medium" and "High" levels remained the most difficult task.

Conclusion and Future Work

This research highlights the importance of temporal dynamics in eye-tracking analysis. While TabNet showed exceptional results at high window counts, it required significant data granularity to learn effectively, performing poorly at low window counts. Future research will explore adaptive window sizes that adjust based on detected workload transitions, moving closer to real-time adaptive systems that can assist users during sudden spikes in cognitive demand.

Summary updated

BibTeX
@misc{hallam2025window,
  author = {Andrew Hallam and R. G. Gayathri and Glory Lee and Atul Sajjanhar},
  title = {{Window-Based Feature Engineering for Cognitive Workload Detection}},
  year = {2025},
  eprint = {2511.01060},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.01060},
}
Figure