Skip to content
Preprint

An Explainable LLM Agent Layer for Open-World Anomaly Detection in Oil Wells

Aug 2026 · 0 citations · 19 references
Computer Science

TL;DR

A Large Language Model (LLM) agent layer placed downstream of the OWL pipeline is evaluated, designed as a companion to the published upstream methods rather than a replacement, to close the explainability gap that currently blocks deployment of OWL pipelines in operational settings.

Abstract

Open-World Learning (OWL) pipelines for oil well anomaly detection have recently been shown to combine autoencoder-based detection, multiclass classification, and Mahalanobis-based novelty detection on the public 3W dataset. These pipelines answer \textit{what happened}, but they do not explain \textit{why the model believes it} or \textit{what the operator should do next}, and they do not put a human-readable name on the novelty clusters they discover. This paper evaluates a Large Language Model (LLM) agent layer placed downstream of the OWL pipeline, designed as a \textbf{companion} to the published upstream methods rather than a replacement. Using the Qwen3.5-397B-A17B Mixture-of-Experts model served via NVIDIA NIM, the agent receives structured sensor metrics and upstream classification or novelty assertions, and returns natural-language justifications, confidence-ranked critiques, and consolidated names for detected novelties. Across three studies spanning 989 real well-file segments from the 3W dataset, the agent achieved $35.1\%$ top-1 / $63.9\%$ top-3 (95\% CI [56.9, 70.4]) classification on all nine classes, $71.7\%$ top-2 validation [64.8, 77.6] with precision $0.91$ [0.84, 0.95] across 7 probed classes, and $89.7\%$ novelty detection [87.0, 91.9] with stable cluster naming on 5 of 7 hidden classes. The agent is not a standalone classifier. Its role is to: (1) confirm upstream decisions when sensor evidence supports them, (2) justify decisions in sensor-grounded language operators can audit, (3) flag disagreement when upstream labels are implausible, and (4) name novelties so that clustered unlabeled events arrive at the engineer with a consolidated human-readable label. The goal is to close the explainability gap that currently blocks deployment of OWL pipelines in operational settings.

View source

Similar papers

Preprint Aug 2026

AgenticTwin: An Agentic LLM Framework Integrated with Digital Twin for Anomaly Detection

AgenticTwin is proposed, an agentic framework that integrates LLM-driven reasoning with a digital twin-based anomaly detection pipeline and enables human operators to ask relevant natural-language questions about the system.

Touseef Hasan, Mounika Ghanta, Souvika Sarkar et al. · 0 citations
#small language model Open access Aug 2026

Construction of a Small Model Based on Large Model Knowledge Distillation in Anomaly Behaviour Recognition for Intelligent Connected Vehicles

Experimental results validate the feasibility of transferring knowledge from large models under low-computational-power constraints and provide a new technical pathway and engineering reference for recognising anomalies at the edge of intelligent connected vehicles.

Jian-Jun Zeng, Jian-Guo Wei, Ge Song · 0 citations
Sep 2026

Scalable and Adaptive Log-based Anomaly Detection: A Synergistic Approach

SeaLog is presented, an accurate, lightweight, and adaptive log-based anomaly detection framework that synergistically integrates the efficiency of traditional data-driven methods with the zero/few-shot learning ability of large language models (LLMs).

Jinyang Liu, Jun-Jie Huang, Zhihan Jiang et al. · 0 citations
#artificial intelligence Preprint Oct 2026

Have an LLM Write Your Anomaly Detector: Autonomous Discovery of Compact, Interpretable Detectors for Time Series

Time-series anomaly detection trades off predictive accuracy, computational efficiency, and interpretability. We use a large language model not as the detector but as the author of one: an autonomous research loop in which the model repeatedly edits a single short NumPy program under a leakage-free objective, keeping t...

D. Berghaus · 0 citations
Preprint Aug 2026

LLM as Detector: An In-context Learning Approach for Tabular Anomaly Detection

LLM-Detector is proposed, a framework that utilizes the in-context learning capacity of LLMs for structured, prompt-conditioned scoring synthesis, enabling LLMs to derive anomaly detection logic from structured normal-state knowledge.

Tu Nguyen, Dang Nguyen, T. D. Le et al. · 0 citations
Sep 2026

GRPO-Anomaly: Reinforcement Fine-Tuning Vision--Language Model for Industrial Defects Detection and Reasoning

Industrial anomaly detection (IAD) requires reliable identification and precise localization of subtle defects, yet most existing methods depend on manually tuned decision thresholds and large collections of defect-free samples, limiting scalability in real-world production. To address these constraints, we present gro...

Yue-Ning Li, Hong-Liang Wang, Peng-Fei Xiu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.