Ai-OPs
Ai-OPsKOIOS PLATFORM
Technical White PaperMining & Mineral Processing
Flotation Cell · Froth Depth Stabilization

Reinforcement‑learning froth‑depth control for flotation recovery.

A deep reinforcement‑learning controller that drives the flotation drain valves directly and learns feed‑forward action from the upstream valve, holding froth depth on setpoint and breaking the disturbance cascade that propagates tank to tank. It keeps valuable metal in the float instead of the tails, and runs closed‑loop on the plant's existing Allen‑Bradley PLC over native EtherNet/IP, with no new instrumentation.

>80%
less froth‑depth error
vs. setpoint, in validation
feed‑fwd
beats the lag
acts before the upset lands
~10s
detection lag closed
the gap PID could not win
$0
new instrumentation
existing PLC tags & valves
Executive summary

A flotation cell concentrates target metals by floating particle‑laden froth off the top of each tank while gangue drains out the bottom, and recovery depends on holding froth depth steady on setpoint. But the disturbances start upstream: when the lead tank's valve moves to defend its own froth depth, it sends a wave down every downstream tank. The downstream froth‑depth meter doesn't register it for roughly ten seconds, by which point the PID loop is already chasing setpoint, swinging, and the swing propagates down the bank, carrying valuable metal to tails.

Ai‑OPs deployed a Koios deep reinforcement‑learning (DRL) controller that drives the drain valves directly and learns a feed‑forward response, taking the upstream valve position as an input so it acts on the cause before the effect reaches the downstream meter. Validated against roughly three days of plant data across four sets, it held froth depth nearly exactly on setpoint, an estimated >80% reduction in error, running closed‑loop on the existing Allen‑Bradley PLC.

Phillip Hansel, Chief Executive Officer
Ai‑OPs · Industrial Intelligence, Reimagined
ai-ops.com
61 St. Joseph Street, Suite 300
Mobile, Alabama 36602
Ai-OPs ·Flotation Froth-Depth DRL Control
Mining & Mineral Processing

01

Background & objective

The objective was to break the disturbance cascade: stop the froth‑depth swing that begins at the head of the bank and grows tank by tank, and hold each cell on setpoint so valuable metal floats instead of dropping to tails.

In a flotation cell, slurry feeds in and air bubbles carry target‑metal particles up into a stabilized froth that overflows to concentrate, while gangue drains out the bottom. Each tank holds its froth depth with a drain valve on a single froth‑ball measurement. This was a cascaded flotation unit: the cells run in series and step down progressively in size, rougher, scavenger, cleaner, so every tank's outlet is the next tank's disturbance.

The control problem

  • Upstream origin: an upset begins at the lead tank; as its valve responds to hold froth depth, it creates a domino effect of disturbances down every downstream tank.
  • Detection lag: there is a ~10‑second delay before the disturbance reaches the downstream froth‑depth meter, by which time it is already too late to mitigate.
  • Reactive PID: the loop only starts chasing the level setpoint after the swing has landed, so it never catches up to the moving disturbance.
  • Lost recovery: each swing costs efficiency and production, and carries valuable metal to tails as it propagates down the cell.
Why feed‑forward, not a faster PID

A faster reactive loop still has to wait for the froth meter to see the disturbance. The win is to act on its cause, the upstream valve move, before its effect ever reaches the downstream meter.

Cascaded flotation unit, cells in series
UPSET PROPAGATES DOWNSTREAM FEED TAILS UNIT 01 02 03 04 DRAIN VALVE PER CELL · ↑ FROTH TO CONCENTRATE
LARGEST CELLcells in series · ~10s lag each hopSMALLEST CELL

FIG. 1: CASCADED FLOTATION UNIT. The cells run in series and step down progressively in size; slurry passes cell to cell while froth overflows to concentrate. A valve move at the lead tank propagates downstream as a froth‑depth swing that each downstream froth meter sees only after a ~10s transport lag, so a reactive PID is always behind it.

Ai-OPs · Koios Platformai-ops.comPage 2 / 6
Ai-OPs ·Flotation Froth-Depth DRL Control
Mining & Mineral Processing

02

Closed-loop control architecture

A deep reinforcement‑learning agent drives the drain valve directly and watches the upstream valve, so it functions like a feed‑forward loop: information passes from the upstream valve to the controller, and it moves before the disturbance reaches the local froth meter.

PLANT SIGNALS
Live process data
Froth depth SP / PV (Unit 02) · upstream valve opening (Unit 01) · local valve opening (Unit 02)
KOIOS · DRL AGENT
Feed‑forward froth controller
Inferences once per second on 10 samples of runtime history, and outputs a positional valve command, capped at a 2% step.
PLC OUTPUT
First‑cleaner drain valve
Unit 02 valve opening %, driven from the agent while AiOP is enabled.
FALLBACK
Native PID loop
Held ready for clean PID fallback on operator command or fault.
SYSTEM CONNECTIVITY · DIRECT ETHERNET/IP
PROCESS
Allen‑Bradley PLC
ControlLogix / CompactLogix · existing flotation drain‑valve loops, unchanged.
⇄ ETHERNET/IP
EDGE AI
Koios
On‑prem edge controller · reads & writes the PLC directly, no internet.
Koios connects directly to the PLC over native EtherNet/IP, reading and writing across both controller‑scoped and program‑scoped tags, with no OPC server or gateway in between.

FIG. 2: CONTROL & CONNECTIVITY ARCHITECTURE. The agent takes the upstream valve position as a feed‑forward input and drives the local drain valve, with the native PID loop held ready for clean fallback. Koios reaches the loop directly over native EtherNet/IP, across both controller‑scoped and program‑scoped tags, no OPC server in between.

What the agent watches

Froth depth setpoint and PV on the controlled tank, the local valve opening, and, critically, the upstream valve opening. It is data‑driven, no hydraulic model or simulator, and inferences once per second on the prior 10 samples of runtime so it acts on a trend, not a single noisy reading.

What it controls

It outputs one positional command, the first‑cleaner drain‑valve opening, limited to a 2% maximum step per move. Because it already knows what the upstream valve did, it pre‑empts the incoming disturbance instead of reacting to it after the froth meter finally sees it.

Ai-OPs · Koios Platformai-ops.comPage 3 / 6
Ai-OPs ·Flotation Froth-Depth DRL Control
Mining & Mineral Processing

2.3

Digital twin & control model

Breaking the valve correlation

In the raw data the upstream and downstream valves were so highly correlated that the system dynamics could not be modeled directly. The fix was a single engineered feature, the difference between the two valves (Valve_01‑02_diff). It broke the correlation and let Koios build a dynamic time‑series forecast, a digital twin (AiPV) of froth depth, by machine learning.

The twin was bump‑tested by shifting the valve difference between −2% and +2%; froth depth responded as a clean sine‑wave, confirming the dynamics had been captured before any control model touched the loop.

Control objective

The control model is trained to hold froth depth on setpoint with smooth, low‑amplitude valve motion, leaning on the feed‑forward signal from the upstream valve so it pre‑empts disturbances rather than chasing them. Precise, stable tracking is the priority the policy optimizes toward.

Control model settings
Output tagFirst‑cleaner valve opening % (Unit 02)
Output typePositional
Max step2.0%
Scan rate1 s · train & execute
History depth10 samples
Model inputs & valid range
Froth depth SP (in)4 – 18
Froth depth PV (in)0 – 20
Valve opening, Unit 010 – 34%
Valve opening, Unit 020 – 34%

TABLE 1: MODEL CONFIGURATION. The digital twin predicts froth depth from the valve difference; the control model outputs the Unit 02 valve opening, normalized and clamped to its valid range.

03

Implementation & integration

No new hardware

The controller reads existing froth‑depth and valve tags and writes the existing drain‑valve loop directly on the Allen‑Bradley PLC. The improvement reached the field entirely in software, with no new instrumentation and no capital build‑out.

Train, validate, deploy

Roughly 70% of the supplied data trained the models; the remainder drove simulated bump tests and validation. Models run in monitoring first, then promote to closed‑loop control, with PID fallback available at any time.

Replicable across the bank

The model built for one tank can be replicated for each tank regardless of size, so a single proven controller scales across the rougher‑scavenger‑cleaner bank rather than being re‑engineered cell by cell.

Ai-OPs · Koios Platformai-ops.comPage 4 / 6
Ai-OPs ·Flotation Froth-Depth DRL Control
Mining & Mineral Processing

04

Results

In validation the agent learned to rely heavily on the feed‑forward signal from the upstream valve, moving instantly to hold froth depth nearly exactly on setpoint, while the old reactive control kept swinging through the same disturbances.

>80%
error reduction
froth depth vs. setpoint
4 / 4
validation sets
consistent improvement
instant
feed‑forward action
learned from upstream valve
per‑tank
replicable model
scales across the bank
Froth depth & valve command, validation set
UNITLESS · 0–500 s
Targeted set point Ai‑OPs new froth depth Old froth depth Ai‑OPs new valve 2 Old valve 1 Old valve 2

FIG. 3: CONTROL VALIDATION. Recreated from the validation report. The old froth depth (green) swings widely through the bank's disturbances; the Ai‑OPs froth depth (orange, dashed) tracks the set point (blue) almost exactly. Across the four validation sets, error sums fell consistently, an estimated >80% reduction in froth‑depth error.

Validation finding

"The RL algorithm has learned to rely heavily on the feed‑forward information from the upstream valve. It moves instantly to hold the froth depth nearly exactly on set point. We expect an error‑from‑setpoint reduction of ~80% when deployed."

Ai‑OPs Model Validation: Froth Level Stabilization for Recovery Optimization

Ai-OPs · Koios Platformai-ops.comPage 5 / 6
Ai-OPs ·Flotation Froth-Depth DRL Control
Mining & Mineral Processing

05

Where this applies

The same pattern, a reinforcement‑learning agent that learns feed‑forward action across coupled loops and runs closed‑loop on the existing control system, generalizes across mineral processing and the wider plant. Applications available today on Koios:

01Froth depth & level stabilization
02Flotation bank coordination, rougher‑scavenger‑cleaner
03Reagent & air‑rate dosing control
04Process‑water & slurry‑feed control
05Grinding & mill throughput optimization
06Thickener & tailings density control
07Feed‑forward control of coupled series loops
08Predictive maintenance, rotating equipment
09Energy & utilities load management

About Koios

Koios is Ai‑OPs' self‑hosted machine‑learning inferencing platform for deploying scalable AI models on industrial control systems. It is hardware‑agnostic, runs fully on‑premises and air‑gapped, and writes optimized control back to PLCs, SCADA and smart instruments in real time. Your models and data stay inside your plant; you own every model Koios trains.

It installs as a single Docker image from a Docker Verified Publisher, or as an offline ISO / virtual‑appliance image, and is licensed as an annual per‑instance subscription.

ProtocolsEtherNet/IP · OPC‑UA · Modbus TCP · BACnet & more
DeploymentOn‑prem · air‑gapped
InstallSingle Docker image / ISO
Min. hardware4‑core 64‑bit · 8 GB RAM · 128 GB SSD · 1 GbE
Per licenseUnlimited devices, tags & models · historian & diagnostics · support
Stop the swing, keep the metal
We'll scope your flotation banks, validate against your historian, and show how fast we can deploy feed‑forward froth control closed‑loop.
ai-ops.com
Phillip Hansel, CEO
Mobile, Alabama 36602
Ai-OPs · Koios Platformai-ops.comPage 6 / 6