Homemade AI for Maintenance: Connecting the Data Is Easy. Understanding It Is Not
Ahmed Rezika, SimpleWays OU
Posted 12/3/26
We do not need a maintenance organization that never makes mistakes. We need one that can discover its mistakes without being afraid to report them, investigate them without jumping to conclusions, learn without hiding reality, and exploit the enormous analytical capabilities of AI intelligently and safely.
Every maintenance organization has gaps. Some are obvious, while others remain hidden in daily routines, work orders, inspection reports, equipment histories, and the differences between what was planned, what was documented, and what actually happened. A maintenance task may be reported as completed, but was it performed as intended? Did it yield the stated results? An inspection may contain all the required entries, but do they reflect genuine observations? A recurring failure may appear unrelated across several work orders simply because different technicians described it differently. Sometimes the problem is missing information. Sometimes it is inaccurate information, contradictory entries, duplicated records, implausible readings, or forms completed to satisfy a digital requirement rather than describe reality.
Discovering these gaps requires more than checking whether records exist. We need to compare what was documented, what people claim was done, and what can be verified through observations and physical evidence. We need to pay attention to impossibilities, inconsistencies, suspiciously identical entries, repeated values that deserve investigation, and records that contradict equipment history or operating conditions. These are not automatically proof of misconduct or failure. They are signals that something deserves a closer look. A missing reading may indicate a documentation weakness rather than a maintenance failure. An unusual value may reveal a genuine developing problem, a measurement error, or an incorrect entry. The challenge is not only to distinguish between them but to find a powerful analytical tool that can understand and operate on our own definitions.
The Mindset needed to find an effective but safe tool-set
This becomes particularly difficult when the volume of information grows. Reviewing one hundred maintenance tasks in detail is already demanding. Reviewing a thousand, linking them to inspection findings, equipment histories, failure reports, spare-parts records, and previous interventions can quickly become impractical. This is where AI offers an enormous analytical advantage. It can help connect scattered information, compare records, identify recurring descriptions, highlight inconsistencies, and bring relationships to our attention that would be difficult to discover manually.
However, using AI in an industrial environment raises another question before we even begin the analysis: where is our data being processed? When we upload maintenance records to a cloud-based AI service, the information is transmitted to the provider’s servers, where the processing takes place. It is not normally analysed by the AI model running on our local computer. An NDA or confidentiality agreement does not, by itself, mean that the data stays within our own infrastructure. Organizations must understand the provider’s data-handling arrangements, contractual commitments, retention policies, and applicable requirements before sharing sensitive industrial information.
This concern should not mean giving up the benefits of AI. We can consider a different approach: building an AI-supported maintenance analysis environment under our own control. An existing AI model can be deployed locally or within the organization’s infrastructure, supported by a searchable library of its maintenance procedures, best practices, equipment knowledge, and calculation methods. We can also develop programmed checks to identify missing information, test completeness, detect inconsistencies, and calculate indicators according to clearly defined engineering rules. The aim is not necessarily to develop a new AI model from scratch, but to equip an existing model with the knowledge and tools needed to analyse maintenance information according to our own requirements.
Whether we use a locally deployed model or an appropriately controlled cloud service, its analytical power is only useful when guided by an understanding of the equipment, the maintenance process, and the meaning of the information being examined. Feeding thousands of poorly understood records into a generic prompt does not create engineering knowledge. It can simply produce a very convincing analysis of unreliable information.

Orchestrating tools, keeps you the maestro
We therefore need to approach AI-assisted maintenance analysis differently. Before asking our local agent or digital intelligent tool to examine thousands of records, we should understand what those records contain. Maybe we need another tool to inspect representative samples, identify how information is entered, recognize common variations and errors, and establish the engineering rules that distinguish a meaningful finding from an ordinary variation. We should define what our organization considers a complete work order, a missing inspection result, or a properly documented intervention. We should also establish which calculations must follow fixed formulas and which findings require interpretation.
Some of these checks are better handled by conventional programming than by an AI model. A Python application, for example, can apply explicit rules to identify missing fields, compare dates, detect duplicate or seemingly duplicate entries, and calculate indicators consistently. An AI model can complement this by interpreting descriptions, connecting related events, and helping investigate patterns that are harder to express as fixed rules. The two approaches should work together rather than expecting one to do everything.
Humans in the digital loop
We must also remember that a digital record cannot independently prove that an activity happened in the physical world. Excessive mandatory checks may improve the appearance of digital compliance while encouraging people to find shortcuts, copy previous entries, or confirm activities they have not genuinely verified. A system that punishes every deviation may end up hiding the very information it was designed to capture.
This brings us back to the human role. Experienced maintenance professionals can recognize unusual situations, question assumptions, connect apparently unrelated events, and discover solutions outside the original procedures or analytical rules. AI can process information at a scale no individual engineer could reasonably manage, but it still needs sound engineering direction and verification against reality. A finding should be treated as a lead for investigation, not an automatic verdict. Sometimes it will reveal an equipment problem; sometimes a weakness in the maintenance procedure, an inaccurate record, or a process that no longer reflects actual operating needs. The objective is to understand which one we are dealing with and correct it.
In our previous article, Robots Seeking Work: Closing the Gaps Nobody Has Time to Cover [1], we imagined a maintenance manager recognizing gaps in inspection coverage and consistency, then publishing a vacancy for someone dedicated to closing them. That story began with a simple question: where are the gaps in our maintenance practices? This time, we take the next step. How do we discover those gaps in the first place, when much of the evidence is scattered across records that may be incomplete, inconsistent, or disconnected from what actually happens in the plant? And how can we use AI’s analytical capabilities without jeopardizing safe data handling or surrendering the engineering judgment needed to understand the results?
Building Our Own AI for Maintenance
Before connecting AI to a maintenance database, we need to understand where the processing takes place. When we upload work orders, inspection reports, equipment histories, or other records to a cloud-based AI service, the information is normally transmitted to the provider’s infrastructure. The model processes it on the provider’s servers, not on the local computer from which we uploaded it. The exact handling depends on the service and its configuration, but an NDA alone does not establish where data is stored, how long it is retained, who can access it, or whether it may be used for other purposes. These details matter when dealing with commercially sensitive industrial information and applicable data-protection requirements, particularly in North America and Europe.
One alternative is to deploy an AI model within the organization’s own infrastructure. This could be a workstation with a suitable GPU, an on-premises server, or a controlled private environment. Models with publicly available weights can be downloaded and run using local inference tools. Depending on the model size, quantization level, context length, and workload, hardware requirements can vary considerably. Quantization, for example, reduces the numerical precision used to represent model weights [2], often lowering memory requirements and making local deployment possible on more modest hardware, although it can affect output quality. The important point is that local inference allows the organization to process information without routinely sending the maintenance records to an external model provider. It does not, by itself, guarantee security; network access, user permissions, storage, backups, and system administration still need to be controlled.

Giving the Model Our Maintenance Knowledge
Running a model locally is only the beginning. A general-purpose language model does not automatically understand our equipment hierarchy, maintenance terminology, work-order conventions, approved practices, or the rules used to calculate our performance indicators. We need to provide that context. One practical approach is Retrieval-Augmented Generation (RAG)[3]. Instead of trying to train the model to memorize all company documents, we build a searchable knowledge base from selected procedures, maintenance standards, equipment documentation, technical instructions, and internal best practices. When a question or analysis request arrives, the system retrieves relevant information and supplies it to the model as context for its response.
A typical RAG pipeline involves document extraction, text cleaning, segmentation into manageable chunks, embedding generation, and indexing in a vector database or another retrieval system. An embedding is a numerical representation of a text segment that allows the system to retrieve information based on semantic similarity, rather than relying only on exact keyword matches. Metadata can improve retrieval further: equipment tag, plant area, document type, revision, validity date, and applicable asset class can all help narrow the search. For example, when analysing a pump work order, the system should retrieve the relevant pump maintenance procedure and equipment documentation, not an unrelated instruction for a different asset. The quality of retrieval matters: outdated documents, poorly selected chunks, missing metadata, or conflicting procedures can give the model the wrong context even when the original documents are correct.
We should also distinguish RAG from fine-tuning. RAG provides the model with relevant external knowledge at the time of a request. Fine-tuning modifies model parameters using a prepared training dataset to influence its behavior or improve performance on a particular task. Fine-tuning may be useful when we need consistent output formats, specialized classification, or adaptation to a particular language and terminology. However, it is not a substitute for maintaining an accurate and current knowledge base. If a maintenance procedure changes, updating the relevant document and its index is usually more straightforward than retraining a model. For many industrial applications, a well-designed RAG system, supported by clear prompts and validation rules, is a sensible starting point.
The knowledge base should contain more than equipment manuals. We can define what our organization considers a complete work order, which fields are mandatory for different job types, what information is expected after a corrective intervention, and what constitutes an adequate inspection record. We can document how failure codes are assigned, how downtime is defined, which operating hours are used in reliability calculations, and how indicators such as MTBF and MTTR are calculated. These definitions are essential because the same indicator can produce different results when organizations use different assumptions, event boundaries, or exclusion criteria. The AI should not invent those definitions or silently choose between conflicting versions. It should retrieve the approved definition, identify missing context, and make its assumptions visible.
Combining AI with Conventional Programming
Not every analytical task needs a language model. Many maintenance checks are deterministic and should be implemented as explicit rules in conventional software. A Python application, for example, can validate mandatory fields, compare timestamps, identify duplicate work-order numbers, check whether a completion date precedes a start date, detect missing equipment tags, and calculate indicators using approved formulas. It can also compare values against defined engineering limits, provided those limits are valid for the equipment and operating conditions being examined. These checks are repeatable, testable, and easier to audit than asking a language model to perform the same work through a general instruction.
A local development environment using Python and Conda can support this work. Pandas can handle tabular maintenance exports, while SQL queries can retrieve and join information from relational databases. Libraries such as Pandera or Great Expectations can help define and validate data-quality expectations. Scikit-learn[4] can support conventional classification, clustering, and anomaly-detection tasks where appropriate. The application can then pass validated records, calculated results, and selected contextual information to a locally deployed language model for further interpretation. This is not an argument for using every available library. It is about selecting the right tool for each task and keeping the logic transparent.
The overall architecture might therefore contain several connected layers: a data-ingestion layer that receives information from the CMMS, ERP, inspection systems, spreadsheets, or other sources; a preparation layer that standardizes identifiers, timestamps, units, and terminology; a rules engine that performs defined checks and calculations; a knowledge-retrieval layer that supplies approved maintenance context; and an AI inference layer that interprets descriptions, connects related records, and explains potential findings. An orchestration layer coordinates these steps and records which data, rules, documents, and model versions were used. The result should be traceable: an engineer examining a finding must be able to identify the source records and the logic that led to it [5].
This combination is more useful than expecting one AI agent to do everything. A fixed rule can establish that a mandatory field is empty, but it cannot necessarily determine whether the missing information makes the work order technically inadequate. A language model may recognize that several differently worded work orders describe a similar overheating symptom, but it should not independently decide that they represent the same failure mechanism. A statistical model may identify an unusual vibration trend, but an engineer must consider measurement conditions, sensor location, operating speed, and historical baseline before drawing a conclusion. Each method contributes something different, and the system should make those boundaries clear.
Local deployment also introduces practical engineering considerations. We need to evaluate model size, GPU memory, inference speed, concurrent users, context-window requirements, and the volume of documents being retrieved. We need version control for prompts, rules, knowledge documents, and models, as well as test datasets containing known examples and expected results. Access controls should distinguish who can view records, modify rules, update procedures, or approve analytical outputs. Logs should retain enough information to reproduce an analysis without unnecessarily exposing sensitive content. A locally hosted model that produces inconsistent results, uses obsolete procedures, or cannot explain its sources is not a dependable maintenance tool simply because it runs inside the plant network.

Thought Experiment: What we Actually Need
The objective is not to build an impressive AI platform for its own sake. It is to create an analytical environment that reflects how the organization actually maintains its assets, applies its engineering rules consistently, and helps its people investigate information that would otherwise be too fragmented or voluminous to examine manually. The model provides language understanding and analytical assistance; the knowledge base supplies organizational context; conventional programs perform defined checks and calculations; and maintenance engineers remain responsible for validating what the system finds.
Now consider a different question. Do we really need to compete with AI companies that invest billions in developing increasingly capable models? Should we reject the AI capabilities being introduced by major ERP and CMMS providers simply because they are not built by us? Or should we focus on a more specific opportunity: developing an analytical tool that represents what we, as maintenance engineers, actually want to achieve, but cannot accomplish manually because of the volume and complexity of the information? Perhaps the best solution will use an existing AI model, perhaps it will integrate with the AI capabilities of an established enterprise platform, or perhaps it will combine several tools through a locally controlled application. The real test is not who developed the model or how sophisticated its interface looks. It is whether the resulting system can apply our engineering knowledge, expose weaknesses that ordinary reports overlook, and help us make better maintenance decisions than we could achieve with the tools currently available.
Must-Know Jargon
Local Inference: Running an AI model on computing infrastructure controlled by the organization, rather than sending requests and data to an external AI provider’s servers. It can improve control over sensitive maintenance information, but requires suitable hardware, security controls, and system administration.
Retrieval-Augmented Generation (RAG): A technique that retrieves relevant information from an external knowledge base and supplies it to an AI model as context when generating a response. In maintenance, it can provide access to approved procedures, equipment documentation, failure histories, and company-specific practices without requiring the model to memorize all these documents.
Embeddings: Numerical representations of text or other information that capture aspects of their meaning. They allow a retrieval system to identify related content even when different words or descriptions are used. For example, differently worded work orders describing motor overheating may retrieve related records through semantic similarity.
Fine-Tuning: Further training an existing AI model using a specialized dataset to adapt its behaviour or improve its performance on particular tasks. In maintenance, this could help standardize failure classification or adapt the model to specific terminology. It is different from RAG, which supplies relevant knowledge at the time of analysis without modifying the model’s parameters.
Deterministic Rules Engine: A software component that applies explicitly defined rules and produces predictable results for the same inputs and conditions. It can validate mandatory work-order fields, identify duplicate records, check date sequences, enforce data-quality requirements, and calculate maintenance indicators using approved formulas.
Data Validation: The process of checking whether information satisfies defined requirements for completeness, accuracy, consistency, format, and plausibility. In maintenance, this may include checking equipment identifiers, measurement units, timestamps, mandatory inspection readings, and relationships between work orders and failure notifications.
Anomaly Detection: The identification of observations or patterns that differ significantly from an established baseline or expected behaviour. It can help identify unusual vibration readings, abnormal failure frequencies, or suspiciously repeated maintenance records. An anomaly is an indication requiring investigation, not automatic proof of a fault or incorrect entry.
AI Orchestration: Coordinating multiple software components, models, data sources, and processing steps to complete an analytical workflow. A maintenance application might orchestrate data extraction, Python-based validation, knowledge retrieval through RAG, AI interpretation, and the presentation of findings for engineer review.
References
1- MaintenanceWorld.com, Ahmed Rezika, An Inspector Seeking Work: Closing the Gaps Nobody Has Time to Cover, 02 Nov 2026, https://maintenanceworld.com/2026/11/02/an-inspector-seeking-work-closing-the-gaps-nobody-has-time-to-cover/
2- Qualcomm AI Research, A White Paper on Neural Network Quantization, 2021, https://arxiv.org/abs/2106.08295
3- NVIDIA, RAG 101: Demystifying Retrieval-Augmented Generation Pipelines, 18Dec2023, https://developer.nvidia.com/blog/rag-101-demystifying-retrieval-augmented-generation-pipelines/
4- scikit-learn Developers, scikit-learn User Guide, n.d., https://scikit-learn.org/stable/user_guide.html
5– MaintenanceWorld.com, Ahmed Rezika, The Hidden World of Data Management, 06Mar2025, https://maintenanceworld.com/2025/03/06/the-hidden-world-of-data-management/

Ahmed Rezika
Ahmed Rezika is a seasoned Projects and Maintenance Manager with over 25 years of hands-on experience across steel, cement, and food industries. A certified PMP, MMP, and CMRP(2016-2024) professional, he has successfully led both greenfield and upgrade projects while implementing innovative maintenance strategies. As the founder of SimpleWays OU (2019-2026), Ahmed is dedicated to creating better-managed, value-adding work environments and making AI and digital technologies accessible to maintenance teams. His mission is to empower maintenance professionals through training and coaching, helping organizations build more effective and sustainable maintenance practices.
Related Articles
An Inspector Seeking Work: Closing the Gaps Nobody Has Time to Cover
Maximo Application Suite – Trick or Treat?
Training Robots for Maintenance: From Digital Practice to Real-World Reliability
