Data management

How to prepare industrial data before analysing a process

Illustration: three data sources come together in an orderly table in which one value is flagged for review.

Before any chart, model or report, there is a piece of work that decides whether the analysis will be of any use: preparing the data. In a plant, information is spread across the SCADA, the laboratory, the ERP and a handful of spreadsheets, and each source speaks its own language. In this article we look at how to organise that starting point so that the analysis of a process rests on a solid foundation.

First define what an observation is

The most important question when preparing industrial data is often overlooked: what does each row of your table represent? An observation can be a batch, a part, a laboratory sample or a time interval on the line. The choice depends on the question you want to answer and on how the results you are interested in are generated.

If what you want to understand is why some batches fall out of specification, the natural unit is the batch: each row brings together the process conditions, the raw material used and the quality result of that batch. If, on the other hand, you are interested in the stability of a continuous line, it will make more sense to work with fixed time intervals. Mixing levels without realising it leads to misleading conclusions.

  • Batch: suitable when the product is made in loads and quality is measured per load.
  • Part or unit: useful when each unit has its own identification and its own measurement.
  • Sample: when the laboratory analyses spot samples that represent a moment in the process.
  • Interval: common in continuous processes, where variables are summarised over time windows.

Align times and sources

Once the observation has been defined, the next challenge is for all the sources to refer to the same moment and the same material. The control system records variables every few seconds; the laboratory delivers results hours after the sample is taken; the ERP knows the batches and production orders, and spreadsheets hold shift notes with their own date format.

Aligning these sources requires taking several aspects into account. The clocks of the different systems are not always synchronised, and an offset of a few minutes can matter in a fast process. In addition, material takes time to pass through the installation: what you measure at the outlet of a dryer corresponds to what went in some time earlier. If, for example, the product took forty minutes to pass through a stage, comparing the inlet temperature with the outlet moisture at the same instant would make no physical sense. Knowing these residence times, even approximately, is part of the preparation.

It is also worth deciding how to summarise high-frequency variables at the level of the chosen observation: a mean, a maximum value, the variability within the interval or the value at a specific moment. The choice should reflect what you know about the process.

Look after identification and traceability

No analysis can relate a cause to an effect if it is not possible to follow the material through the process. Traceability is the backbone of industrial data: it tells you which raw material went into each batch, which equipment it passed through, under which conditions it was made and what result it achieved.

In practice, identifiers change format between systems, are written by hand with variations or are reused over time. Checking that the same batch has the same name in all sources, and building a correspondence table when it does not, saves many hours later. When a batch is split or mixed with others, it is important to record those relationships, because they determine which process conditions affect each final product.

Units, missing values and errors

With the sources aligned, it is time to review the content. Three aspects deserve special attention:

  • Units: the same variable may be recorded in degrees Celsius in one system and in Fahrenheit in another, or as a percentage in one place and as a fraction in another. Unifying units and noting which one is used in each column avoids silent errors.
  • Missing values: not all gaps mean the same thing. A value may be missing because the sensor failed, because the sample was not taken or because the line was stopped. Distinguishing these cases is key, because treating all missing values the same way can bias the analysis.
  • Errors and anomalous values: impossible readings, zeros that actually indicate a communication failure or values outside the physical range must be identified. Not every strange value is an error: sometimes it is precisely the signal you are looking for. Before removing anything, it is worth understanding where it comes from.

Also identify the periods that do not represent normal operation, such as start-ups, stoppages or cleaning, so that you can exclude them or analyse them separately.

Document every transformation

Preparing data involves decisions: which period is included, how variables are summarised, which values are considered erroneous, how missing values are handled. If those decisions are not written down, nobody will be able to reproduce the analysis in six months’ time, not even the person who did it.

Documenting does not take a great deal of effort: a clear record of the sources used, the extraction dates, the filtering criteria and the transformations applied is enough. Keeping the original data and the prepared data separate lets you go back when a question arises and turns a one-off analysis into a repeatable practice.

Start with what is available and protect confidentiality

It is tempting to think that you need a perfect data system before you start analysing. In most cases this is not so: the data that already exists can answer many questions, and the analysis itself reveals what information is missing and where it is worth measuring better.

At the same time, plant data is sensitive information: it describes recipes, operating conditions, suppliers and yields. When it is shared with external teams or between departments, it is advisable to work with anonymised or coded data, for example replacing the names of products, customers or suppliers with codes, and to formalise confidentiality agreements that make clear how the information may be used.

What to do first

If you want to start preparing your process data, these steps will help you get off on the right foot:

  • Formulate a specific question: for example, what distinguishes the batches that meet specification from those that do not.
  • Choose the observation: decide whether each row will be a batch, a part, a sample or an interval.
  • Take an inventory of sources: note which system stores each variable, how often and with which identifier.
  • Test traceability with a few cases: follow several batches from start to finish and check that you can bring together all their information.
  • Open a decision log: from day one, write down every filter and every transformation.

With that foundation, the later analysis, whether exploratory or with more advanced methods such as those we apply in process improvement, will start from data you can trust.

How can we help you?

Leave us your phone number or email address. We will get in touch to learn about your challenge and assess together how we can help you, with no commitment.

One of the two is enough. Choose how you would prefer us to contact you.

Would you like to tell us anything else? (optional)

When you submit, your email app will open with the message ready for you to review and send.