Temporal Image Representations for Mouse Dynamics Authentication
Authors: Junyi Li, Charles Devlen, Daqing Hou
Organizations: Department of Computer Science and Engineering, Washington University in St. Louis, St. Louis, MO 63130 · Department of Software Engineering, Rochester Institute of Technology, Rochester, NY 14623
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.
Figures & tables
Method
Description
Papers
Paper Details
Handcrafted Feature Vectors
Features are manually calculated from each sample and represented as a vector
Shen et al. [ 4 ]
Utilized 92 total features derived from click timing, movement speed, and acceleration.
Shen et al. [ 10 ]
13 total features based on distance, time, speed, and acceleration.
Aksari and Artuner [ 9 ]
144 total features based on speed, deviation, angle, and acceleration.
Gamboa and Fred [ 6 ]
63 features from x-y coordinates, path distance, angle, curvature, velocity, tangential velocity, tangential acceleration, tangential jerk, and angular velocity.
Ahmed and Traore [ 20 ]
39 total features derived from speed, direction, action type, traveled distance, and elapsed time.
Khan and Hou [ 21 ]
32 features from traveled distance, curve length, duration, speed, acceleration, and angle.
TABLE I: Representation methods, corresponding papers, and method descriptions.
Fig. 1: Comparison of location-free and location-aware image representations generated from the same mouse event sequence in the Balabit dataset. The images correspond to the first 125-event chunk extracted from Session 0041905381 of User 7 using the fixed-length chunking strategy.
Feature ( Φ )
Definition
Speed ( v )
Δxi2+Δyi2/Δti
Horizontal Velocity ( vx )
Δxi/Δti
Vertical Velocity ( vy )
Δyi/Δti
TABLE II: Movement Attributes Used for Velocity Encoding
Fig. 2: Comparison of location-free and location-aware velocity-encoded image representations generated from the same mouse event sequence in the Balabit dataset. The images correspond to the first 125-event chunk extracted from Session 0041905381 of User 7 using the fixed-length chunking strategy.
Fig. 3: Example of the proposed velocity encoding framework. The pairwise distance matrix is assigned to the red channel, while horizontal velocity ( vx ) and vertical velocity ( vy ) are encoded as temporal stripe images and assigned to the green and blue channels, respectively. The three channels are subsequently combined to form the final temporal-encoded image representation. The illustrated sample corresponds to a 125-events chunk extracted from Session 1909471574 of User 35 in the Balabit dataset.
Setting
Schemes
Red
Green
Blue
Location-Free
(1)
M
M
M
(2)
M
M∣v∣
M∣v∣
(3)
M
Mvx
Mvy
(4)
D
D
D
(5)
D
Tv
Tv
(6)
D
Tvx
Tvy
TABLE III: Image Representation Schemes and Channel Assignments
Fig. 4: Multi-label authentication framework. A shared backbone (GoogLeNet or ViT-B/32) extracts image features, which are passed to user-specific binary classification heads.
Representation
Datasets
Balabit
TWOS
ChaoShen
DFL
EER (%)
AUC
EER (%)
AUC
EER (%)
AUC
EER (%)
AUC
Test-1
Test-2
Test-1
Test-2
Location-Free (Centering)
(1) XYPlot
14.84
20.67
92.51
85.64
20.51
86.90
17.76
90.45
9.85
96.34
(2) XYPlot + Speed
9.63
16.11
96.33
90.47
11.97
94.10
12.48
94.64
3.92
99.20
TABLE IV: Single-Sample Authentication Performance of Different Image Representations Using Multi-CNN with 125 Events per Sample
Representation
Datasets
Balabit
TWOS
ChaoShen
DFL
EER (%)
AUC
EER (%)
AUC
EER (%)
AUC
EER (%)
AUC
Test-1
Test-2
Test-1
Test-2
Location-Free (Centering)
(1) XYPlot
17.48
23.41
89.67
82.37
25.35
82.21
29.29
78.20
14.93
93.10
(2) XYPlot + Speed
11.62
20.33
94.70
85.86
14.28
92.21
13.57
94.09
4.71
98.92
TABLE V: Single-Sample Authentication Performance of Different Image Representations Using Multi-ViT with 125 Events per Sample
Fig. 5: Score-level fusion performance on the Balabit dataset under location-free and location-aware schemes. Mean EER (%) is reported as a function of the number of events used for score fusion. (a) Multi-CNN under the location-free scheme. (b) Multi-ViT under the location-free scheme. (c) Multi-CNN under the location-aware scheme. (d) Multi-ViT under the location-aware scheme.
School of Automation Science and Engineering, South China University of Technology, Guangzhou, China · School of Artificial Intelligence, South China Normal University, Foshan, China