Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”§ InsightX β€” Predictive Maintenance System

Predict machine failures before they happen. Built with React, Django, and Scikit-learn.

Tech Stack Backend ML License


πŸ“Œ Overview

InsightX is a full-stack predictive maintenance platform that uses machine learning to identify potential equipment failures before they occur. Users can input real-time sensor data, receive instant failure predictions with confidence scores, and monitor historical trends β€” all through a responsive dashboard built for both desktop and mobile.

The system is designed around the challenge of unplanned industrial downtime: by predicting failures early, it enables proactive maintenance rather than reactive repair.


πŸ“Έ Screenshots

Home

Home

Predict

Predict

Analytics

Analytics

Explore

Explore

Explore 2

Explore 3

Login

Login


✨ Features

  • ML-Powered Predictions β€” Submit sensor readings and receive instant failure probability predictions using a trained Scikit-learn model
  • Real-Time Monitoring Dashboard β€” Visualize live equipment metrics and anomaly indicators
  • Prediction History β€” Track past predictions and outcomes for auditing and model improvement
  • Data Analysis Tools β€” Explore trends and patterns across historical sensor data
  • User Authentication β€” Secure JWT-based login/signup with protected routes
  • Responsive Design β€” Dark-themed UI optimized for desktop and mobile

πŸ›  Tech Stack

Frontend

Technology Purpose
React 18 UI framework
Vite Build tool & dev server
React Router DOM v6 Client-side routing
Axios HTTP client with interceptors
Chart.js Data visualization
Custom CSS Styling (CSS Grid, Flexbox, Variables)

Backend

Technology Purpose
Django Web framework
Django REST Framework REST API layer
Scikit-learn ML model training & inference
JWT Authentication tokens

πŸ“ Project Structure

insightX-final/
β”œβ”€β”€ frontend/
β”‚   └── src/
β”‚       β”œβ”€β”€ components/
β”‚       β”‚   β”œβ”€β”€ Layout/         # Navbar, Layout wrapper
β”‚       β”‚   └── Auth/           # PrivateRoute guard
β”‚       β”œβ”€β”€ pages/
β”‚       β”‚   β”œβ”€β”€ Home.jsx        # Landing page
β”‚       β”‚   β”œβ”€β”€ Predict.jsx     # Failure prediction form
β”‚       β”‚   β”œβ”€β”€ Monitoring.jsx  # Real-time dashboard
β”‚       β”‚   β”œβ”€β”€ History.jsx     # Prediction history (protected)
β”‚       β”‚   β”œβ”€β”€ Dashboard.jsx   # Overview (protected)
β”‚       β”‚   β”œβ”€β”€ Analysis.jsx    # Data analysis tools
β”‚       β”‚   └── Explore.jsx     # About predictive maintenance
β”‚       β”œβ”€β”€ context/
β”‚       β”‚   └── AuthContext.jsx # JWT auth state
β”‚       └── services/
β”‚           └── api.js          # Axios instance + interceptors
└── backend/
    β”œβ”€β”€ apps/
    β”‚   β”œβ”€β”€ authentication/     # Login, signup, JWT
    β”‚   β”œβ”€β”€ predictions/        # ML inference endpoint
    β”‚   └── monitoring/         # Sensor data endpoints
    └── ml/
        └── models/             # Trained Scikit-learn models

πŸš€ Getting Started

Prerequisites

  • Node.js β‰₯ 18
  • Python β‰₯ 3.10
  • pip

Frontend Setup

cd frontend
npm install
npm run dev

The React app runs at http://localhost:5173

Create a .env file in the frontend/ directory:

VITE_API_URL=http://localhost:8000/api

Backend Setup

cd backend
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver

The Django API runs at http://localhost:8000


πŸ”Œ API Endpoints

Method Endpoint Description Auth Required
POST /api/login User login, returns JWT No
POST /api/signup User registration No
POST /api/predict Submit sensor data, get prediction Yes
GET /api/history Fetch prediction history Yes
GET /api/monitoring Get live monitoring data Yes
GET /api/analysis Get aggregated analysis data Yes

Prediction Request Example

POST /api/predict
{
  "type": "Medium",
  "air_temperature": 298.1,
  "process_temperature": 308.6,
  "rotational_speed": 1551,
  "torque": 42.8,
  "tool_wear": 0
}

Prediction Response Example

{
  "failure_predicted": true,
  "probability": 0.87,
  "failure_type": "Tool Wear Failure",
  "confidence": "High"
}

πŸ–₯ Pages

Page Route Description
Home / Landing page with feature highlights
Login /login User authentication
Signup /signup New user registration
Predict /predict Submit sensor readings for prediction
Monitoring /monitoring Real-time equipment monitoring
Dashboard /dashboard Overview with charts (protected)
History /history Past predictions log (protected)
Analysis /analysis Trend and pattern analysis
Explore /explore What is predictive maintenance?

πŸ€– ML Model

The prediction engine is powered by a Scikit-learn model trained on industrial sensor data. Key input features include:

  • Machine Type β€” Low / Medium / High
  • Air Temperature (K)
  • Process Temperature (K)
  • Rotational Speed (RPM)
  • Torque (Nm)
  • Tool Wear (min)

The model predicts binary failure outcomes and classifies failure type (Tool Wear, Heat Dissipation, Power, Overstrain).


πŸ–₯ UI Highlights

  • Dark theme with blue gradient accents
  • Backdrop blur navigation bar
  • Animated hero section with staggered headings
  • Color-coded prediction results (green / red / yellow)
  • Responsive hamburger menu for mobile
  • Smooth hover transitions on cards and buttons

πŸ” Authentication Flow

InsightX uses JWT-based authentication managed through a global React context (AuthContext). Tokens are stored and attached automatically via Axios request interceptors. Protected pages (Dashboard, History) are gated behind a PrivateRoute component.


πŸ—Ί Roadmap

  • Email/SMS alerts for high-risk predictions
  • Multi-machine support and equipment profiles
  • Model retraining pipeline from user-submitted data
  • Export predictions to CSV / PDF
  • Dockerized deployment with docker-compose

πŸ‘€ Author

Sai Sinare ECE Student @ Vishwakarma Institute of Technology, Pune GitHub


πŸ“„ License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages