Exploring Natural Language Processing Methods for Interactive Behaviour Modelling

Guanhua Zhang, Matteo Bortoletto, Zhiming Hu, Lei Shi, Mihai Bâce, Andreas Bulling

Introduction

In the field of Intelligent User Interfaces (IUIs), a primary objective is the development of systems capable of anticipating user intent through the analysis of interactive behavior. However, modeling such behavior is complex due to its sequential and hierarchical nature, where discrete atomic actions (e.g., clicks, keypresses) aggregate into higher-level activities and tasks. Traditional approaches, such as fixed-length n-gram models, often struggle with the "vocabulary explosion" problem and lack the flexibility to handle variable-length action sequences effectively.

This research investigates a novel hypothesis: that human-computer interaction (HCI) data possesses a structural organization analogous to natural language. By treating user actions as "characters" in a behavioral language, the authors propose that advanced Natural Language Processing (NLP) techniques—specifically Byte Pair Encoding (BPE)—can be leveraged to identify meaningful "behavioral subwords" and improve task recognition performance.

Methodology

The core of the proposed approach is a pipeline that translates raw interaction data into a structured format suitable for NLP models.

Analogy between interactive behavior and natural language processing.
  1. Data Discretization: Continuous mouse data (X, Y coordinates) is converted into discrete tokens using the Dispersion-Threshold Identification (I-DT) algorithm. This process categorizes movements based on screen quadrants and behavioral types, such as "pinpoint" actions or "re-directions."
  2. Subword Encoding (BPE): Instead of relying on rigid n-grams, the researchers apply Byte Pair Encoding (BPE). BPE is a subword tokenization method that iteratively merges the most frequent pairs of adjacent tokens. This allows the system to learn a flexible vocabulary of action sequences (activities) of varying lengths, effectively capturing the hierarchical structure of behavior.
  3. Classification: The resulting encoded sequences are processed by a Transformer-based classifier, the current state-of-the-art architecture in NLP, to perform interactive task recognition.

Datasets and Experimental Setup

The methodology was evaluated using two distinct datasets representing different interaction environments:

  • Buffalo Dataset: A controlled laboratory dataset focused on standardized typing tasks, such as transcribing text and responding to emails.
  • EMAKI (Everyday Mouse And Keyboard Interactions): A new dataset introduced in this study, featuring "out-of-the-lab" data from 39 participants. EMAKI provides a more naturalistic view of computer usage, encompassing diverse tasks including text editing, image manipulation, and questionnaire completion.
Examples of tasks in the EMAKI dataset: (a) text editing, (b) image editing, and (c) questionnaire completion.

Results and Discussion

The experimental results strongly support the language analogy for interactive behavior. On the EMAKI dataset, the BPE-encoded models achieved a peak Macro F1 score of 0.703, significantly outperforming "NoEncoding" baselines and standard Autoencoders.

A key insight from the study is the emergence of "behavioral semantics." Without explicit supervision, the BPE algorithm identified meaningful human intentions. For instance, it successfully isolated the sequence for the "Save" shortcut (Ctrl + S) and the specific combination of actions required to capitalize and space a word at the start of a sentence.

The study also highlighted differences between input modalities. BPE performance was notably higher on keyboard data compared to mouse data. This suggests that typing, as a direct manifestation of language, is more easily modeled by NLP techniques, whereas mouse movements are inherently noisier and may require more sophisticated discretization methods to preserve information.

Conclusion and Future Work

By demonstrating that digital interaction footprints follow a "grammar" similar to natural language, this research paves the way for applying large-scale pre-trained models (like BERT or GPT) to behavioral modeling. Future research will focus on incorporating temporal information (action speed) to distinguish between user expertise levels and developing multimodal BPE techniques to capture the complex interplay between simultaneous mouse and keyboard usage.

Summary updated

BibTeX
@inproceedings{zhang2023exploring,
  author = {Guanhua Zhang and Matteo Bortoletto and Zhiming Hu and Lei Shi and Mihai Bâce and Andreas Bulling},
  title = {{Exploring Natural Language Processing Methods for Interactive Behaviour Modelling}},
  booktitle = {INTERACT},
  year = {2023},
  url = {https://openreview.net/forum?id=mRv96xHNsi},
}
Figure