, 2026

MATHEMATICAL FEATURE REPRESENTATIONS OF MOUSE DYNAMICS FOR CONTINUOUS USER AUTHENTICATION

Kamran Asgarov

Continuous authentication on endpoint devices requires behavioural representations that are accurate, compact and suitable for real-time use. This paper investigates mathematical feature representations for modelling user behaviour from mouse-dynamics data. Three feature families are proposed: path signatures derived from rough path theory, differential-geometric descriptors of cursor trajectories and optimal-control residuals based on human motor-control models. The proposed features are evaluated on the Balabit and SapiMouse datasets and compared with a 142-feature reference bank from existing mouse-dynamics literature. All feature sets are tested under the same one-class Mahalanobis protocol to isolate the contribution of the features themselves. The results show that optimal-control features provide the best compact representation, achieving competitive performance with only 23 features. Feature fusion further improves accuracy, while cross-dataset experiments highlight the importance of robustness across long and short session regimes (13-27).

Keywords: Mouse dynamics, Behavioural biometrics, Continuous authentication, Path signatures, Differential geometry, Optimal control
References
  • Abbasi, S. & Mokhtarian, F. (1999). Curvature scale space with affine length parametrisation. Scale-Space Theories in Computer Vision, Lecture Notes in Computer Science, vol. 1682, Springer, Berlin/Heidelberg, pp. 435–438. 
    https://doi.org/10.1007/3-540-48236-9_39
  • Antal, M., Fejer, N. & Buza, K. (2021). SapiMouse: Mouse dynamics-based user authentication using deep feature learning. 2021 IEEE 15th International Symposium on Applied Computational Intelligence and Informatics (SACI), Timisoara, Romania, pp. 61–66.    https://doi.org/10.1109/SACI51354.2021.9465583
  • Antal, M. & Egyed-Zsigmond, E. (2019). Intrusion detection using mouse dynamics. IET Biometrics, vol. 8(5), pp. 285– 294.   https://doi.org/10.1049/iet-bmt.2018.5126
  • Asgarov, K. N. (2025). Endpoint behaviour modelling from user interaction metrics via unsupervised deep learning for anomaly detection. 19th IEEE International Conference on Application of Information and Communication Technologies (AICT), Al-Ain, UAE, pp. 1-6. http://doi.org/10.1109/AICT67988.2025.11268628
  • Chevyrev, I. & Kormilitzin, A. (2024). A primer on the signature method in machine learning. In Signature Methods  in Finance, Springer, pp. 3-64. https://doi.org/10.1007/978-3-031-97239-3_1
  • Elfron, B. & Tibshirani, R. J. (1993). An introduction to the Bootstrap. In Chapman & Hall/CRC, New York.      https://doi.org/10.1201/9780429246593
  • Fischer, F., Fleig, A., Klar, M., Grüne, L. & Müller, J. (2020). An optimal control model of mouse pointing using the LQR. arXiv preprint arXiv:2002.11596. https://doi.org/10.48550/arXiv.2002.11596
  • Fischer, F., Fleig, A., Klar, M. & Müller, J. (2022). Optimal feedback control for modeling human–computer interaction. ACM Transactions on Computer-Human Interaction, vol. 29(6), pp. 1–70. https://doi.org/10.1145/3524122
  • Flash, T. & Handzel, A. A. (2007). Affine differential geometry analysis of human arm movements. Biological Cybernetics, vol. 96(6), pp. 577-601.  https://doi.org/10.1007/s00422-007-0145-5
  • Flash, T. & Hogan, N. (1985). The coordination of arm movements: an experimentally confirmed mathematical model. The Journal of Neuroscience, vol. 5(7), pp. 1688–1703.https://doi.org/10.1523/JNEUROSCI.05-07-01688.1985
  • Fülöp, Á., Kovács, L., Kurics, T. & Windhager-Pokol, E. (2016). Balabit Mouse Dynamics Challenge data set. GitHub repository, balabit/Mouse-Dynamics-Challenge.https://github.com/balabit/Mouse-Dynamics-Challenge
  • Gajos, K. Z., Reinecke, K., Donovan, M., Stephen, C. D., Hung, A. Y., Schmahmann, J. D. & Gupta, A. S. (2020). Computer mouse use captures ataxia and parkinsonism, enabling accurate measurement and detection. Movement Disorders, vol. 35(2), pp. 354–358. https://doi.org/10.1002/mds.27915
  • Gamboa, H. & Fred, A. (2004). A behavioral biometric system based on human-computer interaction. Biometric Technology for Human Identification, SPIE, Orlando, FL, USA, pp. 381–392. https://doi.org/10.1117/12.542625
  • Hambly, B. & Lyons, T. (2010). Uniqueness for the signature of a path of bounded variation and the reduced path group. Annals of Mathematics, vol. 171(1), pp. 109–167. https://doi.org/10.4007/annals.2010.171.109
  • Iakovakis, D., Hadjidimitriou, S., Charisis, V., Bostantjopoulou, S., Katsarou, Z., Klingelhoefer, L., Reichmann, H., Dias, S. B., Diniz, J. A., Trivedi, D., Chaudhuri, K. R. & Hadjileontiadis, L. J. (2018). Motor impairment estimates via touchscreen typing dynamics toward Parkinson's disease detection from data harvested in-the-wild. Frontiers in ICT, vol. 5, art. 28. https://doi.org/10.3389/fict.2018.00028
  • Japkowicz, N. & Shah, M. (2011). Evaluating Learning Algorithms: A Classification Perspective.  Cambridge University Press. https://doi.org/10.1017/CBO9780511921803
  • Khan, S.,  Devlen, C., Manno, M. & Hou, D. (2024). Mouse dynamics behavioral biometrics: A survey. ACM Computing Surveys, vol. 56(6), pp. 1-33. https://doi.org/10.1145/3640311
  • Killourhy, K. S. & Maxion, R. A. (2009). Comparing anomaly-detection algorithms for keystroke dynamics. IEEE/IFIP International Conference on Dependable Systems and Networks, Lisbon, Protugal, pp. 125-134. https://doi.org/10.1109/DSN.2009.5270346
  • Lacquaniti, F., Terzuolo, C. & Viviani, P. (1983). The law relating the kinematic and figural aspects of drawing movements. Acta Pyschologica, vol. 54(1-3), pp. 115-130. https://doi.org/10.1016/0001-6918(83)90027-6
  • Lai, S., Jin, L. & Yang, W. (2017). Online signature verification using recurrent neural network and length-normalized path-signature descriptor. 2017 14th IAPR International Conference on Document Analysis and Recognition (ICDAR), Kyoto, Japan, pp. 400–405. https://doi.org/10.1109/ICDAR.2017.73
  • Lewiner, T., Gomes, J. D., Lopes, H. & Craizer, M. (2005). Curvature and torsion estimators based on parametric curve fitting. Computers and Graphics, vol. 29(5), pp. 641–655. https://doi.org/10.1016/j.cag.2005.08.004
  • Lyons, T. (2014). Rough paths, signatures and the modelling on functions on streams. arXiv preprint: 1405.4537. https://doi.org/10.48550/arXiv.1405.4537
  • MacKenzie, I. S. (1992). Fitts' law as a research and design tool in human–computer interaction. Human–Computer Interaction, vol. 7(1), pp. 91–139. https://doi.org/10.1207/s15327051hci0701_3
  • Mokhtarian, F. & Mackworth, A. K. (1992). A theory of multiscale, curvature-based shape representation for planar curves. IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 14(8), pp. 789-805. https://doi.org/10.1109/34.149591
  • Todorov, E. & Jordan, M. I. (2002). Optimal feedback control as a theory of motor coordination. Nature Neuroscience, vol. 5(11), pp. 1226–1235. https://doi.org/10.1038/nn963
  • Pepa, L., Sabatelli, A., Ciabattoni, L., Monteriu, A., Lamberti, F. & Morra, L. (2021). Stress Detection in Computer Users From Keyboard and Mouse Dynamics. IEEE Transactions on Consumer Electronics, vol. 67(1), pp. 12-19. http://doi.org/10.1109/TCE.2020.3045228
  • Pusara, M. & Brodley, C. E. (2004). User re-authentication via mouse movements. Proceedings of the 2004 ACM Workshop on Visualization and Data Mining for Computer Security, Washington, DC, USA, pp. 1–8. https://doi.org/10.1145/1029208.1029210
  • Shen, C., Cai, Z., Guan, X., Du, Y. & Maxion, R. A. (2013). User authentication through mouse dynamics. IEEE Transactions on Information Forensics and Security, vol. 8(1), pp. 16–30. https://doi.org/10.1109/TIFS.2012.2223677
  • Yang, W., Jin, L., Ni, H. & Lyons, T. (2016). Rotation-free online handwritten character recognition using dyadic path signature features, hanging normalization, and deep neural network. 2016 23rd International Conference on Pattern Recognition (ICPR), Cancun, Mexico, pp. 4083–4088. https://doi.org/10.1109/ICPR.2016.7900273