Physics-guided machine learning for saturation control across variable hydraulic conditions in heap leaching
Organizations: Department of Chemical Engineering, University College London, London, United Kingdom · Department of Chemical and Environmental Engineering, Universidad Técnica Federico Santa María, Valparaíso, Chile
Abstract
Heap-leaching hydraulics vary between regions of an ore bed, motivating fast prediction models that accommodate different material properties. This study develops a parameter-conditioned physics-guided machine-learning (PGML) surrogate and demonstrates its use in simulated saturation control. A dataset of 4096 numerical Richards-equation trajectories was divided into 2867 training, 614 validation and 615 evaluation cases. The network predicts hourly saturation profiles from the current profile, irrigation rate and four hydraulic parameters, and is trained with an approximate Gardner mass-balance penalty. A daily predictive controller compared 200 constant irrigation rates over a 24-hour horizon. Across the evaluation cases, the median full-cycle tracking deviation was 4.9% of a 0.70 saturation target, equal to that of a tuned proportional-integral (PI) controller, while the PGML controller reached the target without overshoot in the median and applied approximately 4% less irrigation. Moderate physics guidance reduced long-horizon prediction error by approximately 30% relative to data-only training and reduced irrigation-bound activity, but slightly worsened closed-loop tracking. For a matched prediction workload, the surrogate was approximately 70 times faster than the numerical solver, and batched evaluation cost under 2 ms per column for 5000 columns. The results support a reusable physics-guided surrogate for large-scale saturation control in simulation.
Figures & tables
| Symbol | Quantity | Nominal value | Range |
|---|---|---|---|
| [cm/day] | saturated hydraulic conductivity | 170 | 130 – 232 |
| [–] | van Genuchten shape parameter | 2.267 | 2.20 – 3.00 |
| [1/cm] | van Genuchten retention parameter | 0.035 | 0.025 – 0.042 |
| [–] | saturated moisture content | 0.330 | 0.270 – 0.388 |
| [–] | initial column saturation | 0.424 | 0.40 – 0.63 |
| Architecture | Training | ||
|---|---|---|---|
| input / output dimension | 226 / 221 | optimiser | Adam |
| hidden layers | 4 | learning rate | 0.004 |
| hidden width | 512 | batch size | 4096 |
| hidden block | BatchNorm, ReLU | physics weight | 0.4 |
| output activation | sigmoid | epochs (warm-up) | 150 (5) |
| trainable parameters | 1.0 million | LR decay | halve on plateau, patience 10 |
| Configuration | Value | Performance measure | Value |
|---|---|---|---|
| evaluation cases / closed-loop runs | 615 / 1845 | final mean | |
| leach cycle / control step | 25 d / 24 h | RMS deviation [% of ] | |
| candidate rates / set-point | 200 / 0.70 | settling time of example [d] | 4 |
| Controller | Cases | median | 90th pct | % | bound viol. | at | water | |
| [%] | [%] | [% runs] | [–] | [% runs] | [% runs] | [cm] | ||
| PGML predictive controller (this work) | 615 | 4.90 | 7.41 | 1.5 | 0.002 | 2.1–3.7 | 4.9–10.1 | 449 |
| constant steady-state rate | 615 | 5.75 | 11.85 | 5.7 | 0.000 | 0.0 | 0.0 | 436 |
| proportional deficit rule | 615 | 5.38 | 7.05 | 0.5 | 0.000 | 11.2 | 46.2 | 462 |
| PI controller (tuned) | 615 | 4.87 | 7.22 | 0.3 | 0.000 | 6.3 | 9.1 | 469 |
| PGML predictive controller (seed 42) | 205 | 4.59 | 7.96 | 2.0 | 0.002 | 2.4 | 7.3 | 437 |
| Condition | PGML | PI | Proportional deficit |
|---|---|---|---|
| Full profile, no noise | 4.59 | 4.66 | 5.26 |
| Full profile, noise sd 0.02 | 4.62 | 4.67 | 5.26 |
| Five sensors, noise sd 0.01 | 4.63 | 4.70 | 5.26 |
| excursion beyond the bound | |||||
|---|---|---|---|---|---|
| Property | Bound | 0% | 5% | 10% | 20% |
| , cm/day | 0.60 | 0.57 | 0.77 | 1.16 | |
| 0.04 | 0.04 | 0.10 | 0.46 | ||
| , cm -1 | 0.14 | 0.34 | 0.13 | 0.16 | |
| 0.46 | 0.77 | 0.51 | 0.63 | ||
| 4.01 | 10.21 | 14.73 | |||
| Prediction model | CPU [ms] | GPU [ms] |
|---|---|---|
| PGML (this work) | ||
| Numerical solver |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| 0.00 | 0.20 | 0.40 | 0.60 | 0.80 | 1.00 | |
|---|---|---|---|---|---|---|
| 0.00 | – | 0.26 | 0.32 | 0.33 | 0.46 | 0.80 |
| 0.20 | 0.74 | – | 0.56 | 0.50 | 0.71 | 0.93 |
| 0.40 | 0.69 | 0.44 | – | 0.47 | 0.63 | 0.91 |
| 0.60 | 0.68 | 0.50 | 0.53 | – | 0.66 | 0.90 |
| 0.80 | 0.55 | 0.29 | 0.37 | 0.34 | – | 0.84 |
| 0.00 | 0.20 | 0.40 | 0.60 | 0.80 | 1.00 | |
|---|---|---|---|---|---|---|
| 0.00 | – | 0.69 | 0.66 | 0.64 | 0.67 | 0.72 |
| 0.20 | 0.31 | – | 0.41 | 0.48 | 0.56 | 0.62 |
| 0.40 | 0.34 | 0.59 | – | 0.57 | 0.63 | 0.68 |
| 0.60 | 0.36 | 0.52 | 0.43 | – | 0.54 | 0.62 |
| 0.80 | 0.33 | 0.44 | 0.37 | 0.46 | – | 0.60 |
| 0.00 | 0.20 | 0.40 | 0.60 | 0.80 | 1.00 | |
|---|---|---|---|---|---|---|
| 0.00 | – | 0.17 | 0.06 | 0.15 | 0.19 | 0.13 |
| 0.20 | 0.83 | – | 0.21 | 0.48 | 0.44 | 0.35 |
| 0.40 | 0.94 | 0.79 | – | 0.77 | 0.66 | 0.59 |
| 0.60 | 0.85 | 0.52 | 0.23 | – | 0.46 | 0.39 |
| 0.80 | 0.81 | 0.56 | 0.34 | 0.54 | – | 0.39 |
| 0.00 | 0.20 | 0.40 | 0.60 | 0.80 | 1.00 | |
|---|---|---|---|---|---|---|
| 0.00 | – | 0.18 | 0.11 | 0.23 | 0.33 | 0.23 |
| 0.20 | 0.82 | – | 0.31 | 0.54 | 0.57 | 0.46 |
| 0.40 | 0.89 | 0.69 | – | 0.70 | 0.69 | 0.59 |
| 0.60 | 0.77 | 0.46 | 0.30 | – | 0.56 | 0.43 |
| 0.80 | 0.67 | 0.43 | 0.31 | 0.44 | – | 0.38 |
| Group | Terminal mean | Interquartile range | Deviation, % |
|---|---|---|---|
| 0.60 | 0.18 | 14.7 | |
| 0.70 | 0.01 | 0.0 |
| Condition | PGML predictive | PI controller | prop. deficit rule | constant rate |
|---|---|---|---|---|
| correct parameters, full profile | 4.59 (0.002) | 4.66 (0.000) | 5.26 (0.000) | 5.42 (0.000) |
| measurement noise, sd 0.02 | 4.62 (0.003) | 4.67 (0.001) | 5.26 (0.001) | – |
| five sensors, noise sd 0.01 | 4.63 (0.004) | 4.70 (0.003) | 5.26 (0.004) | – |
| parameter errors, level 0.10 | 7.96 (0.037) | 4.77 (0.000) | 6.40 (0.017) | 9.37 (0.042) |
| parameter errors, level 0.20 | 11.52 (0.069) | 4.96 (0.000) | 7.77 (0.033) | 14.44 (0.088) |