Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Chapter 26 — Assignment Project: Predictive Maintenance for a Pump Fleet

Open in Colab

Overview

A water utility runs 40 pumps. Each pump is healthy, then degrading, then failing, and its sensors report every hour a vibration level and a bearing temperature. Maintenance logs give the true state of 10 pumps; the other 30 have only their sensor readings. The utility wants to know, every hour, how each pump is doing, to be warned before it fails, and to estimate how long it has left.

PartTaskPoints
AA supervised HMM: filtering, smoothing and one-moment classification20
BLearning from the unlabelled pumps with Baum–Welch25
CAn early-warning alarm20
DRemaining useful life20
ERecommendation15

Part A — A Supervised HMM (20 points)

  1. From the 5 pumps of TRAIN_L, learn an HMM by counting: initial distribution, transition matrix (pseudo-count 0.1), and for each state the mean and standard deviation of each sensor (Gaussian emissions, the two sensors independent given the state).

  2. On the 5 pumps of TEST_L, report the accuracy of: (a) classifying each hour from its own readings alone (Gaussian Bayes with the state frequencies as prior); (b) filtering; (c) smoothing. Plot, for one test pump, the true state and the filtered and smoothed P(failing)P(\text{failing}).

Your comments:


Part B — Learning from the Unlabelled Pumps (25 points)

Most pumps have no logs. Implement Baum–Welch for this Gaussian HMM (the M-step re-estimates the means and standard deviations as averages weighted by the smoothed state probabilities) and learn from the 30 pumps of UNLABELLED alone, from two starts:

  • a random start (random means within the range of the readings, any transition matrix);

  • an informed start: states ordered by severity (means increasing with the state), a left-to-right transition matrix (a pump never gets better).

Compare the two results with the supervised model of Part A: the learned parameters, the log-likelihood of TEST_L, and the smoothing accuracy on TEST_L (match the learned states to the true ones by their mean vibration).

Your comparison:


Part C — An Early-Warning Alarm (20 points)

An alarm can only use the past: it is raised at the first hour when the filtered P(failing)P(\text{failing}) exceeds a threshold. Using the supervised model, on all 10 labelled pumps:

  1. For thresholds 0.3, 0.5, 0.7 and 0.9, report the number of false alarms (raised before the pump is failing) and, for the pumps that fail, the average delay between the true start of failing and the alarm.

  2. The utility wants the alarm before failure: repeat with an alarm on P(degrading or failing)P(\text{degrading or failing}). What is the average warning time before failure, and how many pumps raise it while still healthy?

Your answer:


Part D — Remaining Useful Life (20 points)

For a pump not yet failing, the expected number of hours until it enters failing follows from the transition matrix: with A′A' the transitions among {healthy, degrading}, the vector of expected hitting times is h=(I−A′)−11h = (I - A')^{-1}\mathbf{1}. Given a belief bb over the two states (filtered, renormalised without failing), the estimate is b⋅hb \cdot h.

  1. Compute hh from the supervised model. Interpret its two numbers.

  2. For every hour before failure of the labelled pumps, estimate the remaining useful life, and compare with the truth: mean absolute error, overall and by true state. Compare with the naive estimate “the average remaining life over all hours”.

Your answer:


Part E — Recommendation (15 points)

Write half a page to the utility: which model should run on the pumps (supervised, learned without labels, or both), which alarm and threshold, and how much warning they can expect. What should they log from now on to improve it? Support each point with your numbers.

Grading Rubric

CriterionExcellentAdequateInsufficient
A (20)correct model; three accuracies; the plot readaccuracies onlymissing
B (25)Baum–Welch from both starts; parameters, likelihood and accuracy compared and explainedone startmissing
C (20)the trade-off between false alarms and delay, for both alarmsone alarmmissing
D (20)hitting times interpreted; errors by state, against the naive estimateoverall error onlymissing
E (15)a recommendation grounded in the numbersgenericmissing