Smart Manufacturing

Digital Lean Manufacturing: How Real-Time Data Strengthens Lean Tools

Lean teaches you to see waste; IoT data lets you see it continuously. Learn how real-time machine events support value stream mapping, kaizen, SMED, andon and TPM without replacing gemba.

Digital lean manufacturing illustration combining a value stream map, kaizen board and live machine data from IoT sensors
Run this on your own MQTT brokerGet a private, managed MQTT broker on the Free plan and start from ready-made code samples.
Try it free Code samples No card required

Digital lean manufacturing combines proven lean principles with continuous, automatically collected shop floor data. In this explainer you will see how real-time machine events strengthen value stream mapping, kaizen, SMED, andon and TPM, which data each tool needs, and how to set up a lightweight data stream that supports your improvement teams without burying them in dashboards.

Lean and IoT: Complement, Not Replacement

Lean is a management system built on respect for people and the relentless removal of waste: overproduction, waiting, transport, over-processing, inventory, motion, defects and unused talent. Its tools were designed for paper, whiteboards and stopwatches, and they work.

Their weakness is sampling. A value stream map is a snapshot of one day. A stopwatch study captures a handful of cycles. Short stops of a few seconds rarely make it onto a tally sheet, and a kaizen event's result is often checked once, weeks later, by hand.

Digital lean manufacturing fixes the sampling problem, not the thinking. Machines report what they do continuously, so the team spends its time understanding causes instead of collecting numbers. Gemba walks remain essential: data tells you where to look, and going to the place tells you why.

A useful rule: digitize measurement, not judgment. Automate the counting, timing and state tracking; keep problem solving, standard work and decisions with people.

Lean Tools and the Data That Strengthens Them

Lean tool Question it answers Real-time data that helps Typical MQTT topics
Value stream mapping Where does flow stop and inventory pile up? Cycle times, uptime, WIP counts per step .../cell/state, .../cell/count, .../buffer/level
Kaizen Did the improvement actually stick? Before/after trends of the target metric Same events, compared over time
SMED How long do changeovers take, and which step is slow? Changeover start/end, step events .../cell/state with SETUP, .../changeover/step
Andon Where is help needed right now? Stop events, operator calls .../calls/open/+
TPM Which losses hurt equipment effectiveness? Downtime reasons, minor stops, speed loss .../cell/state, .../cell/reason
Standard work Is the takt being met? Cycle time per unit vs takt .../cell/cycle
Heijunka Is the mix level through the shift? Counts per product per hour .../cell/count with material

Value Stream Mapping with Live Data

A traditional current-state map needs someone to measure cycle time, changeover time, uptime and inventory at each process. With machine events, those boxes fill themselves: average and spread of cycle time monitoring data, uptime from state events, and buffer levels from sensors or counts in and out. The team still draws the map, but the data boxes show a week's reality instead of a single afternoon.

Kaizen That Proves Itself

Every kaizen event has a target metric. When that metric is already streaming, the team can set a baseline before the event and watch the effect in the days after. More importantly, it can see whether the gain erodes after a month, which is where many improvements quietly disappear.

SMED and Changeovers

Changeover reduction depends on knowing how long changeovers really take and which internal steps dominate. If the machine or an operator tablet publishes a SETUP state at the start and RUNNING at the first good part, every changeover is timed automatically. Optional step events ("tool removed", "first article approved") reveal which steps to convert from internal to external.

Andon and TPM

A digital andon system turns the classic cord into an event that reaches the right person and records response time. TPM's focus on the six big losses maps directly to state and reason data, which is the same data used in machine downtime tracking and OEE.

A Small Example: Timing Every Changeover

The following Python script listens to machine state events and logs the duration of every changeover, the raw material for a SMED study. It uses paho-mqtt 2.x and the public MQTT test broker; the public area is readable by anyone, so use simulated data and your own random prefix.

import csv
import json
import time
import uuid
from datetime import datetime, timezone

import paho.mqtt.client as mqtt

BASE = "connectmq/demo/lean-8d2f/line1"
setup_started = {}

def on_connect(client, userdata, flags, reason_code, properties):
    client.subscribe(f"{BASE}/+/state", qos=1)

def on_message(client, userdata, msg):
    machine = msg.topic.split("/")[-2]
    state = json.loads(msg.payload)["state"]
    now = time.time()
    if state == "SETUP" and machine not in setup_started:
        setup_started[machine] = now
    elif state == "RUNNING" and machine in setup_started:
        minutes = (now - setup_started.pop(machine)) / 60
        stamp = datetime.now(timezone.utc).isoformat(timespec="seconds")
        with open("changeovers.csv", "a", newline="") as f:
            csv.writer(f).writerow([stamp, machine, round(minutes, 1)])
        print(f"{machine}: changeover took {minutes:.1f} min")

client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2,
                     client_id=f"smed-{uuid.uuid4().hex[:8]}")
client.on_connect = on_connect
client.on_message = on_message
client.connect("broker.connectmq.com", 1883, keepalive=30)
client.loop_forever()

Simulate a changeover on press 1:

mosquitto_pub -h broker.connectmq.com -p 1883 -i lean-sim-8d2f -t "connectmq/demo/lean-8d2f/line1/press1/state" -m '{"state":"SETUP"}'
mosquitto_pub -h broker.connectmq.com -p 1883 -i lean-sim-8d2f -t "connectmq/demo/lean-8d2f/line1/press1/state" -m '{"state":"RUNNING"}'

After a few weeks the CSV shows the distribution of changeover times per machine, which is a far stronger starting point for a SMED workshop than a single observed changeover.

Where to Start with Digital Lean Manufacturing

Start where your lean program already has momentum. If the team runs a weekly kaizen on a specific line, instrument that line's bottleneck first so the next event has a live baseline. If changeovers dominate your losses, time them automatically before the next SMED workshop. Avoid starting with a plant-wide rollout; a single machine with trustworthy data teaches more about definitions, sensor placement and operator involvement than a dozen machines with doubtful data.

A practical sequence for the first three months:

  1. Month one: state and counts on the bottleneck, a screen at the line, operators adding stop reasons.
  2. Month two: use the data in one kaizen or SMED event and track the result daily.
  3. Month three: extend to the upstream and downstream processes to complete a live value stream view.

With ConnectMQ as the broker, each new machine simply publishes under the same topic tree, and the existing screens and scripts pick it up.

Pitfalls of Digital Lean

  1. Dashboards instead of gemba. A screen in an office does not replace standing at the line. Use data to choose where to go, then go.
  2. Measuring everything. Collect what supports a current improvement question. Extra data creates maintenance work and noise.
  3. Losing operator ownership. Visual management works because the team owns the board. Put live data on screens at the line, and let operators add reasons and comments.
  4. Automating waste. Digitizing a bad process makes the bad process faster. Improve the flow first, then automate the measurement.
  5. Blaming with data. If machine data is used to blame individuals, people will find ways to make it wrong. Use it to improve systems.
  6. Inconsistent definitions. Agree on what counts as a stop, a changeover and a good part before comparing lines.

Building the Data Backbone

Digital lean needs a simple, reliable way to get events from machines, sensors and operator devices to whoever needs them: line screens, improvement teams' notebooks and dashboards. An MQTT broker in the cloud does exactly that with a publish/subscribe model, so adding a new consumer for the next kaizen does not touch the machines.

ConnectMQ provides this as a managed MQTT broker: MQTT 3.1.1 and 5.0, TLS and secure WebSocket for line displays, and a portal with a live topic explorer, dashboard and a devices view organized by ISA-95 levels. For how the same data feeds broader plant goals, read the smart manufacturing guide.

Start Your Digital Lean Pilot on ConnectMQ

Pick one bottleneck machine and one improvement question, create a free Serverless broker at app.connectmq.com with no credit card, and let the data collect itself while your team focuses on solving problems.

Frequently Asked Questions

Does digital lean manufacturing replace lean tools?

No. It feeds the same tools (value stream maps, kaizen, SMED, andon, TPM) with continuous data instead of manual samples. The thinking and problem solving remain human work.

What is the first data to collect for digital lean?

Machine state and part counts on the bottleneck. They give uptime, cycle time and changeover duration, which support most lean tools immediately.

Is digital lean the same as Lean 4.0?

The terms are used interchangeably for applying Industry 4.0 technologies such as IoT and real-time analytics to lean practice. The principles stay the same.

How do I keep operators engaged with digital lean?

Show the data at the line, let operators add reasons and comments, and use the data to fix processes rather than to judge people.

Related articles

OEE vs TEEP vs OOE: Which Metric Should You Use?

OEE, OOE and TEEP share the same performance and quality factors but measure against different time bases. This comparison works through one example and lists the MQTT signals each metric needs.

7 min read

All articles →

Your private MQTT broker is a few clicks away

Create an account, get your broker credentials and connect your first device — no servers to install, patch or scale.