Lab build

Smart manufacturing efficiency prediction with GitOps

Classifies machine efficiency status from sensor readings, delivered with Jenkins CI and ArgoCD on Minikube.

Role
Builder, end to end
Group
MLOps
Services
AI & LLM systems · MLOps & cloud

What it does

Machine telemetry is cleaned (timestamp and machine ID dropped), operation mode and efficiency status are label-encoded and features are standardised. A logistic regression classifier predicts the efficiency status and a Flask app serves it. On a Google Cloud VM, Jenkins builds the image and pushes it to Docker Hub, and ArgoCD syncs the Kubernetes manifests to Minikube, with GitHub webhooks triggering the pipeline.

What was built

  1. 01

    Processing drops Timestamp and Machine_ID, label-encodes Operation_Mode and Efficiency_Status, and standard-scales features.

  2. 02

    LogisticRegression (max_iter 1000) is trained in a training pipeline and saved for the Flask app.

  3. 03

    Jenkins on a GCP VM checks out the repo, builds the image and pushes it to Docker Hub.

  4. 04

    Pipeline installs kubectl and the ArgoCD CLI, logs in and syncs the application to Minikube.

  5. 05

    GitHub webhooks trigger the Jenkins job on push for end-to-end automation.

The pipeline, layer by layer

Five layers, one pipeline.

  1. L1Data

    • Machine sensor CSV
    • Encoding and scaling
  2. L2Training

    • Logistic regression
  3. L3Serving

    • Flask app
  4. L4CI

    • GitHub webhook
    • Jenkins build
    • Docker Hub
  5. L5CD

    • ArgoCD sync
    • Minikube on GCP VM

Stack

  • scikit-learn
  • pandas
  • Flask
  • Docker
  • Docker Hub
  • Jenkins
  • ArgoCD
  • Kubernetes
  • Minikube
  • Google Cloud VM
  • GitHub webhooks

Next lab build · 18 / 46

Guns object detection API

Detects guns in images with a fine-tuned Faster R-CNN served through a FastAPI endpoint.

Previous: Survival prediction with feature store and drift monitoring

Need a system like this in production? Tell us about it.