Preprint
Article

This version is not peer-reviewed.

A Laboratory-Calibrated Digital Twin Framework for Automation of Carbon-in-Leach Gold Circuits: Simulation-Based Evaluation and Deployment Pathway

Submitted:

28 November 2026

Posted:

30 November 2026

You are already at the latest version

Abstract
Gold recovery in carbon-in-leach (CIL) circuits depends on states that are measured only intermittently and on laboratory assays that arrive hours late, so fixed set-points and one-off model calibration become wrong as carbon fouls and equipment wears. This paper presents a laboratory-calibrated digital twin framework for CIL automation and a simulation study based on a research prototype, the CIP–CIL Digital Twin Simulator. The prototype combines a six-stage counter-current surrogate, a hidden plant with wear and fouling, an extended Kalman filter that compares each delayed assay with the model at its sample time, a sulfide soft sensor, an advisory model-predictive controller and condition monitoring. In a 40-seed Monte Carlo study with an independent re-implementation, calibration reduced the 24 h recovery error from 4.05–9.57 to 0.49–0.65 percentage points in every run, and its set-points lost 0.003% of achievable profit against 0.79% for the uncalibrated model. A designed step test cut parameter errors under fouling from 18–25% to 4–8%, and aligning assays to arrival rather than sample time raised the floor-grade error from 6% to 21%. Carbon advance dominated recovery sensitivity. Results are simulation-based; a staged, read-only deployment pathway for African gold plants is proposed.
Keywords: 
;  ;  ;  ;  ;  ;  ;  

1. Introduction

Carbon-in-leach (CIL) and carbon-in-pulp (CIP) circuits recover most of the world’s primary gold. Cyanide leaching, oxygen supply, adsorption of the gold–cyanide complex onto activated carbon, carbon transfer, elution, electrowinning and carbon regeneration form one coupled system whose economic value is very sensitive to small recovery changes [1,2,3]. Mechanistic models of the leach–adsorption cascade have existed for four decades [4,5,6,7], but the operating decisions that depend on them, namely cyanide dosing, oxygen supply, carbon advance and the scheduling of elution, are still usually taken from fixed set-points and delayed laboratory information. Key states of the circuit, such as dissolved gold in each tank, carbon loading profile and effective carbon activity, are measured only intermittently, and the assays that do exist arrive hours after the process state they describe.
This limitation matters because the circuit drifts. Carbon fouls, agitators and screens wear, ore mineralogy changes, and sulfide species raise cyanide demand and cause preg-robbing. A model calibrated once will therefore become wrong, and a controller that relies on it will optimise a plant that no longer exists. A digital twin addresses this by keeping a model synchronised with the plant through data. The concept is well established in manufacturing [8,9,10,11], and recent reviews list the main barriers in mining: data integration, real-time synchronisation, poor data quality, interoperability, cost and the scarcity of large-scale industrial validation [12,13,14,15]. Nobahar et al. report that mining accounts for only about 4% of published digital-twin studies, as summarised in [15], and evidence from resource-constrained operations in Africa is sparser still.
Three specific gaps motivate the present work. First, published CIL studies model the circuit or optimise it, but rarely treat laboratory assays as delayed, noisy observations that must be fused with a running model. Second, work that does use state estimation seldom reports its identifiability, even though three kinetic parameters estimated from a few assay types can be strongly confounded. Third, digital-twin proposals for mineral processing often stop at architecture and do not report how the twin should be verified, what it costs the operator to trust it, or how it can be introduced safely on ageing plants with limited connectivity.
This paper reports a research prototype, the CIP–CIL Digital Twin Simulator, and a simulation study built on it. The prototype combines a six-stage counter-current CIL surrogate, a hidden “plant” that differs from the nominal model, a laboratory-calibrated extended Kalman filter (EKF), a sulfide soft sensor, an advisory model-predictive controller, equipment condition monitoring with work orders, and a security and deployment design. The contributions are as follows.
  • A formulation of CIL state and parameter estimation in which each laboratory assay is compared with the model state at the sample time, not the arrival time, with censoring below the detection limit and innovation clipping (Section 3.4).
  • An independent re-implementation of the published surrogate equations and a 40-seed Monte Carlo evaluation of twin calibration under equipment wear and carbon fouling, including a designed step test for identifiability (Section 4.2 and Section 4.3).
  • Evidence on two operational questions that are rarely quantified: how much the assay sampling interval and delay matter, and how much is lost if assays are aligned to their arrival time (Section 4.4 and Section 4.5).
  • A global sensitivity analysis that ranks the operating variables and model multipliers by their influence on recovery (Section 4.6), and a decision-value test of calibrated against uncalibrated advisory control (Section 4.7).
  • A staged deployment pathway for advisory operation on plants with limited infrastructure, aligned with industrial cybersecurity, alarm-management and functional-safety standards (Section 5.3).
The study builds on the authors’ earlier work on digital twins, machine learning and deep learning (Section 2.5), in particular its emphasis on identifying model components from measured data and on reporting identifiability. The present study uses simulated and illustrative data. It is a method and framework paper, and none of its quantitative results should be read as plant performance. Section 5.4 states the limits explicitly.

3. Materials and Methods

3.1. Platform Overview

The CIP–CIL Digital Twin Simulator is a self-contained browser application (Standard and Pro editions) that runs from a single HTML file with no installation or network connection. Three controllers act on the same hidden plant: a fixed-set-point PID baseline with a pH safety interlock, an advisory model-predictive controller (MPC) that uses the nominal model, and an MPC that uses a laboratory-calibrated twin. The hidden plant has true kinetics that differ from the nominal model and drift with fouling and equipment wear, so that mismatch must be detected by the twin. Laboratory assays of tail solution gold, loaded carbon and tail solid gold arrive with a delay, and real laboratory data can be imported as a CSV file. Figure 1 shows the information flow, and Figure 2 shows schematic views of the animated cascade and of the dashboard of the Pro edition. The Pro edition adds a simulated role-based access control and audit log, RUL-driven procurement, a protocol monitor and a batch elution model.

3.2. Mine Profiles and Data Provenance

Each profile sets throughput, head grade, residence time per stage, carbon inventory, elution capacity and a leach rate. The leach rate constant is found by bisection so that the steady-state PID plant reproduces the target recovery at the profile set-points. Every parameter is labelled as published (P), derived (D) or assumed (A) in an in-application provenance table. Profiles of Zimbabwean operations were built from public company and trade-press reporting and are anonymised here. Table 2 lists the profiles. Calibration fixes steady-state recovery only; it does not validate dynamics, set-point response or elution behaviour.

3.3. Process Surrogate

The process model is a steady-state, six-stage, counter-current CIL surrogate solved algebraically at each tick, with g the head grade (g/t), σ the sulfide severity (%), C the dissolved gold (ppm), S the undissolved gold in the solids (g/t), q the carbon loading (g/t carbon), τ the residence time per stage (h), L = 1.5 the liquid-to-solid ratio, T the throughput (t/d) and i = 1,…,6 the stage. Three multipliers θk,θa,θf scale the leach rate, adsorption rate and floor grade (nominal value 1). Sulfide raises cyanide demand and preg-robbing and defines the floor grade Gf that cannot be leached:
s = σ 100 ,   c y = 1 + 1.45   s ,   π = 0.14   s ,     G f = g   F 0   θ f + 0.35   π .
Free cyanide ci and dissolved oxygen di fall along the cascade because of consumption:
c i = max ​ 30 ,   C sp   0.87   i − 1 0.85 + 0.25   c y ,     d i = max ​ 2 ,   D sp   0.93   i − 1 − 0.025   σ .
Leaching follows saturating dependence on cyanide and oxygen, with ψpH = 0.9 when pH is below 10.2 and 1 otherwise:
k i = K max   θ k   c i 22 + c i   d i 1.6 + d i   ψ pH ,     Δ i = max 0 , S i − 1 − G f 1 − e − k i τ ,   S i = S i − 1 − Δ i ,   C i in = C i − 1 + Δ i L .
Adsorption depends on the carbon concentration X = X0 ce/2 (g/L), with ce = min(ca,E) the carbon advance ca limited by the elution capacity E, and on a loading headroom factor hi that reduces the rate as the carbon approaches qmax = 8000 g/t:
h i = clamp 1 − q i q max , 0.12 , 1 ,     φ i = 1 − exp ​ − 4   K a   θ a   X   max 0.2 , 1 − 3 π   h i   τ ,     C i = max ​ 0.004 ,   C i in 1 − φ i .
The gold adsorbed in stage i is A i = C i in   φ i   L   T (g/d), and the counter-current loading follows from a mass balance on the carbon,
q i = 1 c e ∑ j ≥ i A j .
Because hi depends on qi, Equations (4) and (5) are solved by damped fixed-point iteration. Tail equivalent grade and recovery are
G t = S 6 + L   C 6 ,     R = clamp 100   g − G t g ,   70 ,   99 .
Throughput scales tonnage and, inversely, residence time: τeff = τ/ρ and Teff = ρ T with 0.70 ≤ ρ ≤ 1.15. The surrogate has no tank hydraulics, screens, transport delay or batch carbon transfer, and in the standard edition elution is represented only by its capacity limit; the Pro edition adds a batch elution model with a 12 h cycle and 97% recovery, both assumed.

3.4. Hidden Plant and Mismatch

The simulated plant uses the same structure with true multipliers that depend on equipment wear and fouling:
θ k true = 0.78   1 − 0.3   a ‾ ag ,     θ a true = 1.30   ϕ f   1 − 0.15   a ‾ sc ,     θ f true = 1.25 ,
where a ‾ ag and a ‾ sc are the mean degradation of agitators and screens (0 to 1), and the fouling factor ϕ f = max 0.55 ,   e − 0.012   t − t 0 starts when fouling is activated at t0. Equipment wear therefore appears as model mismatch that the twin must detect.

3.5. Laboratory-Calibrated Extended Kalman Filter

The state is x = ln θ k , ln θ a , ln θ f ⊤ . A laboratory result for a sample taken at sj becomes available at aj = sj + δj (nominally δj = 5 h, with samples every 6 h) and contains three assays, tail solution gold, loaded carbon in tank 1 and tail solid gold:
z = ln C 6 ,   ln q 1 ,   ln S 6 ⊤ = h x ;   u s j , g s j , σ s j + ε ,     ε ∼ N 0 ,   diag 0.08 2 , 0.05 2 , 0.10 2 .
Each assay is compared with the model evaluated at the process state and inputs that applied at sj, not at aj. The three measurements are processed one at a time with the standard EKF update [30,31]:
ν i = z i − h i x ,   s i = H i P H i ⊤ + R i ,   K i = P H i ⊤ s i ,   x ← x + K i ν i ,   P ← P − K i s i K i ⊤ ,
with P ← P + Q before each update, Q = 0.002 I, P0 = 0.0625 I (25% initial uncertainty) and a Jacobian Hi obtained by finite differences (step 0.04). Two robustness rules are applied. Tail solution gold below the 0.006 ppm detection limit is censored, because the model cannot represent values below its 0.004 ppm floor. Each innovation is clipped to ± 3 s i so that one outlying assay cannot move the parameters far, and estimates are bounded to ±0.9 in log space. The normalised innovation squared, ν i 2 / s i , is computed from the unclipped innovation as a consistency check [59]; a median near 1 indicates a consistent filter. Figure 3 summarises the procedure.

3.6. Sulfide Soft Sensor and Advisory Controller

Sulfide severity is estimated from an online proxy p = 0.85 σ + 4 + w, corrected by a bias b updated when each laboratory sulfide result arrives:
σ ^ ← σ ^ + 0.25   clip 0 , 95 p + b − σ ^ ,     b ← 0.5   b + 0.5   σ lab − p .
The advisory MPC enumerates a grid of cyanide, oxygen and carbon advance, evaluates the process model with its own multipliers and selects the profit maximiser, with a rate-limited, smoothed move:
V = R 100   gT 31.1035   P Au − m NaCN   T   c N − c O max 0 , D − 3 − c C   c a − 4 × 10 5 max 0 , C 6 − 0.03 ,
u * = arg max u ∈ U V u ; θ ^ ,     u k + 1 = u k + 0.3   sat δ u * − u k .
Here mNaCN = 0.00243 Csp(0.8 + 0.2 cy/1.29) kg/t, PAu is the gold price (default US$3500/oz), cN= US$2.4/kg, cO = 35, cC = 450 US$ per t/d, and the last term penalises tail solution gold above 0.03 ppm. The nominal controller uses θ ^ = 1 and the calibrated controller uses the EKF estimate. If the supervisory link is lost, both fall back to the PID set-points. The twin is advisory: a proposed set-point passes through a PLC function that limits it to a band around the operator value and ignores it if the twin heartbeat stops.

3.7. Condition Monitoring, Work Orders and Workforce Model

The Standard edition monitors 25 assets (agitators, pumps, screens, a blower, heaters and rectifiers, and instruments), and the Pro edition 35. Hidden degradation d ∈ [0,1] grows over the asset life with a load factor that depends on the process, and produces vibration, temperature, motor-load and performance signals shifted by a fault-mode signature. Each deviation is normalised by its alarm range and combined into a health index HI (0 to 100); diagnosis compares the deviation vector with the signature of each plausible fault mode using cosine similarity and a softmax; and remaining useful life (RUL) extrapolates the least-squares slope β of the last 48 hourly HI values to HI = 40:
RUL = HI − 40 β ,     t order = RUL − L lead   m L − 3   days .
A work order is created when HI < 60 and is assigned to the on-shift person with the required skill at level 3 or above; if nobody qualifies, the order waits and a skills-gap alarm is raised. Procurement compares RUL with the supplier lead time Llead multiplied by a lead-time factor mL. Vibration zones use illustrative limits in the style of ISO 20816-3 [60], alarm handling follows the style of ANSI/ISA-18.2 [61], and the HMI follows ANSI/ISA-101 practice [62]. Equipment, roster, spares and fault data are simulated.

3.8. Numerical Experiments

The simulator reports reference runs from a single seed. To test whether those results are robust, and to quantify questions the simulator does not address, the published surrogate equations were re-implemented independently in Python and the experiments in Table 3 were run. The generic profile uses the default parameters of the manual (T = 2200 t/d, τ = 2.4 h, Kmax = 0.50 h​−1, F0 = 0.052, Ka = 0.0085, X0 = 15 g/L, g = 3.45 g/t). The default PID set-points and sulfide severity are not stated in the manual, so they were inferred by least squares from the manual’s four verification results (cyanide 150 and 300 ppm, throughput 100% and 115%), giving σ = 40%, NaCN 250 ppm, DO 6 mg/L, carbon advance 2 t/d and pH 10.5. The hidden plant follows Equation (7) with wear a ‾ drifting linearly from 0.15 to 0.35 over 200 h, and fouling starting at 24 h where applicable. True head grade follows an AR(1) process with 5% standard deviation, and the twin sees head grade with 3% and sulfide with ±2 points of noise. All Monte Carlo experiments used 40 independent seeds. Paired differences were tested with the Wilcoxon signed-rank test [63], and independent groups with the Mann–Whitney test, with medians and interquartile ranges reported.

4. Results

4.1. Verification of the Re-Implemented Surrogate

Table 4 compares the independent re-implementation with the verification results reported by the simulator for its generic profile. The cyanide and throughput responses agree in direction and to within 0.5 percentage points (pp), but these two checks are not independent because the unreported default set-points were fitted to them (Section 3.8). The mass-balance and elution-cap checks are independent: gold removed from the ore equals gold carried on carbon exactly in the re-implementation, because the adsorbed gold is the only sink, whereas the simulator reports a 0.97% difference attributed to its floor on solution gold and its recovery clamp; and recovery is unchanged when carbon advance is raised above the elution capacity in both implementations.

4.2. Twin Calibration under Equipment Wear and Carbon Fouling

Figure 4 shows one run with fouling from 24 h. The hidden plant’s tail solution gold rises from about 0.03 ppm to about 0.16 ppm as the adsorption rate falls, the nominal twin remains near 0.04 ppm, and the calibrated twin follows the plant after a lag of several assay cycles. The parameter estimates move towards the hidden values, but the floor multiplier is overestimated and the early adsorption estimate overshoots, which shows the confounding discussed below.
Across 40 seeds the calibrated twin reduced the 24 h mean absolute recovery error from 4.05 pp to about 0.5 pp without fouling and from 9.57 pp to about 0.6 pp with fouling (Table 5 and Figure 5a). The calibrated error was lower than the nominal error in 40 of 40 runs in every scenario (Wilcoxon signed-rank, p ≈ 2 × 10−12, the smallest value possible for n = 40). The median normalised innovation squared was 0.35 to 0.49, below the value of 1 expected for a consistent filter, so the filter is conservative: its assumed noise and process covariances are larger than needed in this simulation.

4.3. Identifiability and the Designed Step Test

Recovery is predicted well even when individual parameters are poorly identified, because leach rate, adsorption rate and floor grade have overlapping effects on the three assays. Without a step test the median parameter errors under fouling were 17.6% (leach), 4.7% (adsorption) and 24.6% (floor). The 72 h step test, which perturbs cyanide, oxygen, carbon advance and throughput with unequal periods, reduced these to 4.5%, 2.5% and 7.7% (Mann–Whitney p = 3 × 10−8, 0.0013 and 7 × 10−11), and also improved all three parameters without fouling (p = 0.009, 0.021 and 0.002; Table 5, Figure 5b). The recovery error did not change (0.62 versus 0.65 pp). This agrees in direction with the single-seed reference runs of the simulator, where the step test reduced parameter errors from 23, 22 and 19% to 1, 3 and 2% for the generic profile. The practical implication is that a twin used only for output prediction can be calibrated from routine assays, but a twin used to predict the effect of changed set-points needs designed excitation, and on a real plant such a test needs approval and care.

4.4. Alignment of Delayed Assays

To test the value of comparing each assay with the sample-time state, the EKF was run under the step test with fouling in two variants: the sample-time comparison of Section 3.5, and a naive variant that evaluates the model at the arrival time (Figure 6b). Aligning to the arrival time increased the median floor-multiplier error from 5.8% to 21.1% for a 5 h delay (Wilcoxon p = 5 × 10−8) and from 5.8% to 11.6% for a 12 h delay (p = 0.006), with smaller and less consistent effects on the other parameters. The effect on recovery error was negligible (0.52 versus 0.56 pp). The median NIS of the naive variant (0.85 and 1.15) was closer to 1 than that of the correct variant (0.47), so the consistency statistic alone would not have revealed the error. The size of the penalty is not monotonic in the delay because it depends on how the step-test periods fall relative to the delay.

4.5. Assay Sampling Interval and Delay

Under fouling without a step test, the median calibrated recovery error was 0.54, 0.62, 0.76 and 0.67 pp for sampling intervals of 3, 6, 12 and 24 h (Kruskal–Wallis p = 0.020; Figure 6a). The laboratory delay (0, 5, 12 and 24 h) had no detectable effect (0.62, 0.62, 0.59 and 0.63 pp, p = 0.88). The insensitivity to delay is a property of the quasi-steady surrogate and the slow drift modelled: with sample-time comparison, a late assay carries the same information as an early one, and drift over a few hours is small. It should not be extrapolated to dynamic plants with fast disturbances, where the delay limits how quickly the twin can respond.

4.6. Global Sensitivity of Recovery

Over the ranges in Table 3 (N5), recovery had a mean of 87.5% and a standard deviation of 6.4 pp. Carbon advance dominated, with a first-order index of 0.57 and a total-effect index of 0.67, followed by throughput (0.07 and 0.17) and the adsorption multiplier (0.10 and 0.11); head grade (0.03 and 0.08), the leach multiplier (0.05 and 0.06), sulfide (about 0 and 0.05) and the floor multiplier (0.03 and 0.02) were smaller, and the cyanide set-point had almost no influence over 100 to 420 ppm because the cyanide term saturates (Figure 7). The dissolved-oxygen index (first-order 0.10, total 0.03) shows that the estimator error is of the order of 0.05, since a first-order index cannot exceed the total-effect index; differences below about 0.05 should not be interpreted. Because carbon advance enters through both the carbon concentration and the loading, the result identifies the elution and carbon-transfer capacity as the main operational lever in this surrogate, which is consistent with the lock-up behaviour reported in Table 7.

4.7. Decision Value of Calibration

Table 6 compares the profit obtained on the true plant at the end of the fouling-with-step-test scenario when set-points are optimised on the nominal twin, on the calibrated twin and on the true plant (oracle). The calibrated twin’s set-points lost US$24 per day (0.003%) against the oracle, whereas the nominal twin’s set-points lost US$5958 per day (0.79%); the calibrated twin was better in 40 of 40 runs (p = 2 × 10−9). The optimum lay on the upper edge of the search grid (380 ppm, 14 mg/L, 4 t/d) in the oracle and calibrated cases, so the result is bound-limited, and it depends on the assumed prices and on the severity of the simulated mismatch. The PID baseline is not evaluated because its set-points are arbitrary in this experiment, and no PID-versus-MPC benefit is claimed here.

4.8. Results Reported by the Simulator (Single Seed)

Table 7 lists reference results reported in the simulator’s manual. They come from single seeded runs and are included for completeness and to show that the independent Monte Carlo results of Section 4.2 and Section 4.3 are of the same order. For example, the simulator reports a reduction of the 24 h recovery error from 3.3 to 0.21 pp for the generic profile with fouling, against 9.57 to 0.62 pp in the Monte Carlo study, whose hidden-plant mismatch is larger because the inferred sulfide severity is high.

5. Discussion

5.1. Interpretation

Three findings are robust within the simulation. First, calibrating three multiplicative parameters from delayed laboratory assays removes most of the output error caused by wear and fouling, in every run. Second, accurate output prediction does not imply accurate parameters: without designed excitation, the leach and floor multipliers carried errors of 18% and 25% under fouling, because they affect the same assays; a throughput step breaks the confounding because only the leach rate depends on residence time. Third, the way a delayed assay is aligned matters more than the delay itself. These findings are consistent with the broader estimation literature on delayed and out-of-sequence measurements [34,35] and with the general advice that soft sensors need maintenance against fresh reference samples [25].
The decision-value result is the most practically relevant and the most conditional. Set-points optimised on a drifted nominal model were worse than those from the calibrated twin in every run, but the absolute figures depend on assumed prices, a bound-limited optimum and a hidden-plant mismatch that is deliberately large. The honest reading is that an uncalibrated advisory optimiser can be confidently wrong, and that calibration is a precondition for advisory use.

5.2. Implications for Zimbabwean and African Gold Operations

The circuit conditions assumed here, with sparse online measurements, assays at intervals of hours, ageing equipment and small metallurgical teams, are common in mid-sized African operations. Four design choices follow from the results. A twin should be introduced first in shadow mode with read-only data, since the main value found here, state estimation, does not need control authority. The laboratory should be treated as a signal inside the estimator, with sample time recorded at the point of collection in the laboratory information system. Short designed tests should be planned as part of commissioning, because routine data cannot separate leach and adsorption effects. And the maintenance and workforce functions of the prototype, namely condition-based work orders, skills-gap alarms and RUL-driven procurement, address constraints that limit uptake of advanced technology in the region, in line with the barriers reported for mining twins in general [12,13,15]. These implications are hypotheses to be tested with plant data, not findings.

5.3. Pathway to Plant Deployment

Figure 8 and Table 8 propose stage gates for moving from the prototype to advisory use, with the standards that shape each stage. The cybersecurity design follows zones and conduits and least-privilege roles in IEC 62443 and the operational-technology guidance of NIST [66,67], with the Purdue and ISA-95 level model [68,69] and OPC UA [70]. The pH interlock is a concept consistent with the International Cyanide Management Code [71] and any safety function must be implemented in a safety controller after hazard analysis under IEC 61511 [72]. Condition monitoring follows ISO 13374 [73], the digital-twin structure maps to ISO 23247 [39], and technology readiness is tracked with TRL [74]. The access control and security events in the prototype are simulated in the browser and are not security controls.

5.4. Limitations and Threats to Validity

The study has important limits. (i) All data are simulated. The hidden plant has the same structure as the twin model, differing only in three multipliers, so the twin is correctly specified; real plants will also have structural error, which would raise the recovery errors reported here. (ii) The surrogate is steady-state and calibrated by construction to published recovery, so it does not validate dynamics, set-point response or elution behaviour, and the effect of delay could not be observed. (iii) The default sulfide severity and set-points were inferred from four published checks, and the Monte Carlo mismatch is therefore larger than for a typical ore. (iv) The decision-value result is bound-limited and uses assumed prices, and no controller-versus-PID benefit is claimed. (v) The NIS values below 1 indicate that the filter tuning is conservative and could be improved. (vi) Profiles of Zimbabwean operations are derived from public reporting and anonymised, and several parameters are assumed. (vii) Equipment, roster, spares and fault data are simulated, and the vibration limits are not asset-specific. (viii) The security and access-control functions are a client-side design simulation. The re-implementation is by the same author as the simulator, so independent replication by others would strengthen confidence.

5.5. Machine Learning and Deep Learning Extensions

The EKF in this study adapts only three multipliers, so the structural error that a real plant would show is left unmodelled. A natural extension is a hybrid model in which a data-driven term corrects the mechanistic balances, as in the hybrid-modelling literature [47,48], trained with a physics-guided loss that enforces the gold and carbon mass balances [50,55]. Recurrent and convolutional surrogates have forecast flotation grade 30 min ahead [45], and a similar surrogate for tail solution gold would give the advisory optimiser a fast forward model. Three conditions apply. First, the networks should be pre-trained on simulator output, which is cheap and abundant, and fine-tuned on laboratory assays, with time-blocked validation so that temporal dependence does not inflate accuracy [76]. Second, drift monitoring is required because data-driven components degrade when operating conditions change [52]. Third, uncertainty should be reported with ensembles or Bayesian methods and scored with proper scoring rules [77,78]. The authors’ experience with identifiability in the battery twin [57] argues for reporting which learned parameters the data actually determine. Lightweight image-based segmentation, of the kind evaluated for tobacco leaf lesions [58], could be tested for low-cost optical monitoring of carbon condition, which would address the carbon-inventory gap noted in Section 2.1, provided that robustness to noise and lighting is tested as in that study.
Further work should add a dynamic model with batch carbon transfer and an elution cycle, evaluate the estimator on real laboratory and plant data in shadow mode, add uncertainty quantification beyond the EKF covariance [40,41], and test operator trust and usability with structured human-factors methods.

6. Conclusions

A laboratory-calibrated digital twin for a CIL circuit can be built from a small mechanistic surrogate, an extended Kalman filter on three multipliers and a disciplined treatment of delayed assays. In a 40-seed simulation study with equipment wear and carbon fouling, calibration reduced the recovery prediction error from 4 to 10 pp to about 0.5 to 0.65 pp in every run, and advisory set-points from the calibrated twin were within 0.003% of the achievable profit, against 0.79% for the uncalibrated model. A designed step test was needed to identify individual parameters, and comparing each assay with the model at its sample time rather than its arrival time avoided a several-fold increase in the error of the floor-grade estimate. Carbon advance, and hence elution and carbon-transfer capacity, dominated recovery sensitivity. These results come from a surrogate and simulated data and are conditional on the limits stated above. They also reflect lessons from the authors’ earlier work on identifying digital-twin components from measured data [57]. They support a staged deployment strategy that begins with read-only shadow operation on real plant data, and they define the experiments, namely a step test, a locked test period and sample-time recording, that a first plant trial should include.

Supplementary Materials

The simulator files (CIP-CIL_Digital_Twin_Simulator.html and CIPCIL_Pro_Digital_Twin_Simulator.html), the user manual and the Python re-implementation are available from the corresponding author on request.

Author Contributions

Conceptualization, D.M. and L.M.; methodology, D.M.; software, D.M.; validation, D.M.; formal analysis, D.M.; investigation, D.M.; writing—original draft preparation, D.M.; writing—review and editing, D.M., L.M., S.M. and N.G.M.; visualization, D.M.; supervision, L.M. All authors have read and agreed to the submitted version of the manuscript.

Data Availability Statement

The simulated data generated in this study, and the code used to generate them, are available from the corresponding author on reasonable request. Profile parameters are derived from public reporting and are listed with their provenance in the simulator.

Acknowledgments

The authors acknowledge institutional support from the National University of Science and Technology, Bulawayo, Zimbabwe.

Conflicts of Interest

The authors declare no conflicts of interest.:

Abbreviations

The following abbreviations are used in this manuscript:
CIL            Carbon-in-leach
CIP            Carbon-in-pulp
DO            Dissolved oxygen
EKF            Extended Kalman filter
HMI            Human–machine interface
HI,           Health index;
LIMS            Laboratory information management system;
MPC            Model-predictive control;
NIS            Pormalised innovation squared;
PID            Proportional–integral–derivative; PLC, programmable logic controller;
RUL            Remaining useful life;
SCADA            Supervisory control and data acquisition;
TRL            Technology readiness level.

References

  1. Marsden, J.; House, I. The Chemistry of Gold Extraction, 2nd ed.; Society for Mining, Metallurgy and Exploration: Littleton, CO, USA, 2006. [Google Scholar]
  2. Adams, M.D. (Ed.) Gold Ore Processing: Project Development and Operations, 2nd ed.; Elsevier: Amsterdam, The Netherlands, 2016. [Google Scholar]
  3. Stange, W. The Process Design of Gold Leaching and Carbon-in-Pulp Circuits. J. S. Afr. Inst. Min. Metall. 1999, 99, 13–25. [Google Scholar]
  4. Nicol, M.J.; Fleming, C.A.; Cromberge, G. The Absorption of Gold Cyanide onto Activated Carbon. II. Application of the Kinetic Model to Multistage Absorption Circuits. J. S. Afr. Inst. Min. Metall. 1984, 84, 70–78. [Google Scholar]
  5. van Deventer, J.S.J.; Ross, V.E. The Dynamic Simulation of Carbon-in-Pulp Systems: A Review of Recent Developments. In Miner. Eng.; 1991. [Google Scholar] [CrossRef]
  6. de Andrade Lima, L.R.P. Dynamic Simulation of the Carbon-in-Pulp and Carbon-in-Leach Processes. Braz. J. Chem. Eng. 2007, 24, 623–635. [Google Scholar] [CrossRef]
  7. Wadnerkar, D.; Tade, M.O.; Pareek, V.K.; Utikar, R.P. Modeling and Optimization of Carbon in Leach (CIL) Circuit for Gold Recovery. Miner. Eng. 2015, 83, 136–148. [Google Scholar] [CrossRef]
  8. Grieves, M.; Vickers, J. Digital Twin: Mitigating Unpredictable, Undesirable Emergent Behavior in Complex Systems. In Transdisciplinary perspectives on complex systems; Kahlen, F.-J., Flumerfelt, S., Alves, A., Eds.; Springer: Cham, Switzerland, 2017; pp. 85–113. [Google Scholar]
  9. Kritzinger, W.; Karner, M.; Traar, G.; Henjes, J.; Sihn, W. Digital Twin in Manufacturing: A Categorical Literature Review and Classification. IFAC-PapersOnLine 2018, 51, 1016–1022. [Google Scholar] [CrossRef]
  10. Tao, F.; Zhang, H.; Liu, A.; Nee, A.Y.C. Digital Twin in Industry: State-of-the-Art. IEEE Trans. Ind. Inform. 2019, 15, 2405–2415. [Google Scholar] [CrossRef]
  11. Qi, Q.; Tao, F.; Hu, T.; Anwer, N.; Liu, A.; Wei, Y.; Wang, L.; Nee, A.Y.C. Enabling Technologies and Tools for Digital Twin. J. Manuf. Syst. 2021, 58, 3–21. [Google Scholar] [CrossRef]
  12. Qu, J.; Kizil, M.S.; Yahyaei, M.; Knights, P.F. Digital Twins in the Minerals Industry – a Comprehensive Review. Min. Technol. 2023, 132, 267–289. [Google Scholar] [CrossRef]
  13. Nobahar, P.; Xu, C.; Dowd, P.; Shirani Faradonbeh, R. Exploring Digital Twin Systems in Mining Operations: A Review. Green Smart Min. Eng. 2024, 1, 474–492. [Google Scholar] [CrossRef]
  14. Galagedarage Don, M.; Wanasinghe, T.R.; Gosine, R.G.; Warrian, P.J. Digital Twins and Enabling Technology Applications in Mining: Research Trends, Opportunities, and Challenges. IEEE Access 2025, 13, 6945–6963. [Google Scholar] [CrossRef]
  15. Ebad, S.A.; Abueid, A.I.; Amara, M.; Ahmed, R. AI-Driven Digital Twins in Mining Operations: A Comprehensive Review. Technologies 2026, 14, 269. [Google Scholar] [CrossRef]
  16. Zadra, J.B. A Process for the Recovery of Gold from Activated Carbon by Leaching and Electrolysis; U.S. Bureau of Mines, 1950. [Google Scholar]
  17. van Deventer, J.S.J.; Lorenzen, L.; van der Merwe, P.F.; Morrison, D.W.; van der Westhuysen, J.P.W. The Fundamentals of Unit Operations in CIP Plants: A Progress Report. Miner. Eng. 1994, 7, 265–278. [Google Scholar] [CrossRef]
  18. Wadnerkar, D.; Utikar, R.; Tade, M.; Pareek, V. Simulation and Analysis of Carbon-in-Leach (CIL) Circuits. In Proceedings of the 11th international symposium on process systems engineering, computer aided chemical engineering; Karimi, I.A., Srinivasan, R., Eds.; Elsevier: Amsterdam, The Netherlands, 2012; vol. 31, pp. 1206–1210. [Google Scholar]
  19. Steyn, J.W.; Moyo, P. Operational Insights to Carbon-in-Leach Processing Through Dynamic Simulation. In Proceedings of the World gold 2019; The Australasian Institute of Mining and Metallurgy: Melbourne, Australia, 2019; pp. 584–593. [Google Scholar]
  20. Snyders, C.A.; Akdogan, G.; Bradshaw, S.M.; van Wyk, A.P. Gold CIP and CIL Process Optimization in a Capital Constraint Environment. J. S. Afr. Inst. Min. Metall. 2017, 117, 819–828. [Google Scholar] [CrossRef]
  21. Latva-Kokko, M.J.; Kourunen, J.P.; Ruokanen, J.K.; Peltola, J.R. Development of a Novel in-Situ Carbon Content Measurement for CIL and CIP Processes. In Proceedings of the World gold 2019; The Australasian Institute of Mining and Metallurgy: Melbourne, Australia, 2019; pp. 633–639. [Google Scholar]
  22. de Andrade Lima, L.R.P.; Hodouin, D. Online Optimization of a Gold Extraction Process. In Proceedings of the 4th international conference on control and automation (ICCA), Montreal, Canada, 2003. [Google Scholar]
  23. Hodouin, D.; Jämsä-Jounela, S.-L.; Carvalho, M.T.; Bergh, L. State of the Art and Challenges in Mineral Processing Control. Control Eng. Pract. 2001, 9, 995–1005. [Google Scholar] [CrossRef]
  24. Hodouin, D. Methods for Automatic Control, Observation, and Optimization in Mineral Processing Plants. J. Process Control 2011, 21, 211–225. [Google Scholar] [CrossRef]
  25. Kadlec, P.; Gabrys, B.; Strandt, S. Data-Driven Soft Sensors in the Process Industry. Comput. Chem. Eng. 2009, 33, 795–814. [Google Scholar] [CrossRef]
  26. Fortuna, L.; Graziani, S.; Rizzo, A.; Xibilia, M.G. Soft Sensors for Monitoring and Control of Industrial Processes; Springer: London, UK, 2007. [Google Scholar]
  27. Narasimhan, S.; Jordache, C. Data Reconciliation and Gross Error Detection: An Intelligent Use of Process Data; Gulf Professional Publishing: Houston, TX, USA, 2000. [Google Scholar]
  28. Qin, S.J.; Badgwell, T.A. A Survey of Industrial Model Predictive Control Technology. Control Eng. Pract. 2003, 11, 733–764. [Google Scholar] [CrossRef]
  29. Rawlings, J.B.; Mayne, D.Q.; Diehl, M.M. Model Predictive Control: Theory, Computation, and Design, 2nd ed.; Nob Hill Publishing: Santa Barbara, CA, USA, 2017. [Google Scholar]
  30. Kalman, R.E. A New Approach to Linear Filtering and Prediction Problems. J. Basic Eng. 1960, 82, 35–45. [Google Scholar] [CrossRef]
  31. Simon, D. Optimal State Estimation: Kalman, H∞, and Nonlinear Approaches; Wiley: Hoboken, NJ, USA, 2006. [Google Scholar]
  32. Julier, S.J.; Uhlmann, J.K. Unscented Filtering and Nonlinear Estimation. Proc. IEEE 2004, 92, 401–422. [Google Scholar] [CrossRef]
  33. Rao, C.V.; Rawlings, J.B.; Mayne, D.Q. Constrained State Estimation for Nonlinear Discrete-Time Systems: Stability and Moving Horizon Approximations. IEEE Trans. Autom. Control 2003, 48, 246–258. [Google Scholar] [CrossRef]
  34. Larsen, T.D.; Andersen, N.A.; Ravn, O.; Poulsen, N.K. Incorporation of Time Delayed Measurements in a Discrete-Time Kalman Filter. In Proceedings of the 37th IEEE conference on decision and control, Tampa, FL, USA, 1998. [Google Scholar]
  35. Bar-Shalom, Y. Update with Out-of-Sequence Measurements in Tracking: Exact Solution. IEEE Trans. Aerosp. Electron. Syst. 2002, 38, 769–777. [Google Scholar] [CrossRef]
  36. Glaessgen, E.; Stargel, D. The Digital Twin Paradigm for Future NASA and U.S. Air Force Vehicles. In Proceedings of the 53rd AIAA/ASME/ASCE/AHS/ASC structures, structural dynamics and materials conference, Honolulu, HI, USA, 2012. [Google Scholar]
  37. Jones, D.; Snider, C.; Nassehi, A.; Yon, J.; Hicks, B. Characterising the Digital Twin: A Systematic Literature Review. CIRP J. Manuf. Sci. Technol. 2020, 29, 36–52. [Google Scholar] [CrossRef]
  38. Rasheed, A.; San, O.; Kvamsdal, T. Digital Twin: Values, Challenges and Enablers from a Modeling Perspective. IEEE Access 2020, 8, 21980–22012. [Google Scholar] [CrossRef]
  39. International Organization for Standardization ISO 23247-1:2021; Automation Systems and Integration—Digital Twin Framework for Manufacturing—Part 1: Overview and General Principles. International Organization for Standardization: Geneva, Switzerland, 2021.
  40. National Academies of Sciences, Engineering, and Medicine Foundational Research Gaps and Future Directions for Digital Twins; The National Academies Press: Washington, DC, USA, 2024.
  41. Kapteyn, M.G.; Pretorius, J.V.R.; Willcox, K.E. A Probabilistic Graphical Model Foundation for Enabling Predictive Digital Twins at Scale. Nat. Comput. Sci. 2021, 1, 337–347. [Google Scholar] [CrossRef]
  42. Rojas, L.; Peña, Á.; Garcia, J. AI-Driven Predictive Maintenance in Mining: A Systematic Literature Review on Fault Detection, Digital Twins, and Intelligent Asset Management. Appl. Sci. 2025, 15, 3337. [Google Scholar] [CrossRef]
  43. van Eyk, L.; Heyns, P.S. A Framework to Define, Design and Construct Digital Twins in the Mining Industry. Comput. Ind. Eng. 2025, 200, 110805. [Google Scholar] [CrossRef]
  44. Cacciuttolo, C.; Atencio, E.; Komarizadehasl, S.; Lozano-Galant, J.A. Development of an Advanced Multi-Layer Digital Twin Conceptual Framework for Underground Mining. Sensors 2025, 25, 6650. [Google Scholar] [CrossRef]
  45. Zeb, A.; Linnosmaa, J.; Seppi, M.; Saarela, O. Developing Deep Learning Surrogate Models for Digital Twins in Mineral Processing—a Case Study on Data-Driven Multivariate Multistep Forecasting. Miner. Eng. 2024, 216, 108867. [Google Scholar] [CrossRef]
  46. Peña-Graf, F.; Órdenes, J.A.; Wilson, R.; Navarra, A. Discrete Event Simulation for Machine-Learning Enabled Mine Production Control with Application to Gold Processing. Metals 2022, 12, 225. [Google Scholar] [CrossRef]
  47. Psichogios, D.C.; Ungar, L.H. A Hybrid Neural Network–First Principles Approach to Process Modeling. AIChE J. 1992, 38, 1499–1511. [Google Scholar] [CrossRef]
  48. von Stosch, M.; Oliveira, R.; Peres, J.; Feyo de Azevedo, S. Hybrid Semi-Parametric Modeling in Process Systems Engineering: Past, Present and Future. Comput. Chem. Eng. 2014, 60, 86–101. [Google Scholar] [CrossRef]
  49. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-Informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  50. Karniadakis, G.E.; Kevrekidis, I.G.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-Informed Machine Learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef]
  51. Kennedy, M.C.; O’Hagan, A. Bayesian Calibration of Computer Models. J. R. Stat. Soc. Ser. B 2001, 63, 425–464. [Google Scholar] [CrossRef]
  52. Gama, J.; Žliobaitė, I.; Bifet, A.; Pechenizkiy, M.; Bouchachia, A. A Survey on Concept Drift Adaptation. ACM Comput. Surv. 2014, 46, 44:1–44:37. [Google Scholar] [CrossRef]
  53. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  54. LeCun, Y.; Bengio, Y.; Hinton, G. Deep Learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
  55. Seppi, M.; Linnosmaa, J.; Zeb, A. Physics-Informed Machine Learning Surrogate Models: Enhancing Data-Driven Forecasting for Digital Twins in Mineral Processing. Miner. Eng. 2025, 230, 109424. [Google Scholar] [CrossRef]
  56. Gray, A.H.; Craig, E.; McGrath, T.; Staunton, W.P. Collaboration Leads to Real Time Control of Gold Leach Circuits. In Proceedings of the World gold 2019; The Australasian Institute of Mining and Metallurgy: Melbourne, Australia, 2019; pp. 604–614. [Google Scholar]
  57. Mashava, D.; Matindife, L.; Kimotho, J.K. A Real-Data Digital Twin Foundation for Battery-Electric Rail Vehicle Li-ion Packs: Capacity-Fade and Equivalent-Circuit Identification on the NASA PCoE Dataset. Preprints 2026. [Google Scholar] [CrossRef]
  58. Mashava, D.; Ngwenya, M.; Mushiri, T.; Fokui, W.S.; Sinkhonde, D. Lightweight Pixel-Wise Lesion Segmentation and Severity Estimation of Tobacco Leaf Disease from Close-up Images: A Group-Aware Benchmark with Robustness Analysis. Preprints 2026. [Google Scholar] [CrossRef]
  59. Bar-Shalom, Y.; Li, X.R.; Kirubarajan, T. Estimation with Applications to Tracking and Navigation; Wiley: New York, NY, USA, 2001. [Google Scholar]
  60. International Organization for Standardization ISO 20816-3:2022; Mechanical Vibration—Measurement and Evaluation of Machine Vibration—Part 3: Industrial Machinery with a Power Rating Above 15 kW and Operating Speeds Between 120 r/Min and 30,000 r/Min. International Organization for Standardization: Geneva, Switzerland, 2022.
  61. International Society of Automation ANSI/ISA-18.2-2016; Management of Alarm Systems for the Process Industries. International Society of Automation: Research Triangle Park, NC, USA, 2016.
  62. International Society of Automation ANSI/ISA-101.01-2015; Human Machine Interfaces for Process Automation Systems. International Society of Automation: Research Triangle Park, NC, USA, 2015.
  63. Wilcoxon, F. Individual Comparisons by Ranking Methods. Biom. Bull. 1945, 1, 80–83. [Google Scholar] [CrossRef]
  64. Sobol’, I.M. Global Sensitivity Indices for Nonlinear Mathematical Models and Their Monte Carlo Estimates. Math. Comput. Simul. 2001, 55, 271–280. [Google Scholar] [CrossRef]
  65. Saltelli, A.; Annoni, P.; Azzini, I.; Campolongo, F.; Ratto, M.; Tarantola, S. Variance Based Sensitivity Analysis of Model Output. Design and Estimator for the Total Sensitivity Index. Comput. Phys. Commun. 2010, 181, 259–270. [Google Scholar] [CrossRef]
  66. International Electrotechnical Commission IEC 62443 Series: Security for Industrial Automation and Control Systems; International Electrotechnical Commission. Geneva, Switzerland.
  67. Stouffer, K.; Pease, M.; Tang, C.; Zimmerman, T.; Pillitteri, V.; Lightman, S.; Hahn, A.; Saravia, S.; Sherule, A.; Thompson, M. Guide to Operational Technology (OT) Security, NIST Special Publication 800-82 Rev. 3; National Institute of Standards and Technology, 2023. [Google Scholar] [CrossRef]
  68. Williams, T.J. The Purdue Enterprise Reference Architecture. Comput. Ind. 1994, 24, 141–158. [Google Scholar] [CrossRef]
  69. International Electrotechnical Commission. IEC 62264-1; Enterprise-Control System Integration—Part 1: Models and Terminology. International Electrotechnical Commission: Geneva, Switzerland.
  70. International Electrotechnical Commission. IEC 62541 Series: OPC Unified Architecture; International Electrotechnical Commission: Geneva, Switzerland.
  71. International Cyanide Management Institute. International Cyanide Management Code for the Manufacture, Transport, and Use of Cyanide in the Production of Gold. n.d. [Google Scholar] [CrossRef]
  72. International Electrotechnical Commission. IEC 61511 Series: Functional Safety—Safety Instrumented Systems for the Process Industry Sector; International Electrotechnical Commission: Geneva, Switzerland.
  73. International Organization for Standardization ISO 13374-1:2003; Condition Monitoring and Diagnostics of Machines—Data Processing, Communication and Presentation—Part 1: General Guidelines. International Organization for Standardization: Geneva, Switzerland, 2003.
  74. International Organization for Standardization ISO 16290:2013; Space Systems—Definition of the Technology Readiness Levels (TRLs) and Their Criteria of Assessment. International Organization for Standardization: Geneva, Switzerland, 2013.
  75. Mitchell, M.; Wu, S.; Zaldivar, A.; Barnes, P.; Vasserman, L.; Hutchinson, B.; Spitzer, E.; Raji, I.D.; Gebru, T. Model Cards for Model Reporting. In Proceedings of the Conference on fairness, accountability, and transparency (FAT* ’19), 2019; pp. 220–229. [Google Scholar]
  76. Bergmeir, C.; Benítez, J.M. On the Use of Cross-Validation for Time Series Predictor Evaluation. Inf. Sci. 2012, 191, 192–213. [Google Scholar] [CrossRef]
  77. Lakshminarayanan, B.; Pritzel, A.; Blundell, C. Simple and Scalable Predictive Uncertainty Estimation Using Deep Ensembles. In Proceedings of the Advances in neural information processing systems 30 (NeurIPS 2017), 2017. [Google Scholar]
  78. Gneiting, T.; Raftery, A.E. Strictly Proper Scoring Rules, Prediction, and Estimation. J. Am. Stat. Assoc. 2007, 102, 359–378. [Google Scholar] [CrossRef]
Figure 1. Information flow of the laboratory-calibrated CIL digital twin. The laboratory result arrives at a​j, after the sample time s​j. The twin proposes set-points to a PLC limiter and never writes to the control system directly.
Figure 1. Information flow of the laboratory-calibrated CIL digital twin. The laboratory result arrives at a​j, after the sample time s​j. The twin proposes set-points to a PLC limiter and never writes to the control system directly.
Preprints 246951 g001
Figure 2. Schematic views of the research prototype: (a) animated six-stage counter-current cascade with tank cards (Au in ppm and C in g/t; simulated values); (b) panels of the dashboard of the Pro edition.
Figure 2. Schematic views of the research prototype: (a) animated six-stage counter-current cascade with tank cards (Au in ppm and C in g/t; simulated values); (b) panels of the dashboard of the Pro edition.
Preprints 246951 g002
Figure 3. Calibration procedure for each delayed laboratory result. The model is evaluated at the sample-time state and inputs, not at the arrival time.
Figure 3. Calibration procedure for each delayed laboratory result. The model is evaluated at the sample-time state and inputs, not at the arrival time.
Preprints 246951 g003
Figure 4. Calibration under carbon fouling (one run, seed 3): (a) tail solution gold of the hidden plant, nominal twin, calibrated twin and laboratory assays plotted at their sample times; (b) EKF parameter estimates (solid) and hidden true values (dotted).
Figure 4. Calibration under carbon fouling (one run, seed 3): (a) tail solution gold of the hidden plant, nominal twin, calibrated twin and laboratory assays plotted at their sample times; (b) EKF parameter estimates (solid) and hidden true values (dotted).
Preprints 246951 g004
Figure 5. Monte Carlo results (40 seeds): (a) 24 h mean absolute recovery error of the nominal and calibrated twin in four scenarios (logarithmic axis); (b) parameter errors at 200 h in the fouling scenarios without and with the 72 h step test.
Figure 5. Monte Carlo results (40 seeds): (a) 24 h mean absolute recovery error of the nominal and calibrated twin in four scenarios (logarithmic axis); (b) parameter errors at 200 h in the fouling scenarios without and with the 72 h step test.
Preprints 246951 g005
Figure 6. (a) Calibrated-twin recovery error versus assay sampling interval under fouling; (b) floor-multiplier error at 200 h when assays are compared with the model at their sample time or at their arrival time, for 5 h and 12 h delay (step test with fouling).
Figure 6. (a) Calibrated-twin recovery error versus assay sampling interval under fouling; (b) floor-multiplier error at 200 h when assays are compared with the model at their sample time or at their arrival time, for 5 h and 12 h delay (step test with fouling).
Preprints 246951 g006
Figure 7. Sobol’ sensitivity indices of recovery for nine inputs and model multipliers (2048 base samples).
Figure 7. Sobol’ sensitivity indices of recovery for nine inputs and model multipliers (2048 base samples).
Preprints 246951 g007
Figure 8. Stage gates for moving from offline replay to advisory operation. Gate G3 is outside the scope of this study.
Figure 8. Stage gates for moving from offline replay to advisory operation. Gate G3 is outside the scope of this study.
Preprints 246951 g008
Table 2. Mine profiles in the simulator (P = published, D = derived, A = assumed).
Table 2. Mine profiles in the simulator (P = published, D = derived, A = assumed).
Profile Throughput (t/d) Head grade (g/t) Recovery target Basis
Generic free-milling 2200 (A) 3.45 (A) not calibrated A
Z1: Zimbabwean underground mine, elution-constrained 2340 (D) 2.7 (P) 92.3% (P) P, D
Z2: Z1 after elution capacity increase 2340 (D) 2.7 (P) 92.3% (P) P, D
Z3: Zimbabwean open-pit CIL with tank-failure history 3500 (D) 1.6 (P) 90% (P) P, D
Z4: Zimbabwean tailings retreatment 3200 (D) 0.75 (D) 72.5% (P) P, D
I1: free-milling design basis, United States 1500 (A) 3.0 (A) 93% (A) P, A
I2: refractory BIOX-type circuit, Ghana 3000 (A) 3.5 (A) 89% (P) P, A
Table 3. Design of the numerical experiments (200 h runs, 40 seeds unless stated).
Table 3. Design of the numerical experiments (200 h runs, 40 seeds unless stated).
ID Purpose and design Outcome measures
N1 Verification of the re-implemented surrogate against the manual’s checks (cyanide response, throughput response, mass balance, elution cap) Recovery; closure
N2 Calibration under wear and fouling, four scenarios: step test off or on (72 h, 24–96 h), fouling off or on 24 h recovery error; parameter error; NIS
N3 Assay cadence (3, 6, 12, 24 h) and laboratory delay (0, 5, 12, 24 h) under fouling 24 h recovery error
N4 Sample-time versus arrival-time alignment of assays under the step test with fouling (delay 5 and 12 h) Parameter error; NIS
N5 Global sensitivity of recovery to nine inputs and multipliers (Saltelli estimators, 2048 base samples, Sobol’ sequence) [64,65] First-order and total-effect indices
N6 Decision value: optimal set-points from the nominal twin, the calibrated twin and the true plant, evaluated on the true plant (grid: NaCN 140–380 ppm, DO 5–14 mg/L, carbon advance 1–4 t/d) Profit regret relative to the true-plant optimum
Table 4. Verification of the re-implemented surrogate against the simulator’s reported checks (generic profile).
Table 4. Verification of the re-implemented surrogate against the simulator’s reported checks (generic profile).
Check Simulator (manual) Re-implementation
Recovery, NaCN 150 → 300 ppm 89.04% → 90.02% 89.30% → 90.11%
Recovery, throughput 100% → 115% 89.86% → 87.84% 89.96% → 87.35%
Gold balance (ore versus carbon) 0.97% difference 0.00% (identity)
Carbon advance above elution capacity recovery unchanged (92.299% in both cases) recovery unchanged (73.04% in all cases, E = 1 t/d)
Table 5. Monte Carlo calibration results (median and interquartile range, 40 seeds, 200 h).
Table 5. Monte Carlo calibration results (median and interquartile range, 40 seeds, 200 h).
Scenario Nominal error (pp) Calibrated error (pp) Leach error (%) Adsorption error (%) Floor error (%)
A: no step test, no fouling 4.05 [4.02, 4.08] 0.50 [0.38, 0.60] 7.8 [3.5, 12.0] 4.1 [1.3, 7.0] 11.3 [5.3, 15.9]
B: step test, no fouling 4.05 [4.02, 4.08] 0.49 [0.39, 0.61] 4.5 [2.0, 6.8] 2.2 [1.1, 3.7] 6.4 [2.5, 9.5]
C: no step test, fouling 9.57 [9.54, 9.59] 0.62 [0.52, 0.74] 17.6 [10.9, 23.7] 4.7 [2.8, 7.7] 24.6 [14.9, 28.4]
D: step test, fouling 9.57 [9.54, 9.59] 0.65 [0.54, 0.75] 4.5 [2.9, 7.3] 2.5 [1.1, 3.8] 7.7 [2.6, 10.7]
Table 6. Decision value at 200 h (fouling and step test; 40 seeds; profit on the true plant in US$ per day).
Table 6. Decision value at 200 h (fouling and step test; 40 seeds; profit on the true plant in US$ per day).
Set-points optimised on… Mean profit (US$/d) Regret versus oracle
Nominal twin ( θ ^ = 1 ) 746,977 5958 (0.79%)
Calibrated twin (EKF estimate) 752,911 24 (0.003%)
True plant (oracle) 752,935 0
Table 7. Selected single-seed results reported by the simulator.
Table 7. Selected single-seed results reported by the simulator.
Experiment Reported result
Twin calibration under fouling (approx. 200–230 h) 24 h recovery error fell from 4.3 to 0.43 pp (profile Z1 with fouling), 3.3 to 0.21 pp (generic with fouling) and 7.5 to 0.59 pp (profile Z4, no fouling)
Validation skill (RMSE-based) about 53–59% for tail solid gold and 2–9% for loaded carbon; negative (about −8%) for tail solution gold in the generic profile, where tail gold sits at the model floor and most assays are below detection
Elution bottleneck (profile Z1) PID plant accumulated about 60 oz of locked-up gold after 32 h, the AI-MPC limited carbon advance (about 1 oz); lock-up was zero after the capacity increase (profile Z2)
Throughput trade-off (profile Z1, 80 h) PID recovery 92.5%, 92.1% and 91.3% at 80%, 100% and 115% throughput; AI benefit rose from about US$950 to US$2840 per day
Built-in verification suite 16 of 16 checks (Standard) and 21 of 21 (Pro) passed in the reference run
Equipment fault injection health index falls, diagnosis and RUL appear, a work order is raised and assigned; a skills gap leaves the order waiting and raises a training-need alarm
Table 8. Stage gates for deployment and related standards.
Table 8. Stage gates for deployment and related standards.
Gate Stage Entry criteria Standards and practice
G0 Offline replay with site data (TRL 4) Assumed parameters replaced by site data; locked test period Data governance; model cards [75]
G1 Shadow mode, read-only (TRL 5) Segmented read-only interface; latency and availability agreed IEC 62443; ISA-95; OPC UA
G2 Advisory with operator authority (TRL 6) Operators trained; management of change approved; PLC limiter and heartbeat ISA-101; ISA-18.2; ISO 20816-3
G3 Supervised closed loop (future) Safety case, independent control-system engineering, regulatory approval IEC 61511; cyanide code
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.