Abstract
Dataflow visualization systems enable flexible visual data exploration by allowing the user to construct a dataflow diagram that composes query and visualization modules to specify system functionality. However, learning dataflow diagram usage presents overhead that often discourages the user. In this work, we design FlowSense, a natural language interface for dataflow visualization systems that utilizes state-of-the-art natural language processing techniques to assist dataflow diagram construction. FlowSense employs a semantic parser with special utterance tagging and special utterance placeholders to generalize to different datasets and dataflow diagrams. It explicitly presents recognized dataset and diagram special utterances to the user for dataflow context awareness. With FlowSense, the user can expand and adjust dataflow diagrams more conveniently via plain English. We apply FlowSense to the VisFlow subset-flow visualization system to enhance its usability. We evaluate FlowSense by one case study with domain experts on a real-world data analysis problem and a formal user study.
Introduction
Dataflow visualization systems (DFVS) like VisFlow and KNIME offer a powerful paradigm for visual analytics, allowing users to build custom pipelines by connecting modular nodes for filtering, processing, and visualization. Despite their flexibility, the steep learning curve associated with manual node configuration often acts as a barrier to entry. FlowSense addresses this challenge by introducing a natural language interface (NLI) that allows users to construct and modify these complex diagrams using plain English queries, effectively bridging the gap between intuitive language and structured dataflow logic.
Methods: Semantic Parsing and Domain Independence
FlowSense is integrated into the VisFlow framework, utilizing a semantic parser built on the Stanford SEMPRE framework and CoreNLP. A core technical innovation is its approach to domain independence through Special Utterance Placeholders.
Instead of retraining the NLP model for every new dataset, FlowSense dynamically identifies dataset-specific terms (such as column names like "mpg") and replaces them with generic placeholders (e.g., <column>) before parsing. This allows a fixed set of approximately 500 grammar rules to function across diverse data domains. Furthermore, the system is context-aware; it uses heuristics based on recent user interactions and cursor proximity to infer which node a user is referring to when a query is underspecified.
To build user trust and clarity, FlowSense provides real-time auto-completion and color-coded tags. As users type, the system highlights recognized terms—such as green for data columns and purple for node types—providing immediate feedback on how the query is being interpreted.
Key Insights
- NLI as a Pipeline Builder: Unlike "black box" NLIs that simply return a static chart, FlowSense constructs a persistent, modifiable dataflow diagram. This preserves data provenance, allowing users to inspect and tweak the logic behind their visualizations.
- Transparency and Learning: By exposing the parsing process through interactive tagging, FlowSense helps users learn the system's underlying vocabulary and logic, reducing the "guesswork" often associated with natural language interfaces.
- Implicit Context: In a visual environment, users often omit details. FlowSense’s ability to infer the "focus" node based on mouse position makes the interaction feel more natural and less repetitive.
Evaluation and Results
The system was evaluated through a formal user study with 17 participants and a qualitative case study involving domain experts. In the case study, experts used FlowSense to analyze NYC taxi trip data, successfully recreating complex multi-view visualizations to study traffic speed reductions.
Key quantitative results include:
- Query Acceptance: 68.5% of the 649 queries logged during the user study were successfully parsed and accepted.
- User Satisfaction: 12 out of 17 users agreed that FlowSense simplified the construction of diagrams, while 10 noted it accelerated their exploration process compared to traditional drag-and-drop methods.
Limitations and Future Work
While FlowSense significantly lowers the entry barrier for DFVS, it faces challenges with complex composite queries and synonyms not present in the dataset schema. Future development aims to incorporate broader common-sense knowledge bases to handle varied vocabulary and to implement smarter error recovery that suggests query corrections when parsing fails. Additionally, the researchers plan to explore "Direct Q&A" capabilities, where the system could automatically generate the necessary diagram logic to answer high-level analytical questions directly.
Summary updated