arXiv:2610.19131cs.AIOct 2026

Manuscript Offprint

arXiv:2610.19131

Plant Memory: Technical Language Processing and a Verified Maintenance Ontology for Agent-Accessible Failure Knowledge from SAP PM Work Orders

Akash Raj

Abstract

Maintenance work orders are the largest written record of how industrial equipment fails, yet in most plants they are close to unusable for analysis. Short texts are abbreviated and misspelt, asset identity is buried in free text, work-type labels contradict the work described, and the fields that matter most for reliability (symptom, root cause, action taken) are usually empty. As a result, diagnostic knowledge stays with senior technicians and leaves when they do. We present Plant Memory, a system that applies technical language processing (TLP) to SAP Plant Maintenance (PM) exports and builds an ISO 14224-aligned maintenance ontology in which every extracted statement is a reified fact carrying a confidence score, the evidence it was read from, and a verification state. Extraction is rule-first, with an optional large language model (LLM) acting as a second reader whose disagreements raise a fact's review priority rather than overwrite it. Technicians verify facts through a review queue, answer targeted knowledge-gap questions where failures repeat without a recorded cause, and approve or reject ontology drift proposals when new terms appear. The resulting graph is served to people through a web application and to AI agents through a Model Context Protocol (MCP) server, so both query the same verified knowledge and every answer cites the work orders behind it. On a synthetic 12-month export of 400 work orders from a parboiled-rice plant, rule-based extraction reaches 96.2% component accuracy, 88.9% failure-mode accuracy and 100% root-cause precision at 62% coverage; on 28 diagnostic questions, ranked root causes from the ontology are correct at top-1 in 82.1% of cases against 53.6% for the raw SAP root-cause column. We also report that an LLM used as an independent extractor was less accurate than the rules on every field, and describe the merge policy this led to. We discuss why these numbers are optimistic and what a real-plant evaluation requires.

1 Introduction

A typical computerised maintenance management system (CMMS) export records which parts were issued to which order and what they cost. It rarely records why the equipment failed or what actually fixed it. Where that information exists, it is spread across a 40-character short text (“Parb.- Dryer elevator brg chng”), an optional remarks field written in a mix of English and Hindi (“grease nahi tha, brg jam”), and occasionally a root-cause column filled in for a fraction of breakdowns. Reliability engineers who want to know which failure modes drive downtime, or which spares to stock, must read these records by hand.

Two developments make this worth revisiting. First, technical language processing has emerged as a discipline concerned with exactly this kind of text: short, domain-specific, abbreviation-heavy, and written for colleagues rather than for machines [3, 4]. Second, AI assistants are starting to be placed in front of planners and engineers. An assistant can only answer from data it can read, and a raw Excel export is a poor substrate: it invites confident answers built on misread abbreviations, with no way for the reader to check them.

Plant Memory addresses both. Its contributions are:

  1. A provenance-first maintenance ontology. Classes and relations are aligned with ISO 14224 [7] and extended for rice-processing equipment. Every extracted statement is reified as a fact with confidence, extraction method, evidence snippet, source field and a verification state (proposed, verified, rejected).

  2. A TLP pipeline tuned for SAP PM exports. It merges material lines into events, expands plant abbreviations, resolves assets from functional locations or free-text aliases, and extracts component, symptom, failure mode, root cause and action under an explicit precedence order with calibrated confidences.

  3. An LLM-as-second-reader merge policy, derived from a measured comparison in which the LLM underperformed the rules as an independent extractor but added value by filling gaps and flagging disagreements.

  4. A human verification loop comprising a lowest-confidence-first review queue, automatically generated knowledge-gap questions for technicians, and ontology drift proposals that change the vocabulary only on approval. Verification decisions survive rebuilds.

  5. One knowledge core behind three interfaces: a web application, a command-line interface and an MCP server [1]. The MCP server lets general-purpose AI agents query the verified graph and cite evidence, while its only write tool creates proposals.

  6. An evaluation harness with a synthetic SAP PM generator that plants known patterns and hidden ground truth, scoring both extraction and end-to-end diagnosis.