Oil & Gas · Research project

AI agent for well-geology data analysis

A research project with Pertamina EP Zona 4 under Lembaga Kajian Fakultas Teknik UGM (LKFT). The geology team there makes decisions from piles of well data that come in every shape: engineering diagrams, PDF reports hundreds of pages long, sensor recordings. We built a multi-agent system that reads all of it and presents it as charts, then tested it on real well data. Everything runs on DTETI FT UGM's internal server.

Role
AI Engineer
Partner
LKFT UGM × Pertamina EP Zona 4
Stage
Research project, proof of concept

The data is not uniform

The system takes in oil well geology data, and almost every file has its own format. A few examples:

well diagrams, with the mechanical schematic and lithology in a single image
PDF reports that can run to hundreds of pages
daily well reports as spreadsheets
mudlogs, long strip charts with a 1:30 paper ratio or more extreme
well sensor recordings in LAS format

Some of these files only make sense if the image is read too. Mudlog charts and well diagrams do not store their information as plain text. A pipeline that treats every input as a text document breaks the moment it meets a mudlog or a LAS file.

Ingestion has its own agent pipeline

So we built the ingestion stage as a standalone AI agent pipeline, separate from the agent that answers questions later. It has one job: turn the pile of mixed-format files into clean data the inference agent can use.

For files whose content is an engineering drawing, such as mudlogs and well diagrams, the agent uses a multimodal LLM that reads the visual content, not just text attached to the file. What it reads is then structured and stored.

The ingestion agent does not stop there. It also prepares tiered context for the inference agent: instead of flooding the agent with a whole file at once, pieces of context are opened gradually as the search requires. We call it progressive disclosure.

Retrieval that combines three paths

Searching this kind of data cannot depend on a single type of embedding. We use hybrid retrieval with three paths running together:

sparse, to match terms and well codes that must be exact
dense, for semantic closeness between descriptions
visual embedding, for pieces of data whose meaning depends on the shape of a chart, such as curve patterns on a well log

All three are used together so that queries about images still find their target, not just word-based ones.

Local LLM · on DTETI FT UGM server Ingestion Retrieval & context Inference multi-agent Well diagram Report PDF Daily report Mudlog LAS Ingestion Agent read & structure Hybrid retrieval sparse · dense · visual Progressive disclosure staged context to agent Multi-agent Charts & widgets production curves · well map Tracing & observability · monitors ingestion and inference
System flow. The ingestion agent structures files into hybrid retrieval and prepares progressive disclosure context. The multi-agent inference stage uses both to build charts. Tracing monitors ingestion and inference.

Inference: charts and widgets as output

The inference agent works on top of the ingested data, and it is a multi-agent system too. Its output is charts and widgets: oil production curves, a well distribution map, and other visualizations that are clearer to look at than to explain in sentences.

Tracing at both stages

Once both stages were running, we added tracing and observability. Without it we did not really know what the agents were doing. Tracing records the path each agent takes, the tools it calls, the context returned, and per-run numbers such as latency and token usage.

When a result is off, the trace is what we use to find the step where it went wrong, and whether the system prompt or the tool needs fixing. Tracing at the ingestion stage matters just as much. There are many transformations from raw file to structured data, and we have to be sure what finally lands in storage is correct before the inference agent touches it.

Local LLM  ·  Multimodal LLM  ·  Hybrid retrieval  ·  Progressive disclosure  ·  Multi-agent  ·  Tracing

Research status

A research project at LKFT UGM. The system runs and has been tested on real well data from Pertamina EP Zona 4, then presented regularly to the team there.