Real-Time Workload Classification during Driving using HyperNetworks

Ruohan Wang, Pierluigi Vito Amadori, Yiannis Demiris

TL;DR

Researchers have developed m-HyperLSTM, a novel deep learning architecture that predicts a driver's cognitive workload in real-time using only eye-gaze data. By using a "mixture" approach to dynamically generate neural network weights, the model successfully adapts to the high variability in how different individuals scan their environment, achieving an F1-score of 0.86.

What Problem Does This Paper Address?

In the world of autonomous and assistive driving, knowing the driver's mental state is crucial. If a driver is overwhelmed (high cognitive workload), the system might need to simplify the dashboard or take over control.

However, two major hurdles exist:

  1. Individual Variability: People have vastly different visual scanning patterns. What looks like "distraction" for one person might be "normal processing" for another.
  2. Sensor Intrusiveness: While ECG or brain activity (EEG) are accurate, they are uncomfortable for daily driving. Eye-tracking is much less intrusive but produces "noisier" data that is harder to classify.

Standard models like LSTMs (Long Short-Term Memory) struggle to generalize across different users because they use "static" weights learned during training. This paper seeks a model that can adapt its own parameters on the fly based on the specific user's input.

Methods

The authors introduce m-HyperLSTM, a variant of HyperNetworks.

  • HyperNetworks 101: Instead of a standard neural network where weights are fixed after training, a HyperNetwork uses a small "auxiliary" network to dynamically generate the weights for a "main" network based on the current input.
  • The "m" (Mixture) Innovation: The standard HyperLSTM scales weights row-by-row. The authors proposed a mixture weight generation scheme. It learns a set of $N_z$ different weight components and a "gating" vector ($z$). For every time step, the model decides how to mix these components to create the optimal weights for the current situation.
  • The Pipeline: The system takes raw eye-gaze coordinates (60Hz), calculates derivative features (speed, distance moved), and feeds them into the m-HyperLSTM. The output is a binary classification: Low Workload or High Workload.

Datasets

The researchers collected a custom dataset to train and test their model:

  • Participants: 20 individuals.
  • Environment: A high-fidelity driving simulator built on Unreal Engine.
  • Workload Modulation: They used the "n-back" task, a gold standard in psychology.
  • Low Workload (0-back): Drivers just identify a number on an obstacle.
  • High Workload (1-back): Drivers must remember the number from the previous obstacle while approaching a new one.
  • Data Points: Instantaneous gaze locations, horizontal/vertical speeds, and distances moved (8 attributes total per time step).

Key Insights and Ideas

  • Adaptability is Key: The "aha moment" is that cognitive workload isn't a static pattern; it's a dynamic process. By allowing the network to "re-wire" its weights for each user, it handles the fact that one driver might stare fixedly when stressed while another might scan frantically.
  • Temporal Context Matters: The study compared different time windows (5s, 10s, and 20s). They found that while 20s provides the highest accuracy, a 10-second window offers the best trade-off for real-time applications, providing enough context to be accurate without being too slow to react.
  • Feature Learning vs. Engineering: Unlike classical models (SVM, Logistic Regression) that require hand-crafted statistical features (mean, variance, etc.), the m-HyperLSTM learns useful representations directly from the raw temporal sequence of gaze points.

Key Results

The m-HyperLSTM consistently outperformed standard LSTMs, original HyperLSTMs, and classical machine learning baselines.

Using a 10-second window, the model achieved:

  • Precision: 83.9%
  • Recall: 87.9%
  • F1-Score: 0.86

In comparison, a standard LSTM only managed an F1-score of 0.76, and a Support Vector Machine (SVM) lagged behind at 0.60. The results show that the "mixture" architecture specifically helps the model stay consistent across different decision thresholds.

Limitations and Future Work

  • Binary Classification: Currently, the model only distinguishes between "low" and "high" workload. Real-world cognitive states are a spectrum, and future work aims to classify more fine-grained levels.
  • Single Modality: While eye-gaze is non-intrusive, it can be affected by lighting or sunglasses. The authors suggest that sensor fusion (combining gaze with heart rate or skin conductance) could make the system even more robust.
  • Simulated vs. Real World: The data was collected in a simulator. While the $n$-back task is a validated way to induce workload, real-world driving involves more unpredictable stressors that the model hasn't yet encountered.

Summary updated

BibTeX
@inproceedings{wang2018real,
  author = {Ruohan Wang and Pierluigi Vito Amadori and Yiannis Demiris},
  title = {{Real-Time Workload Classification during Driving using HyperNetworks}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2018},
  doi = {10.1109/iros.2018.8594305},
}
Figure