OBLYTECH Logo
OBLYTECH Logo

Data Readiness for Machine Downtime Reason Codes

Data readiness for AI on downtime reason codes means the codes, machine IDs and shift boundaries agree with each other before any model groups or explains stoppages. This page sets out the checks that confirm they do, the order to run them in, and the decisions to settle before AI output is trusted.

Downtime reason codes look simple on a dashboard. A stoppage happens, someone picks a code, and the total goes into a chart. The trouble starts when a model reads those records at volume. A code that meant jam clearance on line two in March may have been reused for a sensor fault by June. A machine ID reassigned during a relocation may point to the wrong maintenance history. A stoppage that starts at 21:55 may land in the wrong shift if the boundary is applied to a clock that runs a few minutes behind. An AI step that groups these records will group the errors as well, and the output will read as if it were sound.

The checks below run in order: the code list, then machine IDs, then shift boundaries, then a sample test.

Start with the code list, not the stoppage records

Export all downtime reason codes in use over the period you plan to analyze. Include the description, the date each code was created, and any date it was retired or renamed. Then compare that list with the codes that appear in the stoppage records. A code that appears in the records but not in the list is the first thing to resolve, because the model has no reliable way to know what it means.

Look for codes that overlap in meaning

Two codes with different numbers can describe the same event. A sensor fault may be recorded as an electrical code on one shift and a controls code on another. Two codes with the same label can also differ in meaning if the taxonomy changed. Put similar descriptions side by side and ask a supervisor from each shift whether they would choose the same code for the same event. Where the answer is no, write down the rule that separates the two codes before any grouping starts.

Decide how free-text notes are used

Many stoppage records carry a note beside the code. Notes often explain the cause better than the code does, but they vary in spelling, abbreviation and detail. Decide whether the AI step will read the code, the note, or both, and record that decision. If notes are included, read a sample of twenty or thirty notes per code and check that the wording supports the code selected. Flag notes that contradict their code rather than correcting them during analysis.

Confirm each stoppage resolves to one machine ID

The machine ID is the join key that links a stoppage to an asset, a line, a cell and that asset’s maintenance history. Readiness here means each stoppage record resolves to one machine ID, and that ID existed in the asset register on the date of the stoppage. The register as it stands today is the wrong reference for historical records.

Run these checks in order:

  1. Count stoppage records with a blank machine ID and list them separately.
  2. Match each remaining ID against the asset register as it stood on the stoppage date.
  3. Find IDs that map to more than one asset, which usually follows a renumbering or a line move.
  4. Confirm that IDs for scrapped, replaced or relocated equipment carry an end date or a successor ID.
  5. Calculate the share of stoppages still unresolved, and agree a threshold with the plant owner before modeling begins.

Keep stoppages that fail these checks, but flag them. Dropping them quietly shifts the totals toward machines that record well and away from machines that do not. A model will read that pattern as a real difference between assets.

Line up shift boundaries with the clock the records use

Shift boundaries are a frequent source of quiet errors in downtime data. A stoppage has a start time and an end time, and the handover may fall between them. Settle three things before any shift comparison.

Confirm which clock produced each timestamp

Find out whether start and end times come from the machine controller, the plant historian, or an operator entering them into a form. These sources can differ by several minutes, and a few minutes is enough to move a stoppage across a handover. If the sources differ, choose one as the reference and note the offset for the others.

Set one rule for stoppages that cross a handover

A stoppage that runs from 13:40 to 14:20 across a 14:00 handover can be split into two parts, each assigned to the shift in which it occurred. It can also stay as one record, tagged with the shift of its start time and flagged. Either approach works if it is applied consistently. Mixing the two across the data set is a common reason shift comparisons look wrong, so pick one and apply it throughout.

Check shift labels against the roster

Where the shift is stored as a text label, compare it with the roster for the same dates. Public holidays, cover arrangements and weeks when a shift pattern changed are the usual places where a label and the roster disagree. A night label on a day roster is a data problem to fix, not a finding to report.

Test a sample before the model sees the full set

A sample test shows whether the code list, the machine IDs and the shift rule produce the meaning people expect. Choose a sample that covers at least three weeks and both shifts, and that includes all codes the analysis is meant to explain. Then work through the following steps.

  1. Ask someone who worked the shift to assign a code to a subset of stoppages without seeing the original code, then compare the answers.
  2. Check that machine-level and shift-level totals in the sample match the totals in the source system’s own reports for the same period.
  3. Log each disagreement with its cause, such as a missing code, a renumbered asset or a boundary split.
  4. Decide for each cause whether to correct the source, add a written rule, or exclude the affected records, and record the decision.

Run the sample test again after each fix, because a change to one field can alter results for another.

Assign owners and a change process for each field

Data readiness does not end once the first export looks clean. Codes get added when a new machine arrives, and shift patterns change when a plant restructures. Name one owner for the code list, one for the asset register and one for the shift roster. Each owner should be able to say when their list last changed and who approved the change.

  • Log each code addition, retirement or rename with its date and reason.
  • Re-run the duplicate-code and unresolved-ID checks after each change to the list or the register.
  • Keep earlier versions of the code list, so that historical records can be read against the codes that applied when they were entered.

Decide the rules before any AI output is used

Write down four decisions before grouping or explanation begins: which fields the AI step may read, how unresolved machine IDs are treated, which shift rule applies, and who reviews a grouping that looks wrong. These decisions shape the result as much as the data does, so the people who read the output should be able to see them.

If the question the model should answer is still open, settle it first using the steps on AI use case discovery. Once stoppage data is clean, the same records can also feed maintenance intake, which is covered in review steps for AI triage of manufacturing maintenance requests. Readers looking at the wider manufacturing context can start at the manufacturing industry pages.

For help planning this work, see AI and ML services.

Questions about preparing downtime code data for AI

Can a stoppage without a reason code still be used?

Yes, if it is kept as a separate unclassified group and the grouping step reports it under that label. Treating a blank as a real code, or dropping those records, both change the picture. Count them separately so the reader can judge how much of the data is missing a code.

How far back should the code history go?

Go back as far as the code list was maintained consistently. Older records entered under a different taxonomy need their codes mapped before they are compared with recent ones. Record the start date of the history alongside the analysis.

Should the AI step be allowed to change codes in the source data?

Keep the source record unchanged. Any suggested re-coding should go to a person for approval and be stored as a proposed change, so the original value remains available for audit.

How should a retired code be handled when comparing periods?

Map the retired code to its successor with a date, then compare the old and new periods using the code set that applied to each. Comparing raw counts across a rename without mapping it makes a change in labeling look like a change in performance.

Can the machine ID check run before the shift rule is settled?

Yes. The two checks read different fields, so they can run in either order. The shift rule should still be fixed before any stoppage is split, because splitting changes the number of records the machine ID check is measured against.