AI in Industry: Part 1 | Using AI To Troubleshoot Equipment
In this article series, we explore some specific strategies in which AI can help engineers. In this installment, learn to diagnose and troubleshoot equipment issues by understanding useful prompts.
Troubleshooting industrial machines can be a challenging process, and it isn’t always straightforward. Consider an alarm presented by a VFD. In many cases, the error code doesn’t necessarily mean that there is something wrong with the drive itself, but rather the result of an electrical, mechanical, or operational issue, or even an incorrect configuration. As a result, engineers need to look at multiple possibilities before the root cause of the problem can be determined.
Thanks to recent explosive advances in AI, engineers can now leverage powerful large language model (LLM) based tools to assist the troubleshooting process. These tools can propose a simple diagnosis strategy, or go a step further and suggest possible root causes. However, to maximize the usefulness of the information we get from these tools, we need to provide them with the right information and ask questions in a certain way. This is where prompt engineering enters the scenario.
Let’s expand that VFD fault scenario to step through a practical troubleshooting process. We won’t expect AI to fix the problem, but to provide some helpful insights for more quickly fixing the problem and tracking down the root cause.
Problem Definition
In this example, a conveyor transports carton boxes between two packaging machines. Depending on downstream demand, the conveyor operates intermittently. This machine center includes a 3 HP induction motor controlled by an Allen-Bradley PowerFlex 525 VFD.

Figure 1. A conveyor system including an induction motor controlled by an Allen-Bradley VFD.
Machine operators have recently reported that the conveyor occasionally stops during a startup. As the on-site engineer, you locate an overcurrent-related fault in the recent VFD alarm history, but you can’t seem to detect a consistent pattern for the issue. Sometimes the conveyor runs normally for several hours before faulting out again.
A First, Basic Prompt
In previous articles about AI in industry, we discussed how LLMs will almost always generate an answer even when important information is missing. In this scenario, suppose you use a general-purpose LLM and enter this question: “My conveyor VFD keeps faulting intermittently. What could be the issue?”
The model will invariably respond with numerous suggestions, including motor overload, loose electrical connections, mechanical problems, or incorrect VFD parameters. While none of the suggestions are technically impossible, they’re probably too generic to be applicable to your specific scenario.
A Better Technical Prompt
One of the fundamental best practices of prompt engineering is to provide sufficient context for the model you are using. It is important to be explicit and clearly define the task and the expected output. If the computer has to make its own assumptions, the final analysis will probably be incorrect. In our scenario, a more useful technical prompt would include information about the equipment, details about the symptoms, and any potentially relevant information, and then finally conclude with a specific request.

Figure 2. A prompt example with technical context.
While not explicitly stated, another important technique applied in this prompt is Role Definition. With this prompt, the model will put on its “engineer hat,” inferring the expected perspective, format, and level of professionalism. You may specifically tell the model the role you want it to adopt; are you a technician, a design engineer, or an operator only?
Refining the Diagnosis
After submitting the first prompt, the model will provide you with several possible causes. The information provided might still feel a little too broad, or the amount could be overwhelming, so you might feel that you need to narrow down the investigation. As a follow-up, you can enter a more targeted prompt.

Figure 3. A prompt example with more specific requests.
This prompt employs another technique, called Task Decomposition. Instead of asking the model to try to solve the entire problem (potentially resulting in a new generic response), we break it into smaller, more specific questions. In our case, the model could then respond with recommendations such as gathering and reviewing the drive’s fault history, comparing behavior with different conveyor loads, or inspecting mechanical components.
The next step is to gather new evidence or additional information based on the model’s recommendations. You may have decided to follow up on only one of them, some of them, or perhaps all of them. The LLM-aided troubleshooting process starts to become iterative, and you may draw on your experience and technical expertise to refine the next steps and to be more efficient.
Let’s assume you and your maintenance team perform additional tests and inspections and discover new evidence. Your next prompt may look as follows.

Figure 4. A prompt with additional symptoms and evidence.
In addition to providing detailed new evidence, the model is instructed not to assume the root cause has been found, despite what the evidence suggests. This is another important technique that allows the model to keep refining its recommendations without jumping to conclusions. Including language like this helps keep the model open to exploring other possibilities presented within the evidence. Nonetheless, it may still give greater consideration to the contributing factor of mechanical resistance.
With this prompt, the model will continue trying to identify relationships between symptoms described in the evidence and potential causes. It may also suggest what tests could be most appropriate next.
Validation of Results
Let’s suppose an inspection is recommended by the LLM, and is then performed. This inspection uncovers a roller bearing that has been damaged.
At this point, an approved corrective action (replacement) should be executed and subsequent tests for validation may be carried out. Another best practice would be to confirm parametrization applicable to the PowerFlex 525 drive. All these steps can also be compiled in a validation checklist that you may ask the model to create for you.
AI as a Troubleshooting Assistant
Through this simple yet realistic example, we aimed to demonstrate that effective AI-based troubleshooting requires applying structured engineering reasoning and best practices for prompting. Providing context, decomposing problems, requesting structured outputs, and introducing new evidence progressively make the model’s recommendations more specific and actionable.
While these techniques can be applied to many other industrial problems, it is very important to keep considerations around data security in mind. When using an open LLM-based tool, you should only provide information that is allowed to be shared by your organization.
Artificial intelligence applied to troubleshooting industrial control system problems is an augmentation practice. Ultimately, AI does not replace fundamental principles of engineering; humans always remain in control.
All images used courtesy of the author, assisted with AI
