Adding AI to an old machine:
a four-week pilot
How to get data off a machine that was never connected, and what each week of a four-week AI pilot involves.
Published 26 Nov 2026 · Live Experts
AI for legacy machines starts with the problem, not the model. To add AI to an old machine, start with one problem the machine causes, such as unplanned stops, scrap or slow changeovers. Then get reliable, timestamped readings off the machine. Only after that do you train a model. A four-week pilot covers those steps on one machine: week 1 agrees the goal and checks the data, weeks 2 and 3 build a working model on one real input and one real output, and week 4 proves it against criteria written down in week 1.
This article is for plant, maintenance and engineering managers with a machine that works but tells nobody anything: what each week involves, what goes wrong, and what you get at the end.
A note on where this comes from: the four-week structure is how we run AI pilots, described on our how we work page. Our record on the data side is in test and measurement and electronics: a modular LabVIEW data acquisition platform that acquires, logs and alarms on test data, and low-power 434 MHz radio hardware, the kind of part a wireless sensor node is built from. We have not yet published a completed AI retrofit of a production machine, so this article describes the method, not a past result. Facts about maintenance and protocols link to their sources.
AI for legacy machines: three starting points
Most legacy machines fall into one of three groups, and the group decides how much of the pilot goes into getting data rather than building AI.
- It has a controller that already talks. A common option is Modbus, a messaging protocol Modicon introduced in 1979, now maintained by the independent Modbus Organization and used across a wide range of industries (Modbus Organization FAQ). If the values you need are already in registers, reading them is ordinary integration work.
- It has a controller, but on an old serial link. Serial Modbus devices use RS-232 or RS-485. The Modbus Organization notes that a gateway, which can be a PC, converts these to Modbus TCP/IP over Ethernet (Modbus Organization FAQ).
- It has no useful data connection at all. Relays, a timer, a motor and a gearbox. Here the first job is adding sensors: vibration on a bearing, current on a motor, temperature on a housing, or a simple count of cycles. That is data acquisition work, the same kind of work as a test rig, and it can be most of the pilot.
Be wary of anyone who quotes an AI pilot before asking which of these you have.
Why the data comes before the model
Predictive maintenance, a common reason to put AI on an old machine, is defined in a 2002 US Department of Energy guide, written by Pacific Northwest National Laboratory, as measurements that detect the start of a degradation, so the cause can be dealt with before the part deteriorates significantly. It differs from preventive maintenance by basing the work on the machine's actual condition rather than a fixed schedule (DOE FEMP / PNNL: O&M Best Practices Guide, section 5.4).
The same guide's chapter on predictive maintenance technologies covers thermography, oil analysis, ultrasonic analysis, vibration analysis, motor analysis and performance trending. In its vibration section (6.5) it says plainly that published vibration severity charts are not absolute limits, but that a programme with no experience or history can use them to get started. That is the honest position for most small plants: there is no history yet, so the first model is often a comparison against a baseline and a published guideline, not a prediction of the exact day a bearing fails.
The guide is also frank about cost, though its equipment prices are now over twenty years old. It warns that starting predictive maintenance is not cheap and needs trained people and a firm commitment, and it advises that a site which cannot commit to running diagnostic equipment properly may be better off contracting those services to an outside vendor (DOE FEMP / PNNL guide, sections 5.4 and 6.1). A pilot on one machine is a way to find out whether that commitment is worth making before you make it.
Week 1: define the goal and check the data
Week 1 produces a short written document, not code. It should answer:
- Which machine, and which problem? One machine, one problem. "The extruder on line 2 stops without warning about twice a month" is a good goal. "Use AI across the plant" is not.
- What does success look like, in numbers you can check? For example: an alert at least a set number of hours before a stop on the past faults we have data for, with no more than a set number of false alarms a week. The thresholds are agreed with you, in writing, before any build starts.
- What data exists already? Controller registers, operator logs, maintenance records, spreadsheet exports. Maintenance records matter as much as sensor data, because they say when the faults happened.
- What has to be added? If there is no usable signal, the plan names the sensor, where it goes, how it is powered and how readings are logged.
Week 1 can end with "not yet". If there is not enough history to prove anything, the honest plan is a logging phase first: fit the sensors, collect data for a few weeks, then run the model work. The plan says how long that logging would take and what it would cost before you commit. A few weeks of logging costs less than a pilot built on data that cannot show the problem.
Weeks 2 and 3: one real input, one real output
The build weeks connect one real input to one real output. The input is the live signal from the machine. The output is something a person already looks at: an alarm on a screen, a message to the maintenance lead, a row in a maintenance system, or a value on an existing dashboard.
- Getting readings reliably. Reading the registers or wiring the sensor, setting a sensible sample rate, timestamping everything, and making sure a dropped connection is logged rather than silently ignored. If the sensors arrive late, data acquisition code can be written and tested against simulated devices first; NI-DAQmx, for example, supports simulated versions of many of its DAQ devices (NI: NI-DAQmx simulated devices).
- A baseline before anything clever. What does normal running look like at each speed or product? Many useful alerts are simple: a value outside its usual range for this machine in this mode. A model only earns its place if it beats that baseline.
- The model. On past data with known faults, the model is trained and tested on separate periods, so it is judged on data it has not seen. With no fault history, it learns normal running and flags departures from it.
- Where it runs. On a small computer next to the machine, on a server in your plant, or in the cloud. Nothing in the existing control system has to be replaced; the pilot reads from it and reports beside it.
Week 4: prove it against the criteria
Week 4 is a live demonstration on the machine and a short report that answers three questions:
- Did it meet the criteria written in week 1? Yes, no, or partly, with the numbers.
- What would it take to run this for real? Hardware, hours, who looks at the alerts and what they do about them.
- Go or no-go? With a costed plan if it is a go.
A no-go is a useful result. It means you spent four weeks finding out that a sensor, a rule or a maintenance schedule change solves the problem better than AI.
What usually goes wrong
- The goal is too wide. "Predict all failures" cannot be tested in four weeks. One failure mode on one machine can.
- No fault history. If the machine has not failed in a way anyone recorded, there is nothing to predict against yet. Start logging now, including maintenance notes with dates.
- Nobody owns the alert. An alarm that no one is responsible for acting on soon gets ignored. Name the person in week 1.
- The data link is fragile. A sensor on a temporary cable, or a laptop that sleeps overnight, quietly ruins the data. Treat logging as part of the product, not a side task.
- IT and plant networks. Getting machine data onto a network may need sign-off from whoever owns IT security. Raise it in week 1, not week 3.
What to have ready before you ask for a pilot
Write down the make, model and age of the machine and what controls it, whether that is a PLC, relays or a PC running LabVIEW or SCADA. Add the one problem you want solved and roughly how often it happens, any data you already have (controller exports, operator logs, maintenance records with dates), who will act on an alert and how they want to receive it, and any network or IT rules on the plant floor.
Common questions
How much fault history is enough?
Enough to include several examples of the fault you want to catch, with dates you trust. If the machine has failed that way only once, the pilot can learn normal running and flag departures from it, but it cannot yet show that it would have warned you in time.
What sample rate do we need?
It depends on the signal. A temperature that changes over minutes needs far fewer readings than vibration on a fast-turning bearing. Week 1 sets the rate from the fault you want to catch and the sensor you are using, not from a default.
Who owns the model and the data afterwards?
Agree it in writing before the pilot starts. Our how we work page sets out how we handle ownership and NDAs on projects.
Is predictive maintenance worth it for a small manufacturer?
It depends on what a stop costs you and how often it happens. The DOE guide warns that a full programme needs investment and trained people. Proving it on the one machine that stops most often is a cheaper way to find out. Our AI page answers the shorter questions, such as pilot length and running AI on your own servers.
Getting started
If you have a machine in mind, send us the details from the list above. We will reply with a free written project plan: whether AI is the right tool, what a four-week pilot would prove, and a fixed price. You can read about the rest of our applied AI work on the AI page, and how we choose tools for test systems in LabVIEW vs Python for test automation.
Clients rate our work 4.9 out of 5 across 354 verified Freelancer reviews.
Tell us what you're building.
Send a short brief. We reply with questions or a fixed-price proposal. If AI isn't the right answer, we'll say so.