Factory plan: risk and remaining life
Chosen machine: sensor and failure probability

AI Factory Digital Twin: Predictive Maintenance Simulator (2D)

Run a factory floor of 16 machines whose hidden lifetimes follow a Weibull law (infant mortality, random failure or wear-out, set by the shape beta). A digital twin reads a noisy vibration indicator on every inspection and updates a Bayesian posterior over each machine's lifetime: the Weibull prior truncated at its age times a Gaussian sensor likelihood. From that posterior come the remaining-useful-life estimate and the probability of failing within a horizon; raising an alarm above a threshold replaces the machine early. Move the threshold and watch precision and recall trade off, compare predictive maintenance with run-to-failure and fixed-age replacement, and read the closed-form optimal replacement age from renewal theory. The Blender factory shows each cell's lamp, vibration and replacement events live. Synthetic educational fleet, no real plant data. Eleven numerical checks: Weibull mean, conditional RUL integrals (with an erfc closed form), the data-free posterior, calibration of the posterior, precision at least theta, optimal age, and the renewal rate.

Made with 🟠 Blender