Analytics & ML · Study deck

IoT Machine Learning Pipeline

A bearing's vibration becomes useful to maintenance only after sampling, cleaning, machine-learning feature work, machine-learning model training, pipeline evaluation, and deployment all agree on what one record means.

Data Dora is your guide for this deck.

modelingpipeline
Data Dora, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: The pipeline release record should include source population, label rule, split rule, machine-learning feature code version, machine-learning model artifact hash, pipeline evaluation metrics, deployment runtime, and monitoring thresholds.
  • Explain: They allow a later library or firmware change to prove that collection, preparation, fusion, and deployed inference still agree before the full pipeline evaluation is repeated.
  • Explain: The early path requires synchronized, versioned feature vectors before training; the late path requires calibrated per-sensor outputs and a versioned vote or weighted combiner.
  • Explain: A two-second vibration window has 200 samples but only two temperature observations.
iotclass.org

Major section

Carry One Bearing Event Through Seven Stages

Training fits only the training partition.

  • Pipeline evaluation tests held-out bearings or time periods.
  • A split by random window can place near-identical windows from one machine into both training and test sets.
  • Instead, hold out two entire machines: eight machines give 800 training or validation windows, and two give 200 test windows.

Why it matters

The arithmetic is simple, but the grouping prevents machine identity from leaking into the score.

Seven-step IoT machine learning pipeline from problem definition to monitoring feedback
Seven-step IoT machine learning pipeline from problem definition to monitoring feedback
iotclass.org

Major section

Carry One Bearing Event Through Seven Stages (continued)

Figure: Early and late sensor-fusion pipelines differ in whether adds a branch in the evidence chain.

  • Decision-level fusion joins explicit alarms or states.
  • A two-second vibration window has 200 samples but only two temperature observations.
  • A notebook screenshot leaves too many stages implicit.
iotclass.org

Major section

Carry One Bearing Event Through Seven Stages (continued)

Attempt to fit scaling on the held-out machines and expect the leakage guard to fail.

  • Early fusion needs a named alignment rule; repeating one temperature value 100 times does not create 100 independent measurements.
  • A late-fusion design can preserve separate machine-learning feature clocks, then combine the vibration score with a temperature rule.
  • It may limit false negatives on held-out machines, peak edge memory, inference time, or alert volume.
iotclass.org

Major section

Carry One Bearing Event Through Seven Stages (continued)

The pipeline release record should include source population, label rule, split rule, machine-learning feature code version, machine-learning model artifact hash, pipeline evaluation metrics, deployment runtime, and monitoring thresholds.

  • If maintenance happens after the pipeline sensor event, a time-aware join must not attach that outcome to windows recorded after the repair.
  • They allow a later library or firmware change to prove that collection, preparation, fusion, and deployed inference still agree before the full pipeline evaluation is repeated.
  • The pipeline can then report a failed requirement honestly instead of choosing the most flattering metric after pipeline evaluation.
iotclass.org

Major section

Start With the Story

Machine learning means using examples to build a rule that can score new data.

  • Firmware is the software stored on a device.
  • A team wants a warning, but it must show why each warning deserves action.
  • Missing readings, late repair notes, new firmware, or a changed mounting point can also alter the result.
  • Train again only with cause.
iotclass.org

Major section

Contracts, Leakage, and Drift

The early path requires synchronized, versioned feature vectors before training; the late path requires calibrated per-sensor outputs and a versioned vote or weighted combiner.

  • The pipeline release record must test the chosen join point under sensor loss and drift.
Early and late sensor-fusion pipelines differ in whether features or model decisions are combined.
Early and late sensor-fusion pipelines differ in whether features or model decisions are combined.
iotclass.org

Major section

Summary

An IoT ML pipeline is an evidence chain from decision target through data, labels, features, training, evaluation, deployment, monitoring, and feedback.

  • Data collection must record sensor meaning, context, label process, missingness, and out-of-scope conditions before training results are trusted.
  • Feature engineering must be reproducible at inference time and must avoid future information, unit drift, inconsistent scaling, and hidden leakage.
  • Deployment needs a versioned artifact bundle, fallback behavior, monitoring, feedback capture, rollback path, owner, and retraining gate.
iotclass.org

Deck summary

Key takeaways

Training fits only the training partition.

  • Figure: Early and late sensor-fusion pipelines differ in whether adds a branch in the evidence chain.
  • Attempt to fit scaling on the held-out machines and expect the leakage guard to fail.
  • The pipeline release record should include source population, label rule, split rule, machine-learning feature code version, machine-learning model artifact hash, pipeline evaluation metrics, deployment runtime, and monitoring thresholds.
  • Machine learning means using examples to build a rule that can score new data.
iotclass.org

Retrieval practice

Recall check 1 of 3

Data Dora says: answer from memory, then check your reasoning.

Q1A team says its IoT ML pipeline is ready because model training produced a high score on a random split. What should the review ask first?

AWhether the random split used enough rows and a tuned model, while leaving deployment ownership, fallback, monitoring, and retraining for later.
BWhether the dashboard can show one high score and the notebook can rerun, even if labels, features, and split strategy differ from deployment.
CWhether the decision, data sources, labels, feature recipe, split strategy, metric, deployment path, fallback, monitoring owner, and retraining trigger match real use.
DWhether the model family is advanced enough, because feature contracts, operator decisions, monitoring, and fallback can be handled after release.
Show answer

Answer: C A high score is useful only if the pipeline evidence supports the deployed decision boundary.

iotclass.org

Retrieval practice

Recall check 2 of 3

Data Dora says: answer from memory, then check your reasoning.

Q2A leak-detection pipeline reports high overall accuracy, but leak examples are rare and labels arrive after inspection. What evidence is missing before release?

AA larger normal dataset and smoother accuracy chart, because many non-leak examples prove rare leaks and delayed labels are covered.
BRare-event and operations evidence: class balance, missed-leak recall, false alarms, label delay, threshold behavior, fallback, alert owner, and retraining trigger.
CA larger model and lower threshold chosen from the same aggregate score, without separating rare leaks, label timing, or alert ownership.
DA dashboard approval note saying inspectors will investigate later, with no class-balance, fallback, false-alarm, or retraining evidence.
Show answer

Answer: B Overall accuracy can hide rare-event failures and delayed-label problems.

iotclass.org

Retrieval practice

Recall check 3 of 3

Data Dora says: answer from memory, then check your reasoning.

Q3A pipeline evaluates well because feature windows include readings from after an event, but deployed inference must decide before those readings exist. What is the main issue?

AThe feature contract leaks future information into evaluation, so the deployed inference boundary is unsupported.
BThe longer windows give more stable features, so their better validation result justifies using the shorter live windows.
COnly the dashboard should change, because feature timing cannot affect model validity.
DOnly retraining frequency matters, because data leakage is solved by training more often.
Show answer

Answer: A Training and inference must use information available at the same decision time.

iotclass.org

Print reference

Answers

Answer key.

  1. C · A high score is useful only if the pipeline evidence supports the deployed decision boundary.
  2. B · Overall accuracy can hide rare-event failures and delayed-label problems.
  3. A · Training and inference must use information available at the same decision time.
iotclass.org