A Mouse-Trajectory Based Model for Predicting Query-URL Relevance

Hengjie Song, Ruoxue Liao, Xiangliang Zhang, Chunyan Miao, Qiang Yang

Abstract

Traditional search relevance models rely heavily on click-through data, which is often sparse for "long-tail" queries and prone to position bias. This paper proposes a novel probabilistic model that incorporates mouse trajectory information—such as reading patterns and hesitation—to infer query-URL relevance. By treating relevance as a latent variable in a graphical model, the approach significantly improves prediction accuracy and correlation with human labels, particularly for rare queries where traditional signals fail.

Introduction

Modern search engines require vast amounts of labeled data to optimize ranking algorithms. However, obtaining high-quality labels is challenging. Human annotation is expensive and subjective, while implicit feedback like click-through data suffers from inherent biases. Users often click top-ranked results regardless of actual relevance (position bias) or are misled by catchy snippets (quality bias). Furthermore, "tail" queries lack sufficient click volume for statistical reliability.

To address these limitations, this research explores mouse trajectories as a proxy for user attention. Since approximately 35% of users move their cursor to follow their reading path, mouse movement serves as a scalable, low-cost alternative to eye-tracking. By capturing the process of result evaluation rather than just the final click, we can better decode user intent.

Methodology: Probabilistic Graphical Modeling

The core of the proposed approach is a probabilistic graphical model that treats relevance as a hidden variable. Unlike models that view clicks in isolation, this framework integrates behavioral features derived from mouse trajectories, such as horizontal scanning (indicating reading) and vertical backtracking (indicating re-evaluation or hesitation).

The proposed probabilistic graphical model structure, where relevance is inferred from observed mouse and click behaviors.

The model assumes that observed behaviors are a function of the underlying relevance level plus Gaussian noise, which accounts for external biases. To handle the computational complexity of the latent variables, the authors employ variational inference. This iterative process minimizes the KL-divergence between the model's predictions and the actual observed user data, refining the relevance labels until convergence.

Experimental Setup

The model was evaluated using a dataset from Baidu, comprising 4,723 unique queries. Ground truth was established by three professional editors who labeled query-URL pairs on a 5-point scale. Behavioral data was collected non-intrusively via a JavaScript snippet that recorded mouse coordinates every 350ms, requiring no specialized hardware or software installations from the users.

Results and Impact

The mouse-trajectory model demonstrated superior performance over state-of-the-art baselines (such as SDM and FDM), achieving a 0.83 correlation with human consensus (compared to 0.69–0.78 for baselines). The most significant gains were observed in medium-to-low frequency queries, where mouse data compensated for the lack of clicks.

Comparison of search result heatmaps before and after re-ranking based on the mouse-trajectory relevance model.

A key finding was the model's ability to mitigate position bias. For instance, a result at position #4 might receive fewer clicks but more horizontal mouse scans than position #2. The model correctly identifies such patterns as indicators of high relevance. When results were re-ranked using these predictions, user engagement heatmaps showed a marked shift toward the newly promoted, more relevant content, as seen in Figure 4.

Conclusion and Future Work

While highly effective for informational queries, the model offers less improvement for navigational searches where users click almost instantly. Additionally, the "ultra-tail" (queries appearing only once) remains a challenge. Future research should extend these trajectory-based insights to mobile environments, focusing on touch and scrolling patterns as the primary behavioral signals in the absence of a cursor.

Summary updated

BibTeX
@inproceedings{song2012mouse,
  author = {Hengjie Song and Ruoxue Liao and Xiangliang Zhang and Chunyan Miao and Qiang Yang},
  title = {{A Mouse-Trajectory Based Model for Predicting Query-URL Relevance}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2012},
  doi = {10.1609/aaai.v26i1.8109},
}
Figure