Temporal Image Representations for Mouse Dynamics Authentication

Junyi Li, Charles Devlen, Daqing HouarXiv 2026

TL;DR

This paper introduces novel image-based representations for mouse dynamics that explicitly encode temporal information like speed and velocity into RGB channels. By shifting from sparse trajectory plots to dense "Pairwise Distance" (PWD) images and leveraging pretrained computer vision models, the authors achieve state-of-the-art authentication performance across multiple public datasets.

What Problem Does This Paper Address?

Mouse dynamics—the unique way a person moves their cursor—is a powerful behavioral biometric for continuous, unobtrusive authentication. While traditional methods relied on handcrafted features (like average speed or click frequency), recent research has turned to deep learning, specifically treating mouse paths as images to leverage powerful pretrained Computer Vision (CV) models.

However, most existing CV-based approaches use XYPlots, which are simple 2D coordinate plots of the cursor's path. These images capture the shape of a movement but discard the timing. Two users might follow the same spatial path, but one might move in quick bursts while the other moves smoothly. Current image-based models struggle to distinguish between them because the temporal "signature" is missing from the input.

Methods

The authors systematically evaluate three factors: image representation, temporal encoding, and cursor location information.

  • XYPlot vs. PWD: They compare standard trajectory lines (XYPlot) with a novel Pairwise Distance (PWD) representation. PWD creates an $M \times M$ matrix where each pixel $(i, j)$ represents the Euclidean distance between the $i$-th and $j$-th mouse events in a sequence. This results in a "dense" image that utilizes the entire canvas, providing more information for the model to process compared to the sparse lines of an XYPlot.
Comparison of XYPlot and PWD representations in location-free and location-aware settings.
  • Temporal Encoding: To capture the "rhythm" of movement, they encode speed or velocity (horizontal and vertical components) into the RGB channels of the image. For instance, in a velocity-encoded PWD, the Red channel might store spatial distances, while the Green and Blue channels store the velocity components.
The proposed framework for encoding velocity into the RGB channels of a Pairwise Distance image.
  • Location Awareness: They test location-free variants (where trajectories are centered and normalized) against location-aware variants (which retain the absolute screen position). This determines if where a user typically interacts with the screen is a useful biometric cue.
  • Architectures: The representations are evaluated using two popular backbones: a 2D-CNN (GoogLeNet) and a Vision Transformer (ViT-B/32), both pretrained on ImageNet. They use a multi-label classification setup where a shared backbone extracts features for all users, but individual "heads" perform binary authentication for each specific user.

Datasets

The study evaluates performance across four diverse public datasets:

  1. Balabit: Task-constrained data from 10 users.
  2. TWOS: Data from 24 users participating in a gamified stock trading competition.
  3. ChaoShen: Laboratory-controlled data from 28 users.
  4. DFL: Real-world, unconstrained data from 21 users.

Key Insights and Ideas

  • Density is a Strength: PWD generally outperforms XYPlot. Because XYPlots are sparse, models often focus only on curves and crossings. PWD's dense matrix ensures the model can exploit relationships between every event in the sequence across the entire image.
  • Temporal Data is Essential: Adding speed or velocity consistently improved performance across all datasets and architectures. This confirms that how you move is just as discriminative as where you move.
  • CNNs vs. ViTs: Interestingly, the 2D-CNN generally outperformed the Vision Transformer. The authors suggest that the local spatial patterns in these synthetic mouse images might be better captured by convolutional kernels than by the global self-attention mechanisms of ViTs, especially given the relatively small size of mouse dynamics datasets.
  • The "Where" Factor: Location-aware models performed significantly better, suggesting that users have "favorite" regions of the screen. However, this feature is double-edged; it might capture session-specific tasks rather than pure behavioral traits.

Key Results

The authors achieved state-of-the-art results, particularly with the location-aware PWD + Velocity configuration using the 2D-CNN architecture:

  • Balabit: Achieved a mean Equal Error Rate (EER) of 5.21% on Test-1 and 12.70% on Test-2.
  • TWOS: Achieved a mean EER of 4.94%.
  • DFL: Achieved a remarkably low mean EER of 0.59%.
  • Score Fusion: By aggregating predictions from multiple consecutive samples (score-level fusion), authentication becomes significantly more reliable as more data is collected.
Performance improvement as more mouse events are fused for a single authentication decision.

Limitations and Future Work

  • Generalization of Location: While location-aware models performed best, the authors note that this might not generalize well to "unseen" impostors who might happen to use the same screen regions as the legitimate user for different tasks.
  • ViT Optimization: Future work could explore whether different ViT configurations or hybrid CNN-ViT architectures could better capture the unique properties of mouse dynamics images.
  • Real-world Noise: The DFL dataset showed that multi-monitor setups can introduce noise into velocity calculations, suggesting a need for more robust normalization techniques in complex hardware environments.

Summary updated

Abstract

Mouse dynamics authentication has traditionally relied on handcrafted features or time-series representations that capture both spatial and temporal characteristics of mouse movements. More recent approaches have modeled mouse data as images, enabling the use of powerful pretrained computer vision models. However, prior work primarily focuses on spatial-only representations where the cursor coordinates are plotted as a trajectory image. These representations discard the temporal characteristics which can help discriminate users. In this work, we propose image representations that incorporate speed and velocity information for mouse dynamics authentication. We investigate two mouse data representations, a XYPlot representation that intuitively shows the path of movement, and a Pairwise Distance (PWD) representation that utilizes the entire image canvas to encode relationships between mouse events. Both representations are evaluated under both location-aware and location-free settings using pretrained 2D-CNN and ViT architectures. We found that the incorporation of temporal information improved performance over spatial representations alone, and that the location-aware variants generally outperformed the location-free. We achieve state-of-the-art performance on two datasets, Balabit and TWOS, and extend our evaluation to two other datasets. We found that in general, location-aware PWD with temporal encoding combined with the 2D-CNN architecture provided the best results, with mean EERs of 5.21% and 12.70% on the Balabit Test-1 and Test-2 sets, respectively, 4.94% on TWOS, 6.16% on ChaoShen, and 0.59% on DFL.
BibTeX
@misc{li2026temporal,
  author = {Junyi Li and Charles Devlen and Daqing Hou},
  title = {{Temporal Image Representations for Mouse Dynamics Authentication}},
  year = {2026},
  eprint = {2611.23859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23859},
}

Loading related content...

Figure