AGENTS / GITHUB / LangGraph-predictive-maintenance-agent
githubinferredactive

LangGraph-predictive-maintenance-agent

provenance:github:VaishnaviNarasimhaiahSathish/LangGraph-predictive-maintenance-agent
WHAT THIS AGENT DOES

This AI agent analyzes time-series sensor data from industrial equipment, specifically focusing on Turbofan engines. It identifies engines exhibiting abnormal behavior, detects degrading sensors, and predicts potential failures. The agent combines machine learning models, statistical analysis, and a large language model to provide insights into fleet health. Engineers and maintenance professionals can use this agent to proactively address potential issues and optimize maintenance schedules. The system's ability to answer natural language questions about the data makes it accessible and user-friendly. It offers a comprehensive solution for predictive maintenance, reducing downtime and improving operational efficiency. The agent's modular design allows for easy experimentation and customization.

PROBLEM IT SOLVES

The agent solves the problem of efficiently diagnosing and predicting failures in industrial equipment, such as aircraft engines. Instead of manually analyzing complex sensor data and running multiple diagnostic tests, users can leverage the agent's automated analysis and natural language interface to quickly identify potential problems and prioritize maintenance efforts.

View Source ↗First seen 2mo agoNot yet hireable

CAPABILITIES & CONSTRAINTS

TECH & STACK
pythonlangchainlanggraphscikit-learnpredictive-maintenancetime-seriesanomaly-detectionollama

USE CASES

README
# LangGraph AI Agent for Predictive Maintenance on Time-Series Sensor Data

This project implements an AI-powered diagnostic assistant for industrial time-series sensor data.

The system analyzes Turbofan engine telemetry to detect abnormal engines, identify degrading sensors, and predict which engines will fail soon.

The system combines machine learning, statistical analysis, and an LLM agent that can answer natural language questions about fleet health.

---

# Dataset

NASA Turbofan Engine Degradation Dataset

Each engine has multiple sensors recorded over time until failure.

Variables include:

- engine_id
- cycle
- 3 operational settings
- 21 sensor measurements

---

# System Pipeline

Dataset  
→ Feature Engineering  
→ Degradation Analysis  
→ Anomaly Detection  
→ RUL Prediction Model  
→ AI Diagnostic Agent  

---

# Features

### Exploratory Data Analysis

### Distribution of Engine Lifetimes

<p align="center">
  <img src="Visualizations/fig_DistributionOfEngineLifeCycles.png" width="700">
</p>

The histogram shows the distribution of engine lifetimes across the fleet.  
Most engines fail between **180–230 cycles**, while a few survive significantly longer.

This variability motivates the use of predictive maintenance models to estimate **Remaining Useful Life (RUL)** based on sensor behavior.

### Feature Engineering

- Remaining Useful Life (RUL) calculation
- Rolling window statistics
- Sensor degradation slopes

### Analytical Models

Anomaly detection using **Isolation Forest**

Predictive maintenance using **Random Forest Regressor**

### Diagnostics

The agent can answer questions such as:

```
Which engines behave abnormally?
Which engines will fail soon?
Generate a fleet diagnostic report
Which sensors degrade the most?
```

### Visualization

![Sensor degradation](Visualizations/fig_SensorDegradation.png)

Example of sensor degradation trajectory for a single engine.


![Correlation heatmap](Visualizations/fig_CorrelationHeatmap.png)

Correlation analysis between engine sensors helps identify redundant or related measurements.

Anomaly inspection  

Fleet-wide sensor trends

# Example Agent Output

```
Which engines will fail soon?

Agent Response:

The engines that are predicted to fail soon are: engine 6, engine 19, engine 96, engine 46, and engine 99.
```

```
Generate a fleet diagnostic report

The fleet diagnostic report indicates:

Anomalous engines:
[9, 61, 66, 82, 91]

Strong degradation sensors:
sensor9, sensor14, sensor4, sensor3

Engines likely to fail soon:
96, 6, 19, 76, 92
```

---

# Technologies

Python  
Pandas  
Scikit-Learn  
Matplotlib  
LangChain  
LangGraph  
Ollama (local LLM)

---

# Running the Project

Clone the repository:

```
git clone https://github.com/VaishnaviNarasimhaiahSathosh/LangGraph_predictive_maintenance.git
```

Create virtual environment:

```
python -m venv venv
source venv/bin/activate
```

Install dependencies:

```
pip install -r requirements.txt
```

Run the system:

```
python src/main.py
```

Then interact with the diagnostic agent:

```
Ask a question about the engine fleet:
```

---

# Project Highlights

• Full ML pipeline from raw sensor data to predictive maintenance insights  
• Modular code structure for experimentation  
• Interactive AI agent capable of reasoning over analytical tools  
• Visual diagnostics for fleet monitoring  

---

# License

MIT License

PUBLIC HISTORY

First discoveredMar 21, 2026

IDENTITY

inferred

Identity inferred from code signals. No PROVENANCE.yml found.

Is this yours? Claim it →

METADATA

platformgithub
first seenMar 6, 2026
last updatedMar 6, 2026
last crawled2 months ago
version

RELATED AGENTS

More Data Analysis agents →

README BADGE

Add to your README:

![Provenance](https://getprovenance.dev/api/badge?id=provenance:github:VaishnaviNarasimhaiahSathish/LangGraph-predictive-maintenance-agent)