AI for Industrial Manufacturing: Read Downtime Logs to Find Repeat Stops

Coding Liquids tutorial cover featuring Sagnik Bhattacharya for AI for Industrial Manufacturing: Read Downtime Logs to Find Repeat Stops.
Coding Liquids tutorial cover featuring Sagnik Bhattacharya for AI for Industrial Manufacturing: Read Downtime Logs to Find Repeat Stops.

Export the small plant's downtime log as a CSV, upload it to ChatGPT or Claude, and ask for stoppages grouped by a checked cause code, with event counts and total lost minutes. Rank the causes by minutes, inspect the underlying rows, then ask maintenance to confirm the classifications before choosing a fix. No sensors are required.

The most frequent stop is not always the most expensive stop. Ten brief jams can use less production time than two long electrical faults. A chatbot can help clean notes and show both views, but the exported timestamps, cause definitions and arithmetic remain your responsibility. Keep the original file unchanged so each claim can be traced to a row.

Follow me on Instagram@sagnikteaches

Decide what counts as a stop before asking AI

Take one line, one shift pattern and a recent period with enough events to compare. Four weeks is a manageable first pass for a small plant, provided the product mix and recording practice were reasonably stable. If the line changed from one product to another halfway through, mark that boundary. A comparison across different products can create a false trend: a packaging line running small cartons may have more changeovers than it does during a large-carton run. Do not ask the model to explain causes until the team agrees what the export actually records.

Connect on LinkedInSagnik Bhattacharya

A useful CSV has one row per event and columns for event ID, line, machine, stop start, restart time, duration minutes, operator note, recorded cause, shift and planned or unplanned status. The event ID is vital: it lets a technician find the original entry. If duration is already recorded, still keep timestamps; a manual duration can disagree with the clock. Ask the production lead how breaks, cleaning, planned changeovers and microstops are treated. A six-minute cleaning break that appears as a breakdown will distort the ranking even when every sum is correct.

Subscribe on YouTube@sagnikteaches

Before uploading anything, remove staff names, personal contact details, customer references and sensitive production identifiers that the analysis does not need. Use stable replacement codes so the maintenance team can reconnect the report to its internal log. Review your organisation's rules for uploading operational data. OpenAI's data analysis guidance recommends clear column names and one record per row; its upload documentation lists CSV support. Anthropic's document guidance also lists CSV support for Claude. A small, clean export is easier to check than a large file with merged cells and several unrelated tables.

For example, an operator may type “belt slipping after washdown” in one row and “belt slip” in another. Those could be one family, but “belt replacement during scheduled service” should stay planned maintenance. Keep three columns: the original note, the proposed standard cause and a reviewer-approved cause. That separation means the model can suggest a grouping without silently rewriting history. If the raw log has no reliable start time, report the recorded duration as a provisional value rather than manufacturing a timestamp.

The Complete Excel Course with AI Integration thumbnail

The Complete Excel Course with AI Integration

From formulas and pivot tables to Power Query, DAX, VBA and AI with Copilot, ChatGPT and Claude — hands-on from the first lesson.

By Sagnik Bhattacharya and Virginia Thorn, Primetime Emmy Award winner

Buy now

A four-week CSV on one illustrative packing line

Consider an illustrative plant packing parts on one line. Its four-week export contains 68 unplanned events and 1,065 recorded lost minutes after excluding scheduled cleaning and planned changeovers. The production lead spots six blank durations and resolves them from the original clock entries before any ranking. The team also finds that two overnight events were entered once by the outgoing shift and once by the incoming shift; removing those duplicates leaves the 68 events. Without those checks, an apparently precise Pareto table would be misleading.

Reviewed causeEventsLost minutesShare of total
Infeed jam2430028.2%
Label sensor fault1227025.4%
Sealer heat recovery824022.5%
Air pressure drop615014.1%
Other reviewed causes181059.9%

Those illustrative figures add to 68 events and 1,065 minutes. The percentages are each cause's minutes divided by 1,065, rounded to one decimal place; their displayed total may differ slightly from 100% because of rounding. Infeed jam is both the largest count and the largest minute loss, but the sensor fault has half as many events and nearly as much lost time. The first three causes account for 810 minutes, about 76% of the reviewed total. A Pareto chart, meaning bars ordered from largest to smallest contribution, helps the meeting focus; it does not prove the root cause.

Suppose a shift manager initially says, “We have a sensor problem.” The row review reveals eight of the 12 sensor-labelled entries mention a dirty reflector, while four describe an intermittent cable connection. Maintenance may decide those are separate failure modes with different actions. If the four cable events consumed 190 of the 270 minutes, replacing the reflector cleaning instruction alone will barely move the total. Preserve the combined category for the first ranking, then split it for the repair decision and record why the split was made.

The line's output target also matters. A stop during a staffed production run has a different impact from one while upstream material is unavailable. The table measures logged downtime, not lost sales, labour cost or overall equipment effectiveness. For those broader measures, use a separate OEE calculation based on checked downtime notes. Avoid multiplying every minute by a headline revenue rate; the line may have recovered production later or had no saleable order queued.

Ask for a row-level ledger, then a Pareto

Upload the cleaned CSV and ask the assistant to describe its columns and row count before it analyses anything. If the count differs from your spreadsheet, stop. Provide the date range, line and exclusion rules in the same prompt. Ask it to produce an exception list for blank durations, negative time differences, duplicate event IDs, overlaps and rows marked planned. An assistant may use a data analysis tool to calculate sums, or it may reason from text; either way, inspect the output rather than accepting a confident narrative.

Use the attached illustrative downtime CSV for Line A only.
First report row count, column names, date range, blank durations,
duplicate event IDs and negative or overlapping intervals.
Exclude rows marked planned. Do not change the original note.
Suggest a standard cause for each remaining event, but mark
ambiguous rows REVIEW rather than guessing.
Return a ledger with event ID, original cause, proposed cause,
duration and reason for any proposed recode. Then group approved
causes by event count and total minutes. Sort by minutes, calculate
each share of the total and give the event IDs behind each subtotal.
Do not infer a mechanical root cause from the text alone.

An illustrative first output might say “Infeed jam: 24 events, 300 minutes, IDs 014–037”. That compact range is insufficient if IDs are not consecutive, so ask for every ID or a downloadable ledger. It might also mark “operator waiting for mechanic” as a mechanical fault; that note describes a delay, not the initiating failure. Correct the category with a reviewer and retain both the original note and the reason for recoding. AI is useful here because it surfaces inconsistent language quickly, while the team supplies the physical meaning.

Check the arithmetic outside the chat. In a spreadsheet, filter to unplanned Line A rows and sum duration by approved cause using a pivot table. Confirm that the pivot total equals the source total and that each cause's event count matches its IDs. For the example, 300 + 270 + 240 + 150 + 105 must equal 1,065. A model's pretty chart is secondary to that reconciliation. If it omits “Other”, merges blanks into zero or calculates percentages from counts rather than minutes, reject the chart and fix the ledger first.

Ask a second question only after the ledger is approved: which three cause families deserve a maintenance discussion, and what evidence would distinguish competing explanations? A good answer could request photographs of jams, a check of sensor cleaning records and pressure readings at stop times. A weak answer will simply declare that a component is worn. The latter jumps from a text label to a diagnosis. Maintenance should decide inspection and repair order using safety, severity, available spares and the condition of the equipment.

Make the cause names useful to the people on shift

Cause labels need to be stable enough for comparison yet specific enough to support action. “Machine fault” is too broad; “infeed jam” is a reasonable family, with a second field for suspected mechanism. Avoid a different category for every spelling variation. A short cause dictionary can define whether a stop belongs under material feed, control, utility, operator setup or planned activity. Give operators an “unknown” option. Forcing every uncertain event into a named fault creates an attractive chart with unreliable inputs.

A concrete edge case is a recurring “no parts” note. In one week it could mean the upstream press stopped; in another it could mean a trolley arrived late. Both interrupt the packing line, but neither is necessarily a packing-machine breakdown. The production lead might classify these as upstream supply stops and keep them visible in the plant report. If the purpose is maintenance prioritisation for the packing line, the report should show that family separately rather than adding its minutes to infeed jams.

Another example concerns automatic resets. Twelve entries of one minute each may share a cause but consume only 12 minutes. Repeated resets could still signal a safety or quality issue, so the minutes ranking is not the sole priority rule. Flag any fault that threatens safe operation or product quality for immediate human review. The chatbot can list event IDs and patterns; it must not recommend bypassing interlocks or continuing production against the team's procedure. A near miss belongs in the appropriate near-miss reporting process, not hidden inside the downtime bucket.

In a third example, a machine may log one 90-minute stop while maintenance records three repair attempts inside that interval. Counting each repair note as a fresh stoppage would inflate the event count and possibly the duration. Define one event as the interval from the production stop until stable restart, then keep intervention notes as linked records. Conversely, a brief restart followed by a fresh stop may be a second event under the team's agreed rule. The exact threshold is a plant decision; record it before comparing weeks.

Turn the ranking into a maintenance discussion

Share a one-page review containing the date range, exclusions, cause dictionary version, Pareto table, ambiguous rows and the underlying event IDs. Invite an operator, maintenance technician and production lead to review the top causes together. For each, ask whether the label matches what happened, whether the duration includes waiting for a spare or a technician, whether several mechanisms were combined, and what observation would confirm the suspected cause. This is a short evidence review, not an AI diagnosis meeting.

For the illustrative infeed jams, the operator might bring three photographs showing a skewed carton at the same guide. Maintenance may find that 18 of the 24 jams followed one product changeover, while the other six occurred across all products. The action could be a changeover check on guide position and a trial adjustment, not a blanket machine overhaul. Log the proposed change, who approves it, when it starts and what event category should fall if it works. Keep a safety review where a mechanical adjustment requires one.

For the label sensor, a technician could find that cleaning the reflector takes five minutes but a cable replacement needs a planned stop. The team might introduce a simple start-of-shift inspection while scheduling a cable check. Do not count either as a successful fix immediately. In the following four weeks, compare sensor minutes and event count on similar product runs. If events fall from 12 to four but total minutes remain high because one cable event lasts two hours, the cleaning action helped only part of the problem.

For sealer heat recovery, eight events at 240 minutes invite a different question: are operators logging warm-up after an ordinary planned shutdown as unplanned downtime? If half those entries are part of a scheduled start, the ranking changes. If the heater genuinely trips during production, record the fault code and operating conditions before choosing a remedy. AI can find phrases such as “after lunch” or “temperature dipped” in the notes, but it cannot inspect the controller or verify that a sensor reading was accurate.

A small plant may want a maintenance platform after this exercise. Do not buy one solely because the chatbot produced a chart. If the team needs work-order ownership, repeat reminders and asset histories, compare a small-factory maintenance system against a disciplined spreadsheet. If the requirement is simply to locate repeated stops in a monthly CSV, a reviewed export and pivot may already be adequate. The choice depends on missed actions, log quality and how often people need the same report.

Check that the next export tells the same story

Write down a baseline: the 68 reviewed events, 1,065 minutes, line hours, product mix and top three causes. At the next review, rerun exactly the same steps with the same exclusions and cause definitions. Compare both total minutes and minutes per scheduled production hour; otherwise a shorter operating week may appear to be an improvement. If the line ran 160 scheduled hours in the first period, its logged unplanned downtime was 6.7 minutes per scheduled hour. If the next period ran 120 hours, raw minutes alone are not comparable.

Keep a short audit sample. Select ten rows, including several ambiguous notes, and ask a different person to compare the model's proposed label with the original log and maintenance evidence. Record disagreements and adjust the cause dictionary only with the team. If two people cannot consistently assign a cause from the available note, that is a logging problem rather than a prompting problem. A better shift entry might ask for the symptom, first observed time, product, action taken and restart confirmation.

One useful quality measure is the proportion of events needing a human recode. If 14 of the illustrative 68 rows are marked REVIEW, the model has left about one in five unresolved. That is a sensible queue for a technician, not a failure. If the proportion rises in the next export, inspect the notes before changing the prompt. A new operator may be using shorthand, or a recently introduced machine may need its own cause choices. Count recodes separately from blank durations so you know whether the problem is missing data or ambiguous language.

The same check can expose time-entry errors. Imagine event 052 has a start at 14:10 and a restart at 14:26, but its recorded duration is 160 minutes. The assistant may repeat the entered duration unless asked to compare it with the timestamps. The production lead should correct that single row to 16 minutes only after checking the original log, then rerun the entire pivot. A 144-minute correction could move a cause several positions. Keep a correction note with the old and new value rather than quietly editing the source export.

When comparing shifts, avoid publishing a league table of individual operators. One shift may run a difficult product, handle start-up work or inherit a machine already in poor condition. First compare the same product and line under similar operating time. If the night shift reports more “unknown” stops, ask whether its logging form is accessible and whether a maintenance technician was present to identify the fault. This turns a potentially unfair personnel judgement into a practical improvement to the record.

Suppose the next export reports zero infeed jams. Before declaring victory, inspect whether the cause was renamed “feed interruption”, whether operators stopped logging brief events or whether that product did not run. A sudden disappearance of one label alongside a rise in “other” is a warning about classification drift. A daily production report with checked stop notes can help catch such changes before the monthly review.

Finally, store the approved ledger and the decision record alongside the original CSV in the plant's normal document location. Include the report date, reviewer, source export name, cause dictionary version and any corrected rows. The useful output is a repeatable account of what stopped, for how long, and which evidence led to an action. A chatbot makes the first pass faster; the plant's people make the result credible.

Further reads

Sources: OpenAI documentation, Data analysis with ChatGPT and Uploading files and audio to ChatGPT; Anthropic support, Upload files to Claude

Want a downtime review your team can repeat?

On a 1:1 AI implementation consultation, we can map your log fields, create a checked analysis routine and hand over a worksheet your production and maintenance teams can run.

Book a 1:1 call with me