Neural Network-Based In-Contact Task Segmentation of Demonstrated Robot Motions via Hand Guiding

Johannes Hartwig, Marcello Kögler, Dominik HenricharXiv 2026

TL;DR

This paper proposes a neural network-based method to automatically segment robot hand-guiding data into three universal motion types: guarded, compliant, and free-space. By analyzing Cartesian twists and wrenches at the end effector, the system aims to simplify the programming of complex, "contact-rich" tasks for non-expert users.

What Problem Does This Paper Address?

Small and medium-sized enterprises (SMEs) often lack the budget to hire dedicated robotics experts. While "Programming by Demonstration" (PbD)—where a human physically guides a robot through a task—is an intuitive alternative, it has a major hurdle: segmentation.

When a human demonstrates a task like wiping a table, the recorded data is a continuous stream of positions and forces. To turn this into a functional robot program, that stream must be broken down into logical segments (e.g., "approach the table," "wipe with 5N of force," "lift up"). Doing this manually is tedious and requires technical knowledge. Existing automated methods are often brittle, relying on hard-coded thresholds or being limited to very specific tasks like "peg-in-hole" insertion. The authors seek a more flexible, "task-agnostic" way to categorize these motions.

Methods

The authors propose using a deep learning architecture—specifically a combination of Long Short-Term Memory (LSTM) and Convolutional Neural Networks (CNN)—to classify motion segments.

The key innovation lies in the input data and the classification categories:

  • Input Data: Instead of just looking at joint angles, the model uses a 12-dimensional time-series vector consisting of Cartesian twists (linear and angular velocities) and wrenches (forces and torques) at the robot's end effector.
  • Classification: The model categorizes every moment of the demonstration into one of three fundamental types:
  • Guarded motion: Moving until a specific force/torque condition is met (e.g., touching a surface).
  • Compliant motion: Moving while maintaining interaction with the environment (e.g., scrubbing or sliding).
  • Free space motion: Moving through the air without external contact.
Fig. 1: Demonstration of a wiping task by hand guiding, containing the three described segment types.

Datasets

To train their model, the researchers are collecting a dataset using a 7-axis Franka Emika Panda robot arm equipped with a wrist-mounted Schunk force-torque sensor.

  • Scope: Data is being collected from 11 different tasks, including peg-in-hole, button pressing, and wiping.
  • Participants: Multiple different users are performing the demonstrations to ensure the model can handle various human movement styles.
  • Ground Truth: Labeling is performed manually. Interestingly, they use "possible start points" and "guarded end points" to help the network learn the subtle transitions in user behavior when a contact motion begins.

Key Insights and Ideas

  • Task-Agnosticism: By focusing on the three fundamental types of force-controlled actions (guarded, compliant, free space), the authors argue their method can decompose any demonstrated task without needing task-specific assumptions.
  • Behavioral Cues over Thresholds: Rather than setting a hard rule like "if force > 5N, it's contact," the authors want the neural network to detect changes in user behavior. This is crucial because the exact moment a "guarded" motion starts is often ambiguous in the raw data.
  • Cartesian Focus: Most previous work used joint-space data. By using Cartesian twists and wrenches, the model operates in the same semantic space that humans use to think about tasks (e.g., "push down," "move left").

Key Results

As this paper is an extended abstract detailing a research direction and work-in-progress, quantitative performance results (such as accuracy percentages) are not yet provided. The authors are currently in the data collection and model-tuning phase.

Limitations and Future Work

  • Ambiguity in Labeling: The authors acknowledge that defining the exact start of a guarded motion is difficult. They are currently evaluating whether the network should learn to identify "sub-segments" or map directly to the final three categories.
  • User Study Needed: Once the segmentation model is finalized, the authors plan to conduct a study to measure if this automation actually makes robot programming more "intuitive" for non-experts compared to manual methods.
  • Real-time vs. Post-processing: The current focus is on segmenting recorded data; future iterations might explore real-time segmentation during the demonstration itself.

Summary updated

Abstract

Intuitive robot programming approaches, such as Programming by Demonstration, enable non-experts to teach robots tasks through hand-guided demonstrations. However, for in-contact tasks requiring force control for parts of the motion, automated segmentation of motion types is crucial for improving usability. Considering the related work, this work proposes a neural network-based segmentation method categorizing motion into three fundamental types using input data of cartesian twists and wrenches at the end effector. We collect demonstration data using a 7-axis robot with a wrist-mounted force torque sensor and generate ground truth labeling by hand. While still in development, our research direction aims to enable non-experts to program in-contact tasks more intuitively.
BibTeX
@misc{hartwig2026neural,
  author = {Johannes Hartwig and Marcello Kögler and Dominik Henrich},
  title = {{Neural Network-Based In-Contact Task Segmentation of Demonstrated Robot Motions via Hand Guiding}},
  year = {2026},
  eprint = {2611.24226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.24226},
}

Loading related content...

Figure