EN / ES — Español

Case study · Prescriptive machine learning

Chemical dosing recommendations

Machine learning models that recommend the chemical dose for pretreating industrial wastewater based on inlet conditions.

My role
Data science approach, prototype and specification; team leadership
Industry
Food industry wastewater
Status
Deployed in the platform

01 · Context

A pretreatment that needs care

A food industry plant treats its wastewater before sending it on to further treatment. In that pretreatment, chemicals are added to reduce the organic load and the solids in the water.

The water leaving the plant has to meet certain quality parameters. But inlet conditions change all the time, and choosing the right dose is not simple: too little and quality is not met; too much and chemical is wasted.

02 · Solution

Data-driven recommendations

Using historical operating data, we developed machine learning models that recommend the chemical dose based on the inlet water conditions.

The goal was twofold: use chemicals more efficiently and achieve better treatment quality, removing as many solids as possible. The recommendations were deployed in a platform module, with its own management.

03 · Demo

Try it: change the inlet

Move the inlet load and flow to see how the recommended dose changes, and compare it with a fixed dose. The curve and values are invented; they show the idea, not the model.

Dose advisorSynthetic data
Recommended dose26 u
Outlet load26 / 30
Chemical vs fixed dose−53 %
Fixed dose compliesYes
quality limitcompliant zonefixed dose · 55 urecommended · 26 uchemical dose →outlet load →
Conceptual interface with synthetic data · not the deployed modelInvented curve and units

04 · Results

Less chemical, better quality

Real results · no figures for confidentiality
  • Decrease: Lower chemical consumption
  • Increase: Better compliance with the required quality

During the pilot evaluation, results were compared with historical operating data from before the intervention: there were chemical savings and the required quality was met.

05 · My contribution

From approach to specification

Technical designLeadership
  1. 01Technical designFrame
    • Defining the data science approach.
    • Choosing the type of models.
  2. 02Design
    • How to build recommendations from the models.
  3. 03Prototype
    • Proofs of concept to validate the approach.
  4. 04Specify
    • Prototype of the module screens.
    • Specifications for development.
  5. 05LeadershipLead
    • Supporting the data team through implementation.

06 · Technologies

Tools

PythonpandasNumPyscikit-learnDjangoCelery