Nett P-F interval
The task is worth doing only if the nett P-F interval is longer than the time needed to act: to order the part, to plan a stop, and to do the work.
A technician walks the inspection round on the first Monday of every month, writes “OK” beside the conveyor bearing, and nine days later the bearing seizes and the line stops for five hours. Nobody was careless: the fault could not be heard on the day of the round, and it reached failure before the next one. Another site pays for a weekly check of a part that gives two months of warning. How often to look is not a matter of habit or of how important the machine is. It follows from how long a fault takes to grow from its first sign to the failure, and this lesson shows how to work with that time. #PFInterval #ConditionMonitoring #InspectionFrequency
By the end of this lesson, you will be able to:
The conveyor of the cold store carries every pallet that enters or leaves. A stop without warning costs 12,000 currency units an hour, and a failed bearing takes about five hours to change when nothing was prepared. In a planned stop the same change takes two technician hours, with the part on the bench and no pallets waiting.
Once a month a technician listens to each machine, looks at it, and fills in a sheet. The conveyor bearings have twice failed between two rounds with “OK” on the sheet. The manager proposes a weekly round, or a vibration instrument. Neither proposal says how much warning a bearing gives, and that is the number that judges them.
A rolling bearing rarely fails in an instant. A small defect starts in a raceway, grows over weeks, and changes the vibration long before a person can hear it. An inspection prevents the failure only if a visit falls inside that time, with enough of it left to do the work.
Many failure modes do not happen in one moment. Wear, fatigue cracks, corrosion, a contact that heats, a seal that starts to leak: each begins small and grows while the machine still works. A tyre with a slow leak is the everyday case: it looks soft days before it is flat, and a driver who looks at it often enough sees it in time.
The fault starts at a moment nobody can observe. At point P (potential failure) a chosen method can detect it. At point F (functional failure) the item can no longer do what the user needs. The P-F interval is the time from P to F.
The P-F interval says nothing about when the fault starts (a bearing can start to fail at 4,000 hours or at 20,000), only how long the item lasts after the fault can be seen. So a task based on condition can work even for failures with no relation to age.
Point P depends on the method used to look, not on the fault alone. A sensitive method finds a small defect early, far from F. A coarse method finds it only when it is large, close to F.
For a rolling bearing the usual order is: a change in the vibration, then metal particles in the lubricant, a rise in temperature, noise a person can hear, and last a housing hot to the hand. Each later sign means more damage done and less time left.
The figures in the drawing are examples, used for the conveyor bearing in this lesson. The P-F interval of a real failure mode must come from the site’s records, the maker, or people who have watched that failure develop; it differs with the speed, the load and the size of the machine.
A task that inspects for a potential failure and acts only when one is found is an on-condition task: the item stays in service on condition that it passes. It is technically possible only when four things are true:
The last item needs its own name.
Suppose a fault can be detected for 8 weeks before the failure and the bearing is checked every 4 weeks. Point P can fall at any moment between two visits. At best it falls just before a visit and almost 8 weeks remain. At worst it falls just after one, waits 4 weeks to be found, and 4 weeks remain.
The nett P-F interval is the shortest time that can remain between the discovery of the potential failure and the functional failure:
Nett P-F interval
The task is worth doing only if the nett P-F interval is longer than the time needed to act: to order the part, to plan a stop, and to do the work.
A common rule sets the task interval at half the P-F interval. With an interval equal to the P-F interval a visit always falls inside the window, but the nett P-F interval can be zero: the fault is found on the day of the failure. With half, every fault meets at least one visit and at least half the P-F interval is left to act. If the time needed to act is short, a longer interval can be justified. If it is long, half is not enough, and the interval must be
The rule of one half is easy to remember. The inequality is the real requirement.
No failure mode has exactly the same P-F interval each time. If it varies between 3 and 9 weeks, a rule certain to catch every fault must use the shortest value: half of 3 weeks. Planning with the mean of 6 weeks leaves the fast faults uncovered.
A simple model gives the chance of catching a fault. Let
When
This model assumes a visit inside the window always sees the fault. A person in a hurry, or a reading at the wrong point, can miss it. If each visit sees a fault that is present with a chance
Three cases often fail these questions. A lamp, a fuse or an electronic board that works and then does not gives no window for a visit. A warning of sometimes two days and sometimes six months allows no interval that is both safe and affordable. And a fault found three days before the failure helps little when the part takes three weeks to arrive, unless it is held in stock.
One exception must be stated. When the failure has a safety consequence, the last question of the chart is not a question of cost. The task must reduce the risk to a level that a proper safety assessment accepts, and that assessment is outside this course.
A sensor fixed to the machine and read every hour makes the task interval one hour. The nett P-F interval is the P-F interval less one hour, and the question of how often to look disappears.
A new question takes its place. A person with an instrument judges each reading; a monitor only compares the reading with an alarm level, and “finds” the potential failure when the reading passes it. So for a monitor point P is the moment the fault has grown enough to pass the alarm, and the alarm level decides the P-F interval.
A high alarm level is safe from false alarms and finds the fault late. A low one finds it early, but if it lies inside the normal scatter of the readings it alarms when nothing is wrong. People stop answering an alarm that is often false, and then the monitor protects nothing.
Two things improve this balance. First, set the alarm from the machine’s own normal readings, not from a general table that must suit every machine of a class. Second, reduce the scatter before comparing: the mean of a day’s 24 readings scatters much less than one reading, so its alarm level can sit much closer to normal. The cost is a delay of up to one day, small against a P-F interval of weeks.
Limits calculated from the process itself, and their false alarm rate, are the subject of control charts in statistics. The same ideas apply to an alarm level on a vibration trend.
Vibration. Half of 8 weeks is a task interval of 4 weeks. The nett P-F interval is at least
Visits a year by vibration.
Noise. Half of 1 week is a task interval of 0.5 week, which is 3.5 days. The nett P-F interval is at least 0.5 week. ✅
Judge the noise task. It needs
The window. Noise can be heard for 1 week before the failure. Visits are 4 weeks apart. ✅
Chance that a visit falls inside the window. Point P falls at a random moment in the 4 weeks between two visits. A visit hears the fault only if P falls in the last week before it.
The monthly round by ear catches one fault in four. ✅
With time to act. With 1 week needed to act and a window of 1 week, the chance of finding the fault in time is
Split the faults in two groups. With
Chance for the short group. For a fault with P-F interval
Caught at all.
✅
Caught with at least 1 week left. Now the useful window is
✅
Caught with at least 2 weeks left. The useful window
✅
Read the result. A monthly reading finds 98 faults in 100, but only 92 in 100 with the week that the site needs. ✅
The requirement. Every fault must be found with 1 week left. The shortest P-F interval is 3 weeks, so the interval must satisfy
The rule of one half on the shortest value. Half of 3 weeks is 1.5 weeks. Both 1.5 and 2 weeks give a chance of 1.000 of finding the fault with 1 week left. A visit every 2 weeks is 25 visits a year. A visit every 3 weeks gives 0.972. ✅
A visit that does not always see the fault. Suppose that each visit sees a fault that is present with a chance of 0.8 (a reading at a poor point, a busy day). The script follows 400,000 faults. With a visit every 4 weeks, the chance of finding the fault with 1 week left falls from 0.917 to 0.787. With a visit every 2 weeks it is 0.951, because most faults are then seen by two or more visits. ✅
Decision. Take a vibration reading every 2 weeks. If the site can only afford the monthly visit, it must accept that about one fault in twelve is missed with perfect visits and about one in five with imperfect ones. ✅
Method. The script draws 400,000 faults. Each has a P-F interval drawn evenly between 3 and 9 weeks and a wait to the next visit drawn evenly between 0 and 4 weeks. The warning that is left is the difference. ✅
Result. Found at all: 0.979. Found with 1 week left: 0.917. Found with 2 weeks left: 0.812. All three agree with the hand calculation. ✅
One more number. For the faults that are found, the mean warning is 4.09 weeks. The mean hides the faults found with less than a week left, and those not found. ✅
Model. The true level
Growth rate. The level reaches 9.0 mm/s at 1,344 hours, so
This is 0.12 percent an hour. ✅
Doubling time.
Time to reach a level. Inverting the model, a level
✅
Time to reach the alarm.
Warning.
False alarms. The alarm is
Read the result. The sensor is read 765 times while the fault grows, and the monitor says nothing. More than half of the 8 weeks is lost, although the interval between readings is one hour. ✅
Alarm level.
Time to reach it.
Warning.
False alarms. For a normal distribution the chance that one reading is more than 3 standard deviations above the mean is 0.00135. In a year of 8,400 readings that is
About one a month, each with nothing wrong. ✅
Scatter of a daily mean. The mean of 24 independent readings has a standard deviation of
Alarm level.
Time to reach it.
Warning.
False alarms. There are 350 daily means in a year:
A simulated record. The script makes 4,008 healthy hourly readings (167 days) and then the 1,344 hours of the fault, with the stated scatter, and applies the three rules. ✅
Fixed alarm. No false alarm. First alarm 663 hours after the first change, warning 681 hours (4.1 weeks). It comes about 100 hours before the true level reaches 4.5 mm/s, because one reading with high scatter passes the level first. ✅
Baseline alarm on single readings. 4 false alarms in the 4,008 healthy hours (the expected number is
Baseline alarm on the daily mean. No false alarm in 167 days. First alarm 71 hours after the first change, at the end of the third day, warning 1,273 hours (7.6 weeks). ✅
The fixed alarm with a visit every 4 weeks. The fixed level is also what a person with a hand instrument and a general table would use. The window from 4.5 mm/s to failure is 579 hours, and visits are 672 hours apart. The chance that a visit falls inside the window is
The script computes the intervals and the chances of Application 1 by formula and by simulation, then the three alarm rules of Application 2 by formula and on one simulated record. It saves one plot with the chance of catching the fault against the time between visits, and the simulated record with the three alarm levels.
"""P-F interval: task intervals, the chance of catching a fault, and alarm thresholds."""import numpy as npimport matplotlib.pyplot as plt
WEEK = 168.0 # hours in a week
# ---------- Application 1: a bearing inspected on a route ----------def chance(T, lo, hi, act=0.0, n=600001): """Chance that a visit every T weeks finds the fault with at least `act` weeks left before failure. The P-F interval is uniform between lo and hi weeks, and point P falls at a random moment between two visits.""" pf = np.linspace(lo, hi, n) return np.clip((pf - act) / T, 0.0, 1.0).mean()
print("Application 1: bearing on the conveyor")for name, pf in (("vibration", 8.0), ("noise", 1.0)): T = pf / 2.0 print(f" {name}: P-F interval {pf:.0f} wk, task interval {T:.1f} weeks " f"({T * 7:.1f} days), nett P-F at least {pf - T:.1f} weeks, " f"{50.0 / T:.1f} visits a year")print(f" noise, visit every 4 weeks: chance of a visit inside the 1 week window " f"{chance(4.0, 1.0, 1.0):.3f}")
print(" P-F interval uniform between 3 and 9 weeks:")for T in (4.0, 3.0, 2.0, 1.5): row = ", ".join(f"{a:.0f} wk to act {chance(T, 3.0, 9.0, a):.3f}" for a in (0, 1, 2)) print(f" visit every {T:.1f} weeks: {row}")exact = ((4.0**2 - 3.0**2) / (2 * 4.0) + (9.0 - 4.0)) / 6.0print(f" by hand, every 4 weeks, any warning: {exact:.4f}")
# an inspection that does not always see a fault that is presentrng = np.random.default_rng(5)N = 400000pf = rng.uniform(3.0, 9.0, N) # P-F interval of each fault, weekswait = rng.uniform(0.0, 4.0, N) # time from point P to the next visitleft = pf - wait # warning left at the first visit after Pprint(f" simulation of {N} faults, visit every 4 weeks:")print(f" found at all {np.mean(left >= 0):.3f}, with 1 week left " f"{np.mean(left >= 1):.3f}, with 2 weeks left {np.mean(left >= 2):.3f}")print(f" mean warning when found {left[left >= 0].mean():.2f} weeks")for p_see in (1.0, 0.8): for T in (4.0, 2.0): w = rng.uniform(0.0, T, N) found = np.zeros(N, bool) k = 0 while True: t_visit = w + k * T # weeks after point P ok = (pf - t_visit >= 1.0) & ~found # still 1 week to act if not (pf - t_visit >= 1.0).any(): break found |= ok & (rng.random(N) < p_see) k += 1 print(f" each visit sees the fault with chance {p_see:.1f}, every " f"{T:.0f} weeks: found with 1 week left {found.mean():.3f}")
# ---------- Application 2: a reading every hour ----------V0, VF = 1.8, 9.0 # mm/s: healthy level and level at functional failureLIFE = 8.0 * WEEK # hours from the first change to failureSD = 0.25 # mm/s: scatter of one hourly readinggrowth = np.log(VF / V0) / LIFE # per hour
def crossing(level): """Hours after the first change at which the true level reaches `level`.""" return np.log(level / V0) / growth
z3 = 0.00135 # chance that a normal value is above mean + 3 sdrules = (("fixed alarm 4.50 mm/s, one reading", 4.5, 1, 0.0), ("baseline + 3 sd, one reading", V0 + 3 * SD, 1, z3 * 8400), ("baseline + 3 sd, daily mean", V0 + 3 * SD / np.sqrt(24), 24, z3 * 350))print("Application 2: vibration velocity read every hour")print(f" growth {100 * growth:.4f} % an hour, level doubles in " f"{np.log(2) / growth / WEEK:.2f} weeks")for name, level, block, fa in rules: tc = crossing(level) print(f" {name}: alarm at {level:.2f} mm/s, reached after {tc:.0f} h, " f"warning {LIFE - tc:.0f} h ({(LIFE - tc) / WEEK:.1f} weeks), " f"false alarms a year {fa:.1f}")window = LIFE - crossing(4.5)print(f" visit every 4 weeks with the 4.50 alarm: window {window:.0f} h of " f"{4 * WEEK:.0f} h, chance of a visit inside it {window / (4 * WEEK):.2f}")
# one simulated record: 4,000 healthy hours, then the faultrng = np.random.default_rng(24)HEALTHY = 4008 # hours before the first change (167 days)t = np.arange(HEALTHY + int(LIFE))true = np.where(t < HEALTHY, V0, V0 * np.exp(growth * (t - HEALTHY)))read = true + rng.normal(0.0, SD, t.size)daily = read.reshape(-1, 24).mean(axis=1)print(" one simulated record (seed 24):")for name, level, block, fa in rules: x = read if block == 1 else daily hit = np.where(x > level)[0] * block + (block - 1) # hour at which it is known false = int((hit < HEALTHY).sum()) first = hit[hit >= HEALTHY][0] - HEALTHY print(f" {name}: {false} false alarms in {HEALTHY} healthy hours, first " f"alarm {first} h after the change, warning {LIFE - first:.0f} h " f"({(LIFE - first) / WEEK:.1f} weeks)")
# ---------- Plot ----------fig, ax = plt.subplots(2, 1, figsize=(8, 8))Ts = np.linspace(0.5, 8.0, 76)for a in (0, 1, 2): ax[0].plot(Ts, [chance(T, 3.0, 9.0, a, 6001) for T in Ts], label=f"{a} weeks to act")ax[0].axvline(4.0, color="gray", linewidth=0.8, linestyle="--")ax[0].set_xlabel("time between visits (weeks)")ax[0].set_ylabel("chance of catching the fault")ax[0].set_title("P-F interval uniform between 3 and 9 weeks")ax[0].legend()sel = t >= HEALTHY - 336ax[1].plot((t[sel] - HEALTHY) / WEEK, read[sel], ".", markersize=2, label="hourly reading")ax[1].plot((t[sel] - HEALTHY) / WEEK, true[sel], color="black", label="true level")for name, level, block, fa in rules: ax[1].axhline(level, linewidth=0.8, linestyle="--", color="gray")ax[1].set_xlabel("weeks after the first change")ax[1].set_ylabel("velocity (mm/s)")ax[1].set_title("Three alarm levels on the same fault")ax[1].legend()fig.tight_layout()fig.savefig("pf_interval.png", dpi=120)print("Saved pf_interval.png")Expected output
Application 1: bearing on the conveyor vibration: P-F interval 8 wk, task interval 4.0 weeks (28.0 days), nett P-F at least 4.0 weeks, 12.5 visits a year noise: P-F interval 1 wk, task interval 0.5 weeks (3.5 days), nett P-F at least 0.5 weeks, 100.0 visits a year noise, visit every 4 weeks: chance of a visit inside the 1 week window 0.250 P-F interval uniform between 3 and 9 weeks: visit every 4.0 weeks: 0 wk to act 0.979, 1 wk to act 0.917, 2 wk to act 0.812 visit every 3.0 weeks: 0 wk to act 1.000, 1 wk to act 0.972, 2 wk to act 0.889 visit every 2.0 weeks: 0 wk to act 1.000, 1 wk to act 1.000, 2 wk to act 0.958 visit every 1.5 weeks: 0 wk to act 1.000, 1 wk to act 1.000, 2 wk to act 0.986 by hand, every 4 weeks, any warning: 0.9792 simulation of 400000 faults, visit every 4 weeks: found at all 0.979, with 1 week left 0.917, with 2 weeks left 0.812 mean warning when found 4.09 weeks each visit sees the fault with chance 1.0, every 4 weeks: found with 1 week left 0.917 each visit sees the fault with chance 1.0, every 2 weeks: found with 1 week left 1.000 each visit sees the fault with chance 0.8, every 4 weeks: found with 1 week left 0.787 each visit sees the fault with chance 0.8, every 2 weeks: found with 1 week left 0.951Application 2: vibration velocity read every hour growth 0.1197 % an hour, level doubles in 3.45 weeks fixed alarm 4.50 mm/s, one reading: alarm at 4.50 mm/s, reached after 765 h, warning 579 h (3.4 weeks), false alarms a year 0.0 baseline + 3 sd, one reading: alarm at 2.55 mm/s, reached after 291 h, warning 1053 h (6.3 weeks), false alarms a year 11.3 baseline + 3 sd, daily mean: alarm at 1.95 mm/s, reached after 68 h, warning 1276 h (7.6 weeks), false alarms a year 0.5 visit every 4 weeks with the 4.50 alarm: window 579 h of 672 h, chance of a visit inside it 0.86 one simulated record (seed 24): fixed alarm 4.50 mm/s, one reading: 0 false alarms in 4008 healthy hours, first alarm 663 h after the change, warning 681 h (4.1 weeks) baseline + 3 sd, one reading: 4 false alarms in 4008 healthy hours, first alarm 120 h after the change, warning 1224 h (7.3 weeks) baseline + 3 sd, daily mean: 0 false alarms in 4008 healthy hours, first alarm 71 h after the change, warning 1273 h (7.6 weeks)Saved pf_interval.png1. A gearbox gives a P-F interval of 6 weeks by oil analysis. The time needed to act is 2 weeks. Find the task interval by the rule of one half, the nett P-F interval, and the longest task interval that still leaves the time to act.
Half of 6 weeks is 3 weeks. The nett P-F interval is
2. A belt shows fraying for 10 days before it breaks, every time. It is inspected every 14 days. Find the chance that an inspection sees the fraying, and the chance that it sees it with at least 3 days left.
The wait from P to the next inspection is spread evenly over 14 days. Seen at all:
3. The P-F interval of a pump seal leak is spread evenly between 2 and 6 weeks. The pump is inspected every 3 weeks. Find the chance that a fault is found at all, and with at least 1 week left.
At all: faults between 3 and 6 weeks (three quarters) are certain, and faults between 2 and 3 weeks (one quarter) have a mean chance of
4. A fan bearing has a healthy vibration level of 2.0 mm/s. After a fault starts, the level grows exponentially and reaches 10.0 mm/s at failure after 12 weeks. Find the warning given by an alarm at 6.0 mm/s and by an alarm at 3.0 mm/s.
The time to reach a level
5. A sensor is read every 10 minutes for 8,400 hours a year. The readings of a healthy machine are independent and normal. (a) How many false alarms a year does an alarm at the mean plus 3 standard deviations give? (b) How many standard deviations above the mean must the alarm be for one false alarm a year? (c) What does the result say about alarms on single readings?
(a) There are scipy.stats.norm.isf). (c) The more often a single reading is tested, the higher the level must be for the same number of false alarms, and the later the fault is found. Test an average over a longer time, not each reading.
A conveyor bearing gives about 1 week of noise before it seizes, and the site needs 1 week to get a bearing and plan a stop. The monthly round by ear keeps missing the fault. If the round becomes weekly, what happens?
Each run is one fault on the conveyor bearing. Point P falls at a random moment between two visits, and the fault fails at F, one P-F interval later. The first visit after P finds it. Green: found with the time to act still left. Gold: found, but too late to plan the change. Coral: no visit before F. The bars count every fault so far; the thin marks on them are the chances by the formula of the lesson.
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. Oil analysis finds a gearbox fault 6 weeks before it fails, every time. The site needs 2 weeks to plan and do the repair. With perfect sampling, what is the longest sample interval that still finds every fault in time?
2. A bearing on a critical pump fails about once a year. A bearing of the same kind on an unimportant fan fails about once in ten years. Both give 4 weeks of vibration warning, and the time to act is the same. Which one needs the shorter inspection interval?
3. A vibration monitor with a fixed alarm at 4.5 mm/s gives 3.4 weeks of warning when read every hour. The team changes it to read every minute and keeps the alarm level. What happens to the warning?
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.