Coder Social home page Coder Social logo

limingwu8 / predictive-maintenance Goto Github PK

View Code? Open in Web Editor NEW
41.0 4.0 24.0 209.76 MB

time-series prediction for predictive maintenance

License: MIT License

Python 88.54% Jupyter Notebook 10.16% MATLAB 1.29%
predictive-maintenance lstm-model time-series-prediction health-index

predictive-maintenance's Introduction

Predictive Maintenance

Overview

This is the code for time series data analyzing. We will use LSTM to predict the value of sensor reading in the future and generate a "health index" for each component of the system and finally generate a overall "health index" for the whole system, which indicated the system's future health status.

Dataset

Twelve time series data from twelve different sensors which including temperature sensor, pressure sensor and vibration sensor. The raw dataset are located under folder "original". The format is time_sensorName.csv. e.g. 1705_MAIN_FILTER_OIL_TEMP.csv indicates dataset for Main Filter Oil Temperature sensor on May, 2017. The time interval of the raw dataset is different, which means need to be processed. The preprocessed (sampled) dataset is located under folder "sampled". They are sampled into different time intervals.

Models

A long short-term memory network (LSTM) was implemented for data prediction. The schematic diagram of a LSTM cell, the building block of LSTM network, is shown in the following figures. image1

image2

Scripts

  • utils/: for data reading, sampling and write into CSV
  • Sensor.py: predicting the sensor value in the future
  • train_batch.py: train LSTM models

Dependencies

Python (3.5)
Tensorflow (>1.0)
keras
numpy
pandas
scikit-learn
datetime
matplotlib
scipy
pickle

Usage

  1. Change the configurations in script train_batch.py. E.g. number of epochs, dataset path
  2. Run script train_batch.py, the generated results will be saved in the path that you specified.

Results

Prediction

This is the single step prediction result for one day sampled oil return temperature sensor. image3 This is the RMSE comparison of multi-step prediction for different time interval sampled oil return temperature sensor. image4

Health Index

This is the predicted health index of each sensor and the whole system on November. image5

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.