Git Product home page Git Product logo

jorge-martinez-gil / root-cause-analysis Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 17 KB

Root Cause Analysis in the Industrial Domain using Knowledge Graphs: A Case Study on Power Transformers

Home Page: https://doi.org/10.1016/j.procs.2022.01.292

License: MIT License

Python 100.00%
fault-diagnosis knowledge-graph mechanical-engineering ontologies ontology-engineering predictive-maintenance root-cause root-cause-analysis

root-cause-analysis's Introduction

๐ŸŒ Root Cause Analysis in the Industrial Domain using Knowledge Graphs: A Case Study on Power Transformers

DOI:10.1016/j.procs.2022.01.304

๐Ÿ“– Introduction

This material, developed as part of a research presented in "Knowledge Graph-Driven Root Cause Analysis for Industrial Faults" (DOI: 10.1016/j.procs.2022.01.304), focuses on identifying, understanding, and correcting faults in industrial settings. The core component is an ontology that facilitates fault analysis through reasoning, classification, and advanced querying capabilities. ๐Ÿง 

This work is based on the Arias & Mejia-Lara dataset: Dataset Link

๐ŸŒ Overview

In industrial environments, handling faults efficiently is critical due to associated costs. Traditional methods lack the capability to aid human operators in discerning fault causes and solutions. This ontology supports a knowledge graph-driven approach for root cause analysis, which includes:

  1. Reasoning: Analyzing the current state of power transfromers. ๐Ÿค–
  2. Classification: Utilizing rules for failure classification. ๐Ÿท๏ธ
  3. Querying: Leveraging graph-query languages for advanced data querying. ๐Ÿ“Š

๐Ÿ“š Ontology

The ontology onto-pw was applied in a power transformer case study, demonstrating its effectiveness in fault analysis.

Ontology URI

Base URI: http://test.org/onto-pw

Namespaces

  • RDF: http://www.w3.org/1999/02/22-rdf-syntax-ns#
  • XSD: http://www.w3.org/2001/XMLSchema#
  • RDFS: http://www.w3.org/2000/01/rdf-schema#
  • OWL: http://www.w3.org/2002/07/owl#
  • SWRL: http://www.w3.org/2003/11/swrl#

Classes

  1. Transformer: Represents the primary entity in the ontology.
  2. Gas: A subclass of Transformer, representing various gases.
  3. Property: General class for properties.
  4. Estimation: Represents estimations.
  5. Measurement: General class for measurements.
  6. DBDS, Power_factor, Interfacial_V, Dielectric_rigidity, Water_content, Health_index, Life_expectation: Subclasses of Transformer, representing specific properties.
  7. Hydrogen, Oxygen, Nitrogen, Methane, CO, CO2, Ethylene, Ethane, Acetylene: Subclasses of Gas, representing specific gas types.

Object Properties

  1. is: Basic object property.
  2. relatesWaterContentToMeasurement: Links Water Content to Measurement.
  3. (Additional object properties are assumed to follow a similar pattern)

Datatype Properties

  1. hasWaterLevel: Represents the water level, with domain as Water Content and range as integer.
  2. (Additional object properties are assumed to follow a similar pattern)

Named Individuals

  1. PW101 and PW102: Instances of Transformer with associated water levels.

AllDifferent Declaration

Ensures that specific classes like DBDS, Power_factor, etc., are recognized as distinct.

Usage

The ontology is structured to represent transformers and their properties, including various gas types and measurements. It allows linking specific transformer instances with their properties, such as water content. This ontology aids operators in the industrial domain, particularly in power transformer fault analysis, by providing a structured framework for reasoning, failure classification, and querying.

Additional Notes

The ontology is designed for extensibility and adaptability to various industrial scenarios. ๐ŸŒŸ

๐Ÿ“ˆ Classification

The file swrl-rules.py shows an example of how to perform classification.

Data Preparation and Analysis

  • Libraries Used: pandas, owlready2, rdflib. ๐Ÿ“š
  • Data: The script initializes a dataset with various gases and other properties.

DataFrame Creation

  • A DataFrame is created using pandas to structure the data. This DataFrame includes multiple columns for different gases and properties.

Ontology Creation

  • An ontology is defined using the owlready2 library.

Ontology Population

  • The script iterates through the DataFrame to create individuals in the ontology, assigning them properties based on the data.
  • Each individual is named Individual followed by their index in the DataFrame.

Inference Rules and Reasoning

  • Inference rules are established to classify individuals as Failure or NonFailure based on their LifeExpectation, HealthIndex, and PowerFactor.
  • The Pellet reasoner is used for reasoning and to infer property values.

Output

  • Finally, the script prints out lists of individuals classified as Failure and NonFailure.

๐Ÿ” Querying

The file query.py shows an example of how to perform querying.

Query Overview

Query Structure

  • SELECT Clause: Retrieves ?transformer.
  • WHERE Clause:
    • Matches any ?transformer that is of type :Transformer.
    • Associates ?transformer with ?waterContent using the :relatesToWaterContent predicate.
    • Extracts the water level ?level associated with ?waterContent using the :hasWaterLevel predicate.
    • Uses a FILTER to only include transformers where the water level ?level is greater than 100.

Query Goal

  • The aim is to identify transformers within a given ontology that are potentially at risk due to high water content, as indicated by a water level exceeding 100.

๐Ÿ“š Reference

@inproceedings{martinez2021root,
  author       = {Jorge Martinez-Gil and
                  Georg Buchgeher and
                  David Gabauer and
                  Bernhard Freudenthaler and
                  Dominik Filipiak and
                  Anna Fensel},
  editor       = {Francesco Longo and
                  Michael Affenzeller and
                  Antonio Padovano},
  title        = {Root Cause Analysis in the Industrial Domain using Knowledge Graphs:
                  {A} Case Study on Power Transformers},
  booktitle    = {Proceedings of the 3rd International Conference on Industry 4.0 and
                  Smart Manufacturing {(ISM} 2022), Virtual Event / Upper Austria University
                  of Applied Sciences - Hagenberg Campus - Linz, Austria, 17-19 November
                  2021},
  series       = {Procedia Computer Science},
  volume       = {200},
  pages        = {944--953},
  publisher    = {Elsevier},
  year         = {2021},
  url          = {https://doi.org/10.1016/j.procs.2022.01.292},
  doi          = {10.1016/J.PROCS.2022.01.292}
}

๐Ÿ“„ License

The material is provided under the MIT License.

root-cause-analysis's People

Contributors

jorge-martinez-gil avatar

Stargazers

DICP_Zhou avatar Luis Alejandro Smith avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.