From Operation to Cognition: Automatic Modeling Cognitive Dependencies from User Demonstrations for GUI Task Automation
Authors
Research Background and Issues
-
Problems or Challenges Identified by the Authors: Traditional Programming by Demonstration (PBD) systems primarily rely on recording and replaying user actions within graphical user interfaces (GUIs) to achieve task automation, while largely neglecting the cognitive processes underlying these actions. This approach makes it difficult for task programs to generalize across different contexts, such as collecting and summarizing introductory content from multiple websites based on varying search keywords.
-
Importance of the Problem: Current PBD systems are limited in their ability to capture cognitive dependencies during user operations. These cognitive dependencies describe the reasoning and decision-making processes users employ when selecting operation parameters based on information obtained from previous actions. When tasks involve multiple interdependent parameters, this omission significantly reduces the effectiveness of automation.
-
Research Motivation and Related Work: Existing research on PBD has primarily focused on constructing task models through symbolic reasoning or enhancing the expressiveness of natural language task descriptions using large language models (LLMs). However, few methods explicitly model cognitive dependencies between operations. To address this gap, this paper introduces a new system, TaskMind, aiming to bridge the gap between operations and cognition, thereby improving the generalization capabilities of task programs across diverse contexts.
Solution
-
Proposed Solution: The authors propose TaskMind, an intelligent automation system based on PBD. Its core innovation lies in the introduction of a "task graph," which explicitly models the sequence of user operations and their cognitive dependencies, enabling the system to understand user intentions and dynamically generate task parameters for new contexts.
-
Innovations:
- Transforming implicit cognitive dependencies into user-comprehensible task graphs.
- Introducing an operation-cognition knowledge base to systematically classify types of cognitive dependencies.
- Leveraging LLMs to automatically extract cognitive dependencies from user demonstrations and implementing an interactive feedback module for continuous evolution of the knowledge base.
-
Implementation Steps:
- Task Capture Phase: Users complete tasks through demonstrations, and TaskMind records all GUI operations, keyboard, and mouse events.
- Task Analysis Phase:
- A UI extraction module processes low-level operations into semantically rich operation sets.
- A dependency extraction module (including structural and semantic deep extractors) utilizes LLMs to capture cognitive dependencies between operations.
- Task Customization and Execution Phase: Using the generated task graph, users verify and modify necessary dependencies, define new task objectives, and execute the task.
- Reflection and Knowledge Evolution: If users modify the task graph or add new dependency descriptions, the system absorbs these changes through a reflection module and updates the operation-cognition knowledge base, enhancing the model's understanding of future tasks.
-
Key Technologies Used:
- Large Language Models (LLMs) for dependency extraction and parameter reasoning (e.g., GPT-4 and GPT-3.5).
- Operation-cognition knowledge base, systematically categorizing five major types of cognitive dependencies and their subcategories through inference rules.
- Rule-driven UI extraction and iterative task recognition to support modular task analysis.
Research Outcomes
-
Specific Outcomes:
- TaskMind creatively utilizes task graphs and cognitive dependencies to significantly improve the generalization capabilities of automation for tasks with multiple parameter dependencies.
- The operation-cognition knowledge base systematically organizes diverse cognitive dependency types across 39 complex tasks, demonstrating its academic value and practical potential.
- A reflection module was designed and implemented, enabling the task model to evolve continuously through user feedback, making the system more adaptable to personalized needs.
-
Comparative Advantages Over Existing Solutions:
- Enhanced Generalization Capability: By explicitly modeling cognitive dependencies, TaskMind dynamically adjusts parameters when task objectives change, whereas existing methods often rely solely on "record-replay" mechanisms.
- Flexibility and Transparency: The task graph design visualizes complex task logic, making it easier for users to understand the automation process and make targeted modifications.
- Improved Automation Success Rate: Compared to traditional end-to-end LLM-based methods, TaskMind increases task success rates from 79.5% (unmodified) to 92.3% (after user modifications), significantly reducing failure rates.
-
Experimental or Evaluation Results:
- Simulation experiments show that TaskMind achieves high accuracy in identifying semantic dependencies, with an F1 score of 82.6%.
- User studies reveal that in 120 experiments, task completion time was reduced by 66%, and subjective satisfaction, reliability, and sense of control were significantly higher compared to alternative methods.
- In personalized task tests, TaskMind performed well across various real-world tasks (e.g., data processing, learning support, and document management), achieving a task success rate of 75%.
-
Limitations and Future Directions:
- Application Scope Limitations: TaskMind currently supports only a limited set of GUI applications (e.g., Excel, Chrome, and file managers) and struggles with dynamic web structures and certain desktop applications.
- Fixed Path Issue: The automation process follows a fixed operation path, supporting only simple task flows and not suitable for complex workflows or multi-branch tasks.
- Automated Task Segmentation: TaskMind still requires users to manually mark task boundaries; future work could integrate rules or machine learning algorithms to achieve automated segmentation.
- User Interface Enhancements: Users have expressed a desire for a lower learning curve and more flexible switching between natural language and task graph interfaces.
Through the research and development of TaskMind, this paper provides a new perspective on GUI task automation, combining cognitive theory and artificial intelligence technologies to demonstrate how automation tools can drive innovation in human-computer collaboration by deeply modeling user intentions. This work offers important guidance for the future development of complex task automation and explainable design.
Research Questions / Practical Problems
Question signals indexed for this paper.
Research Questions
3- How can cognitive dependencies in user operations be explicitly modeled in GUI task automation?Category: GUI/IoT Task Automation and Interface GenerationSimilar questionsarrow_forward
- Can task graphs significantly improve cross-context generalization of task programs?Category: GUI/IoT Task Automation and Interface GenerationSimilar questionsarrow_forward
- How can large language models extract implicit cognitive dependencies in user operations and improve automation success rates?Category: GUI/IoT Task Automation and Interface GenerationSimilar questionsarrow_forward
Practical Problems
1- Users struggle to complete complex tasks in PBD systems because they cannot identify cognitive dependencies between operations.Category: GUI/IoT Task Automation and Interface GenerationSimilar questionsarrow_forward
- 100%
Do It For Me vs. Do It With Me: Investigating User Perceptions of Different Paradigms of Automation in Copilots for Feature-Rich Software
CHI '25· Human-LLM Collaboration +1
- 80%
Luminate: Structured Generation and Exploration of Design Space with Large Language Models for Human-AI Co-Creation
CHI '24· Human-LLM Collaboration +1
- 80%
"If the Machine Is As Good As Me, Then What Use Am I?" – How the Use of ChatGPT Changes Young Professionals' Perception of Productivity and Accomplishment
CHI '24· Human-LLM Collaboration +1
- 80%
An Exploratory Study on How AI Awareness Impacts Human-AI Design Collaboration
IUI '25· Human-LLM Collaboration +1
- 80%
"It would work for me too": How Online Communities Shape Software Developers’ Trust in AI-Powered Code Generation Tools
IUI '25· Human-LLM Collaboration +1
- 80%
Type, Then Correct: Intelligent Text Correction Techniques for Mobile Text Entry Using Neural Networks
UIST '19· Human-LLM Collaboration +1
- 80%
Generative Trigger-Action Programming with Ply
UIST '25· Human-LLM Collaboration +1
- 75%
Tap&Say: Touch Location-Informed Large Language Model for Multimodal Text Correction on Smartphones
CHI '25· Human-LLM Collaboration
- 67%
Adapting User Interfaces with Model-based Reinforcement Learning
CHI '21· Human-LLM Collaboration +2
- 67%
Selenite: Scaffolding Online Sensemaking with Comprehensive Overviews Elicited from Large Language Models
CHI '24· Human-LLM Collaboration +2
Based on Jaccard similarity of research subtopics & professions (≥60%)