Skip to content

Behavioural Biometrics: Keystroke, Gait and Mouse Dynamics

Behavioural biometrics in typing, gait, mouse and touch data: recorded features, authentication limits, validation and forensic attribution.

By Reviewed by Sourabh

Last updated:

Behavioural biometrics measure patterns in typing, walking and device interaction. Their usefulness depends on the signal recorded, the comparison method and validation under relevant conditions; a behavioural pattern is not automatically a unique personal signature.

Authentication and forensic attribution answer different questions. A system may flag a session for review without establishing who operated the device. Investigators must evaluate the behavioural result alongside independent evidence.

Keystroke analysis uses key-press and key-release timing, gait comparison uses visible movement in video, and mouse or touch analysis uses recorded interaction events. Each modality requires suitable data and its own validation.

The gap between releasing one key and pressing the next, the pattern of arm swing during walking, and the changing speed of a cursor are examples of measurable behaviour. These features vary both between people and across sessions from the same person.

Physiological biometrics such as fingerprints, iris patterns and DNA profiles describe biological characteristics. Behavioural measurements describe activity over time. Typing analysis requires captured input-event timing, gait analysis requires suitable video, and cursor analysis requires movement events. Ordinary login timestamps do not contain the fine timing needed to reconstruct typing rhythm.

Forensic gait comparison raises reliability and admissibility questions similar to those raised by other forms of image comparison. Authentication research on typing should not be treated as proof that a method can attribute a particular message in a criminal case.

Banks deploy behavioural analytics to help detect fraud. Their operational risk scores and alerts must be distinguished from a validated forensic opinion about an individual operator.

Key terms

Dwell time
The duration between key-down and key-up for one key under the recorder’s event definitions, commonly expressed in milliseconds. Timing resolution and event handling affect measurement. A dwell distribution can inform typing analysis but does not alone identify the operator or author of text.
Flight time
An inter-key interval whose event definition must be stated. For release-to-next-press timing, subtract the preceding key-up timestamp from the next key-down timestamp. Overlapping keypresses yield negative values; other inter-key definitions differ and should not be compared as though identical.
Equal error rate (EER)
An evaluation measure at the operating threshold where false acceptance and false rejection are equal under the specified protocol. It helps compare compatible experiments, but does not describe every deployed threshold, a case-specific authorship probability or resistance to replay and synthetic-input attacks.
Free-text keystroke dynamics
Analysis of typing-event patterns where questioned and reference content need not be identical. Device, task, sequence length, user population and evaluation design affect results. It requires suitable captured event data; ordinary text or email content does not contain the necessary key timing.
Forensic gait analysis
Examiner-led comparison of visible movement in questioned and known-person footage under a defined procedure. Viewpoint, walking conditions and image quality limit what can be compared. Similarity does not establish anatomical uniqueness, and an automated recognition benchmark does not validate an examiner’s case opinion.
Reference footage
Recorded material attributed to a known person and used as a comparison reference. Provenance, view, image quality, walking conditions and visible features determine suitability. A recording’s known subject does not guarantee that it is comparable with every questioned clip.
More key terms (4)
Mouse dynamics
Features derived from recorded cursor positions and interaction times, such as speed, acceleration, path shape, pauses and click timing. Their meaning depends on task, device and recording. A session-risk signal is not automatically a validated forensic attribution to one human operator.
Touch dynamics
Features derived from touchscreen events, including timing, trajectories and supported contact measurements. Pressure and contact area depend on hardware, platform and recording; a field can contain a default rather than measured force. Forensic interpretation requires the actual schema and relevant method validation.
Continuous authentication
A term sometimes used for ongoing session monitoring using behaviour and other signals to detect possible fraud or trigger additional checks. It does not mean that identity is continually proven. Decisions and error trade-offs depend on the system, data and threat model.
Covariate problem
Variation in observed behaviour caused or accompanied by factors such as viewpoint, clothing, footwear, speed, load, surface or lighting. These can affect gait representations and comparisons. Their influence must be assessed under relevant data rather than treated as a universal fixed accuracy penalty.

For related search and review distinctions see AFIS and biometric identification networks. Image suitability is also discussed in CCTV facial comparison.

  • Distinguish dwell time, flight time, and free-text versus fixed-text analysis, and explain why error rates must be tied to an evaluation protocol.
  • Distinguish examiner-led gait comparison from automated gait recognition and explain the limits of CCTV-based inference.
  • Explain how mouse and touch events contribute to session-risk assessment and what additional validation forensic use requires.
  • Compare expert-evidence requirements in US federal courts, England and Wales, and India without assuming that a modality is automatically admissible.
  • Identify the reliability limits affecting operational behavioural biometric classifiers (injury, fatigue, unfamiliar devices) and the reporting caveats required of forensic examiners.

Keystroke Dynamics: Measuring Typing Behaviour

Keystroke dynamics, sometimes called typing rhythm analysis, quantifies the timing of key-press and key-release events. Pressure measurements require suitable sensors. The core measurements are:

  • Dwell time: how long a key is held down, measured in milliseconds
  • Flight time (inter-key interval): key-down time of the next key minus key-up time of the preceding key; this release-to-press interval is negative when the keypresses overlap
  • Press order: the sequence of key-down and key-up events; ordinary event logs do not reveal which finger pressed a key

Pressure or movement-depth features can be used only when the hardware measures them and the acquisition software records them. A force-sensitive trackpad does not by itself supply keyboard depression depth.

Typing habits can produce characteristic timing distributions, but timing varies with the task, session and device. A profile therefore describes a distribution of observed behaviour rather than an invariant sequence of motor commands.

Early empirical validation was reported by Gaines, Lisowski, Press and Shapiro in a 1980 study published as a RAND Corporation report (R-2526-NSF). Modern validation uses datasets several orders of magnitude larger. The CMU Keystroke Dynamics Benchmark Dataset (Killourhy and Maxion, Carnegie Mellon University, 2009) contains 51 participants typing a fixed password 400 times each: 50 repetitions in each of eight sessions, separated by at least one day. Its published evaluation reported:

  • Scaled Manhattan detector: mean EER 9.62% in the original CMU evaluation.
  • Comparisons with newer models require the same training, testing and impostor-sampling protocol; a lower published EER is not automatically a like-for-like improvement.

Fixed-text comparisons use specified content, such as a repeated password, whereas free-text comparisons need not use identical content. Both can be relevant to different tasks. Neither a password-authentication experiment nor a free-text model automatically establishes who composed or typed a disputed message.

There is no single error rate for free-text typing analysis. Performance changes with the model, sample length, enrolment data, device and population. A research EER must be reported with its protocol and must not be read as the probability that a particular forensic conclusion is wrong.

Dwell is key-up minus key-down for one key. Release-to-next-press flight time can be negative when keys overlap.

Keystroke comparison requires a recorder that captured suitable key-down and key-up timestamps. Standard endpoint-security logs may record logons, processes and network activity without this detail. Examiners should inspect the actual schema, acquisition settings and timestamp resolution before attempting feature extraction.

The existence of corporate activity logs does not establish that a typing comparison is possible or reliable. The examiner must first establish what was recorded, preserve the original data and validate the proposed comparison under conditions relevant to the questioned session.

In the first illustrative timeline, key T is released at 90 ms and H is pressed at 130 ms: flight time is 130−90 = +40 ms. In the second, H is pressed at 80 ms before T is released at 120 ms: flight time is 80−120 = −40 ms. These toy values illustrate event definitions, not an identity threshold.

Gait Analysis from CCTV: From Academic Observation to Court

Gait is the locomotion pattern produced by the coordinated action of the musculoskeletal and nervous systems. Each person's gait reflects their skeletal proportions, joint range of motion, muscle mass distribution, habitual posture, and years of learned motor patterns. The forensic proposition is that CCTV footage of an unknown person's gait can be compared against reference footage of a known individual to assess whether they are the same person.

Automated gait-recognition research represents walking through body models, joint trajectories or silhouette sequences. These systems are evaluated under defined datasets and protocols; their results should be distinguished from an examiner comparing case footage.

The Royal Society and Royal Society of Edinburgh published a court primer on forensic gait analysis in 2017. It emphasises that the scientific evidence supporting identification from gait is limited. A description of similarities is not a demonstration that the observed features are unique.

Before comparing gait, an examiner assesses whether the recordings show enough of the walking cycle and relevant body regions. Occlusion, frame rate, viewpoint and image quality can restrict which observations are possible.

Reference footage should allow meaningful comparison with the questioned footage. Clothing, footwear, walking speed, injury and camera geometry can change the visible pattern. Similarity must be interpreted in the light of these differences and the limits of available population data.

Gait comparison requires visible, comparable movement. Camera geometry and walking conditions can change the appearance of the same person.

An expert should explain the observations, the method used to compare them and the limits of the conclusion. A court assesses the proposed evidence in the relevant proceedings; previous use of gait evidence does not validate every later comparison.

In US federal proceedings, expert opinion is assessed under Rule 702. Relevant research and error-rate evidence may assist the reliability assessment, but the proposed method must also be reliably applied to the facts of the case.

Scroll horizontally if needed to see the full table.

ParameterModel-based gait recognitionAppearance-based gait recognitionExaminer-based forensic comparison
InputJoint coordinates estimated from suitable images or sensorsA sequence of body silhouettesFootage showing comparable movement
Reference requirementReference samples compatible with the evaluated protocolReference samples compatible with the evaluated protocolKnown-person footage suitable for feature comparison
Performance measureReport the dataset, protocol and metricReport the dataset, protocol and metricReport the basis and limits of the opinion
CCTV variability sensitivityPose estimates can fail with occlusion or poor imagesViewpoint and clothing can alter silhouettesViewpoint and image quality constrain visible features
Forensic interpretationBenchmark accuracy alone does not establish case reliabilityBenchmark accuracy alone does not establish case reliabilitySimilarities alone do not establish uniqueness

Mouse and Touch Dynamics in Authentication

Mouse dynamics uses recorded cursor positions and event times to derive features such as speed, acceleration, curvature, pauses and click timing. Touch dynamics can use tap timing and swipe trajectories. Contact area or pressure is available only when supported by the sensor, platform and recorder; a pressure field may contain a default value rather than measured force.

Event positions and times support path and speed features. Pressure and contact area require appropriate sensor and recording support.

Behavioural analytics is used commercially in banking fraud detection. Commercial deployment shows an operational use case, but does not by itself establish a forensic error rate or prove the identity of a session operator.

A bank can combine interaction features with device and transaction information to assess session risk. The features available and the response to an alert depend on the implementation. A high risk score is a reason to investigate, rather than a direct measurement of who used the account.

In a dispute, the relevant records may include the event stream, derived features, model version, risk score and action taken. An examiner needs this context to explain what the system actually observed and how it reached its output.

To assess an anomalous session, compare the recorded behaviour with the baseline and consider alternative explanations such as a new device or a changed task. Preserve transaction and access records that can independently test the competing explanations.

Session monitoring, sometimes called continuous authentication, evaluates signals during use to detect possible fraud. It should not be described as continuously proving the user’s identity. Decisions, reauthentication and the interpretation of an anomaly follow the actual system and its threat model.

Forensic Applications: Fraud Investigation and Insider-Threat Attribution

In some fraud systems, changes in interaction patterns contribute to session-risk assessment or trigger further checks. Implementation and thresholds vary. An alert can identify a session requiring investigation without proving that it was controlled by an impostor.

During investigation, the log records what the system observed and how it classified the session. An anomaly may reflect an unfamiliar device, an accessibility tool or a different task as well as unauthorised use. Identifying an operator requires additional evidence and relevant validation.

In insider-threat investigations, activity logs usually identify accounts, devices and actions. Linking an account action to a human operator is a separate inference; behavioural comparisons can be evaluated only when suitable interaction data was actually captured.

A typing comparison may test whether recorded session behaviour resembles a reference profile, but a similarity score is not proof of authorship. Sample length, device differences and the provenance of reference sessions affect what can be inferred.

Workplace activity monitoring can record use of a device, but presence, productivity and authorship are distinct questions. A keyboard-activity record cannot establish all three without further evidence.

Monitoring raises privacy and data-protection duties as well as evidential questions. In the UK, employers must consider a lawful basis, necessity, proportionality, transparency and, where required, a data-protection impact assessment. Collection compliance and admissibility are separate issues.

Admissibility: Validation and Expert-Evidence Rules

In US federal courts, Rule 702 requires the proponent to demonstrate, more likely than not, that expert testimony rests on sufficient facts or data, reliable principles and methods, and their reliable application to the case. Daubert identifies flexible considerations such as testing, peer review, error rates and general acceptance; these are not a mandatory four-part checklist. State rules vary.

A benchmark result can inform reliability but cannot substitute for case-specific validation. The expert should explain the method, relevant limitations and why the supporting study applies to the conditions of the questioned data.

In England and Wales, expert evidence must assist the court on matters outside ordinary knowledge, come from an appropriately qualified expert and be sufficiently reliable. Reports must explain the basis of the opinion and relevant limitations under the criminal-procedure framework.

The Forensic Science Regulator sets quality requirements for defined forensic activities. Whether the statutory code applies, and whether accreditation is required, depends on the activity and applicable version of the code. Accreditation should not be assumed to be a universal prerequisite for every behavioural comparison.

In India, BSA 2023 section 39 concerns relevant expert opinion where that Act governs the proceedings; the earlier Indian Evidence Act remains relevant under its savings. This provision does not itself certify a behavioural method or settle proof of the underlying electronic records.

Section 39 makes relevant the opinions of persons specially skilled in the relevant field. This does not automatically establish the reliability of a behavioural classifier. The party relying on the evidence must also address the rules applicable to the underlying electronic records and explain the basis of the expert opinion.

Under the Australian Commonwealth Evidence Act, section 79 concerns opinion based wholly or substantially on specialised knowledge from training, study or experience. Section 135 provides a general exclusion discretion; in criminal proceedings section 137 requires exclusion of prosecution evidence when its probative value is outweighed by the danger of unfair prejudice. The applicable state or territory law must also be checked.

Schematic workflow, not measured case data. Preserve the recorded events, extraction method and validation so the report can be assessed alongside independent evidence.

A forensic opinion should connect the recorded events, the extracted features, the validated comparison and the stated conclusion. Preserve the data and method so another examiner can review each step.

The Research Frontier: Deep Learning, Multimodal Fusion and Liveness Detection

Multimodal systems combine signals such as typing, cursor movement and device information. Fusion may improve discrimination, but its performance must be measured on the combined system. Correlated channels do not provide independent evidence merely because they have different names.

TypeNet, an LSTM-based free-text typing model by Acien and colleagues, reported EERs of 2.2% for physical keyboards and 9.2% for touchscreen keyboards using five enrolment sequences and a test sequence of 50 keystrokes. The study used separate Aalto datasets: more than 136 million keystrokes from about 168,000 physical-keyboard participants and more than 63 million keystrokes from about 60,000 touchscreen participants. These are research-protocol results, not case-specific probabilities of correct attribution.

EER describes the threshold where false acceptance and false rejection are equal in a specified evaluation. It is not a probability of authorship for one case.

Automated gait-recognition accuracy depends on the dataset and protocol, including how subjects, viewpoints and walking conditions are divided between reference and test sets. A headline rank-1 score does not predict performance on unrelated CCTV with different clothing, occlusion or camera geometry.

Forensic evaluation should include footage that reflects the conditions of intended use, including difficult or unfamiliar capture conditions. Performance should be reported separately for relevant sources of variation rather than inferred from a controlled benchmark alone.

Replay and synthetic-input attacks are distinct from ordinary impostor comparisons. A system should be evaluated against the attacks it is expected to resist; normal-session authentication accuracy does not demonstrate replay resistance. Timing noise alone should not be assumed to prove that input came from a live person.

Check Your Understanding

Question 1 of 5· 0 answered
In keystroke dynamics, 'flight time' refers to:

Sources

  1. 1.TypeNet: Deep Learning Keystroke Biometrics · Acien and colleaguesEvaluation protocol and timing features
  2. 2.CMU Keystroke Dynamics Benchmark · Carnegie Mellon UniversityFixed-text dataset and evaluation
  3. 3.Forensic gait analysis: primer for courts · Royal SocietyLimits of gait inference
  4. 4.Pointer Events specification · W3CSensor-dependent event measurements
  5. 5.NIST SP800-63B-4: biometrics and session monitoring
  6. 6.Federal Rule of Evidence 702

Test yourself on Fingerprint Sciences with free, timed mocks.

Practice Fingerprint Sciences questions

Found this useful? Pass it along.