Real-time machine health monitoring & AI-powered failure prediction for industrial environments
- About the Project
- Key Features
- Tech Stack
- Architecture
- Screenshots
- Getting Started
- Project Structure
- Machine Learning Model
- WebSocket Data Flow
- Team
- Future Roadmap
- License
TechnoExpand is a full-stack industrial predictive maintenance platform that monitors 15 industrial machines in real-time using simulated IoT sensor data. It combines WebSocket-based live streaming, Machine Learning predictions, and a modern React dashboard to provide actionable insights about machine health, failure probability, and remaining useful life (RUL).
The platform is designed to replicate production-level monitoring workflows used in manufacturing, power plants, and industrial automation environments.
| Feature | Description |
|---|---|
| ๐ Real-Time Dashboard | Live pie charts and line graphs showing overall machine fleet health |
| ๐ญ 15 Industrial Machines | CNC Mills, Compressors, Pumps, Boilers, Robot Arms, Turbines & more |
| ๐ Live WebSocket Streaming | 9 sensor metrics streamed every 2 seconds via WebSocket |
| ๐ค ML Failure Prediction | Pre-trained model (Random Forest) predicts machine condition: Healthy / Medium / Fail |
| ๐ 9 Sensor Metrics | Temperature, Pressure, Vibration, Humidity, Current, Voltage, RPM, Load, Noise |
| โฑ๏ธ RUL Estimation | Remaining Useful Life countdown in days for each machine |
| ๐ Maintenance Timeline | Visual timeline of past maintenance events with engineer notes |
| ๐ฅ Excel Export | One-click export of machine data & sensor history to .xlsx |
| ๐ Authentication | Login/Signup with localStorage-based session management |
| ๐จ Animated UI | Smooth Framer Motion page transitions and micro-interactions |
| ๐ฑ Responsive Layout | Sidebar navigation + top navbar with glassmorphism styling |
| Technology | Purpose |
|---|---|
| React 19 | UI library |
| Vite 7 | Build tool & dev server |
| Tailwind CSS 4 | Utility-first styling |
| Framer Motion | Animations & page transitions |
| Chart.js + react-chartjs-2 | Pie charts & line graphs |
| React Router DOM 7 | Client-side routing |
| Lottie React | Animated illustrations (Login/Signup) |
| SheetJS (xlsx) | Excel file generation |
| file-saver | Client-side file downloads |
| react-icons | Icon library |
| Technology | Purpose |
|---|---|
| FastAPI | Python web framework |
| WebSocket | Real-time bidirectional data streaming |
| scikit-learn (joblib) | ML model loading & inference |
| NumPy | Numerical computations |
| Uvicorn | ASGI server |
| Technology | Purpose |
|---|---|
| Random Forest Classifier | Pre-trained condition prediction model |
| StandardScaler | Feature normalization (saved as scaler.pkl) |
| joblib | Model serialization |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ FRONTEND โ
โ React 19 + Vite + Tailwind CSS + Framer Motion โ
โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ
โ โDashboard โ โ Machines โ โMachineDetails โ โ
โ โ(Charts) โ โ (Grid) โ โ(Deep Dive) โ โ
โ โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ โโโโโโโโฌโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ โ
โ โ WebSocket โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ws://localhost:8000/ws/data
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ BACKEND (FastAPI) โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ WebSocket Handler โ โ
โ โ โข Generates sensor data per condition โ โ
โ โ โข Streams 15 machines every 2s โ โ
โ โ โข Calculates RUL, health %, failure % โ โ
โ โโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ ML Model (model.pkl + scaler.pkl) โ โ
โ โ Random Forest โ Healthy/Medium/Fail โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Node.js โฅ 18
- Python โฅ 3.10
- pip (Python package manager)
git clone https://github.com/HariomAcharya17/Techno-Expand.git
cd Techno-Expandcd backend
# Install Python dependencies
pip install fastapi uvicorn joblib numpy scikit-learn websockets
# Start the backend server
uvicorn main:app --reload --port 8000The WebSocket server will be available at ws://localhost:8000/ws/data
cd frontend
# Install dependencies
npm install
# Start the development server
npm run devThe app will open at http://localhost:5173
- Open
http://localhost:5173in your browser - Sign up with a new account (stored in localStorage)
- Log in with your credentials
- Explore the Dashboard, Machines, and individual machine detail pages
Techno-Expand/
โโโ backend/
โ โโโ main.py # FastAPI app with WebSocket handler
โ โโโ package.json # Node.js deps (Express, WS โ legacy)
โ โโโ python/
โ โโโ model.pkl # Pre-trained Random Forest model
โ โโโ scaler.pkl # StandardScaler for feature normalization
โ โโโ predict.py # Standalone prediction script
โ
โโโ frontend/
โ โโโ public/
โ โ โโโ machines/ # Machine images (M1.jpg โ M15.jpg)
โ โ โโโ team/ # Team member photos
โ โโโ src/
โ โ โโโ assets/
โ โ โ โโโ Login.json # Lottie animation for login page
โ โ โ โโโ Chart.json # Lottie animation for charts
โ โ โโโ components/
โ โ โ โโโ Sidebar.jsx # Fixed sidebar navigation
โ โ โ โโโ Navbar.jsx # Top navigation bar
โ โ โ โโโ BackButton.jsx # Reusable back button
โ โ โ โโโ ProtectedRoute.jsx # Auth guard for protected pages
โ โ โโโ pages/
โ โ โ โโโ Dashboard.jsx # Main dashboard with stats & charts
โ โ โ โโโ Machines.jsx # Machine grid with live status cards
โ โ โ โโโ MachineDetails.jsx # Deep dive: sensors, history, export
โ โ โ โโโ Predict.jsx # Manual ML prediction form
โ โ โ โโโ Login.jsx # Login page with Lottie animation
โ โ โ โโโ Signup.jsx # Registration page
โ โ โ โโโ MyAccount.jsx # User profile page
โ โ โ โโโ OurMission.jsx # Project mission & vision
โ โ โ โโโ OurApproach.jsx # Technical approach timeline
โ โ โ โโโ FutureUses.jsx # Future roadmap
โ โ โ โโโ OurTeam.jsx # Team member profiles
โ โ โโโ App.jsx # Root component with routing
โ โ โโโ App.css # Global styles
โ โ โโโ main.jsx # React entry point
โ โ โโโ index.css # Tailwind imports
โ โโโ index.html # HTML entry point
โ โโโ vite.config.js # Vite + React + Tailwind config
โ โโโ package.json # Frontend dependencies
โ
โโโ package.json # Root-level Supabase dependency
| Property | Value |
|---|---|
| Algorithm | Random Forest Classifier |
| Input Features | 9 sensor metrics (temperature, pressure, vibration, humidity, current, voltage, RPM, load, noise) |
| Output Classes | 0 = Healthy, 1 = Medium, 2 = Fail |
| Preprocessing | StandardScaler normalization |
| Serialization | joblib (.pkl files) |
User Input (9 metrics) โ StandardScaler โ Random Forest โ Condition Class
โโโ Healthy (80-100% health)
โโโ Medium (40-75% health)
โโโ Fail (0-30% health)
The backend streams data for all 15 machines every 2 seconds via a single WebSocket connection:
{
"M1": {
"name": "CNC Milling Machine",
"condition": "Healthy",
"health": 95,
"failure": 5,
"sensor": {
"temperature": 42.3,
"pressure": 1.5,
"vibration": 4.2,
"humidity": 52.1,
"current": 11.8,
"voltage": 382.5,
"rpm": 1200,
"load": 45.3,
"noise": 55.2
},
"workingHours": 5432.1,
"rlu": 650.2,
"last_checked": "2026-08-15",
"next_service": "2028-05-27",
"maintenanceHistory": [...]
}
}| ID | Machine | Condition |
|---|---|---|
| M1 | CNC Milling Machine | ๐ข Healthy |
| M2 | Air Compressor | ๐ข Healthy |
| M3 | Centrifugal Pump | ๐ก Medium |
| M4 | Injection Molding Machine | ๐ข Healthy |
| M5 | Industrial Boiler | ๐ข Healthy |
| M6 | Conveyor System | ๐ด Fail |
| M7 | Hydraulic Press | ๐ข Healthy |
| M8 | Cooling Tower | ๐ด Fail |
| M9 | Industrial Robot Arm | ๐ข Healthy |
| M10 | Steam Turbine | ๐ด Fail |
| M11 | Electric Motor | ๐ข Healthy |
| M12 | Heat Exchanger | ๐ข Healthy |
| M13 | Reciprocating Pump | ๐ข Healthy |
| M14 | Industrial Chiller | ๐ข Healthy |
| M15 | Rotary Kiln | ๐ด Fail |
| Name | Role |
|---|---|
| Hariom Acharya | Full Stack Developer & Hardware Engineer |
| Kaushik Dalvi | UI/UX Designer & Hardware Support |
| Divya Balchandani | Machine Learning Engineer |
| Vraj Bagadiya | UI Helper & Resource Management |
๐ซ Group 47 โ LDRP-ITR
- โก Smart Energy Management โ Predict machine load & reduce power waste
- ๐ค Autonomous Maintenance โ ML bots auto-schedule maintenance
- โ๏ธ Cloud Integration โ Push live data to AWS / Azure / Google Cloud
- ๐ก ESP32 Hardware Integration โ Real sensor data from IoT devices
- ๐ฎ Full Predictive Factory โ Zero-downtime industry with AI-driven insights
This project is open source and available under the MIT License.
Built with โค๏ธ by Team TechnoExpand
โญ Star this repo if you found it useful!