Predict the Swing, Match the Speed: Robotic Pipe Stabbing With Learned Stereo Vision and Residual Reinforcement Learning
Organizations: Mining and Petroleum Engineering Department, Faculty of Engineering, Al-Azhar University, Cairo, Egypt · Petroleum Department, Faculty of Engineering and Technology, Future University in Egypt (FUE), Cairo, Egypt
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 ). 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.
Figures & tables
| Work | M | S | V | T | L |
|---|---|---|---|---|---|
| Floorhand + tagline | ✓ | ✗ | ✓ | ✗ | |
| Passive funnel [ 10 ] | ✗ | ✗ | ✗ | ✗ | ✗ |
| Robot + stabbing guide [ 2 , 3 , 5 ] | ✗ | ✗ | ✗ | ✗ | |
| Remote stabber [ 6 ] | ✗ | ✗ | ✗ | ✗ | ✗ |
| Pivot-pointing tailing [ 12 ] | ✓ | ✗ | ✗ | ✗ | |
| Stick-up vision [ 13 , 14 ] | ✗ | ✗ | ✗ | ✗ |
| Quantity | Scale factor | Model | Full scale |
|---|---|---|---|
| Length (joint) | 1/4 | 2.4 m | 9.6 m |
| Time (swing period) | 1/2 | 2.54 s | 5.07 s |
| Speed | 1/2 | model = full scale / 2 | |
| Mass (heaviest joint) | 1/64 | 21 kg | 1,343 kg |
| Force | 1/64 | model = full scale / 64 | |
| Camera rate | 2 | 60 Hz | 30 Hz |
| Item | Setting |
|---|---|
| Keypoint network | ResNet-18 (ImageNet), three heatmaps of 64 64 |
| Heatmap target | Gaussian, = 1.5 px |
| Network training | AdamW, learning rate , weight decay , one-cycle schedule (10% warm-up), 30 epochs, batch 64 |
| Data | 20,000 training / 2,000 validation / 2,000 test stereo pairs |
| Filter measurement noise | 6 mm (not retuned for the network) |
| Residual policy | MLP 64 64, PPO (Stable-Baselines3) |
| Method | Seated, no hits | Contact speed, cm/s | Peak force, kN | Time to |
|---|---|---|---|---|
| (95% CI) | (med / p95) | (med / p95) | seat, s | |
| Static guide ∗ | 74.0% (67.5–79.6) | 18.4 / 53.4 | 11.3 / 24.7 | 12.3 |
| Reactive | 93.0% (88.6–95.8) | 5.3 / 30.5 | 4.0 / 13.4 | 13.6 |
| Reactive+guarded | 97.5% (94.3–98.9) | 5.4 / 30.1 | 3.8 / 14.1 | 13.6 |
| Swing-aware | 100% (98.1–100) | 3.2 / 11.8 | 1.9 / 6.3 | 14.6 |
| StabBot | 100% (98.1–100) | 2.3 / 5.5 | 1.4 / 2.5 | 14.1 |
| Group | Jobs | Seated, no hits | Contact speed, cm/s | Peak force, kN |
|---|---|---|---|---|
| (fixed / StabBot) | (median, fixed / StabBot) | (median, fixed / StabBot) | ||
| 2 -in. tubing | 25 | 15 / 25 | 20.0 / 1.4 | 1.8 / 0.69 |
| 3 -in. drillpipe | 25 | 19 / 25 | 17.4 / 0.8 | 6.9 / 1.34 |
| 5-in. drillpipe | 23 | 19 / 23 | 21.7 / 1.8 | 8.5 / 0.97 |
| 6 -in. drillpipe | 23 | 21 / 23 | 24.0 / 2.8 | 12.0 / 1.33 |
| 7-in. casing | 23 | 17 / 23 | 17.6 / 3.0 | 10.3 / 1.41 |
| Step | Contact speed | Peak force | Success |
|---|---|---|---|
| + guarded approach | ( = 0.02) | ( = 0.02) | 93.0 97.5% |
| + prediction and matched speed | ( = ) | ( = ) | 97.5 100% |
| + residual RL | ( = ) | ( = ) | 100 100% |
| Static guide StabBot | ( = ) | ( = ) | 74 100% |
| Landmark | Median | p95 | Within 6 mm |
|---|---|---|---|
| Pipe axis at head height | 0.4 | 1.1 | – |
| Pin nose | 0.7 | 1.6 | – |
| Box mouth | 0.5 | 1.5 | – |
| Pin-to-box offset | 0.7 | 1.8 | 99.9% |
| Quantity | Fixed guide | StabBot | Effect |
|---|---|---|---|
| Capture missed | 10.5% | 0% | no re-stab |
| Pipe struck steel, then seated | 15.5% | 0% | pipe on rollers only |
| Peak head–pipe force, median / p95 | 11.3 / 24.7 kN | 1.4 / 2.5 kN | 7.8 / 9.9 lower |
| Contact speed, median | 18.4 cm/s | 2.3 cm/s | 7.8 lower |
| Impact energy at first contact | – | – | 95 lower (median per job) |
| Wrist force, median | 8.1 kN | 2.8 kN | 66% lower |
| Contribution | What is new | Evidence |
|---|---|---|
| Swing-aware capture | Online pendulum estimate from the pipe tally and the camera; capture at the pipe’s own speed, finished by touch | 100% seated vs 74%; contact speed and force 7.8 lower |
| Tilt compensation | Pin aimed over the box from the estimated elevator offset | 43% 100% seated at a 20-cm offset |
| One head for nine sizes | Open V on free rollers with 20-mm clearance on every other part | 2 -in. tubing to 20-in. casing, all seated |
| 3-D keypoint vision | Pipe, pin and box located from stereo images | 0.4-mm median error, 2.3 ms per pair |
| Residual learning | Learned correction on top of the model-based capture | a further 22% lower peak force |
| Paired benchmark | Every method on the same 200 jobs, with robustness and ablation | 100% under delay, frame loss, calibration and elevator errors |
| Rest position about which the joint swings | m | |
| , | Peak head–pipe force in a decision step, and over the episode | kN |
| Filter step or decision index | – | |
| Unit vector along the approach direction | – | |
| Offset of the elevator from well centre | m | |
| , | Position and velocity of the pipe axis at head height | m, m/s |
| Predicted pipe position | m |
Dynamic Robotic Manipulation
Dynamic robotic manipulation studies how robots act on moving or deformable objects and respond to fast-changing physical interactions.
See all 94 papers