arXiv:2610.37535cs.ROOct 2026

Manuscript Offprint

arXiv:2610.37535

Predict the Swing, Match the Speed: Robotic Pipe Stabbing With Learned Stereo Vision and Residual Reinforcement Learning

Mohamed Ashraf Mostafa, Taher El-Fakharany, Samir Khaled

Abstract

A joint of pipe run into the hole swings from the elevator over the well and strikes a fixed stabbing guide at whatever speed the swing has. StabBot, a robotic stabbing system, predicts the swing and meets the pipe at its own speed. A pendulum Kalman filter tuned from the pipe tally tracks the joint in stereo images. A six-axis arm with an open V-shaped roller head closes in at matched velocity, confirms the last millimetres by touch, aims the pin over the box when the elevator hangs off centre, and follows the block down with lateral compliance. A ResNet-18 keypoint network locates the pipe, pin nose and box mouth in 3-D, and a residual reinforcement-learning policy refines the capture. On 200 paired random jobs with nine sizes from 2-3/8-in. tubing to 20-in. casing, StabBot seated every joint with the pipe touching only rollers, against 74% for a conventional fixed guide. Median contact speed fell from 18.4 to 2.3 cm/s and median peak head-pipe force from 11.3 to 1.4 kN, and the force was lower in all 200 jobs (Wilcoxon p<10−30p < 10^{-30}). The network locates the pipe with 0.4-mm median error in 2.3 ms per stereo pair. With the network in the loop, success stayed at 100% under 20 mm of added noise, 300-ms delay, 85% frame loss, 20-mm calibration offset, 20-cm elevator offset and 40-cm swings. All results come from a 1:4 Froude-scaled MuJoCo model and are reported at full scale.

Keywords: Drill floor automation; Pipe handling; Robotic stabbing; Kalman filter; Keypoint detection; Residual reinforcement learning

Figure

Fig. 1 StabBot on a land-rig drill floor

Left: the arm stands beside the V-door lane, the joint hangs from the elevator over the well and the box is held in the slips. Right: the open V head has met the swinging 5-in. drillpipe at its own speed and closed its two rotary clamps; the pipe rests on free rollers only. Every frame is a replay of the recorded physics, rendered at full scale.

1 Introduction

A joint of pipe hanging from the elevator is a pendulum about 9.6 m long and up to 1.3 t heavy. Before it can be made up, its pin has to be brought to rest over a box held in the rotary, a target a few centimetres wide. On rigs without a stabbing robot this is done by a floorhand with a hand on the pipe, sometimes helped by a tagline or a passive stabbing guide. The moving pipe is a known hazard: in a U.S. Bureau of Safety and Environmental Enforcement report, the bottom of a stand being stabbed whipped when the link tilt moved and fractured a floorhand's fingertip

[1]. It also wears equipment. A pin that strikes the box face can damage threads and seals, and a guide that the pipe hits at full swing speed takes a shock load.

Drill floor robots have been field-tested and are offered commercially [2, 3], and full robotic drill floors have been studied for land rigs and drillships [4]. Stabbing guides have been fitted to drill floor robots and robotic roughnecks [3, 5], and a remotely operated stabber has been used in completion operations [6]. In the systems we reviewed, the tool waits at well centre until the swinging pipe reaches it, so the first contact takes place at whatever speed the swing has at that instant. We are not aware of a published system that estimates the swing of the joint and plans the capture around it (Section 2).

StabBot instead watches the swing for 0.8 s, fits a pendulum model whose frequency comes from the pipe tally, shadows the predicted pipe and closes in along a minimum-jerk path [7] so that the guide head arrives moving with the pipe. The face rollers then sense contact, and the last millimetres are closed by touch. Once the pipe is held, the robot brings it to rest over the box. When the elevator hangs off centre, the hanging pipe is tilted, and the robot places the pin nose over the box instead of the pipe axis at head height. As the block slacks off, wrist admittance lets the taper finish the alignment.

The study addresses two questions. The first is whether a robot that knows where the pipe will be can stab it more reliably and more gently than one that waits. The second is how much each of the tools usually proposed for such a robot (a predictive controller, a learned perception model and a learned control correction) adds. Both are answered with one paired benchmark in which every method runs on the same 200 random jobs. The contributions of this work are as follows.

  1. Swing-aware capture for hanging tubulars: a tally-tuned pendulum Kalman filter, velocity-matched capture, a force-confirmed final approach and tilt compensation for an off-centre elevator (Section 4).

  2. One open guide head for nine sizes, 2382\frac{3}{8}-in. tubing to 20-in. casing, on which the pipe touches only free rollers, with at least 20 mm clearance on every other part (Section 3).

  3. A stereo keypoint network that locates the pipe, the pin nose and the box mouth in 3-D with sub-millimetre median error and runs in the control loop at 30 Hz.

  4. A residual reinforcement-learning policy that lowers peak force by a further 22% relative to the model-based controller it corrects. A reward failure met during its development is reported with its fix.

  5. A 200-job paired benchmark with robustness, unseen-condition and ablation tests. StabBot seats 100% of joints against 74% for a fixed guide, and its median contact speed and median peak force are both lower by a factor of 7.8 (Section 6).

Code, trained models, recorded jobs, drawings and videos will be released on acceptance.

References (53)