A machine learning system that uses Long Short-Term Memory (LSTM) neural networks to predict equipment failures before they occur, enabling proactive maintenance scheduling.
This project implements a predictive maintenance solution using LSTM neural networks to analyze equipment operational data and predict potential failures. By identifying patterns that precede equipment breakdown, maintenance can be scheduled proactively, reducing downtime and maintenance costs.
The system processes historical equipment operation logs, extracts relevant features, and trains an LSTM model to predict the time remaining until failure (RUL - Remaining Useful Life).
- Data preprocessing and feature engineering for equipment operational logs
- Time series analysis using LSTM neural networks
- Prediction of equipment failure probability
- Calculation of Remaining Useful Life (RUL) for equipment
- Support for multiple machine IDs and failure classes
- Python 3.6+
- pandas
- scikit-learn
- keras
- tensorflow
- CSV file with equipment operations logs (
equipment_operations_logs.csv
)
-
Clone this repository:
git clone https://github.com/corticalstack/LSTMPredictiveMaintenance.git cd LSTMPredictiveMaintenance
-
Install required dependencies:
pip install pandas scikit-learn keras tensorflow
-
Place your equipment operations logs in the root directory as
equipment_operations_logs.csv
The expected CSV file should contain the following columns:
id_source_primary_machine
(renamed toid_machine
): Unique identifier for each machinedt_ti_cycle_start
(renamed tocycle_start
): Timestamp for cycle starttx_delay_class_description
(renamed toclass
): Classification of operational state or failure mode
Run the main script to process data and train the model:
python main.py
The script will:
- Load and preprocess the equipment operations data
- Perform feature engineering
- Split data into training and testing sets
- Train an LSTM model to predict equipment failures
- Save the trained model
This project is licensed under the MIT License - see the LICENSE file for details.