WellInsightEngine is a system for generating engineering insights for gas wells based on historical telemetry data, recorded incidents/actions, and cleaned time-series technical parameters.
This project was presented at the DEV Challenge hackathon, organized by MODUS X and DTEK.
The solution uses AI to analyze the current state of a well in the context of known engineering cases.
The system compares parameter dynamics with similar situations from a historical dataset and produces a clear engineering insight: what is happening, which past cases it resembles, and what actions may be appropriate.
The result is delivered as a standalone AI insight for a specific well, which can be saved and shared via a unique link for further team analysis.
- ASP.NET Core API
- PostgreSQL (Wells domain)
Stores wells, parameters, relations, metadata (EF Core) - TimescaleDB (Metrics domain)
Stores raw metrics and hierarchical continuous aggregates - AI Provider (Gemini)
Used for insight generation (can be disabled locally) - Authentication (Clerk)
JWT-based authorization with email allow-list (can be disabled locally)
All external dependencies (AI, Auth) can be mocked or disabled for local development.
- Time-series metrics ingestion
- Hierarchical continuous aggregates (1m → 5m → 10m → 30m → 1h → …)
- Fast querying via pre-aggregated TimescaleDB views
- Delta and trend analysis support
- Insight generation via AI
- Shareable insight links (slug-based)
- Docker Desktop (Windows / macOS / Linux)
- Docker Compose v2+
postgres-wells– PostgreSQL for wells metadatatimescaledb– TimescaleDB for metrics & aggregatesapi– WellInsightEngine API
AI and Auth are disabled by default in local mode.
Key flags (passed via environment variables):
Database__MigrateOnStartup=trueAi__Disabled=trueKlerk__Disabled=true
- Docker Compose starts PostgreSQL and TimescaleDB
- TimescaleDB initializes schemas
infra/sql/setup.shis executed:- Runs
well_metrics.sqlfirst - Executes all other SQL files recursively
- Runs
- API starts with
MigrateOnStartup=true- Applies EF Core migrations for Wells DB
docker compose up --build