All Projects → jancervenka → turbofan_failure

jancervenka / turbofan_failure

Licence: other
Aircraft engine failure prediction model

Programming Languages

Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to turbofan failure

Ailearning
AiLearning: 机器学习 - MachineLearning - ML、深度学习 - DeepLearning - DL、自然语言处理 NLP
Stars: ✭ 32,316 (+140404.35%)
Mutual labels:  svm, scikit-learn, lstm
SentimentAnalysis
(BOW, TF-IDF, Word2Vec, BERT) Word Embeddings + (SVM, Naive Bayes, Decision Tree, Random Forest) Base Classifiers + Pre-trained BERT on Tensorflow Hub + 1-D CNN and Bi-Directional LSTM on IMDB Movie Reviews Dataset
Stars: ✭ 40 (+73.91%)
Mutual labels:  svm, lstm
handson-ml
도서 "핸즈온 머신러닝"의 예제와 연습문제를 담은 주피터 노트북입니다.
Stars: ✭ 285 (+1139.13%)
Mutual labels:  svm, scikit-learn
CS231n
My solutions for Assignments of CS231n: Convolutional Neural Networks for Visual Recognition
Stars: ✭ 30 (+30.43%)
Mutual labels:  svm, lstm
Thesemicolon
This repository contains Ipython notebooks and datasets for the data analytics youtube tutorials on The Semicolon.
Stars: ✭ 345 (+1400%)
Mutual labels:  scikit-learn, lstm
Actionai
custom human activity recognition modules by pose estimation and cascaded inference using sklearn API
Stars: ✭ 404 (+1656.52%)
Mutual labels:  scikit-learn, lstm
regression-stock-prediction
Predicting Google’s stock price using regression
Stars: ✭ 54 (+134.78%)
Mutual labels:  svm, scikit-learn
Dash Svm
Interactive SVM Explorer, using Dash and scikit-learn
Stars: ✭ 147 (+539.13%)
Mutual labels:  svm, scikit-learn
Facial Expression Recognition Svm
Training SVM classifier to recognize people expressions (emotions) on Fer2013 dataset
Stars: ✭ 110 (+378.26%)
Mutual labels:  svm, scikit-learn
Mnist Classification
Pytorch、Scikit-learn实现多种分类方法,包括逻辑回归(Logistic Regression)、多层感知机(MLP)、支持向量机(SVM)、K近邻(KNN)、CNN、RNN,极简代码适合新手小白入门,附英文实验报告(ACM模板)
Stars: ✭ 109 (+373.91%)
Mutual labels:  svm, scikit-learn
Machine-Learning
The projects I do in Machine Learning with PyTorch, keras, Tensorflow, scikit learn and Python.
Stars: ✭ 54 (+134.78%)
Mutual labels:  scikit-learn, lstm
TextClassification
基于scikit-learn实现对新浪新闻的文本分类,数据集为100w篇文档,总计10类,测试集与训练集1:1划分。分类算法采用SVM和Bayes,其中Bayes作为baseline。
Stars: ✭ 86 (+273.91%)
Mutual labels:  svm, scikit-learn
MachineLearning
Implementations of machine learning algorithm by Python 3
Stars: ✭ 16 (-30.43%)
Mutual labels:  scikit-learn, lstm
text-classification-cn
中文文本分类实践,基于搜狗新闻语料库,采用传统机器学习方法以及预训练模型等方法
Stars: ✭ 81 (+252.17%)
Mutual labels:  svm, scikit-learn
100 Days Of Ml Code
100 Days of ML Coding
Stars: ✭ 33,641 (+146165.22%)
Mutual labels:  svm, scikit-learn
Speech Emotion Recognition
Speech emotion recognition implemented in Keras (LSTM, CNN, SVM, MLP) | 语音情感识别
Stars: ✭ 181 (+686.96%)
Mutual labels:  svm, lstm
Breast-cancer-risk-prediction
Classification of Breast Cancer diagnosis Using Support Vector Machines
Stars: ✭ 143 (+521.74%)
Mutual labels:  svm, prediction-model
AutoTabular
Automatic machine learning for tabular data. ⚡🔥⚡
Stars: ✭ 51 (+121.74%)
Mutual labels:  scikit-learn
KMeans elbow
Code for determining optimal number of clusters for K-means algorithm using the 'elbow criterion'
Stars: ✭ 35 (+52.17%)
Mutual labels:  scikit-learn
Algorithmic-Trading
Algorithmic trading using machine learning.
Stars: ✭ 102 (+343.48%)
Mutual labels:  scikit-learn

Aircraft Engine Failure prediction Model

This problem requires to accurectly predict remaining useful life (RUL) of aircraft turbofan engines based on various sensor measurements (multivariate time series). The RUL is defined as the number of engine cycles before failure.

I tried to predict the RUL values for engine units in the FD004 dataset from Turbofan Engine Degradation Simulation Data Set using two different models (LSTM network and support vector machine). My code can be found in the turbofan.ipynb file.

Data Preparation and Feature Engineering

First, I computed the RUL value for each row in the dataset to get a dataframe in the following form:

unit cycle sensor_1 sensor_2 sensor_n RUL
1 1 0.2 30 0.9 192
1 2 0.3 29 0.2 191

Each row can be used as a model training sample where the sensor_k columns are the features and the RUL is the model target. The rows are treated as independend observations and the measurement trends from the previous cycles are ignored.

As recommended in (1), the features are normalized to μ = 0, σ = 1 and PCA is applied.

This simplified approach is used to train the support vector machine model.

Samples as Time Series

For the LSTM model, I opted for more advanced feature engineering and chose to incorporate the trends from the previous cycles. In this case, each training sample consists of masurements at cycle i as well as i-5, i-10, i-20, i-30, i-40.

The model input is a 3D tensor with shape (n, 6, 24) where n is the number of training samples, 6 is the number of cycles (timesteps), and 24 is the number of principal components (features).

LSTM Regressor

After running random search to optimize the hyperparameters and some experimentation, I settled on the following architecture:

Model: "rlu_estimator"
_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
components (InputLayer)      [(None, 6, 24)]           0         
_________________________________________________________________
lstm (LSTM)                  (None, 64)                22784     
_________________________________________________________________
dropout_lstm (Dropout)       (None, 64)                0         
_________________________________________________________________
hidden_0 (Dense)             (None, 64)                4160      
_________________________________________________________________
dropout_0 (Dropout)          (None, 64)                0         
_________________________________________________________________
hidden_1 (Dense)             (None, 64)                4160      
_________________________________________________________________
dropout_1 (Dropout)          (None, 64)                0         
_________________________________________________________________
hidden_2 (Dense)             (None, 64)                4160      
_________________________________________________________________
dropout_2 (Dropout)          (None, 64)                0         
_________________________________________________________________
rul_prediction (Dense)       (None, 1)                 65        
=================================================================
Total params: 35,329
Trainable params: 35,329
Non-trainable params: 0

The model is using L1L2 regularization and dropout layers to mitigate overfitting.

I trained the model 25 epochs and used annealing scheduler to decrease the learning rate over time.

LSTM History

Support Vector Machine

Use of a Support vector machine (SVM) model is suggested in (2). The authors recommend to use non-linear radial basis (RBF) function.

Results

I chose three different metrics to assess the performance of the models. Mean square error (MSE), median absolute error (MAE) and the Score as defined in (3). I modified the Score formula (11) in (3) by dividing the overall value by the number of testing samples (the definition in the paper contains an error, a_1 and a_2 should be switched in order to penalize RUL overshooting more heavily).

metric LSTM SVM
MSE 4627 5894
MAE 35 45
Score 8.58e10 1.65e14

Comparison

Conclusions

It is clear that the advanced features together with the LSTM outperform the SVM model. The high Score values are caused by few outliers with significant errors and the exponential nature of the formula (3).

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].