Skip to content

An interactive Streamlit dashboard for analyzing equipment failure patterns and predicting maintenance needs. Features include data visualization, root cause analysis using Apriori algorithm, and survival modeling with Random Survival Forests to estimate time-to-failure and optimize spare parts management.

Notifications You must be signed in to change notification settings

divyaj0403/stulz_proj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠 Equipment Failure Dashboard with Predictive Maintenance and Customer Service Chatbot

This project is a Streamlit web application that provides interactive data analysis, predictive maintenance insights, and an integrated customer service chatbot for equipment failure management. It helps identify failure-prone models and components, perform root cause analysis using the Apriori algorithm, predict future equipment failures using Random Survival Forest models, and assist users with real-time answers through a conversational chatbot.


📌 Features

🔍 Data Analysis

  • Upload equipment failure CSV files
  • Filter data by model numbers and part names
  • Visualize top models and parts by failure rate
  • Root Cause Analysis using Apriori Algorithm for association rules

🔧 Predictive Maintenance

  • Predict "Time to Failure" for equipment using Random Survival Forest
  • Calculate Failure Risk Scores
  • Analyze high-risk spare parts
  • Visualize failure time distribution and risk score comparisons
  • Suggest spare part optimization based on risk level

🤖 Customer Service Chatbot

  • Conversational interface integrated into the dashboard
  • Built using Gemini Flash 2.0, optimized for fast and accurate responses
  • Trained on intent-based Q&A pairs generated from original equipment failure data
  • Capable of answering queries related to:
    • Equipment models and their failure trends
    • Specific part failure reasons
    • Predictive maintenance insights and usage instructions
    • Navigation and feature help within the dashboard

🚀 Tech Stack & Tools

  • Frontend: Streamlit
  • Visualization: Plotly, Matplotlib, Seaborn
  • Data Manipulation: Pandas, NumPy
  • Machine Learning:
    • Association Rules: mlxtend
    • Predictive Modeling: sksurv (scikit-survival)
    • Modeling: Random Survival Forests
  • Chatbot Integration:
    • LLM: Gemini Flash 2.0
    • Training Data: Custom intent-based Q&A generated from domain-specific datasets
    • NLP Preprocessing: Tokenization, embedding generation, and similarity matching

📂 Folder Structure

stulz-proj/ │ ├── app.py # Main Streamlit Application ├── requirements.txt # Required dependencies └── sample_data.csv # Example CSV data


⚙️ How to Run Locally

1. Clone the Repository
git clone https://github.com/your-username/stulz-proj.git
cd stulz-proj

2. Create a Virtual Environment
bash
Copy
Edit
python -m venv venv
venv\Scripts\activate  # On Windows

3. Install Dependencies
bash
Copy
Edit
pip install --no-cache-dir -r requirements.txt

4. Run the Streamlit App
bash
Copy
Edit
streamlit run app.py

⚙️ Screenshots

PdM System Screenshot 2025-06-20 121417 Screenshot 2025-06-20 121427 Screenshot 2025-06-20 121444 Screenshot 2025-06-20 122148 Screenshot 2025-06-20 122201 Screenshot 2025-06-20 122217 Screenshot 2025-06-20 122228 Screenshot 2025-06-19 152922

Customer Service Chatbot

Screenshot 2025-06-20 125351 Screenshot 2025-06-20 125400 Screenshot 2025-06-20 125417


📬 Contact For questions or collaborations, feel free to reach out via LinkedIn or create an issue in the repository.

About

An interactive Streamlit dashboard for analyzing equipment failure patterns and predicting maintenance needs. Features include data visualization, root cause analysis using Apriori algorithm, and survival modeling with Random Survival Forests to estimate time-to-failure and optimize spare parts management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •