This Streamlit application provides a user-friendly interface to predict equipment failures based on sensor data. Users can input equipment parameters and receive insights into equipment health, maintenance levels, and associated risks.
- Interactive Interface: Simple forms to input equipment parameters.
- Real-time Visualization: Displays equipment health and maintenance levels.
- Color-Coded Status: Equipment health and maintenance levels are color-coded (Green, Yellow, Red) for easy interpretation.
- Python 3.8+
- Streamlit
- Pandas
- Joblib
# Clone the repository git clone https://github.com/Swarno-Coder/Predictive-Medical-Equipment-Maintenance-System.git pmems cd pmems # Create a virtual environment python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate # Install required dependencies pip install -r requirements.txt
streamlit run app.py
- The application will be available at
http://localhost:8501
- Input Parameters:
- Enter equipment details in the provided fields.
- Click the
Predictbutton.
- View Results:
- Equipment health and maintenance levels will be displayed side by side.
- Results are color-coded:
- Green: Good health, low maintenance.
- Yellow: Moderate health, medium maintenance.
- Red: Critical health, high maintenance.
-
Dataset Generation:
- Use synthetic sensor data or gather real-world data.
- Label data based on failure occurrences.
or run the
data_generation.pyscript to generate synthetic data.
python data_generation.py
-
Model Training:
- Use a
RandomForestClassifieror any regression model. - Train the model with features like
temperature,humidity, andvibration. - Save the model as
equipment_model.pklusingjoblib.dump(model, 'equipment_model.pkl').
or run the
model_training.pyscript to train a sample model.python model_training.py
- Use a
- UI Not Loading: Ensure Streamlit is installed and the correct Python environment is activated.
- Incorrect Predictions: Retrain the model with updated data.
This project is licensed under the Apache License.