Blog

The model at the edge of the plant

Somewhere a backhoe is about to go through a fiber cable. It happens to every remote site eventually. The question is what your model does for the next six hours.

Date

A long way from the data center

When people draw a picture of AI they draw a cloud. A tidy one, with arrows going up to it and answers coming down. For a great many uses that picture is right. For a crusher at a mine four hours' drive from the nearest town, it leaves something out, namely the four hours.

The plants I have in mind are not in convenient places. Ore bodies and gas fields are where geology put them. The connection to the outside world may be one cable and a microwave link, and I have known sites where the link went soft every time it rained hard. Now suppose a model is watching a conveyor for tramp metal, or a camera is checking that people in a blast area are wearing what they should. Is that model to stop working because of weather a hundred miles away?

Put that way the answer is plain. The model has to be at the plant. On a small, rugged computer in a cabinet near the equipment, taking the readings straight from the instruments or the camera and giving its answer on the spot. That is all "the edge" means. It is a grand name for a box in a cabinet.

Speed, bulk, and who is listening

The failed cable is the dramatic reason. There are three quieter ones.

The first is time. A reading that goes to a distant data center and back takes a noticeable fraction of a second, on a good day. For a daily report that is nothing. For a decision about a moving belt, the belt has moved. Some jobs have to be answered in the time it takes a relay to click, and for those the thinking has to be done within arm's reach of the machine.

The second is bulk. A single camera makes more data in a day than all the temperature transmitters on the site make in a year. Sending every frame up a thin link to have it looked at somewhere else is like mailing the haystack to find the needle. Far better to look at the frames where they are made and send on only what was found: a count, an alarm, one picture of the thing that mattered.

The third is that a plant's control network is kept apart from the wider world on purpose, by people who are paid to be nervous. They are right to be. A model that sits inside that boundary and reads the data there asks for no new holes in the fence. One that needs the raw data sent out does.

Small boxes have small appetites

Nothing is free, and the cost of the edge is paid in two ways.

One is size. The box in the cabinet is not a data center. It has a modest processor, perhaps a small graphics chip, no fan to speak of, and it lives in heat and dust and vibration. A model built at leisure on big hardware has to be slimmed to fit: fewer layers, numbers stored more coarsely, the fat trimmed. Done well, the slim model gives nearly the same answers many times faster. Done carelessly it loses the fine distinctions, and nobody notices until a case turns up that depended on one of them. So the slimmed model is tested again, on the plant's own cases, as if it were a new model. Because it is.

The other is housekeeping. One model in one data center is easy to look after. Thirty boxes in thirty cabinets across a site are not, unless it has been thought about from the start. Which version is on which box? How does a new one get there, and how do you go back if it misbehaves? How does anyone know a box has died, and not merely gone quiet because nothing is happening? When the link returns after an outage, what does the box send first? Dull questions. A fleet that has no answers to them tends to rot one cabinet at a time.

The arrangement that works is a division of labor. The heavy, slow business of training stays where the big computers are. The quick, constant business of deciding goes out to the plant. Results trickle back when the link allows, and improved models trickle out. That division is the heart of edge and industrial IoT work, and once it is set up properly it is not very dramatic.

Which is the idea. The backhoe goes through the cable. The control room loses its email and grumbles. Out by the conveyor, the box in the cabinet does not know anything has happened, and carries on.