Agentic Anomaly Detection for Shipping

Alexander Timms, Abigail Langbridge, Fearghal O'DonnchaOWA @ NeurIPS 2024

TL;DR

This paper introduces an agentic LLM system that enhances anomaly detection and maintenance for the complex shipping industry. By integrating a knowledge graph, external tools, and LLM reasoning, the system provides nuanced insights into ship system anomalies, moving beyond simple alerts to actionable operational understanding.

What Problem Does This Paper Address?

The shipping industry faces significant challenges in operational decision-making and maintenance due to its highly dynamic nature, involving numerous stakeholders and complex system interactions. Existing anomaly detection (AD) tools often produce raw alerts that require extensive interpretation, leading to high false positive rates and increased maintenance costs. Furthermore, the industry is under pressure to improve efficiency and reduce emissions, necessitating advanced digital solutions. This paper aims to bridge the gap by developing an agentic system that can not only detect anomalies but also reason about their severity and potential causes, providing tailored insights for diverse industry personas.

Methods

The core of the proposed solution is an agentic LLM system orchestrated using LangGraph. This system leverages:

  • Agentic LLM Architecture: A reasoning and planning agent that decomposes tasks and coordinates specialized agent tools. This allows for multi-persona interactions, enabling users like fleet owners, captains, and engineers to access tailored information.
  • External Tools Integration: The LLM is augmented with a suite of tools, including:
  • Knowledge Graph (KG) Exploration: A Neo4j-based KG provides structured information about ship components, their relationships, and operational parameters. This acts as a semantic layer, bridging actual system operations with higher-level use cases.
  • Anomaly Detection (OT-AD): An unsupervised anomaly detection method based on optimal transport is used to identify anomalies in time-series data. A key feature is its built-in counterfactual explanations for anomalies.
  • Anomaly Synthesis: This novel step leverages the LLM's intrinsic knowledge to reason about the severity of detected anomalies by comparing them with coincident anomalies in potential "source" components or environmental factors. This helps filter out false positives caused by external influences.
  • Failure Modes and Effects Analysis (FMEA) Tool: This tool helps in identifying potential failure modes, causes, and effects, which is crucial for understanding the root causes of anomalies.
  • LLM as a Judge: An LLM-based judge agent evaluates the LLM's tool calls, ensuring they align with the user's query and task objectives, and determines if additional tool invocations are needed.

Datasets

The experiments were conducted using real-world data collected over one year from approximately 400 sensors on a 330-meter crude oil tanker. These sensors monitored critical ship components such as the main engine, electrical systems, navigational data, weather, cargo holds, and the fuel system. External factors like weather conditions, ship draught, and speed were also considered. The paper does not introduce new benchmarks but evaluates the system on this large-scale, real-world dataset.

Key Insights and Ideas

  • Agentic Reasoning for Complex Domains: The paper demonstrates that agentic LLM systems can effectively navigate the complexity of the shipping industry, which involves multi-persona interactions and diverse operational scenarios.
  • Beyond Raw Alerts: The core innovation lies in moving beyond simple anomaly detection to anomaly reasoning. By synthesizing anomalies with contextual data (KG, external factors), the system provides a more nuanced understanding of anomaly severity and potential causes.
  • Leveraging LLM's Intrinsic Knowledge: The LLM's ability to reason about relationships between components and external factors, even when not explicitly encoded in the KG, is crucial for filtering false positives and providing meaningful insights.
  • Tool Orchestration for Practicality: The use of LangGraph and an "LLM-as-a-judge" mechanism allows for dynamic tool selection and validation, making the system adaptable to various user queries and operational contexts.
  • Bridging Digitalization Gaps: The approach offers a scalable solution for digital twin technologies in shipping, making advanced analytics more accessible without requiring specialized expertise from all users.

Key Results

The paper highlights the effectiveness of the agentic framework in handling complex queries and demonstrating strong capabilities in anomaly detection. Specifically:

  • The anomaly detection path, which involves detecting, visualizing, and reporting anomalous conditions, was assessed for its effectiveness in resolving query context and intent.
  • Figure 2 demonstrates how the anomaly synthesis step effectively filters out false positives in the turbocharger RPM anomalies that were previously attributed to variations in the vessel's speed. This significantly reduces the overhead for human operators.
  • Figure 3 shows an example of a generated work order, which details the anomaly, potential root causes, and associated failure modes, demonstrating the system's ability to provide actionable insights.
  • Qualitative results indicate that the system can accurately interpret user intent, identify relevant ship components and sensor data, and reason about the potential impact of detected anomalies.

Limitations and Future Work

Limitations:

  • Explainability and Trust: The paper acknowledges that LLMs can struggle to provide clear reasoning behind their decisions, which can impact industry confidence, especially in complex, regulated environments.
  • Tool Call Accuracy: The LLM's ability to make correct tool calls and pass accurate parameters is not guaranteed, potentially leading to errors.
  • Reliance on Internal Knowledge: While beneficial, the reliance on an LLM's internal knowledge to relate ship components can be complex and may require further refinement.

Future Work:

  • Enhancing Explainability: Improving the clarity of reasoning behind LLM decisions.
  • Improving Tool Orchestration: Further refining the process of selecting and integrating external tools.
  • Integrating Predictive Analytics: Incorporating additional predictive analytics to further support decarbonization and automation efforts in shipping.
  • Enhancing Agentic Observability: Making the agent's decision-making processes more transparent.

Summary updated

BibTeX
@inproceedings{timms2024agentic,
  author = {Alexander Timms and Abigail Langbridge and Fearghal O'Donncha},
  title = {{Agentic Anomaly Detection for Shipping}},
  booktitle = {OWA @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=mmBrJRoppK},
}
Figure