Code Monkey home page Code Monkey logo

survival-analysis-nasa's Introduction

survival-analysis-nasa

In this repo, we aim to predict the remaining useful life (RUL) of turbofan engines from the NASA turbofan engine degradation simulation data set FD001, using centralised models.

This repo is divided into four main segments:

  1. baseline.py - trains and test the selected centralised models
  2. data_adjustment.py - perform feature engineering and the splitting of data sets for subsequent federated learning
  3. nasa_eda.ipynb - exploratory data analysis (EDA) of the FD001 data set
  4. Dataset - contains the raw data set used by data_adjustment.py and the processed data set used by baseline.py

baseline.py

baseline.py contains multiple centralised models used to predict RUL in both the train and test FD001 dataset. These models include:

  1. Kaplan-Meier Model
  2. Cox-PH Model
  3. Random Forest (Part 1) - Simple RF trained on original data without feature engineering
  4. Random Forest (Part 2) - RF trained on post-processed data from data_adjustment.py
  5. Neural Network (Part 1) - NN trained on original data without feature engineering
  6. Neural Network (Part 2) - NN trained on post-processed data from data_adjustment.py
  7. Neural Network (Part 3) - (Not used in final report) NN trained to classify engines to windows of failure instead of regression based approach to predict RUL
  8. Random Survival Forest - (Not used in final report)
  9. Cox-Time Method - (Not used in final report)

data_adjustment.py

data_adjustment.py contains multiple steps to perform feature engineering on the original FD001 data. These steps include:

  1. Adding additional columns - such as RUL, maximum cycle at failure, failure indicator, start cycle
  2. Clipping - Floor RUL at a pre-defined level which represents the point when degrdation pattern starts to appear
  3. Right censoring - Simulate right censoring by removing engine readings with RUL exceeding 200
  4. Select sensors - Only sensors with useful inforamtion to predict RUL remain in the data and are used for prediction
  5. Normalisation - Applying z-score normalisation to selected sensors
  6. Polynomial fitting - Apply smoothing to the sensor readings
  7. Window - Split each set of sensor readings per engine into windows of readings of a predefined length (See image below)
  8. Trending - Extract a set of trend from each window
  9. Mean - Extract a set of mean from each window

Once the original dataset has been through the feature engineering steps above, it will then be split int K data set for the purpose of federated learning.

alt text

References

survival-analysis-nasa's People

Contributors

cchanzl avatar

Stargazers

Pedro avatar

Watchers

 avatar

Forkers

pbaiz

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.