IoT & Predictive ML2026 Deployed

    TechnoExpand

    A predictive-maintenance web app that reads machine sensor data, classifies equipment condition and estimates remaining useful life.

    System design

    Architecture Diagram

    Swipe
    DMA BufferMQTT PublishSubscribe TelemetryTrigger WarningESP32 ControllerDEVOPSEmbedded FFTBACKENDMQTT BrokerCLOUDAnomaly ModelAIAlert DispatcherBACKEND
    Hardware Edge
    IoT Broker
    ML Analytics Engine
    Frontend
    Backend
    Database
    AI / ML
    API
    Cloud
    Storage
    DevOps

    Overview

    What it is

    TechnoExpand looks at how industrial teams could spot early signs of machine trouble and schedule maintenance before a breakdown causes downtime. The web application works on sensor data from a Kaggle dataset. Alongside it, a separate ESP32 prototype collected live sensor readings and sent them to the cloud; the two were not integrated.

    Context

    The problem and my role

    An unexpected machine failure stops production and brings repair costs. The project asks how far sensor readings alone can indicate a machine's condition and how many days of useful operation it has left.

    My role

    Project lead for a team of four. Built the whole web dashboard and worked on the dataset and model pipeline.

    System

    How it works

    Sensor readings from the Kaggle dataset are scaled and passed to a Random Forest model that labels the machine Healthy, Medium or Fail. Backend calculations combine the readings with that label to produce health indicators, flag unusual values and estimate remaining useful life in days. The React frontend shows machine details and charts. The ESP32 prototype that sent live readings to the cloud was a separate demonstration and is not connected to this app.

    Process

    How I built it

    1. 01Used sensor data from a Kaggle dataset as the web application's data source.
    2. 02Trained a Random Forest model with parameters selected for the project to classify machine condition as Healthy, Medium, or Fail.
    3. 03Applied StandardScaler to normalize sensor inputs before model inference.
    4. 04Rebuilt the model (v2): labels from real failures, 90 per-machine time features, a split by machine so test machines are unseen, class-weighted HistGradientBoosting, tuned Warning/Critical thresholds and a separate RUL regressor.
    5. 05Used backend mathematical calculations to derive health indicators, identify unusual sensor readings, and estimate remaining useful life in days.
    6. 06Built a React dashboard for machine information and charts, with machine details, maintenance history, and Excel export.
    7. 07Separately developed an ESP32 and Arduino IDE hardware demonstration that sent live sensor readings to the cloud; it was not connected to the web application.

    Implementation

    How the system is put together

    Frontend

    4 components

    React 19
    Built the dashboard interface and reusable UI components.
    Vite 7
    Ran the local development server and built the frontend.
    Tailwind CSS 4
    Styled the responsive dashboard and project views.
    React Router DOM 7
    Handled navigation between dashboard pages.

    Charts and export

    2 components

    Chart.js / react-chartjs-2
    Displayed fleet-level charts and sensor trends.
    SheetJS (xlsx)
    Generated and downloaded spreadsheet exports.

    Backend

    3 components

    FastAPI and Uvicorn
    Served the Python backend and its WebSocket endpoint.
    WebSockets
    Pushed updates from the backend to the dashboard.
    NumPy and joblib
    Supported numeric processing and loading the saved model assets.

    Machine learning

    3 components

    scikit-learn Random Forest
    Classified machine condition into Healthy, Medium, or Fail.
    StandardScaler
    Scaled sensor inputs before they were passed to the classifier.
    HistGradientBoosting (v2)
    Predicts failure within 7 days and remaining useful life from per-machine trends.

    Separate hardware prototype

    1 component

    ESP32 and Arduino IDE
    Collected live readings and sent them to the cloud in a separate demonstration.

    Hardware

    The separate prototype

    I also built a small ESP32-based hardware demonstration that collected live readings and sent them to the cloud. This was a separate prototype, not a live data source for the web application.

    Results

    What it achieved

    • Trained a Random Forest model for three machine-condition classes: Healthy, Medium, and Fail.
    • Built a full-stack dashboard to present machine readings, condition, health indicators, and remaining-useful-life estimates.
    • Deployed a live demo on Vercel that replays real readings and model v2 predictions for 15 unseen machines, plus a case study page with all metrics.
    • Retrained the model (v2) to predict failure within 7 days and remaining useful life: ROC-AUC 0.81, F1 0.26, 10 of 18 failing machines flagged a median 6.5 days ahead, on machines it never saw (original Fail-class F1 was 0.00).
    • Created a separate ESP32 hardware prototype that collected live readings and forwarded them to the cloud.

    Reflection

    Challenges and outcome

    The hard part

    Getting the ESP32 prototype working through the Arduino IDE took a lot of trial and error, testing and adjusting the setup until it reliably sent readings. The hardware stayed separate from the web application.

    Where it stands

    The dashboard is deployed as a live demo on Vercel. It replays real daily readings of 15 machines the model never saw in training, with model v2's precomputed predictions, because shipping the full dataset made the free-tier deployment lag. The original model scored 99.9% accuracy, but on held-out data it caught none of the failures (Fail-class F1 0.00), because failures are only 0.085% of the rows. Model v2 predicts failure within 7 days, health and remaining useful life. On 234 machines it never saw in training it reached ROC-AUC 0.81, PR-AUC 0.18 (random 0.006), precision 22%, recall 30% and F1 0.26, flagged 10 of 18 failing machines a median 6.5 days before failure with 6 false alarms per 1,000 normal machine-days, and estimated RUL within 11.2 days on average near failure. The ESP32 cloud demo is a separate prototype. No production impact is claimed.