{"slug": "vigia-ml-gas-well-predictive-monitoring-that-runs-entirely-in-the-browser-js", "title": "VIGÍA ML: Gas-Well Predictive Monitoring That Runs Entirely in the Browser (TensorFlow.js + React)", "summary": "Alicelabs LLC has released VIGÍA ML, a browser-based predictive monitoring console for gas wells that trains and runs all four of its machine-learning models entirely on-device using TensorFlow.js and React. The tool combines an LSTM production forecaster, an autoencoder anomaly detector, a neural fault classifier, and a recommendation layer, keeping proprietary well data inside the browser tab with no backend or GPU cluster required. The project ships as an offline-capable PWA with 140 passing tests under a source-available AL-1.0 license.", "body_md": "VIGÍA ML is a predictive console for gas wells — production forecasting, anomaly detection, fault diagnosis, and operational recommendations — where **every model trains and runs live in the browser**. No backend, no GPU cluster, no data leaving the device.\n\nLive demo (Spanish-first UI): [https://alicelabs-llc.github.io/vigia-ml/](https://alicelabs-llc.github.io/vigia-ml/)\n\nSource: [https://github.com/alicelabs-llc/vigia-ml](https://github.com/alicelabs-llc/vigia-ml)\n\n## \n  \n  \n  The problem it targets\n\nProduction engineers and field operators work with well time series — tubing pressure, flow rates, temperatures, choke positions — that are almost always proprietary. Sending that data to a cloud ML pipeline means negotiating data-export policies, paying for inference infrastructure, and depending on connectivity at sites where connectivity is often the least reliable thing around. Most small operations just... don't do ML at all, and rely on threshold alarms and gut feel.\n\nWe built VIGÍA ML around a simple constraint: **the data never has to leave the laptop it's already on.**\n\n## \n  \n  \n  Four models, all on-device\n\nThe console runs four distinct models, each trained in-session on the data you load:\n\n1. \n**LSTM production forecaster** — a recurrent net trained on the well's own history, projecting pressure/flow trajectories hours ahead. You watch it train (loss curve and all), which builds the right amount of trust: you*saw* it converge on*your* data, not on a benchmark you never see.\n2. \n**Autoencoder anomaly detector** — trained on \"normal\" operating windows; flagged anomalies are windows with high reconstruction error. This catches slow drifts (sand accumulation, gradual choke wear) that fixed thresholds miss, because the model learns the well's baseline rather than a static rule.\n3. \n**Neural fault classifier** — maps operating-state features to common failure modes (liquid loading, hydrate risk, valve malfunction), with per-class confidence so \"UNKNOWN\" is an honest output, not a forced guess.\n4. \n**Recommendation layer** — turns diagnosis + forecast into operational suggestions (choke adjustment, surveillance frequency), always shown with the reasoning, never as a black-box verdict.\n\n## \n  \n  \n  Why in-browser ML is the right call here\n\n- \n**Privacy by architecture.** Well data stays in the browser tab. There is no server to subpoena, leak, or breach — the strongest data-governance story is the one where the data simply never moves.\n- \n**Offline as a feature, not a fallback.** VIGÍA ML is a PWA: once loaded, it keeps working at a pad site with zero connectivity. Field conditions are the*expected* condition, not the error case.\n- \n**Zero inference cost.** Training and inference are free at the edge. The marginal cost of one more engineer opening the console is zero, which is the only pricing model that makes sense for tools used across dozens of marginal wells.\n- \n**Auditability.** The weights are right there in DevTools. An engineer who wants to inspect what the model learned can — no API access requests, no vendor tickets.\n\n## \n  \n  \n  Engineering notes\n\n- React 18 + TypeScript 5.7, TensorFlow.js 4.22, Vite 6, Tailwind 4\n- 140 tests passing (unit + integration over the training/eval pipelines)\n- License: AL-1.0 (source-available; free to run and evaluate)\n- Everything — data loading, training, evaluation, export of results — happens client-side\n\nThe UI is Spanish-first because the initial users are LATAM operations teams, but the codebase is standard TypeScript/React; the language of the interface is a config concern, not an architectural one.\n\n## \n  \n  \n  Try it\n\nOpen the demo, load a well dataset (or use the synthetic one), and watch the forecaster train in ~30 seconds on a plain laptop. The anomaly detector's reconstruction-error view is the most interesting screen — you'll see drift accumulate in the error signal well before any threshold alarm would have fired.\n\nVIGÍA ML comes from the same team that builds UTA (Universal Trust Adapter — trust infrastructure for AI agents). Different domain, same philosophy: verification you can run yourself, on hardware you control, without shipping your data to anyone.", "url": "https://wpnews.pro/news/vigia-ml-gas-well-predictive-monitoring-that-runs-entirely-in-the-browser-js", "canonical_source": "https://dev.to/edison_flores_6d2cd381b13/vigia-ml-gas-well-predictive-monitoring-that-runs-entirely-in-the-browser-tensorflowjs-react-2coa", "published_at": "2026-09-19 05:01:10+00:00", "updated_at": "2026-09-19 05:24:25.369320+00:00", "lang": "en", "topics": ["machine-learning", "ai-tools", "ai-products", "developer-tools", "mlops"], "entities": ["Alicelabs LLC", "VIGÍA ML", "TensorFlow.js", "React", "TypeScript", "Vite", "Tailwind", "UTA"], "alternates": {"html": "https://wpnews.pro/news/vigia-ml-gas-well-predictive-monitoring-that-runs-entirely-in-the-browser-js", "markdown": "https://wpnews.pro/news/vigia-ml-gas-well-predictive-monitoring-that-runs-entirely-in-the-browser-js.md", "text": "https://wpnews.pro/news/vigia-ml-gas-well-predictive-monitoring-that-runs-entirely-in-the-browser-js.txt", "jsonld": "https://wpnews.pro/news/vigia-ml-gas-well-predictive-monitoring-that-runs-entirely-in-the-browser-js.jsonld"}}