THERMO-ROUTER v2: Evidence, Statistics and Proposed Construction for an AI-Controlled Waste-Heat Router

Prepared 11 October 2026 for the Khalifa University–UNESCO Global Water Hackathon 2026 (finals 8–10 December, Abu Dhabi). Every chart is drawn from the numbers cited in its caption. Evidence tags: meas measured in a cited experiment; model simulation or analytical model from a source; prior the team's own simulation (sim.py); est our estimate; unverified not confirmed from a primary source.

Abstract

THERMO-ROUTER is an AI-controlled retrofit that decides every 30 seconds whether low-grade industrial waste heat should be used directly to preheat a cold process stream, stored, or bypassed, maximising net energy benefit (heating avoided minus pumping minus storage losses) under temperature and safety constraints. We reviewed the evidence on heat-recovery loops and stratified storage, supervisory control (rules, MPC, imitation MPC, safe reinforcement learning, grey-box and physics-informed models), fouling soft sensors, low-cost instrumentation, thermally enhanced reverse osmosis and Gulf desalination data, and combined it with the team's own simulations. Four findings reshape the earlier proposal. First, a 20 L tank stratifies only if it is tall (height-to-diameter about 3.5) with low-momentum diffusers. Second, the earlier heat-recovery loop sends every joule through two exchangers and gives up about a quarter of the direct preheat whenever source and demand coincide. Third, at tabletop scale pumping is about 1% of recovered heat, so routing intelligence pays only when the value of heat is non-linear or costed; in the team's simulation the learned controller is within 1% of a threshold rule on energy but 3–23% better when costed. Fourth, seawater RO energy bottoms out near 30 °C and one week at 40 °C caused a permanent 7.5% penalty in a Red Sea pilot, so preheating is seasonal and capped. We propose a "direct-first, store-the-surplus" cascade with a tall stratified tank, controlled by a grey-box model with a learned residual inside an economic MPC teacher, distilled into a decision tree behind a hard-coded shield, with Kalman tank-state and recursive UA estimators. The plant mapping for a 100,000 m³/day RO train at a hybrid MSF/RO site gives about 2.7 GWh/yr (AED 0.5–1.2 million), replacing the earlier AED 6.4 million estimate. A bill of materials of about AED 970, a calibration plan that cuts measurement uncertainty from 8% to 2%, a 36-run paired A/B/C protocol resolving differences of about 2%, a nine-week timeline and a risk register complete the methodology.

Key statistics at a glance

QuantityValueBasis
Preheat lost by the loop vs direct (45 °C source, 25 °C feed, ε 0.70)3.2 K (23%)ε-NTU est, Fig. 9
v2 utilisation advantage over the loop at 50% overlap+0.12 (0.58 vs 0.50)Fig. 10 est
Pump energy as share of recovered heat, tabletop≈ 1%Fig. 20 prior
Learned controller vs threshold, energy-weighted−0.3% to 0.0%Fig. 11 prior
Learned controller vs threshold, cost-weighted+0.4% to +22.8%Fig. 12–13 prior
Oracle vs threshold, cost-weighted+13.8% to +40.9%Fig. 13 prior
Fouling detection at 20% UA loss / false alarms100% / 0%Fig. 16 prior
Net-benefit uncertainty, uncalibrated → calibrated7.7% → 2.1%Fig. 17 prior
Seawater RO energy minimum≈ 30 °C feedKoutsou et al. 2020 model
Permanent SEC penalty after 7 days at 40 °C+7.5%Altmann et al. 2022 meas
Usable preheat season, Abu DhabiNovember–May, ≤ 6 KFig. 5–6 est
Plant saving, 100,000 m³/day RO train2.7 GWh/yr; AED 0.5–1.2 M/yrFig. 19 est
Rig bill of materials≈ AED 970Section 7 unverified prices
Team effort≈ 86 hours over 9 weeksFig. 23

1. The competition and what judges reward

The hackathon is large and explicitly evidence-driven. Its chair has said the goal is proposals that researchers, policymakers and industry can seriously assess, and that water solutions succeed only when technical performance fits infrastructure, regulation, economics and community needs. Three Strategic Recognition Awards cover UAE water priorities, climate and environmental resilience, and potential for industry adoption. THERMO-ROUTER fits the desalination and digital/AI-enabled themes; its best route to a strategic award is an honestly bounded link to RO feed preheating at hybrid thermal/RO sites and a controller that runs on commodity hardware and refuses unsafe actions by construction.

StudentsTeamsCountries0412.41824.821237.231649.64Count139823856KU–UNESCO Global Water Hackathon 2026
Figure 1. Scale of the competition as reported by Khalifa University: 1,398 students in 238 teams from 56 countries, judged on evidence-backed proposals that fit infrastructure, economics and community needs. meas

2. Where the heat is: Gulf desalination

The earlier framing ("84% thermal") is outdated. EWEC's 2024 statistical leaflet reports 1,174 million m³ of water produced, 41% of it by reverse osmosis, with Taweelah RO (909,201 m³/day nameplate) alone producing about 297 million m³ meas. The thermal fleet still dominates installed heat rejection, but it is shrinking, so the MSF-reject heat source is a transitional, site-specific opportunity. Hybrid sites such as Fujairah F2 (591,500 m³/day, of which 136,500 RO) already place a warm thermal reject next to an RO intake.

MSFMEDRO (typical)Taweelah RO08.8517.726.5535.4Desalination technologykWh per m³ (electrical equivalent)13.530.011.911.94.06.02.83.1lowhigh
Figure 2. Specific energy by technology. MSF 13.5–30 kWh/m³ and MED about 11.9 kWh/m³ (Saudi Water Authority report); seawater RO 4–6 kWh/m³ (npj Clean Water 2026); Taweelah RO 2.77 kWh/m³ in its 30-day performance test against a 3.10 contractual figure unverified: contractor claim. The thermal fleet is where the low-grade heat is; RO is where the electricity saving is.

Inside a brine-recirculation MSF plant the heat-rejection section dumps the heat added by the brine heater into a large cooling-seawater stream. A Gulf performance test shows how the outgoing energy splits:

Cooling waterBrine blowdownEjector coolingDistillate013.86527.7341.59555.46Outgoing streamPercent of energy leaving the plant47%28%14%11%share of outgoing energy, %
Figure 3. Where the heat leaves a Gulf MSF plant: performance test of the Al-Khafji MSF plant (Alexandria Engineering Journal, 2017), GOR 7.8, distillate leaving at 40 °C. meas Three quarters of the outgoing energy is in cooling water and blowdown at roughly 7–10 K above intake, which is the source THERMO-ROUTER would tap.

Peer-reviewed Gulf MSF models use a 38 °C brine blowdown against 28 °C seawater; industry text describes reject brine cooled to about 33 °C and discharges 5–8 K above ambient unverified. The usable excess over intake is therefore about 7–10 K, which with ε ≈ 0.7 exchangers caps realistic feed preheat at 5–7 K est. DEWA's industrial tariff is 0.23 AED/kWh up to 10,000 kWh per month and 0.38 above, plus a 0.06 fuel surcharge, giving a 0.44 AED/kWh marginal price; utility-internal electricity at a plant is cheaper, bracketed here at 0.20 AED/kWh est.

3. What temperature does to reverse osmosis

Warmer feed lowers viscosity and raises water permeability, but also raises osmotic pressure and salt passage. The net effect depends on salinity and on whether the plant is re-optimised. Maisonneuve's group (Desalination 573, 2024) reports up to 24% specific-energy savings for seawater heated 20→50 °C and 33% for brackish water, falling to 12% and 18% once the thermal input is counted model. An exergy study of a triple-pass seawater plant found exergetic efficiency rising from 27.8% to 29.9% as feed went from 15 to 33 °C. The limits matter just as much:

182022242628303233.33.63.94.24.54.8Feed temperature, °CSpecific energy, kWh/m³Small RO unit, measured SEC (kWh/m³)slope ≈ −0.09 kWh/m³ per K (−2.0 %/K)
Figure 4. Measured specific energy of a small RO unit at four feed temperatures (Energies, 2022). meas For seawater the curve flattens and reverses: Koutsou et al. (2020) find a minimum near 30 °C because rising osmotic pressure cancels the viscosity gain model, and a Red Sea pilot (Altmann et al., Membranes 2022) showed a permanent 7.5% energy penalty after one week at 40 °C meas. The plant case therefore uses 0.8 %/K and a 30 °C target rather than this small-unit slope.

Because the benefit is a property of the operating point rather than a law, the value of heat delivered to an RO feed is capped and non-monotone. That is the single most important input to the controller design in Section 6: above the SEC-optimal temperature, more heat is worth nothing, and above about 35–40 °C it is harmful.

JFMAMJJASOND18212427303336MonthTemperature, °CAbu Dhabi sea temperature, °C (monthly mean)30 °C RO target
Figure 5. Monthly mean sea-surface temperature at Abu Dhabi, about 21 °C in February to 32 °C in August (public sea-temperature compilations). meas, secondary Preheating only helps while the sea is below the 30 °C target, so the preheat season runs November to May.
JFMAMJJASOND02.364.727.08MonthUsable lift, K0.06.02.40.02.40.00.00.00.00.44.46.0Usable preheat, K (min of 30 °C − sea, 6 K cap)
Figure 6. Usable RO preheat per month: the smaller of (30 °C − sea temperature) and a 6 K cap set by a 7–10 K reject-stream excess at exchanger effectiveness ≈ 0.7. est The year sums to about 1125 K·days.

4. Storing heat at 20 litres

Industrial heat-recovery loops (University of Waikato, dairy factories) show that a relatively small buffer tank can support more than 90% of targeted recovery, with a modelled loop reaching 94% of the recovery target model. The same group records the failure mode that matters most for a small rig: when layers mix, the loop is shut down until hot and cold regions re-form. Stratification is therefore a control problem as much as a design detail.

1234505101520253035Tank aspect ratio H/D (20 L)Percent / UA×100Thermocline share of height (8 cm thermocline)Tank loss coefficient UA, W/K × 100 (25 mm foam)
Figure 7. Geometry trade-off for a 20 L tank. est A fixed 8 cm thermocline wastes less of a tall tank, while surface area and heat loss grow slowly. Experiments by Hariharan et al. (Energy, 1991) at L/D 1.56–4.0 and CFD reviews put the optimum at H/D 3–4 meas/model; the proposal uses H/D ≈ 3.5 (D ≈ 0.19 m, H ≈ 0.68 m), where loss is about 0.65 W/K, or roughly 3% of stored heat per hour at a 20 K excess.
Charging efficiencyDischarging efficiencyStratified vs mixed delivery05.911.817.723.6Improvement, %14.5%19.8%20.0%improvement, %
Figure 8. Measured gains from stratification devices and stratification itself: ring-opening plate distributors raised charging and discharging efficiency of a laboratory tank by up to 14.5% and 19.8% (Energy, 2022) meas; a stratified solar store delivered up to 20% more energy than a mixed one (Renewable Energy, 1994) meas. These are the gains a 20 L tank forfeits if its inlets are not designed.

Design rules from the literature: inlet densimetric Froude number at or below 2 (chilled-water practice), inlet Richardson number above about 10 for negligible mixing (Bahnfleth), radial disc or ring-opening plate diffusers, plastic walls to avoid axial wall conduction, and an aspect ratio of 3–4. The proposed tank is a 200 mm PVC tube about 0.68 m tall with 25 mm closed-cell foam and 3-D printed radial disc diffusers sized for Fr below 1 at 2 L/min est.

5. What the earlier designs get wrong

IssueEvidenceConsequence
Double-approach penalty in the heat-recovery loopTwo equal exchangers in series halve the effective NTU (Fig. 9)Feed reaches 35.8 °C instead of 39.0 °C in the 45/25 °C example; 23% less lift whenever source and demand coincide est
Stratification at 20 LOptimum H/D 3–4; diffusers and Fr ≤ 2; loops shut down when stratification is lost (Fig. 7–8)A squat cooler box behaves as a mixed tank; a tall tube with printed diffusers is needed and must be measured
AI advantage driven by price, not physicsPumping ≈ 1% of recovered heat; learned ≈ threshold on energy (Fig. 11, 20)Judges may read the result as tariff-engineered; value must come from caps, intermittency and non-monotone heat value
RO preheat oversoldSEC minimum ≈ 30 °C; +7.5% after 40 °C; Gulf summer 32–34 °C (Fig. 4–6)The earlier AED 6.4 M/yr assumed 10 K all year; revised to AED 0.5–1.0 M/yr (Section 10)
Data scarcityBlack-box surrogate needed ≈ 24 simulated hours for 30–60% gap closure (Fig. 13)Too much rig time in nine weeks; use physics structure plus residual learning and active excitation
Safety of learned controlShielded-RL literature; no hardware RL precedent for small storesA learned policy driving a 1.5 kW heater needs a verified shield and an interpretable policy

6. The proposed construction: v2 cascade

Three principles define v2. Never pass heat through two exchangers when one will do: when hot source and cold demand coincide, waste heat goes straight to the feed through HX-D. Store only what the feed cannot take now: surplus charges the tank through HX-C and returns through HX-S when the source is absent. Cascade the feed from cold to hot: it meets HX-S (cooler) first and HX-D (hotter) second, so each exchanger works across the smallest useful temperature difference and the top-up heater only trims.

Hot wasteHX-CHX-DHeaterTankH/D 3.5HX-SPw2Pw1 (direct path)PcPdcold feed inT-cap probewaste to drainThick solid: waste streamDashed: tank waterThin solid: process feedFeed order: HX-S (cooler, stored heat) then HX-D (hotter, fresh waste heat); heater trims the rest.
Figure 21. THERMO-ROUTER v2, the proposed cascade. Fresh waste heat takes the direct path through HX-D whenever demand is present; surplus (no demand, or feed already at its cap) charges the tank through HX-C; stored heat returns through HX-S when the source is absent. Bypass is both waste pumps off. The feed meets the cooler source first.
01234500.20.40.60.81NTU per exchanger (balanced counterflow)Effectiveness to the feedOne exchanger (direct)Two equal exchangers in series (loop)NTU 2.33: direct ε 0.70 → feed 39.0 °Cloop ε 0.54 → feed 35.8 °C
Figure 9. Analytical ε-NTU for balanced counterflow: ε = NTU/(1+NTU) for one exchanger; for two equal exchangers in series through a well-stratified loop the effective NTU halves. est With a 45 °C source and 25 °C feed the loop gives up 3.2 K of preheat, about 23% of the direct lift, whenever source and demand coincide.
00.250.50.75100.20.40.60.8Overlap f between source availability and demandHeat utilisation, fraction of ideal3-way valve (no useful storage while recovering)Heat recovery loopv2 cascade (proposed)v2 leads by +0.12 at f = 0.5crossover with valve at f ≈ 0.74
Figure 10. Idealised utilisation versus source/demand overlap, with ε = 0.70 per exchanger and storage round-trip efficiency 0.85. est v2 equals the loop at zero overlap (all heat stored) and the valve at full overlap (all heat direct), and is better in between. Pump energy and part-load effects are ignored; the rig must confirm it.

The desalination twist is a capped, non-monotone value of heat. The feed-outlet cap (30–32 °C at plant, scaled to 35 °C on the rig) becomes an active constraint; when the direct path would overshoot, the controller must divert surplus to storage or bypass. This is the constraint-switching situation in which prediction has real value: charge the tank now because the source will vanish in ten minutes and the feed will need it then. A hardware-in-the-loop "virtual RO" layer converts the measured feed temperature into kWh/m³ using a published-shape SEC(T) curve, so the controller is scored on physics-driven value while every claim stays traceable to measured temperatures.

Metric(a) 3-way valve(b) Heat recovery loop(c) v2 cascade
Exchangers in the heat path121 (overlap) / 2 (stored)
Feed outlet, 45/25 °C, ε 0.70 est39.0 °C35.8 °C39.0 °C direct
Recover and store at onceNoYesYes
Utilisation at f = 0.5 est0.350.500.58
Handles a feed temperature cap without dumping heatNoPartlyYes (surplus → tank)
Actuators1 pump + 3-way valve3 pumps5 PWM pumps
Rig cost est≈ AED 700≈ AED 900≈ AED 970
Training data estn/a≈ 24 h black-box prior≈ 6–8 h grey-box + residual
Deployable policyFixed / thresholdSurrogate-in-the-loop searchDistilled tree + shield
Main riskNo storage benefitDouble approach; stratificationMore plumbing; five pumps to tune

7. When can learning beat a rule? Simulation statistics

The team's simulation (10-node stratified tank, ε-NTU exchangers with UA 180 W/K, 2-hour runs on four disturbance profiles, four controllers on identical inputs) is the best current evidence on what the AI can and cannot deliver. The results are shown without adjustment.

steadystepsintermittentday_cycle00.7487961.497592.246392.99518Disturbance profile (2 h runs)Net benefit, kWh2.502.542.542.542.402.442.442.441.511.571.571.570.730.780.780.77A fixedB thresholdC learned lookaheadD oracle
Figure 11. Team simulation of the heat-recovery-loop rig, energy-weighted. prior Pumping is about 1% of recovered heat, so all three adaptive controllers sit within 1% of each other and only the fixed setting lags (by 1.5–7%). A tuned threshold rule is essentially optimal here, which agrees with Zotica, Pérez-Piñeiro and Skogestad (2020).
steadystepsintermittentday_cycle00.06012250.1202450.1803670.24049Disturbance profile (2 h runs)Net benefit, AED0.2000.1790.1790.2040.1900.1680.1740.1920.1160.0930.1060.1180.0350.0390.0480.055A fixedB thresholdC learned lookaheadD oracle
Figure 12. The same simulation with heat valued at 0.10 AED/kWh, electricity at 0.44 AED/kWh (DEWA industrial 0.38 + 0.06 fuel surcharge) and pump hydraulics scaled eight times toward a plant-like ratio. prior Now lookahead control beats the threshold rule by 14–41% and the learned controller captures part of that; on steady profiles the threshold rule even over-pumps and loses to fixed control.
steadystepsintermittentday_cycle012.067624.135236.202848.2704Disturbance profileGain over threshold control, % (cost-weighted)+0.4%+14.1%+3.2%+13.8%+14.0%+26.4%+22.8%+40.9%learned controlleroracle (upper bound)
Figure 13. Gain over the threshold controller, cost-weighted. prior The oracle gain grows with profile variability; the black-box learned controller, trained on 24 simulated hours, closed roughly 3%, 23%, 53% and 56% of the oracle gap on the steady, step, intermittent and day-cycle profiles. v2 targets more than 70% gap closure with 6–8 rig-hours by adding physics structure.
ProfileLearned vs B, energyOracle vs B, energyLearned vs B, costOracle vs B, costGap closed by learned
steady+0.0%+0.0%+0.4%+14.1%3%
steps+0.0%+0.1%+3.2%+13.8%23%
intermittent-0.3%+0.0%+14.0%+26.4%53%
day_cycle-0.3%-1.1%+22.8%+40.9%56%
Energy ratio, tabletopCost-weighted, tabletopEnergy ratio, plant-likeCost-weighted, plant-like010.32520.6530.97541.3Percent1.0%4.4%8.0%35.0%pump energy as % of recovered heat
Figure 20. Pump energy relative to recovered heat on the rig (about 1%) and in the plant-like scenario (8×), and the same ratios weighted by the 4.4:1 electricity-to-heat price ratio. prior/est Routing intelligence can only matter when this ratio is large or when the value of heat is non-linear, which is why v2 adds a temperature cap and a virtual RO value curve.
Heat deliveredPump energyΔT topΔT bottomΔT mean0.90.9220.9440.9660.9881.01Predicted quantity (per 30 s step)R²0.9991.0000.9600.9500.991held-out R² (gradient-boosted surrogate, 2,880 samples)
Figure 14. Held-out accuracy of the learned surrogate in the team simulation: R² 0.999 on heat delivered and 0.991 on mean tank temperature change, mean absolute error 0.29 kJ per step and 0.023 K. prior Top and bottom node temperatures are hardest (R² ≈ 0.95–0.96): the thermocline is where a grey-box model should help most.

The reading for the report: adaptive control cannot beat a good rule by more than about 1% on energy alone at this scale, and saying so is consistent with Zotica, Pérez-Piñeiro and Skogestad's finding that systematically designed classical control matches MPC for a storage tank. The gains appear when heat and electricity are priced differently, when the profile is intermittent, and, in v2, when a temperature cap makes "when not to recover" a real decision.

8. The machine-learning architecture

Rig sensors, 1 Hz8 temperature, 3 flow, 4 powerEstimatorsEKF tank profile (10 nodes)RLS UA per exchanger → CUSUMValue layervirtual-RO SEC(T), tariffT-cap, scaling proxyTeacher on laptop: economic MPC, 10–20 min horizonmodel = grey-box (ε-NTU + 1-D tank) + residual ensemblediscrete pump levels, beam search, switching penaltyStudent on ESP32: decision tree, depth ≤ 6, DAgger-trained30 s step; inputs = estimator states + schedule flagsSafety shield (hard-coded): T_feed ≤ T_cap, tank ≤ 60 °C, heater needs flow, sensor sanityimitation, offlinepumps, heaterlogged
Figure 22. The ML stack. A grey-box model with a learned residual sits inside an economic MPC teacher; the deployable policy is an interpretable decision tree; a hard-coded shield has the last word; the UA estimator feeds both fouling diagnosis and the controller model, so fouling changes routing automatically.

Model. The base is the existing 10-node tank with a fitted vertical mixing coefficient, ε-NTU exchangers with UA = a·ṁn, and pump power P = p0 + p3·PWM³: about 8–10 physically meaningful parameters identified by least squares from about three hours of excitation. A five-member gradient-boosted ensemble then learns only the residual between measured and grey-box predictions. The ensemble's disagreement drives active learning: candidate ten-minute action sequences with the highest predicted disagreement are run next. A real borehole store modelled with a physics-informed network reached an outlet MAE of 0.3 °C versus 0.6 °C for a plain network and degraded less with fewer data meas; that is the closest evidence for the expected data efficiency.

12345678910111200.511.52Hours of rig data10-min-ahead feed-temperature RMSE, KBlack-box gradient boosting (hypothesis)Grey-box only (fixed physics, no learning)Grey-box + learned residual (hypothesis)
Figure 15. Expected learning curves to be measured on the rig. est The shape follows the general 1/√n behaviour and the PINN-versus-plain-network result on a real borehole store (MAE 0.3 °C vs 0.6 °C, and more robust with less data). The actual curve, measured at 2, 4 and 7 hours with leave-one-run-out splits, is the data-efficiency claim; this chart is only the prediction.

Teacher. Every 30 s, an economic MPC maximises Σ[value of feed heat via SEC(T) − electricity price × pump energy − heater energy] + terminal value of stored exergy − switching penalty over a 10–20 minute horizon, subject to the feed cap, tank limits and minimum flows, over discrete pump levels with a beam search. The oracle is the same MPC with the true model and perfect forecast, used only for gap accounting.

Student. A decision tree of depth at most 6 (about 64 leaves) is trained by DAgger: run the tree on the rig, let the teacher label the states it visits, repeat for three or four rounds. In an office and a lecture theatre, an approximate MPC trained on MPC data retained 88–99% of full MPC's cooling-energy savings meas, which is the evidence that distillation costs little. The tree fits on a poster, and interpretable rules behind a shield are an adoption argument industry understands.

Shield. A fixed set of overrides after the policy (feed ≤ cap, tank ≤ 60 °C, heater only with measured flow, dry-run and sensor-sanity checks), following the shielded-reinforcement-learning pattern in which a shield corrects only unsafe actions and agents never violated safety model.

Estimators. An extended Kalman filter on the 10-node model, corrected by four tank probes, gives state of charge and thermocline position with uncertainty. A recursive least-squares estimate of each exchanger's UA, normalised by its clean fit, feeds a CUSUM fouling detector and, because the controller's model uses the same UA, fouling changes routing automatically.

010203040021426384105Equivalent loss of exchanger UA, %Detection rate, % / residualResidual monitor, simulated detection rateMean residual, K × 20 (sign flipped)
Figure 16. Fouling monitor in the team simulation: a model trained on the clean exchanger (residual SD 0.46 K) with a 20-sample moving-average test. prior Detection is 79% at 10% UA loss and 100% from 20% upward, with no false alarms on clean data. On the rig, fouling will be emulated with a calibrated shunt valve and detection compared against a recursive UA estimate with CUSUM.

9. Methodology: rig, calibration, data, experiments

9.1 Bill of materials

ItemQtyAED (est.)Note
ESP32 development board125Wi-Fi logging to a laptop
DS18B20 waterproof probes8804 in the tank, 4 at exchanger ports; 11-bit mode (0.125 °C, ≈375 ms)
Low-flow Hall sensors (≈0.3–6 L/min)360YF-S201 is weak below 1 L/min
INA219 power sensors448Pump power; heater via SSR duty × measured element power
12 V brushless DC pumps, PWM5175MOSFET driver boards ≈ 20
Brazed-plate exchangers, 10–20 plates2220HX-D and HX-S
Copper coil exchanger (6 m × 8 mm)160HX-C in an insulated box
200 mm PVC tube 0.75 m, caps, foam1110H/D ≈ 3.5 tank
3-D printed diffusers, manifolds, probe glands—20PETG, keep below 70 °C
Hot reservoir, 1.5 kW element, SSR, thermal fuse190Source emulator on an RCD-protected outlet
12 V 10 A supply, tubing, fittings, shunt valve—80Plus makerspace stock
Total≈ 968Prices unverified; about AED 30 of slack

9.2 Calibration and uncertainty

Temperature: all probes in a stirred, insulated bath at about 20, 30, 40 and 55 °C against one reference, with a per-probe affine correction (a 2026 metrology study found linear correction cut DS18B20 mean error from 3% to 0.85%), then matched in situ under isothermal circulation because heat rates depend on differences. Flow: gravimetric (bucket and scale, 60 s timings) at five flows per sensor in the installed plumbing, since the calibration slope shifts with pipe size. Power: each INA219 against a bench meter at three loads. Closure: hot-side heat released must equal cold-side heat gained within ±5% per exchanger at steady state; failing runs are excluded.

Datasheet only (±0.5 °C, ±10% flow)Calibrated (±0.1 °C, ±3% flow)02.263464.526916.790379.05382Sensor stateRelative uncertainty, %7.7%2.1%relative uncertainty of measured net benefit, % (300-draw Monte Carlo)
Figure 17. Monte Carlo propagation of DS18B20 and paddlewheel errors through Q = ṁ cp ΔT for the step-change profile. prior Calibration in a stirred bath (affine correction per probe) and gravimetric flow calibration in the installed plumbing take the spread from about 8% to 2%, which is what makes controller differences of a few percent reportable.

9.3 Data collection and training protocol

Log at 1 Hz: all temperatures, flows, PWM commands, INA219 readings, SSR state, ambient, run ID, profile phase, controller ID and shield-override flags, as raw CSV with a JSON metadata header. Downsample to 10 s for modelling; control at 30 s. Budget about 7 h of excitation in three active-learning rounds plus 3 h of commissioning and stratification tests (charge at 1, 2 and 3 L/min; compute the MIX number and thermocline thickness from the four probes). Split by run, never by sample: leave-one-run-out for model accuracy and a held-out test day of two unseen profiles. Report grey-box only, black-box only and grey-box plus residual at 2, 4 and 7 h of data (Fig. 15). Policy metrics: net benefit in Wh and virtual-RO kWh-equivalent, cap-violation integral (K·min), switches, shield overrides, and gap closure G = (JC − JB)/(Joracle − JB).

9.4 A/B/C experimental protocol

Four 60-minute profiles: step changes, intermittent source (15 min on/off), cap-active (source hot enough that direct use would exceed the cap), and a compressed day cycle. Before each run, circulate the tank to 25.0 ± 0.5 °C uniform with the source off and verify all four probes within 0.5 K. Design: 4 profiles × 3 controllers (A fixed, B the best threshold/selector scheme tunable in four hours, C the distilled tree) × 3 repeats = 36 runs in randomised blocks, plus four teacher-reference runs; about 50 h of rig time at 75 min per run including reset. Analyse paired differences (C − B) per profile with bootstrap 95% confidence intervals.

12345678910111205101520Paired runs (C vs B)Detectable difference, %Smallest detectable C−B difference, % (paired SD 2.8%, 95% CI)3 repeats of one profile: ≈ 5%12 pooled pairs: ≈ 1.8%
Figure 18. Statistical resolution of the A/B/C campaign. est With about 2% measurement uncertainty per run the paired standard deviation is about 2.8%; three repeats per profile resolve differences of roughly 5%, and pooling all twelve pairs across four profiles resolves about 1.8%. Simulated gains on variable profiles are well above that; on steady profiles they are not, and the report should say so.

9.5 Fouling tests

Emulate fouling with a calibrated shunt valve bypassing a fraction of hot flow around HX-D, mapped to equivalent UA loss with the clean ε-NTU fit. Test 0, 10, 20 and 30% equivalent loss, three runs each; report detection probability, median time to detect and false alarms per clean hour; compare the residual rule with RLS-UA plus CUSUM; and show that routing shifts as UA falls.

10. Plant-scale mapping and sensitivity

AssumptionValueBasis
RO train100,000 m³/day permeate, 42% recoveryEarlier case prior
Baseline specific energy3.0 kWh/m³Between Taweelah 2.77 and contractual 3.10 unverified
Sensitivity0.8 %/K (range 0.5–1.0)24% over 30 K in the thermally enhanced RO model; flattens near 30 °C model
Target and cap30 °C; lift ≤ 6 KSEC minimum; reject excess 7–10 K × ε 0.7 est
Electricity value0.20–0.44 AED/kWhUtility-internal estimate to DEWA industrial marginal
JFMAMJJASOND0131.688263.376395.064526.752MonthMWh saved04031790179000030317446electricity saved, MWh per month (100,000 m³/day RO train)
Figure 19. Plant-scale mapping for a 100,000 m³/day RO train at 3.0 kWh/m³ and 0.8%/K: about 2.7 GWh per year, almost all of it between November and May. est At 0.20–0.44 AED/kWh that is AED {gwh*1e6*0.20/1e6:.2f}–{gwh*1e6*0.44/1e6:.2f} million per year, about 0.14 kWh/m³ in February and 0.065 kWh/m³ averaged over the year. The required thermal duty, about 68 MW, is of the order of one large MSF unit's heat rejection.
SensitivityAnnual savingAED/yr at 0.20AED/yr at 0.44kWh/m³ annual average
0.5 %/K1.7 GWh0.34 M0.74 M0.046
0.8 %/K2.7 GWh0.54 M1.19 M0.074
1.0 %/K3.4 GWh0.67 M1.48 M0.092

The required thermal duty is about 2,830 kg/s × 4.0 kJ/kg·K × 6 K ≈ 68 MW, of the order of one large MSF unit's heat rejection (cooling flow four to seven times distillate flow at 7–10 K above intake) est. Payback cannot be stated responsibly without vendor quotes for titanium plate exchangers and seawater piping at that duty; only the revenue side is presented.

Framing for judges. RO is now 41% of Abu Dhabi's water and rising, while the MSF fleet supplying the heat is shrinking. The plant case is a transitional, site-specific opportunity at hybrid sites, worth a few percent of RO energy in the cool season. The transferable product is the safe, data-efficient routing controller, which also applies to industrial batch heat sources (dairies, beverage plants, laundries) where storage genuinely matters.

11. Timeline, budget, risks

W1W2W3W4W5W6W7W8W9Design freeze, order parts (8 h)Build rig, print diffusers (12 h)Calibration, closure, safety (8 h)Stratification tests (4 h)Excitation + grey-box identification (8 h)Residual model, MPC teacher (10 h)DAgger tree, shield, fouling (10 h)A/B/C campaign, 36 runs (14 h staff)Analysis, plant mapping, report (8 h)Pitch, poster, rehearsal (4 h)
Figure 23. Nine-week plan from 12 October to the 8–10 December finals, about 86 team-hours. The 50 h of A/B/C rig time is mostly unattended logging with one person present for heater safety.
RiskLikelihood / impactMitigation and fallback
Tank does not stratify (poor MIX number)Medium / mediumLower charge flow, wider diffuser gap, perforated baffle; fall back to a mixed-tank model with reduced storage efficiency
Exchanger ε low at 0.5–2 L/minMedium / mediumMeasure ε(ṁ) in week 3; rescale profiles to flows with ε ≥ 0.5; the grey-box absorbs the fitted UA(ṁ)
Flow-sensor inaccuracy at low flowHigh / mediumLow-flow sensors; gravimetric calibration; energy-balance cross-check
Heater or electrical hazardLow / highRCD outlet, thermal fuse, SSR on a heatsink, shield interlock (heater needs measured flow), never unattended
Learned controller ≈ thresholdMedium / mediumReport it honestly; cap-active and intermittent profiles are where a difference is expected; gap closure and data efficiency remain valid results
Schedule slip from courseworkHigh / highFreeze design in week 1; cut the day-cycle profile and one repeat (24 runs) if behind; simulation results as backup
Leaks or softened printed partsMedium / lowKeep printed parts ≤ 60 °C; pressure-test at commissioning; drip trays
Budget overrunMedium / lowDrop to four pumps by charging through an immersed coil; reuse makerspace stock

12. Conclusion

Build the v2 cascade: a tall 20 L plastic tank with printed radial diffusers, a priority direct path through HX-D, surplus charging through HX-C, cold-to-hot feed staging through HX-S then HX-D, five PWM pumps, eight calibrated probes, low-flow sensors and power metering. Build the ML stack: grey-box model plus residual ensemble, economic MPC teacher with a virtual-RO value curve and a feed cap, a DAgger-distilled decision tree on the ESP32, a hard-coded shield, a Kalman tank-state estimator and a recursive UA estimator that doubles as the fouling monitor.

Claim, if the data support it: measured net-benefit differences between A, B and C with pooled confidence intervals; the fraction of the oracle gap closed by the deployable tree; a data-efficiency curve showing the grey-box-plus-residual model reaching target accuracy with less rig data than a black-box model; zero cap violations under the shield; fouling detection rates and automatic re-routing; and a screening-level plant estimate of about 2.7 GWh/yr (AED 0.5–1.2 million) for a 100,000 m³/day RO train at a hybrid site, explicitly seasonal and capped near 30 °C.

Do not claim large energy savings from AI at tabletop scale; year-round RO benefit or preheating to 40–45 °C; that reinforcement learning is necessary; that the rig measures membrane performance; or any payback period before exchanger and piping quotes exist.

The defensible pitch: a safe, interpretable, data-efficient learned router that knows when not to recover heat, demonstrated on real hardware and mapped honestly to a UAE desalination use case.

References

  1. Khalifa University. Nearly 1,400 students from 56 countries join the KU–UNESCO Global Water Hackathon 2026. ku.ac.ae
  2. Emirates Water and Electricity Company. Statistical Leaflet 2024. ewec.ae
  3. Desalination and the Middle East: research, practices, implications, and prospects. npj Clean Water, 2026.
  4. Saudi Water Authority. A Comprehensive Report on Water Desalination Sector: Desalination Energy.
  5. Performance test of a sea water multi-stage flash distillation plant: case study. Alexandria Engineering Journal, 2017.
  6. DEWA. Slab tariff and fuel surcharge (June 2026). dewa.gov.ae
  7. Yagnambhatt, Khanmohammadi & Maisonneuve. Reducing the specific energy use of seawater desalination with thermally enhanced reverse osmosis. Desalination 573, 2024.
  8. Koutsou et al. Analysis of temperature effects on the specific energy consumption in reverse osmosis desalination processes. 2020.
  9. Altmann et al. Seawater reverse osmosis performance decline caused by short-term elevated feed water temperature. Membranes, 2022. pmc.ncbi.nlm.nih.gov/articles/PMC9416791
  10. Effect of feed temperature on the specific energy consumption of a small RO unit. Energies, 2022.
  11. Thermodynamic evaluation of a triple-pass reverse osmosis seawater desalination plant. Membranes 16(7):227, 2026.
  12. Walmsley, Atkins, Neale et al. Heat recovery loop design, stratified-tank evaluation and thermocline management. University of Waikato; Chemical Engineering Transactions 2012–2018.
  13. Hariharan et al. Thermal stratification in hot-water storage tanks: experiments at L/D 1.56–4.0. Energy, 1991.
  14. Ring-opening plate distributor for stratified tanks. Energy, 2022.
  15. Stratified storage tank influence on performance of a solar water heating system tested in Beirut. Renewable Energy 4(8), 1994.
  16. Zotica, Pérez-Piñeiro & Skogestad. Optimal operation and control of a thermal energy storage system: classical advanced control versus MPC. ESCAPE-30, 2020. hdl.handle.net/11250/2727993
  17. Ma, Borrelli et al. Model predictive control for the operation of building cooling systems. IEEE Trans. Control Systems Technology, 2012.
  18. Yang et al. Experiment study of machine-learning-based approximate model predictive control for energy-saving building control. Applied Energy 288, 2021.
  19. Alshiekh et al. Safe reinforcement learning via shielding. AAAI 2018.
  20. Physics-informed neural network for a borehole thermal energy store (outlet MAE 0.3 °C). 2025.
  21. Physics-informed reconstruction of a packed-bed thermal store from sparse thermocouples. Frontiers in Energy Efficiency, 2026.
  22. Fouling detection in industrial heat exchangers using NTU, neural-network and NFIR models. Heat Transfer Engineering 43(21), 2022.
  23. Ujević Andrijić & Rimac. Virtual sensors for heat-exchanger fouling from historian data. Sensors, 2025.
  24. DS18B20 metrological characterisation and affine calibration. 2026.
  25. YF-S201 calibration dependence on pipe diameter. IEEE conference paper.
  26. Team simulation code and results: sim.py, run_all.py, results.json (10 October 2026).