This repository offers a comprehensive framework for predictive maintenance, leveraging machine learning techniques to anticipate equipment failures in industrial settings. It covers everything from data preprocessing and feature engineering to model training and deployment via an interactive dashboard.
- Data Preprocessing – Clean and transform raw industrial sensor data.
- Feature Engineering – Extract spectral, statistical, and health indicators.
- Model Training – Train classification (failure prediction) and regression (RUL estimation) models.
- Visualization Dashboard – Streamlit-based dashboard for real-time monitoring and visualization.
- Modular Design – Easy to extend, customize, and plug into other systems.
pred-main-mod/
├── data/ # Raw and processed datasets
├── data_tables/ # Aggregated feature tables
├── models/ # Trained models (RandomForest, TensorFlow, etc.)
├── notebooks/ # Jupyter Notebooks for exploratory data analysis
├── scripts/ # Processing and training scripts
├── dashboard/ # Streamlit app files
├── utils/ # Helper functions
├── README.md # Project readme file
├── requirements.txt # Python dependencies
└── LICENSE # License file
First, clone the repository to your local machine:
git clone https://github.com/RealThanosP/pred-main-mod.git
cd pred-main-modIt's recommended to use a virtual environment to manage dependencies:
# Create the virtual environment
python3 -m venv venv
# Activate it (Linux/macOS)
source venv/bin/activate
# Or activate it (Windows)
venv\Scripts\activatepip install -r requirements.txtAdd the configuration you wish for your data in the config.json.
Paste the data you want to make a prediction for in the data folder. Now you are all set to use the model.
Run data_processing.py and the extracted tables
python model_prediction.py --model models/failure_flag_model.pkl --data data_tables/new_sensor_input.csv