Use case · Manufacturing
AI in a manufacturing business.
A worked example.
An illustrative scenario for a manufacturer with five production lines making precision components for medical and pharma, electronics, aerospace and industrial customers. It shows where AI could genuinely help, how I would approach it, and a small demo you can try.
An illustrative scenario. The manufacturer is invented and every figure on this page is made up.
Which machine to check before it stops, and when.
The maintenance supervisor
Which machines are worth a check this week? →
What a manufacturer typically deals with
I've assumed the following for this example. In a real engagement the first job would be to check what is actually true for you.
Machines that stop without warning
An unplanned stop on a busy line costs far more than a planned one. The warning signs are often in the data, but nobody has time to watch it.
Scrap and rework quietly eating margin
A small rise in scrap on one line can go unnoticed for weeks, hidden inside a monthly total.
Materials arriving late, or the wrong ones in stock
Long lead times and a few key suppliers mean one late delivery can stop a line, while other stock sits for months.
Lots of data, little time
Machines, quality records, maintenance logs and the ERP each hold part of the story. Shift notes are on paper or in spreadsheets, and the same line or product has several names.
Workflows: from a repeated decision to a routine
A workflow takes something your team does again and again and runs the routine part by itself. Something triggers it, AI gathers and reads the data and drafts the next step, a person approves, and the outcome is logged and checked afterwards. People keep the decisions and lose the chasing.
A worked example · A press is drifting: act before it stops
An unplanned stop on a busy line costs far more than a planned one. This workflow watches the machines and finds the quiet moment to fix a problem. All names and figures are made up.
Overnight, the vibration reading on Press 3 on Line C climbs above its normal band and stays there.
The last six months of faults and maintenance notes, the order book, the production schedule and spare-parts stock are pulled together.
AI compares the pattern with the three earlier bearing failures on similar presses, each preceded by the same rise about five days before the stop. It also reads the maintenance manual for the right procedure.
A proposal: a four-hour maintenance slot on Saturday from 06:00, when Line C has no orders; a bearing check (two are in stock); a work order with the steps; and two orders moved to Line D for Friday evening.
The maintenance supervisor checks the plan, asks for an extra technician and approves it.
The work order is created, the planner and the stores are told, and the Friday orders are re-sequenced. After the repair, the sensor trace is compared with the earlier failures and logged for next time.
The same routine can be built for a mould change, a quality drift on a line, a late material delivery or an energy-price spike.
Getting your data ready for AI
AI is only as good as the data it can see. On a factory floor the data sits in machines, sensors, quality records, the ERP and a great many spreadsheets, and the same product or line can be named five ways. The first job is reaching all of it and shaping it into one version people trust. AI does much of that work, quickly, and leaves a record of every change.
Many sources, one view
- Production system (MES): read-only connection: output, speed, stops and scrap by line
- Machines and sensors: read-only feeds from controllers: vibration, temperature, energy
- ERP, orders and stock: read-only connections for orders, materials and purchasing
- Quality and maintenance records: systems and spreadsheets, including free-text notes read by AI
- Supplier price lists and delivery notes: PDFs and emails read by AI, whatever the layout
- Market prices: AI-assisted web collection of public commodity and energy prices
AI does the heavy lifting
- Same thing, different spellings: matched to your master lists (lines, products, materials, suppliers)
- Dates, currencies, units and number formats brought into one standard
- Duplicates found and removed, including the same record arriving from two systems
- Gaps filled from another source where one exists, and listed where not
- Odd values spotted and explained, never silently changed
- Documents, emails and photos read and turned into rows: supplier price lists, delivery notes, maintenance reports, handwritten shift logs
One layer people trust
- Definitions written down once and used everywhere
- Refreshed automatically on a schedule, nobody exports anything
- Every cleaning step logged, so any number can be traced back to its source
- Access limited to what each person needs
- A new source can be added without rebuilding what already works
Watch messy data get cleaned
Forecasting: a simple model that scales to any slice
Knowing what customers are likely to order, product by product, turns into better production plans, material purchasing and staffing. The model in this demo is deliberately simple: take what happened at this time last year, then adjust it for how the last eight weeks are running compared with the same eight weeks a year ago. To test it, the most recent eight weeks are hidden, forecast, then compared with what really happened.
Try it on made-up history
Any dimension you can name
Product family, customer segment, plant, line, customer, material, week of the year. The same model runs on each slice, and each gets its own accuracy test. Add a dimension and the forecasts follow.
From a handful to thousands
The table above is already forecasting dozens of slices at once. The same approach covers every product in every location, by day or by hour where that is what the decision needs.
Start simple, add what helps
Where the extra effort is worthwhile, richer models can bring in promotions, price changes, weather, events and holidays. The pipeline around the model stays the same, so it can be swapped without rebuilding.
- Plan production and shifts for the weeks ahead
- Buy materials with enough lead time, instead of expediting
- Notice early when a customer or product is drifting from its usual pattern
Five places I would look first
Small, useful and kept under control. Each one is a candidate for a first pilot, not a promise.
Fix machines before they stop
Read machine signals together with fault and maintenance history to flag the machines worth a check, and find the quiet gap in the schedule to do it.
Catch scrap and drift early
Watch scrap and quality measurements against each line's normal pattern, and point engineers to when a change started and which batch or setting is involved.
See supply problems coming
Combine stock, usage, lead times and supplier delivery history to show which materials could run short, weeks before a line is affected.
Shift handovers and reports
Turn machine logs and operators' notes into a clear handover summary for the next shift, and draft weekly production and quality reports, in the plant's own words.
Smarter purchasing
Read several signals together, gathered automatically from your own systems and from public sources: what you pay, what the market pays, how much you use and how reliable each supplier is. The result is a short list of materials worth a conversation with the supplier each week, with the reasons. The decision stays with people. More below.
Using supplier and market prices to decide where to look
Materials are often the biggest cost in the business, and small price differences add up fast at volume. AI can read several signals at once and point to the materials worth a second look. The negotiation itself remains a human conversation.
- What we pay and use: pulled automatically from the ERP and purchasing system through read-only connections
- Supplier price lists and contracts: PDFs and emails read by AI, whatever the layout
- Market prices: collected automatically from public sources, using AI-assisted web collection of public commodity and energy prices, or licensed price-data services
- Stock, usage and lead times: from the stock and production systems on a schedule
- Supplier delivery record: from receiving and quality records
- Business rules: approved suppliers, specifications and contract terms, written down once in plain language
Where AI helps with collection: reading messy supplier documents, matching the same material across suppliers and grades, filling gaps, and flagging when a source changes or breaks.
- A short weekly list of materials to review, with plain-English reasons, for example "above the market, high spend, supplier often late"
- A realistic price range to open a conversation
- A follow-up check on whether a change helped
- Answers anyone can read, with the numbers behind them
- The decision to renegotiate, change supplier or buy ahead
- Judgement about quality, relationships and risk
- Specifications and approved-supplier rules
- Approving any purchase before it is placed
Where AI adds most: reading supplier documents, matching comparable materials, making sense of messy market data and explaining the results in plain English. A sensible start is a weekly list of suggestions, widened as the team gets comfortable.
The demo below includes two questions on this, using made-up data.
From a question to a checked answer
Pick a question. You'll see the definitions it relies on, the query, the answer and the checks. The data is invented: five production lines over eight weeks, around 280 downtime records split by reason, 14 materials, 14 machines and 10 materials with made-up market prices.
Prepared questions on made-up sample data. In a real setup an AI assistant turns your own wording into queries like these, using your agreed definitions, and your team reviews the results. The SQL shown is what actually runs here, in your browser.
Ask the sample data
Choose a question above to see how it works.
A proposed approach
Offered as a starting point to discuss, not a fixed plan.
Understand before building
- Which decisions are slow, and who makes them
- Where production, quality, maintenance and purchasing data live
- Which definitions people already agree on (OEE, scrap, downtime), and where they differ
A first pilot could look like
- Scope: One production line
- Data: sensor readings, fault and maintenance history
- You would get: an alert a supervisor can check, tested on past events
- How we would know: we replay past events and see what it would have flagged
Leave the team able to run it
- Clear ownership of the definitions
- Simple guidance on what to check and when to stop trusting a result
- A decision on whether, and how far, to widen it
What keeps it safe and useful
- Definitions agreed once, by production, quality and finance, and used everywhere
- Read-only access to a prepared copy of the data, so a mistake cannot stop a machine
- People decide: on maintenance, on quality holds and on purchases
- Machines and controls never written to: the AI reads, it does not run the plant
- Queries visible and logged, so any answer can be traced and questioned
- Tested before it is trusted: checked against past events where the answer is already known
Questions before any proposal
- Which three decisions would you most like to make faster?
- Where do production, quality, maintenance and purchasing data live today, and how fresh are they?
- Do your teams already agree on what OEE, downtime and scrap mean?
- Which machines or materials cause the most trouble today?
- Which specifications and supplier rules must never be broken?
- What must never leave your systems or be pasted into an AI tool?