Engineers often ask: what is ai and machine learning, and how do they differ from the numerical methods you already use? Many vendors use these words as vague marketing slogans. This lesson strips away the sales pitch and shows you how these tools work on physical engineering systems.
Key points
- AI is an umbrella term for software that automates decisions, including simple if-then rules.
- Machine learning fits mathematical patterns to measured sensor or plant data instead of relying on explicit equations.
- Large language models (LLMs) are text engines trained on patterns in natural language and code.
- AI cannot replace the laws of thermodynamics, fluid dynamics, or structural mechanics.
What you will learn
- Tell AI, machine learning and LLMs apart
- Name three engineering tasks each suits
- Spot claims about AI that are hype
Key terms in plain English
- Artificial Intelligence (AI): Software designed to carry out tasks that normally require human reasoning, defined formally in ISO/IEC 22989:2022.
- Machine Learning (ML): An approach within AI where an algorithm improves its performance on a task by finding patterns in past data.
- Large Language Model (LLM): A deep neural network trained on massive text collections to understand and generate human language.
- Training: The mathematical process of adjusting internal model weights until the model outputs match known test data.
- Inference: The production step where a trained model calculates an output from new, unseen plant measurements.
- Hallucination: A confident, plausible, but factually false statement generated by a language model.
What is AI and machine learning in engineering?
To understand modern computational tools, picture three Russian nesting dolls. The outermost doll is Artificial Intelligence. The middle doll is Machine Learning. The innermost doll is Deep Learning, which contains Large Language Models.
Engineers have used classical AI for over forty years. An automated relief valve selection sheet is a form of classical AI. If fluid phase equals gas, use API 520 Part I sizing equations. If pressure exceeds 10 bar gauge, select a balanced bellows design. The programmer wrote every branch of that logic by hand.
Machine learning flips that workflow around. You do not write the logic steps. Instead, you feed the computer raw data and the correct target answers. The algorithm discovers the underlying transfer function on its own.
Consider a positive displacement pump moving viscous oil. In classical engineering, you calculate head loss using the Darcy-Weisbach equation. You compute the friction factor from the Reynolds number. But what if the fluid is a non-Newtonian sludge with changing shear thinning properties? Writing an exact closed-form equation becomes difficult.
This is where machine learning fits. You collect 500 hours of pump test data. You record shaft speed in rpm, fluid temperature in °C, motor current in amperes, and differential pressure in bar. A machine learning model identifies the non-linear relationship between these measurements. It predicts pressure drop across your piping network without requiring an exact analytical formula.
The boundary between classical software and machine learning
Traditional software requires two inputs to make an output: code and data. A programmable logic controller (PLC) follows this path. It takes a level transmitter reading in 4–20 mA current loops. It applies your hard-coded proportional-integral-derivative (PID) gains. Then it sends a control voltage to a modulating control valve.
Machine learning changes the inputs. It takes past operational data and observed past results. From these pairs, it produces the code or model parameters. Once trained, this model accepts new plant data and generates predictions.
ISO/IEC 22989:2022 defines machine learning as a process that uses computational methods to enable systems to learn from data or experience. The model does not understand physics. It understands statistical variance, correlation, and error minimization.
Where large language models fit
Large language models do not work with numerical sensor arrays directly. They are trained on text, symbols, and code. They use an architecture called a transformer, introduced in 2017.
An LLM reads a sequence of words or tokens. It calculates the statistical probability of every word in its vocabulary. Then it selects the most likely next word. When you ask an LLM to explain cavitation, it does not calculate vapor pressure. It reproduces patterns from fluid mechanics textbooks and papers in its training data.
LLMs excel at processing messy, unstructured human text. They can read 200 vendor pump data sheets and extract the impeller diameters into a clean spreadsheet. They can draft an equipment test procedure from an industry standard. However, they cannot balance mass or energy balances reliably without external calculation tools.
| Technology | How it works | Best engineering task | Primary failure mode |
|---|---|---|---|
| Rule-Based AI | Explicit logic trees, lookup tables, and deterministic standards. | Relief valve sizing per API 520, material selection tables per NACE MR0175. | Fails on edge cases not coded into the rule base. |
| Machine Learning | Statistical pattern matching on structured numerical data. | Predictive maintenance on bearings, electrolyser degradation tracking. | Fails when plant conditions drift outside the training range. |
| Large Language Models | Probabilistic text generation from tokenized language patterns. | Summarizing maintenance logs, comparing standard clauses, writing draft reports. | Inventing plausible technical data and non-existent standards. |
Worked example: Three ways to monitor pump cavitation
To see these tools in action, you can solve one concrete mechanical problem: detecting cavitation in an industrial centrifugal pump. Cavitation occurs when the local liquid pressure drops below the fluid vapor pressure. Bubbles form at the eye of the impeller and collapse violently against the metal. This causes pitting and vibration.
Method 1: The deterministic engineering rule
In classical engineering, you prevent cavitation using Net Positive Suction Head (NPSH). The plant design must ensure NPSH available (NPSHa) exceeds NPSH required (NPSHr) by a safe margin. ANSI/HI 9.6.1-2017 recommends an NPSH margin ratio between 1.1 and 2.0 depending on pump energy level.
You measure suction pressure Ps = 1.80 bar absolute. The water temperature is 40 °C. At this temperature, water vapor pressure Pv = 0.074 bar absolute. Liquid density ρ is 992 kg/m3, and acceleration due to gravity g is 9.81 m/s2. Fluid velocity in the suction pipe is 1.5 m/s.
You calculate the static head margin directly:
Δh = (Ps − Pv) / (ρ · g)
Δh = ((1.80 − 0.074) × 105 Pa) / (992 kg/m3 · 9.81 m/s2) = 17.74 m
This classical calculation is reliable. However, it requires accurate pressure transmitters and assumes pure, air-free water. It cannot tell you if an upstream suction strainer is clogging dynamically during a batch transfer.
Method 2: The machine learning model
Instead of relying on calculated margins, you mount an accelerometer on the pump suction casing. You measure high-frequency vibration signals up to 10 kHz. Normal baseline vibration is 1.8 mm/s RMS. When cavitation begins, broadband high-frequency acoustic emissions between 5 kHz and 10 kHz spike sharply.
You collect 2,000 vibration snapshots across different flow rates from 50 m3/h to 250 m3/h. You label each record as normal or cavitating based on borescope inspections and audible noise.
You train a binary classification model on these vibration spectra. The model learns that whenever energy in the 7 kHz to 9 kHz band rises by 12 dB while motor power remains steady, cavitation probability is 94%. It does not know the vapor pressure of the water. It detects the physical signature of bubble collapse directly from sensor signals.
Method 3: The large language model
An operator notices unusual rumbling in the pump room. They write in the shift logbook: “Pump P-101B making popping sounds like gravel at 14:00. Suction filter pressure drop read 0.6 bar. Throttled discharge valve to stabilize.”
A maintenance engineer uses an LLM to scan 12 months of unstructured operator logs across 40 pumps. The prompt asks you to identify all pumps reporting gravel-like noises and suction filter differential pressure above 0.4 bar.
The LLM parses the handwritten notes, extracts the equipment tag P-101B, and flags the incident. It correlates the event with similar notes from six months earlier. The LLM did not measure vibration or calculate head margins. It parsed messy human communication into actionable maintenance records.
Spotting claims about AI that are hype
Software vendors often pitch AI as a universal fix for plant design and operations. As an engineer, you must evaluate these claims with the same skepticism you apply to a perpetual motion machine. Look out for these common exaggerations.
Hype Claim 1: “The AI model learns physics on its own”
Machine learning models find statistical correlations in the numbers you provide. If you feed an ML model water flow rates and pressure drops, it will fit a polynomial curve. But the model does not know what mass conservation means.
If you feed the model an operating point beyond its training data, it will produce answers that violate first principles. It may predict negative friction loss or efficiency above 100%. Never deploy an ML model on safety-critical physical equipment without hard physics-based clamps on the outputs.
Hype Claim 2: “Our LLM can design an entire plant from scratch”
Large language models generate text based on word associations. When asked to size a relief valve, an LLM might pull a random nozzle orifice area from an online catalog. It might quote a discharge coefficient that looks real but belongs to a different valve family.
Under ISO/IEC 42001:2023, organizations must manage artificial intelligence risks systematically. In engineering, an unverified LLM calculation is a severe hazard. LLMs are drafting assistants, not engineering sign-offs. Always verify calculations with standard software or manual sizing equations.
Hype Claim 3: “More plant data automatically creates a better model”
More data only helps if the data contains high information density. If your plant ran steadily at 100% capacity for two years, you have 17,520 hours of identical data. A machine learning model trained on this dataset cannot predict what happens during a pump trip, a power brownout, or an emergency shutdown.
Data quality and operational diversity matter far more than sheer data volume. High-quality data requires clean calibration records, zero transmitter drift, and clear operating boundaries.
Try it yourself
Take 20 minutes to audit three recurring technical tasks in your current engineering work. This simple exercise will clarify where AI tools make sense and where they waste time.
- List three tasks you did this week: Write down three distinct engineering activities. Examples include checking valve materials against a specification, predicting pump maintenance intervals, or summarizing weekly inspection reports.
- Classify each task into its correct bucket: Determine whether each task requires deterministic rules (first-principles math), statistical numerical patterns (sensor data), or unstructured language processing (reading and writing text).
- Identify the ground truth: Ask yourself what source confirms the answer is safe. Is it an ASME standard, an original equipment manufacturer (OEM) manual, or physical instrumentation?
- Assess failure consequences: If software gets the answer wrong by 20%, does the system cause plant downtime, create an environmental hazard, or simply require five minutes of editing?
A good result is a one-page breakdown showing that your critical design sizing belongs in rule-based software, your maintenance monitoring fits machine learning, and your report drafting belongs in an LLM.
Quick quiz
Question 1: You need to size a rupture disk for an alkaline electrolyser operating at 30 bar gauge. Which computational tool should you use?
Answer: You must use classical rule-based engineering calculations based on ISO 22734:2019 and ASME Section VIII. Sizing safety relief systems requires deterministic equations for mass flow, fluid properties, and orifice discharge coefficients. Machine learning and LLMs can make dangerous statistical errors on extreme, rare overpressure events.
Question 2: An operations team wants to spot impending mechanical seal failure on a slurry pump using motor current, seal flush temperature, and acoustic data. What is the right technology?
Answer: Machine learning is the right choice. The physical degradation of a mechanical seal involves complex interactions between solid particle wear, seal face temperature, and fluid film breakdown. ML models excel at detecting subtle statistical anomalies across multiple correlated sensor channels before a visible leak occurs.
Question 3: A team member uses a general-purpose LLM to check chemical compatibility between 50% sodium hydroxide (caustic soda) and pump elastomer materials. What risk exists?
Answer: The primary risk is hallucination. The LLM may confuse ambient temperature compatibility with high-temperature performance (for example, above 60 °C). It can also confuse closely related polymer compounds like EPDM and FKM (Viton). Always cross-check material compatibility against verified manufacturer charts and standards like ISO 19921.
Frequently asked questions
Is machine learning better than traditional CFD or FEA simulation?
No, they serve different purposes. Computational fluid dynamics (CFD) and finite element analysis (FEA) solve fundamental Navier-Stokes equations and elasticity relations from first principles. Machine learning models run thousands of times faster than CFD once trained, making them useful for real-time digital twins. However, ML models require validation data from physical tests or CFD runs to remain accurate.
Can an LLM read piping and instrumentation diagrams (P&IDs)?
Current multimodal LLMs can identify obvious tags, valve symbols, and flow arrows in clean drawings. However, they struggle with spatial line tracing, instrument bubble loops, and dense piping specifications. They frequently miss connections across sheet boundaries. P&ID reviews still require human engineering oversight.
What makes an engineering dataset good for machine learning?
A good engineering dataset contains wide operational variety, accurate time synchronization, and verified ground-truth labels. It must include normal operations, startup transitions, shutdown sequences, and known fault conditions. Data gathered entirely during steady-state operation cannot train a model to detect process failures.
Do I need to learn Python to use AI as an engineer?
You do not need to write code to understand AI concepts or evaluate AI tools. Plant engineers, project managers, and equipment buyers primarily need conceptual clarity to separate useful tools from marketing claims. Writing code becomes necessary only when you build, train, and deploy custom machine learning models yourself.
If you are evaluating machine learning models for fluid systems, electrolysers, or rotating machinery and need an objective engineering review, contact Avoltium for technical advisory and independent validation.
AI for Engineers · Lesson 1 of 8 · All free AI courses







