One-Shot Learning for Double-Shot Latte Art: Adapting Cobot Pouring Skills with Dynamic Movement Primitives
A FAIRINO FR5 collaborative robot poured a recognisable latte-art heart after watching a single barista demonstration, with phase-by-phase encoding cutting the jug's transition errors 3.4-fold (27.8 to 8.2 mm on average) and the art-stroke shape error 2.7-fold against a one-piece baseline. The same learnt pour moved from a 280 ml to a 400 ml cup with one 7 mm offset and a doubled espresso dose, no new demonstration, according to the UTS preprint.
Can a cobot learn a fine, fluid-dependent skill like latte art from one human demonstration, and then adapt it to a different cup size without the barista having to pour again?
A latte-art pattern depends on the jug's position relative to the cup, spout height, jug tilt, timing and the state of the milk and espresso. Café robots need to handle many cup sizes and fill volumes, and re-recording a demonstration for each one is impractical. Fitting one motion model to a whole pour spreads its capacity evenly over time, so short but decisive moves get too little resolution.
Dynamic Movement Primitives (DMPs) are a standard way to turn a demonstrated path into a stable controller whose start, goal and speed can be changed. Earlier DMP pouring work moved water between containers and adapted to new bottles; latte art adds a spatially structured outcome on a liquid surface, and simulation studies found that common model-free reinforcement learning struggles with it. The baseline here (E1) encodes the entire pour as a single Cartesian DMP with one parameter set.
A barista pours while two HTC Vive trackers record the jug pose at 90 Hz and an encoder records the cup swivel angle; the barista presses a foot pedal to mark five phases during the pour (move to mix, mixing, move to art, art and return). Each phase becomes its own Cartesian DMP with its own stiffness, basis-function density and time scale, chained so each phase starts where the last ended. Only transition phases are slowed or sped up, because changing the speed of a pouring phase changes the volume poured. For a new cup, the goal of the move-to-art transition is shifted, which relocates the entire art stroke as one unit. The robot runs ROS 2 with MoveIt 2, and a stepper motor replays the cup rotation.
Against the single-DMP baseline, the phased version cut transition endpoint errors from 30.1, 14.9 and 38.3 mm to 9.5, 3.3 and 11.9 mm (mean 27.8 to 8.2 mm, 3.4x) and the art-stroke shape residual from 6.35 to 2.38 mm (2.7x). Art-phase tilt RMS fell from 3.15 to 0.75 degrees with peak tilt matched (96.1 demonstrated, 95.6 reproduced). In the short move-to-art transition, height error fell from 60.8 to 18.7 mm and tilt error from 9.51 to 0.61 degrees. The baseline stroke came out 30% too large; the phased stroke was within 5% (size ratio 1.05), and worst-case deviation fell from 10.9 to 6.9 mm. The baseline was not run with milk because it would have placed the jug outside the cup. Moving to the 400 ml cup took a lateral offset of 7 mm, a 42 g double espresso instead of 21 g and 350 ml of milk instead of 250 ml; the heart came out centred and similar to the 280 ml result.
This is a preprint built on one demonstration of one pattern (a heart) on one robot, and the results are reported per pour without repeated-trial success rates. The robot is open loop with respect to the milk: texture is not sensed, and the reproduced heart was blobbier than the barista's, which the authors attribute to heavier foam without a controlled test. The art stroke kept a 9.4-degree heading error that pushed the pull-through about 11 mm off centre, the mixing footprint was 17% wider than demonstrated, and the 7 mm cup offset was found by hand rather than by vision. The setup uses a powered cup swivel that a standard café counter does not have.
Robot coffee kiosks compete on drink quality as much as speed, and latte art is the visible proof. The paper shows that a Chinese-made cobot (FAIRINO's FR5) can reproduce a barista's motion closely from one recording, and that cup-size changes reduce to a geometric offset plus a recipe change. That matters for operators who want a menu of cup sizes without hiring a roboticist for each change. The open-loop treatment of milk is the barrier to commercial consistency; closing that loop with vision is the next step and could reach kiosk products within one to two years. The phase-decomposition idea also transfers to any taught task with short, decisive transitions, such as dispensing, gluing or sealing on a line.
The full text is not republished here because the paper's license does not allow it. Read the original on arXiv.