Blog

When the instrument lies

A thermocouple that has failed does not say so. It goes on reporting a number, calmly, to one decimal place.

Date

The tank that was never more than half full

A puzzle, to begin with. A level transmitter on a storage tank reads 48 percent. An hour later it reads 48 percent. The next morning, 48 percent. Is the tank steady, or is the transmitter dead?

You cannot tell from the number. That is the uncomfortable part. You can only tell from everything else: the pump that has been running into the tank all night, the flow meter on the inlet, the operator who walked past and saw product at the overflow. The instrument is lying, and it is lying in the most convincing way possible, by saying something entirely reasonable.

People know how to deal with this. An experienced operator looks at a reading and, without noticing that he is doing it, checks it against three other things. A model has no such habit. Feed it 48 percent and it believes 48 percent, and builds its conclusions on top.

How an instrument goes wrong

Instruments fail in a small number of ways, and each leaves its own fingerprint in the data. It is worth knowing them the way a doctor knows rashes.

  • StuckThe value stops moving. Real process readings carry a little noise; a line with none at all is a signal that has frozen.
  • DriftingThe reading slides away from the truth by a hair each week. Nothing looks wrong on any one day.
  • SpikingA loose terminal or a burst of electrical noise throws single wild values into an otherwise calm trace.
  • SaturatedThe process has gone beyond the range of the transmitter, which reports its top value and stays there.
  • SubstitutedSomebody forced a value by hand during maintenance and nobody took the force off.

Drift is the one I respect most. A spike is honest about being nonsense. Drift is patient. A pH probe coats over, a flow orifice erodes, and over six months the instrument walks away from reality so slowly that everybody walks with it. Setpoints get adjusted to suit. The plant ends up running to a number that is precise, stable and wrong.

Making the instruments vouch for each other

The remedy is the operator's habit, written down and made systematic. No instrument is believed on its own word. Each has to agree with its neighbors.

A plant is full of relationships that must hold. What flows into a vessel and what flows out must account for the change in level. Two thermocouples in the same bed should move together. The power drawn by a pump goes with the flow it delivers. A valve that is 80 percent open should be passing something. None of these is exact, but each is good enough that when a reading breaks the pattern, either the process has done something remarkable or the instrument has gone wrong. And the instrument is much the likelier culprit.

You can write a fair number of these checks by hand, from the flowsheet. A model can learn the rest: how each reading normally sits against the others, across all the ways the plant runs. Then it watches. When the inlet flow says the tank should be filling and the level says 48 percent for the ninth hour, something raises its hand.

I put this ahead of nearly everything else in a project, and for a selfish reason. Every model that follows eats these readings. A soft sensor trained on a drifting analyzer learns the drift. An optimizer given a stuck flow will optimize, with great confidence, a plant that is not there.

It turns out to be useful for its own sake as well. A list each morning of the instruments that have stopped agreeing with their neighbors is a maintenance tool. It is very often the first thing a site gets from work on reliability, well before any prediction about pumps or bearings. An instrument technician with that list knows where to walk first.

There is a small moral in it, if you want one. We spend a great deal of effort teaching machines to be clever. The first thing to teach them is to be suspicious.