An LLM-Agentic Framework for Intelligent Work Order Management in Industrial Maintenance
Organizations: IBM, Research Division, Yorktown Heights, NY 10598, USA
Abstract
This paper presents an AI-driven framework, CodeReAct agent, designed to enhance industrial equipment maintenance through natural language (NL) interactions. The framework employs an advanced AI agentic approach to interpret human instructions, providing knowledge extraction, asset status summarization, and work order recommendations. It identifies patterns and trends and predicts work orders by standardizing industrial data into business objects (BOs) and utilizing analytical function API calls. The AI agent operates through a Thought-Action-Observation process similar to human problem-solving, automating complex analytical tasks typically performed by data scientists. Notably, the Action phase generates executable code, replacing manual coding efforts. A case study focusing on chiller maintenance demonstrates the framework's capability to analyze multiple years of work orders, and alerts and anomalies are presented. The results indicate that the AI agent framework effectively processes human utterances to analyze data, extract valuable insights, and support informed decision-making, reducing the need for data scientist involvement. By recontextualizing NLP agent frameworks in industrial engineering, the approach enables autonomous function generation and task execution across a range of domain-specific maintenance scenarios, with chillers used as a representative case study.
Figures & tables
| Parameter | Candidate | Description |
|---|---|---|
| CodeReAct Model | Granite, Mistral-Large | The LLM are used for processing input questions, generating solutions, and executing actions. |
| Review Model | Granite, Mistral-Large | The LLM is used to review the trajectory of a whole iteration and decide whether the task is completed. |
| Inner Loop | 10, 20 | Number of steps in the inner loop of iteration |
| LLM Temperature | 0, 0.1, 0.3, 0.5 | Controls thought-act-observation process; A higher values expected to break the deadlock of execution. |
| Outer loop | 1, 3, 5 | Maximum number of reflections to refine execution with update system prompt if iteration > 1. |
| ID | - | Review Message |
|---|---|---|
| 1 | P | Returned file path instead of JSON output. |
| 11 | N | Syntax errors prevented work order retrieval. |
| 13 | N | Incorrect date types and insufficient data. |
| 15 | N | Unterminated string error blocked execution. |
| 17 | N | Undefined functions and classes caused failure. |
| 24 | N | Failed to bundle work orders due to missing var. |
| ID | S | Review Message |
|---|---|---|
| 2 | N | Syntax errors in JSON caused looping. |
| 3 | N | Datetime handling led to repetitive failures. |
| 4 | N | Repeated syntax errors prevented valid JSON. |
| 8 | P | Looping errors in JSON formatting. |
| 9 | N | Incomplete code execution with syntax errors. |
| 11 | N | Incorrect file path returned not the bundled WOs. |
| Category | ID | U | U+ | U++ |
| Get Work Orders (distribution) | 1 | Yes | - | - |
| Get Work Orders (filtering) | 3 | Yes | - | - |
| Summarize Events | 5 | Yes | - | - |
| Bundle Work Orders 4 | 24 | Hall | Yes- | Yes |
| Predict Work Orders 5 | 14 | No | No | Hall |
| Category | U+ Utterance | U++ Utterance (trimmed) |
|---|---|---|
| Bundle Work Orders (ID 24) | ( U ) + Bundles should not have overlap. | ( U , U+ ) + Group corrective work orders based on actual finish dates within an allowed time gap. Discard bundles with only one work order. |
| Predict Work Orders (ID 14) | ( U ) + Using a Markov approach and specify the state with the primary failure code. | ( U , U+ ) + Use a Markov model to forecast work orders based on state transitions from historical data and update predictions using transition probabilities. |
| Outer Iters | Full | Act-Only | Drop |
|---|---|---|---|
| 1 | 24 | 12 | -50% |
| 3 | 28 | 16 | -43% |
| 5 | 29 | 20 | -31% |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Details |
|---|---|
| Asset Information | Asset ID (equipment identifier), Location, and Site |
| Work Details | Work Description (task explanation), Work Type (e.g., Emergency, Preventive, Predictive) |
| Priorities | Work Priority (urgency of the task), Asset Priority (importance of the equipment) |
| Scheduling | Reported Date, Target Start/Finish, Actual Finish, Duration, Actual Labor Hours |
| Work Status | Status of the task (e.g., Pending, Ready to Start, Completed) |
| Linked Data | Connects to asset details for consistency (e.g., location, priority, attributes) |
| Code | Description |
|---|---|
| MT006 | Major Overhaul |
| MT006a | Compressor Overhaul |
| MT013 | Vibration Analysis |
| MT013b | Routine Vibration Analysis |
| MT014 | Filter Replacement |
| MT014c | Water Filter Replacement |
| Business Object | Source | Role | Count |
| Content Objects | |||
| WorkOrder | Maximo Manage | Tracks scheduled and unscheduled maintenance tasks, categorized as preventive or corrective. | 4392 |
| Alert Events | SkySpark | Logs real-time alerts triggered by IoT sensors based on predefined conditions. | 1995 |
| Anomaly Events | ML Generated | Detects KPI deviations using machine learning for predictive maintenance. | 542 |
| Event | Aggregated by Authors | Consolidates event logs for tracking and decision-making. | 6929 |
| Meta/Profile Objects | |||
| Utterance Category | Example | Count [IDs] |
|---|---|---|
| Get Work Orders | "I would like to check the work order distribution for the equipment labeled as CU02013 for the year 2017 based on primary code." (ID: 1) "I would like to retrieve the corrective work order details for the equipment labeled as CU02013 for the year 2017." (ID: 3) | 4 [0, 1, 2, 3] |
| Summarize Events | "Provide a summary of all events for equipment CU02009 in June 2020, categorized by work order, alert, and anomaly." (ID: 5) | 7 [4, 5, 6, 7, 8, 9, 10] |
| Find Important Alerts | "Given that 80% of alerts are likely spurious, can you identify the meaningful 20% for further analysis for any chillers?" (ID: 27) | 1 [27] |
| Review Past Issues | "In May and June 2020, numerous anomalies and alerts were reported for Chiller 9 (equipment ID CU02009). Could you review them and suggest appropriate work orders or actions?" (ID: 21) | 4 [20, 21, 22, 23] |
| Detect Failures Early | "We are developing an early detection system for potential condenser water-side fouling in Chiller 9. Monitor Chiller 9 at the POKMAIN site from 2020-04-20T12:30:00 to 2020-05-12T19:30:00, identify anomalous behaviors, and provide a work order recommendation if no corrective work order has already been created." (ID: 34) | 3 [30, 33, 34] |
| Predict Work Orders | "Assuming the current date is 2018-01-02, can you predict the next work order probability for equipment CU02009?" (ID: 14) | 3 [12, 13, 14] |
| Utternance | Context and Additional Information |
|---|---|
| Utternance 1: “Given the recent maintenance history of Chiller 13 and the last two years of work order data, what is the most likely next work order type within the next two months?” | • Context Definition: Recent maintenance actions on Chiller 13, including routine checks and specific repairs. • Event Specification: Focuses on predicting the next work order type based on historical data. • Temporal Frame: Two-month forecast period. • Prediction Request: Most likely next work order type. • Expected Output Format: A ranked list of work order types with probabilities. |
| Utternance 2: “What has been the distribution of work event types for Chiller 13 over the past year, and how might this inform the scheduling of future maintenance?” | • Context Definition: Operational context of Chiller 13 over the past year, including all recorded WOs. • Event Specification: Analysis of the distribution of WO event types (e.g., routine maintenance, emergency repairs, system alerts). • Temporal Frame: The past year. • Insight Request: Analysis to inform future maintenance scheduling. • Expected Output Format: Summary report or visualization showing the frequency and types of WO events. |
| Alert Type (Occurrences) | Work Orders (Occurrences and Percentage) |
|---|---|
| CR00007 - Load Low (11) | MT011: Calibration (12, 31.58%), MT010: Oil Analysis (11 occurrences, 28.95%), MT013: Vibration Analysis (11, 28.95%), MT004: Refrigerant Addition (4, 10.53%) |
| CR00008 - Evaporator Approach High (183) | MT013: Vibration Analysis (301, 37.30%), MT011: Calibration (213, 26.39%), MT010: Oil Analysis (110, 13.63%), MT004: Refrigerant Addition (105, 13.01%), MT001: Routine Maintenance (64, 7.93%), MT009: Refrigerant Transfer (7, 0.87%), MT003: Lubrication (5, 0.62%), E006: VFD (Variable Frequency Drive) Failure (2, 0.25%) |
| CR00012 - Chiller Cycling (77) | MT010: Oil Analysis (68, 31.34%), MT004: Refrigerant Addition (42, 19.35%), MT001: Routine Maintenance (40, 18.43%), MT013: Vibration Analysis (29, 13.36%), MT003: Lubrication (26, 11.98%), MT011: Calibration, (9, 4.15%), M009: Actuator Failure, (3,1.38%) |
Data Analysis Agents
Data analysis agents use language models and tools to explore datasets, run analyses, and produce answers or reports grounded in evidence.
See all 126 papers