B RU Habr author (oilfield ML engineer)·Practitioner post·

ML on a drilling rig in an isolated network: stuck-pipe detection architecture on XGBoost and WITS-0 (ML на буровой в изолированном контуре: архитектура детекции прихватов на XGBoost и WITS-0)

B · Useful, limited A solo engineer's clear account of a production edge system on five wells, with honest design trade-offs, but results rest on seven self-reported incidents over two months and no code or data can be shown under NDA.

Summary based on the full text·Original: about 9 minutes to read

In short

A Habr post (November 2026) by an engineer who in three months designed, trained and deployed, alone, an early-warning system for stuck drill pipe. It runs on rig laptops in an isolated network outside Russia. Version 1 included retrieval (RAG) and a quantised local Llama to write instructions, but just before launch the laptops turned out to have 2 GB GPUs and 8 GB of RAM. The LLM and vector store were removed and replaced with a deterministic lookup pointing to the right section of a local PDF procedure. Detection is done by frozen XGBoost models; a physics-based rule layer explains the stuck-pipe type to the crew.

Key numbers

  • 5real wells where the system runs in production, in a region outside Russia with no stable internet
  • 7real stuck-pipe incidents in two months of operation; 5 caught within the 5-minute target window, 2 within 10 minutes
  • zerofalse alarms reported over the period; zero false positives was the single design target
  • up to 1 hour to 30 minutescrew time to recognise a stuck pipe, understand its type and start the right action, before versus after
  • 2 GBVRAM of the entry-level MX laptop GPUs found on site instead of the promised 4 GB GTX cards

As reported by the source.

Read the original on habr.com

Russian·Web page·opens habr.com

What it reports

  • Why speed matters: a cited industry source says 50% of stuck pipes are freed within the first four hours, falling to 10% after that. The stuck-pipe type (differential, mechanical, geometric) dictates opposite crew actions.
  • Constraint: no clouds, external APIs or remote monitoring; the only metric was zero false alarms, because one false alarm would cost the crew's trust. A slightly late catch was acceptable.
  • Input: the old text WITS-0 telemetry protocol over TCP/IP Ethernet, chosen because every logging station supports it; a broken cable can be replaced with the office printer's cable.
  • The parser drops malformed packets instead of trying to repair them. No database and no disk logs: two 20-minute sliding windows in memory, at most 40 minutes held.
  • Three XGBoost models with frozen weights, one per field, run on CPU in milliseconds. A threshold-rule baseline runs in parallel and scores the physical signs per stuck-pipe type for the operator display. Per-well calibration comes from a drill-off test Excel file placed next to the .exe.
  • Interface: FastAPI and Plotly in a browser; a memory leak in the streaming charts is handled by a printed note telling the crew to press F5 every hour.
  • Results over two months: 7 incidents, 5 caught within 5 minutes, 2 within 10 minutes, no false alarms. Crew response time fell from up to an hour to 30 minutes at most.
  • Limits stated by the author: trained on three fields' geology; a new region would need new history and retraining. A planned on-premise server version with monitoring and retraining is shelved because the customer is satisfied.

How they got it

First-hand engineering account. Results are the author's counts from production use; no code, model weights or data are published, citing an NDA.

Limits

  • Seven incidents in two months is a very small sample; the zero false-alarm claim covers a short period.
  • No baseline detection rate and no independent check of the response-time figure.
  • Region, customer and operator are not named.

Why it matters for companies

The useful lesson is about hardware reality at the edge: a plan built around a local LLM collapsed when the delivered laptops were weaker than specified, and a frozen tree model plus explicit rules did the job. For operational alerts, a zero false-alarm target and an explanation in the operator's own terms matter more than an aggregate accuracy score. Teams scoping AI for remote sites should confirm the actual hardware before committing to a generative component.

Key passages in translation

Russian original

Поэтому за красивыми цифрами MAE или F1-score я не гнался — единственной главной метрикой стало ноль ложных срабатываний (FPR = 0).

English translation

So I did not chase nice MAE or F1 figures: the single main metric was zero false positives (FPR = 0).

Russian original

Пришлось прямо перед стартом принимать жёсткое решение — вырезать из контура и Llama, и векторную базу.

English translation

Right before launch I had to make a hard decision: cut both Llama and the vector database out of the system.

Russian original

Вся архитектура строилась вокруг главного принципа: если узла нет, он не сломается и его не нужно поддерживать.

English translation

The whole architecture was built on one principle: a component that does not exist cannot break and does not need maintaining.

Summary based on the full text. Read the original for the full argument and data.Read the original on habr.com

Tags

Same week

All of Week 46