This project delivers an intelligent Predictive Maintenance system built with Machine Learning and Deep Learning techniques. It automatically identifies whether data is meant for failure classification or RUL prediction and trains the appropriate model—ANN for static sensor data and LSTM for time-series sequences. Using Adam Optimization and Early Stopping, the system achieves strong performance with high Recall, high R², and low RMSE. The integrated Streamlit interface allows users to upload datasets, train models, and generate real-time failure risk or RUL predictions, making it a complete AI solution for Industry 4.0 machinery maintenance.
To build an AI-driven maintenance system capable of:
- Predicting machine failure (classification)
- Estimating Remaining Useful Life (RUL) (regression)
- Supporting both ANN and LSTM deep learning models
- Offering real-time sensor-based predictions through an intuitive web UI
✅ Dataset Auto-Detection
✔ Detects whether the uploaded dataset is AI4I (classification) or NASA C-MAPSS (RUL regression)
✅ ANN Model for Failure Classification
✔ Trains using Adam optimizer, multiple hidden layers, and early stopping
✅ LSTM Model for RUL Regression
✔ Automatically processes sequence data for life prediction
✅ Interactive Web Interface (Streamlit)
✔ Dataset upload
✔ Model training
✔ Real-time prediction using sliders
✅ Performance Metrics
✔ Accuracy, Precision, Recall (Classification)
✔ R², RMSE (Regression)
- TensorFlow / Keras — ANN & LSTM architecture
- scikit-learn — preprocessing, metrics
- pandas, numpy
- Streamlit
- matplotlib, seaborn
- Adam optimizer
predictive-maintenance-project/
├── app.py # Main Streamlit application with ANN/LSTM logic
├── requirements.txt # All dependencies
└── README.md # Documentation
git clone https://github.com/yourusername/predictive-maintenance-project
cd predictive-maintenance-projectpython -m venv venv| OS | Command |
|---|---|
| Windows | .\venv\Scripts\activate |
| Linux/macOS | source venv/bin/activate |
pip install -r requirements.txt
streamlit run app.py
http://localhost:8501
Click “Upload Dataset (.txt or .csv)” and upload either:
AI4I 2020 Predictive Maintenance dataset (CSV)
NASA C-MAPSS dataset (TXT)
Click “Train Predictive Model (Auto-Detect)” The system will:
Identify dataset type
Preprocess data
Train ANN (classification) or LSTM (regression)
Display performance metrics
Adjust sliders for temperature, vibration, speed, load
Click “Predict Failure Risk” or “Predict RUL”
📊 Output will appear instantly on the dashboard.
Upload: AI4I_2020.csv
Upload: C-MAPSS_TRAIN_FD001.txt
Adjust sliders for simulated machine readings
Check predicted RUL or Failure Probability
This project is licensed under the MIT License — free to use, modify, improve, and distribute with proper credit.
Chaitanya Bhosale
🔗 GitHub: https://github.com/Chaitanya5068
🔗 LinkedIn: https://www.linkedin.com/in/chaitanya-bhosale