Unleashing the power of Real-Time Machine Learning to accelerate the production of toothpaste in Haleon

Oleksandr Teslenko23 Aug 2023

Problem

Haleon makes many toothpaste variants that share similar batch processes: adding ingredients, mixing, temperature and pressure changes, cooling. Operators watch parameters by hand to decide when a step is finished. Small human delays add up, lengthen the batch and waste resources, because operators cannot see the process in real time.

Example from the article: in a pilot at one Haleon site, each mixer streams sensor readings and the system tells the operator every minute which step the batch is in.

Solution in brief

Cut a reference template per parameter and step from past batches. Each minute, compare live sensor signals with the templates using fastDTW (approximate Dynamic Time Warping). A distance below a preset threshold means the step is detected, and the operator is notified. A minute-level Azure and Databricks pipeline with the usual MLOps controls keeps this distance algorithm deployable and monitored.

Questions this case answers
  • How to recognise the current step of a repeatable batch process from multivariate sensor streams when no labeled step boundaries exist
  • How to serve a non-trained, distance-based model on a minute-level streaming pipeline with the same MLOps controls as a trained model
  • How to tell in real time which step of a batch process the equipment is in, using only sensor readings?
  • How to shorten batch manufacturing time that operators lose because they cannot see when a step is finished?

Tools and methods

  • fastDTW — approximate Dynamic Time Warping, matches live signals to step templates despite speed differences
  • Databricks Auto Loader — incremental ingestion of new CSV files with checkpointing
  • Lakeflow Spark Declarative Pipelines (Delta Live Tables) — ETL of raw readings into a structured table
  • Microsoft Azure — Data Lake Gen2, Azure Functions per mixer, Application Insights, Azure ML Monitoring
  • Azure DevOps — CI/CD that builds, tests and releases the model package
  • Terraform — infrastructure as code for all environments
  • Power BI — operator dashboards
Continue reading — it's free

Google or a one-time email code. No password.