FLEX: Fault Localization and Explanation Using Open-Source Large Language Models in Powertrain Systems

Herbert Muehlburger*, Franz Wotawa*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference paperpeer-review

Abstract

Cyber-physical systems (CPS) are critical to modern infrastructure, but are vulnerable to faults and anomalies that threaten their operational safety. In this work, we evaluate the use of open-source Large Language Models (LLMs), such as Mistral 7B, Llama3.1:8b-instruct-fp16, and others to detect anomalies in two distinct datasets: battery management and powertrain systems. Our methodology utilises retrieval-augmented generation (RAG) techniques, incorporating a novel two-step process where LLMs first infer operational rules from normal behavior before applying these rules for fault detection. During the experiments, we found that the original prompt design yielded strong results for the battery dataset but required modification for the powertrain dataset to improve performance. The adjusted prompt, which emphasises rule inference, significantly improved anomaly detection for the powertrain dataset. Experimental results show that models like Mistral 7B achieved F1-scores up to 0.99, while Llama3.1:8b-instruct-fp16 and Gemma 2 reached perfect F1-scores of 1.0 in complex scenarios. These findings demonstrate the impact of effective prompt design and rule inference in improving LLM-based fault detection for CPS, contributing to increased operational resilience.

Original languageEnglish
Title of host publication35th International Conference on Principles of Diagnosis and Resilient Systems, DX 2024
EditorsIngo Pill, Avraham Natan, Franz Wotawa
PublisherSchloss Dagstuhl - Leibniz-Zentrum für Informatik
ISBN (Electronic)9783959773560
DOIs
Publication statusPublished - 26 Nov 2024
Event35th International Conference on Principles of Diagnosis and Resilient Systems, DX 2024 - Vienna, Austria
Duration: 4 Nov 20247 Nov 2024

Publication series

NameOpenAccess Series in Informatics
Volume125
ISSN (Print)2190-6807

Conference

Conference35th International Conference on Principles of Diagnosis and Resilient Systems, DX 2024
Country/TerritoryAustria
CityVienna
Period4/11/247/11/24

Keywords

  • anomaly detection
  • Fault detection
  • large language models
  • open-source LLMs
  • powertrain systems

ASJC Scopus subject areas

  • Geography, Planning and Development
  • Modelling and Simulation

Fingerprint

Dive into the research topics of 'FLEX: Fault Localization and Explanation Using Open-Source Large Language Models in Powertrain Systems'. Together they form a unique fingerprint.

Cite this