Stuck? No worries!: Task-aware Command Recommendation and Proactive Help for Analysts

Aadhavan M. Nambhi, Bhanu Prakash Reddy, Aarsh Prakash Agarwal, Gaurav Verma, Harvineet Singh, Iftikhar Ahamath Burhanuddin

TL;DR

This paper introduces a two-pronged approach to assist users of complex data analytics software: a task-aware command recommendation system that suggests the next logical step based on the user's current goal, and a proactive help model that detects when a user is "stuck" to offer assistance before they even ask. By combining topic modeling with LSTM-based neural networks, the researchers achieved significantly higher prediction accuracy compared to traditional Markov-based baselines.

What Problem Does This Paper Address?

Modern data analytics tools (like Tableau or Power BI) are incredibly powerful but have steep learning curves. Novice analysts often find themselves overwhelmed by complex workflows, leading to "stuck" moments where they don't know which command to execute next.

Existing recommendation systems often treat user interactions as simple sequences of commands, ignoring the broader "task" the user is trying to accomplish. Furthermore, most help systems are reactive—they wait for the user to click a help button. The authors argue that an intelligent interface should understand the user's high-level intent (the "task") and proactively intervene when it detects signs of frustration or inefficiency.

Methods

The researchers proposed a hierarchical approach that models interactions at both the task and command levels.

  1. Task Identification (Biterm Topic Modeling): To understand user intent, the authors used Biterm Topic Modeling (BTM) on command sequences. Unlike standard LDA, BTM is specifically designed for short texts (or short command sequences), solving the data sparsity problem by modeling the co-occurrence of command pairs across the entire corpus.
  2. Command Recommendation (Task-Aware RNNs): They developed several variants of Recurrent Neural Networks (RNNs):
  3. vRNN (Vanilla): A standard sequence-to-sequence model.
  4. TaskRNN: This model concatenates the task distribution (from BTM) with command embeddings, providing the network with "semantic" context.
  5. JTC-RNN (Joint Task and Command): A more realistic model for real-time deployment that predicts the task distribution on-the-fly as the user executes commands, rather than assuming the full sequence is already known.
  6. Proactive Help Prediction: The authors formulated help detection as a binary classification problem. They trained an LSTM classifier using not just the sequence of commands, but also the time intervals ($\Delta t$) between them. The hypothesis is that long pauses or repetitive "undo" loops are strong indicators that a user needs help.
The system uses task distributions to recommend commands (left) and proactively highlights the help icon when a user is stuck (right).

Datasets

The study utilized a proprietary dataset from a web-based analytics software (Adobe).

  • Scale: ~350,000 command sequences from tens of thousands of users over one month.
  • Vocabulary: Approximately 300 unique commands.
  • Pre-processing: Sequences were trimmed or padded to a uniform length of 21 commands. For the help model, 4,000 "positive" sequences (where users actually clicked help) were compared against 20,000 randomly sampled "negative" sequences.

Key Insights and Ideas

  • Syntax vs. Semantics: The authors equate command sequences to "syntax" and task distributions to "semantics." Just as a language model performs better when it understands the topic of a sentence, a command recommender performs better when it knows if the user is "building a dashboard" versus "comparing time periods."
  • Temporal Signals Matter: The inclusion of time intervals between commands was crucial for the help model. It allowed the neural network to implicitly learn heuristics like "abrupt long pauses" or "inefficient loops" without needing hand-coded rules.
  • BTM for Sparsity: Using Biterm Topic Modeling was a strategic choice to handle the inherent sparsity of short interaction logs, where traditional topic models often fail to produce coherent clusters.

Key Results

The neural models significantly outperformed traditional baselines like First-order Markov Models and Probabilistic Suffix Trees (PST).

  • Command Recommendation: The TaskRNN achieved a Top-5 accuracy of 89.7%, compared to just 69.7% for the Markov baseline. Even the more realistic JTC-RNN reached 79.2%.
  • Help Prediction: The LSTM classifier that incorporated both commands and time intervals performed best, achieving an AU-ROC of 0.83.
Table 2: Performance of proactive help models

Qualitative analysis confirmed that the help model successfully flagged sequences containing frequent searches and command loops—behaviors known to characterize struggling users.

Limitations and Future Work

  • Negative Sampling Bias: The authors acknowledge that their "negative" examples (sequences where help wasn't sought) might be noisy, as users could have sought help through external means like Google or colleagues.
  • Task Ground Truth: Task labels were validated by experts but remain somewhat subjective.
  • Integration: Currently, the recommendation and help models are separate. The authors suggest that future work should involve an end-to-end model that integrates both lines of work into a single unified architecture.

Summary updated

BibTeX
@inproceedings{nambhi2019stuck,
  author = {Aadhavan M. Nambhi and Bhanu Prakash Reddy and Aarsh Prakash Agarwal and Gaurav Verma and Harvineet Singh and Iftikhar Ahamath Burhanuddin},
  title = {{Stuck? No worries!: Task-aware Command Recommendation and Proactive Help for Analysts}},
  booktitle = {UMAP},
  year = {2019},
  url = {https://openreview.net/forum?id=i0EFTXq90bA},
}
Figure