Manuscript Offprint
arXiv:2610.31020Demonstration-Based Robotic Feeding Using Dynamic Movement Primitives
Kenzhi Iskandar Wong , Kitti Thamrongaphichartkul , Sri Harsha Turlapati , Yanshuo Lu , Kanichi Doi , Boyu Ma , Bin Zhou , Lin Yang , Ananda Sidarta , Lek Syn Lim , Arun-Kumar Kaliya-Perumal , Jianfei Yang , Domenico Campolo
Abstract—This paper presents a demonstration-based robotic feeding framework that integrates human demonstration, Dynamic Movement Primitive-based motion planning, vision-based scene perception, and robot control. A human operator first demonstrates the scooping and feeding motions while the position and Euler-angle orientation of the spoon are recorded using a motion-capture system. The recorded trajectory is segmented into scooping and feeding motions, which are encoded using separate Dynamic Movement Primitives. Before task execution, an RGB-D camera estimates the participant's mouth position, while two AprilTags are used for robot-frame registration and tray localization. The detected tray pose is used to position the scooping motion, whereas the detected mouth position defines the positional goal of the feeding motion. The approach, scooping, and feeding trajectories are then executed sequentially by a Kinova Gen3 manipulator through a ROS 2-based framework. A real-world experiment demonstrates the feasibility of the integrated pipeline and shows that the learned spoon motions can be reproduced within the detected experimental scene.
Index Terms—assistive robotics, robot-assisted feeding, learning from demonstration, dynamic movement primitives, RGB-D perception
I. INTRODUCTION
Robot-assisted feeding aims to support individuals with upper-limb motor impairments while reducing reliance on continuous caregiver assistance [1, 2]. A robotic feeding system must coordinate several components within a complete task sequence, including food acquisition, utensil transport, mouth localization, motion generation, and robot control.
Previous studies have addressed different components of robot-assisted feeding, including end-to-end feeding systems [2], bite-transfer trajectories considering efficiency and user comfort [3], visual and haptic sensing for inside-mouth food transfer [4], and robust mouth perception with physical-interaction-aware control [5]. Flexible mealtime assistance across different activities and user preferences has also been investigated [6]. Related robotic systems have explored human-motion retargeting, compliant rehabilitation control, and compliant manipulation [7–9].
An important component of the feeding task is the generation of the spoon motion. Scooping and feeding require task-specific trajectories in which both the position and orientation of the spoon evolve throughout the motion. Learning from demonstration provides a practical means of transferring human-demonstrated motions to robotic systems [10], as well as task-relevant skills and interaction strategies [11]. Among the available representations, Dynamic Movement Primitives (DMPs) are well suited for encoding demonstrated motions as stable nonlinear dynamical systems shaped by learned forcing terms [12, 13]. DMP-based approaches have also been applied and extended to various manipulation tasks, including contact-rich and interaction-aware scenarios [14–16].
Despite these advances, transferring demonstrated spoon motions into a complete feeding pipeline that adapts them to the current task scene remains a challenge. Direct replay of a demonstrated trajectory ties the robot motion to the conditions under which the demonstration was recorded, whereas a practical feeding system should adapt the learned scooping and feeding motions to the current bowl and mouth locations. This paper addresses this problem through an integrated framework that combines human demonstration, DMP-based motion generation, RGB-D-based mouth localization, AprilTag-based tray localization, and robotic execution. The learned scooping motion is retargeted according to the detected tray location, while the detected mouth position defines the feeding goal. The scope of the present work covers offline motion learning and task execution using scene information acquired before the robot begins moving. Continuous mouth tracking and online adaptation, food detection, and more complex food-manipulation tasks requiring cutting or multiple utensils are outside the current scope.
The remainder of this paper is organized as follows. Section II introduces the DMP formulation and learning procedure. Section III describes the demonstration-based feeding framework, mouth perception, task execution sequence, and robot control. Section IV presents the experimental setup and results. Section V discusses the main findings and limitations, and Section VI concludes the paper.
Robotics Research Centre, School of Mechanical and Aerospace Engineering, Nanyang Technological University, Singapore.
School of Science and Technology, Singapore University of Social Sciences, Singapore.
Department of Mechano-Informatics, University of Tokyo, Japan.
R3 Institute Singapore, Nanyang Technological University, Singapore.
Open access funding support was provided by the Rehabilitation Research Institute of Singapore (Grant ID: 021099-00001), a tripartite collaboration between Nanyang Technological University (NTU), the Agency for Science, Technology and Research (A*STAR), and NHG Health.
*Corresponding author: d.campolo@ntu.edu.sg
A. Dynamic Movement Primitives
Dynamic movement primitives (DMPs) represent trajectories as stable nonlinear dynamical systems consisting of a point-attractor system whose motion is shaped by a learnable nonlinear forcing term [12]. The forcing term encodes the shape of a demonstrated trajectory, while the initial configuration, goal configuration, and execution duration can be modified during reproduction.
In this work, the end-effector configuration is represented in a six-dimensional Euclidean space as
where is the Cartesian position and
is the Euler-angle vector containing the roll, pitch, and yaw angles, respectively.
The DMP transformation system is defined as
where denote the current configuration, scaled generalized velocity, and goal configuration, respectively. The parameter temporally scales the motion, while and determine the convergence behavior. The scaling matrix is defined as
where is the initial configuration. A common choice is , resulting in critically damped nominal dynamics.
The motion progression is governed by the canonical system
where is the phase variable and is a constant. The phase variable monotonically decreases from one toward zero as the motion progresses.
The nonlinear forcing term shapes the generated trajectory and is defined as
where is the number of radial basis functions and is the weight vector associated with the th basis function. Each basis function is given by
where specifies the center of the th Gaussian basis function along the phase variable , and controls its width. A larger value of produces a narrower basis function, whereas a smaller value produces a wider basis function.
As , the forcing term vanishes and the transformation system reduces to a linear spring–damper system that converges to the goal configuration g.
B. DMP Learning
Following the supervised DMP learning procedure in [12], the forcing term is learned from a demonstrated trajectory , where the superscript denotes a quantity obtained from the demonstration. Its initial and goal configurations are defined as
where is the duration of the demonstrated motion. The demonstrated velocity and acceleration are obtained from the recorded trajectory.
For a constant , substituting the demonstrated trajectory into (3)–(4) and rearranging the transformation system gives the demonstration-derived forcing term
(10)
where
with every element of assumed to be nonzero.
The normalized basis-function vector is defined as
Accordingly, the learned forcing term can be expressed as
where W contains the weights of all basis functions.
The learned weights are obtained by fitting to the demonstration-derived forcing term using regularized least-squares regression:
where and collect the demonstration-derived forcing terms and basis-function vectors over the recorded trajectory, respectively, and is a regularization coefficient.
III. FRAMEWORK
A. System Overview
The framework is implemented using ROS 2 and consists of two main stages: demonstration and DMP learning, followed by robotic task execution, as illustrated in Fig. 1. In the first stage, a human operator demonstrates the scooping and feeding motions while the spoon trajectory is recorded using a motion-capture system. The demonstrations are then segmented into the scooping and feeding motions, from which

Fig. 1: Overview of the demonstration-based robotic feeding framework. The scooping and feeding motions are recorded using a motion-capture system and encoded as DMPs. Before task execution, the mouth position is detected once using an RGB-D camera, while two AprilTags are used for camera-to-robot frame registration and tray localization. The learned DMP weights, task-relevant configurations, and initial mouth position are used to generate the desired end-effector motion for the robotic manipulator.
the corresponding DMP weights and the initial and final poses of each motion segment are extracted.
Before task execution, an RGB-D camera detects the mouth position and two AprilTags. The AprilTag attached to the tray is used to locate the bowl, while the AprilTag placed at the robot base is used to express the detected positions in the robot base frame. The mouth position is measured once before the robot begins moving and remains fixed throughout the execution.
The motion-planning module uses the learned DMP weights, task-relevant configurations, detected tray pose, and detected mouth position to generate the sequential scooping and feeding motions. The generated desired end-effector configurations are then sent to the low-level controller for execution by the robotic manipulator and attached spoon.
B. Demonstration and Task Segmentation
During the demonstration, a human operator performs the scooping and feeding motions using a spoon instrumented with motion-capture markers. The motion-capture system records the Cartesian position and Euler-angle orientation of the spoon, resulting in the demonstrated trajectory
where is the total duration of the demonstration.
The demonstrated trajectory is divided into two motion segments: scooping and feeding. Let denote the transition instant between the two segments. The demonstrated scooping and feeding trajectories are then defined as
The initial, transition, and final poses of the demonstrated task are respectively defined as
where and denote the pre-scooping and post-scooping poses, respectively. The post-scooping pose serves as both the final pose of the scooping segment and the initial pose of the feeding segment.
The two motion segments are learned independently using the DMP learning procedure described in Section II-B, resulting in the weight matrices and . During task execution, the demonstrated poses are adjusted according to the detected tray pose and mouth position. In particular, the positional component of the final feeding pose is replaced by the initially detected mouth position, while its Euler-angle orientation is retained from the demonstration.
C. Mouth Perception
Before task execution, the mouth position is estimated from RGB-D images captured by a ZED 2i camera. Detailed Expression Capture and Animation (DECA) is applied to the RGB image to estimate the facial landmarks [17]. The mouth center is determined from the detected mouth landmarks, while the corresponding depth information is used to obtain its three-dimensional position in the camera frame, denoted by .
An AprilTag placed at the robot base is used to determine the transformation between the camera frame and the robot base frame. The mouth position expressed in the robot base frame is computed as
where is the homogeneous transformation from the camera frame to the robot base frame.
Since only the mouth position is estimated, the final spoon orientation is retained from the demonstrated feeding motion. Accordingly, the goal of the feeding DMP is defined as
where is the final spoon orientation extracted from the demonstrated feeding motion. The mouth position is estimated once before the robot begins moving and remains fixed throughout task execution.
D. Task Execution Sequence
The robotic feeding task is executed in three consecutive phases: approach, scooping, and feeding. Before the robot begins moving, the tray AprilTag and mouth position are detected and expressed in the robot base frame.
The pre- and post-scooping poses are extracted from the demonstration and represented relative to the tray AprilTag frame . Let and denote the demonstrated pre- and post-scooping positions expressed in the tray AprilTag frame, respectively. During task execution, the detected tray pose is used to transform these positions into the robot base frame:
where is the homogeneous transformation from the tray AprilTag frame to the robot base frame.
The pre- and post-scooping configurations used during execution are defined as
where and are the demonstrated spoon orientations at the beginning and end of the scooping segment, respectively.
In the approach phase, the robot moves from a predefined home configuration to the pre-scooping configuration . The scooping DMP is subsequently initialized as
where is the DMP weight matrix learned from the demonstrated scooping segment using (14), with the weight-matrix structure defined in (13). The scooping DMP then generates the spoon motion from the pre-scooping to the post-scooping configuration.
After the scooping motion is completed, the feeding DMP is initialized from the post-scooping configuration toward the feeding goal defined in (20):
where is the DMP weight matrix learned from the demonstrated feeding segment using (14). Using the learned weight matrices and the initial and goal configurations defined above, the scooping and feeding trajectories are generated by integrating the DMP transformation system in (3)–(4), together with the canonical system in (6) and the forcing term in (7). The approach trajectory moves the robot from the home configuration to the pre-scooping configuration. The complete desired end-effector trajectory is then expressed as
where , , and denote the approach, scooping, and feeding intervals, respectively.
E. Robot Control
The desired end-effector configuration generated is then transmitted through ROS 2 as the reference trajectory for a Cartesian impedance controller. The controller tracks the desired position and orientation while providing compliant end-effector behavior during task execution, following the commonly adopted Cartesian compliance framework for physical-interaction tasks [18]. The detected tray and mouth positions are fixed at the beginning of the task and remain unchanged throughout execution.

Fig. 2: Experimental setup for the robotic feeding task. A Kinova Gen3 manipulator equipped with a spoon performs the scooping and feeding motions, while an RGB-D camera is used to estimate the participant's mouth position. Two AprilTags are used for camera-to-robot frame registration and tray localization.
IV. EXPERIMENT
A. Experimental Setup
The experimental setup is shown in Fig. 2. The robotic feeding system consists of a 7-DoF Kinova Gen3 manipulator equipped with a spoon at its end effector, a ZED 2i RGB-D camera, and a tray containing a food bowl. The participant is seated in front of the robot, with the tray positioned within the robot workspace. A reference AprilTag attached to the robot base is used to determine the transformation between the camera and robot base frames, while a second AprilTag attached to the tray is used to localize the tray relative to the robot.
The demonstration used for DMP learning was collected offline using a PhaseSpace motion-capture system. A single human operator performed one complete scooping-and-feeding demonstration using a spoon instrumented with motion-capture markers. The Cartesian position and Euler-angle orientation of the spoon were recorded to obtain the demonstrated trajectory described in Section III-B. The trajectory was subsequently divided into the scooping and feeding segments for DMP learning. The demonstrated pre- and post-scooping positions were represented relative to the tray frame T and used for retargeting during robot execution.
The perception, motion-planning, and robot-control modules are implemented and integrated using ROS 2. Before each trial, the mouth position and tray pose are detected once. The resulting mouth position and tray pose are then used to generate the approach, scooping, and feeding motions described in Section III-D and executed using the Cartesian impedance controller.
B. Experimental Results
The experiment began with the demonstration stage, in which a human operator performed the scooping and feeding motions while the spoon trajectory was recorded us-

(a)
(b)

(c)
(d)
Fig. 3: Mouth-perception results under different head poses and mouth configurations.
ing the motion-capture system. The recorded trajectory was segmented into the scooping and feeding motions, and the corresponding DMP weights and task-relevant poses were extracted.
The RGB-D camera was used to estimate the participant's mouth position. Fig. 3 shows qualitative mouth-perception results under different head poses and mouth configurations. The detected mouth landmarks were used to determine the mouth center in the image, while the corresponding depth information was used to obtain its three-dimensional position.
The two AprilTags were similarly detected and used for robot-frame registration and tray localization. The detected tray pose was used to position the pre- and post-scooping poses, while the detected mouth position was used as the positional component of the feeding goal. The approach, scooping, and feeding trajectories were then generated according to the task sequence described in Section III-D.
Fig. 4 shows sequential snapshots of the robot execution. The manipulator first approaches the bowl, performs the scooping motion, transports the spoon toward the participant, and finally reaches the initially detected mouth position.
Fig. 5 shows the corresponding planned end-effector trajectories overlaid on the RGB-D point cloud of the experimental scene. The approach trajectory moves the robot from the home pose to the pre-scooping pose, followed by the DMP-generated scooping and feeding trajectories. The coordinate frames plotted along the trajectories show the planned spoon position and orientation throughout the task.
V. Discussion
A key advantage of the framework is that the generated spoon motion preserves the overall shape and orientation evolution of the demonstrated motion while allowing its initial and final configurations to be adapted to the detected tray pose and mouth position. Compared with direct replay of the recorded trajectory, the DMP representation enables the demonstrated scooping and feeding motions to be retargeted to the current experimental scene.
The performance of the framework depends on the accuracy of the RGB-D mouth localization and AprilTag-based frame registration. Furthermore, because the mouth and tray poses are estimated only before execution, the system cannot respond to subsequent changes, such as participant motion or mouth closure during the feeding motion. Future work will therefore incorporate continuous mouth perception and online motion adaptation, including spoon retraction when the mouth closes, to improve the responsiveness and safety of the feeding task.
VI. Conclusion
This paper presented a demonstration-based robotic feeding framework combining human demonstration, DMP-based motion generation, RGB-D perception, and robot control. Human-demonstrated scooping and feeding motions were encoded independently and retargeted using the detected tray and mouth locations. A real-world experiment with a Kinova Gen3 demonstrated the feasibility of executing the complete approach, scooping, and feeding sequence within the perceived experimental scene.
REFERENCES
[1] T. Bhattacharjee, M. E. Cabrera, A. Caspi, M. Cakmak, and S. S. Srinivasa, “A community-centered design framework for robot-assisted feeding systems,” in Proceedings of the 21st International ACM SIGACCESS Conference on Computers and Accessibility, 2019, pp. 482–494.
[2] D. Park et al., “Active robot-assisted feeding with a general-purpose mobile manipulator: Design, evaluation, and lessons learned,” Robotics and Autonomous Systems, vol. 124, p. 103 344, 2020.
[3] S. Belkhale, E. K. Gordon, Y. Chen, S. Srinivasa, T. Bhattacharjee, and D. Sadigh, “Balancing efficiency and comfort in robot-assisted bite transfer,” in 2022 International Conference on Robotics and Automation (ICRA), IEEE, 2022, pp. 4757–4763.
[4] L. Shaikewitz, Y. Wu, S. Belkhale, J. Grannen, P. Sundaresan, and D. Sadigh, “In-mouth robotic bite transfer with visual and haptic sensing,” in 2023 IEEE international conference on robotics and automation (ICRA), IEEE, 2023, pp. 9885–9895.
[5] R. K. Jenamani, D. Stabile, Z. Liu, A. Anwar, K. Dimitropoulou, and T. Bhattacharjee, “Feel the bite: Robot-assisted inside-mouth bite transfer using robust mouth perception and physical interaction-aware control,” in Proceedings of the 2024 ACM/IEEE International Conference on Human-Robot Interaction, 2024, pp. 313–322.

Fig. 4: Sequential snapshots of the robotic feeding task. From left to right, the manipulator approaches the bowl, executes the learned scooping motion, transports the spoon toward the participant, and reaches the initially detected mouth position.

Fig. 5: Planned end-effector trajectories visualized within the RGB-D point cloud of the experimental scene. The approach trajectory moves the robot toward the pre-scooping pose, while and denote the DMP-generated scooping and feeding trajectories, respectively. The coordinate frames indicate the planned spoon position and orientation along each trajectory.
[6] R. K. Jenamani et al., “Feast: A flexible mealtime-assistance system towards in-the-wild personalization,” arXiv preprint arXiv:2506.14968, 2025.
[7] O. Salem, A. Abdellatif, and M. R. Atia, “Pose estimation-driven control of humanoid upper arms for human motion mimicry,” International Journal of Mechanical Engineering and Robotics Research, vol. 15, no. 2, 2026.
[8] I. Merkuryev, T. Duishenaliev, G. Wu, and Z. Dotalieva, “Robust control of a 2d rehabilitation robot using admittance and rbf neural network,” International Journal of Mechanical Engineering and Robotics Research, vol. 14, no. 5, 2025.
[9] S. Hoang, P. T. A. Nguyen, and C. C. Tran, “Dynamic modeling and control of pneumatic artificial muscles-driven multi-fingered robots for circular object manipu-
lation," International Journal of Mechanical Engineering and Robotics Research, vol. 15, no. 1, 2026.
[10] P. Pastor, H. Hoffmann, T. Asfour, and S. Schaal, "Learning and generalization of motor skills by learning from demonstration," in 2009 IEEE international conference on robotics and automation, IEEE, 2009, pp. 763–768.
[11] G. Golani et al., “Haptic-based threaded insertion: Insights from human demonstrations,” Robotics, vol. 14, no. 12, p. 182, 2025.
[12] A. J. Ijspeert, J. Nakanishi, H. Hoffmann, P. Pastor, and S. Schaal, “Dynamical movement primitives: Learning attractor models for motor behaviors,” Neural computation, vol. 25, no. 2, pp. 328–373, 2013.
[13] M. Saveriano, F. J. Abu-Dakka, A. Kramberger, and L. Peternel, “Dynamic movement primitives in robotics: A tutorial survey,” The International Journal of Robotics Research, vol. 42, no. 13, pp. 1133–1184, 2023.
[14] L. Yang, S. H. Turlapati, Z. Lu, C. Lv, and D. Campolo, "A planning framework for stable robust multi-contact manipulation," in 2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), IEEE, 2025, pp. 15909–15916.
[15] L. Yang, S. H. Turlapati, C. Lv, and D. Campolo, "Planning for quasi-static manipulation tasks via an intrinsic haptic metric: A book insertion case study," IEEE Robotics and Automation Letters, vol. 10, no. 6, pp. 6111–6118, 2025.
[16] H.-T. Nguyen, L. Yang, C. Lv, and D. Campolo, “Quasi-static contact-rich manipulation using dynamic movement primitives and haptic potential map,” Data-Centric Engineering, vol. 6, e41, 2025.
[17] Y. Feng, H. Feng, M. J. Black, and T. Bolkart, “Learning an animatable detailed 3d face model from in-the-wild images,” ACM Transactions on Graphics (ToG), vol. 40, no. 4, pp. 1–13, 2021.
[18] K. Thamrongaphichartkul and S. Vongbunyong, “Enhancing autonomous door traversal for mobile manipulators using quadratic programming and cartesian compliance control,” IEEE Access, vol. 12, pp. 194669–194684, 2024.