Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

privaelo/engine-sensor-anomaly-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Engine Sensor Anomaly Detection

An end-to-end machine learning pipeline for detecting anomalies in multivariate vehicle sensor data using Isolation Forest and Airflow orchestration.

Project Overview

This project simulates a predictive maintenance system using:

  • NASA CMAPSS turbofan engine dataset
  • Sliding window time-series feature generation
  • Unsupervised anomaly detection
  • Airflow DAGs for repeatable ML workflows
  • Jupyter-based visual dashboards

Requirements

  • Python, Pandas, NumPy, Scikit-learn
  • Airflow (via Docker)
  • Matplotlib, Seaborn
  • Isolation Forest (unsupervised ML)

Dashboard Samples

Sensor 2 Trend with Anomalies (Engine 3)

Sensor Trend

Anomaly Count per Engine

Anomaly Bar Chart

Sensor Correlation Heatmap

Heatmap

How to Run

  1. Clone the repo:
git clone https://github.com/privaelo/engine-sensor-anomaly-detection.git
cd engine-sensor-anomaly-pipeline
  1. Set up Airflow with Docker:
cd docker-compose-airflow
docker-compose up airflow-init
docker-compose up
  1. Add your DAG to dags/ and run it via the Airflow UI.

Future Enhancements

  • FastAPI scoring microservice
  • Slack/email anomaly alerts
  • Retraining DAG
  • Streamlit dashboard

Folder Structure

engine-sensor-anomaly-pipeline/
├── README.md
├── requirements.txt
├── docker-compose-airflow/
│   └── docker-compose.yaml
├── dags/
│   ├── score_pipeline.py
│   ├── features.py
├── data/
│   └── processed/
├── models/
│   └── isolation_forest.pkl
├── outputs/
│   ├── anomaly_alerts.csv
│   ├── sensor_trend_anomalies.png
│   ├── anomaly_counts_per_engine.png
│   └── sensor_correlation_heatmap.png
├── notebooks/
│   └── anomaly_dashboard.ipynb

About

An end-to-end machine learning pipeline for detecting anomalies in multivariate vehicle sensor data using Isolation Forest and Airflow orchestration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors