FlavoRotor is in developmentSee the current stage
Research

Flavour control · FLV-ALG-001

Recipe and control algorithm

A safe hierarchy separating user targets, recipe parameters, measured feedback, actuator calibration and learned sensory models.

MarkdownJSONRevised 2026-07-26
In brief

A safe hierarchy separating user targets, recipe parameters, measured feedback, actuator calibration and learned sensory models.

Control hierarchy

User targetValidated recipe IDSetpoints and schedulesCalibrated actuatorsMeasured environmentOutcome model

Direct feedback loops

Closed-loop control is appropriate for directly measured variables such as pH, reservoir level, solution temperature, rotation speed and bulk EC. Individual-ion control requires ion-specific measurement or a constrained mass-balance model validated by chemical analysis.

RCP-1
e(k)=ytargetymeasured(k)e(k)=y_{\mathrm{target}}-y_{\mathrm{measured}}(k)
Error for a directly measured controlled variable.

ExplanationThe feedback error is the target value minus the measured value.

RCP-2
u(k)=clip[Kpe(k)+Kije(j)Δt, umin, umax]u(k)=\operatorname{clip}\left[K_pe(k)+K_i\sum_j e(j)\Delta t,\ u_{\min},\ u_{\max}\right]
Bounded PI action with explicit actuator and safety limits.

ExplanationThe requested correction combines present and accumulated error, then remains inside declared actuator and safety limits.

Learned sensory mapping

The sensory predictor is trained from completed FlavoRotor experiments. Its input data include genotype, developmental stage, measured environmental history, solution composition and harvest handling. Cross-validation is separated by cultivation cycle to prevent samples from the same run appearing in training and test sets.

Safety constraints

  • no automatic dose with an expired channel calibration;
  • no correction while the mixing delay is active;
  • bounded dose and runtime per event;
  • sensor plausibility and redundancy checks;
  • fault-safe state after communication loss;
  • full event logging with recipe and firmware versions.

State-conditioned treatment

A recipe contains time limits and plant-state conditions. For example, a light phase can begin when a validated imaging model detects the required developmental stage, provided plant-health checks pass and the minimum and maximum calendar limits are respected.

RCP-3
xt+1=f ⁣(xt,ut,dt,g,θ)+wt\mathbf{x}_{t+1}=f\!\left(\mathbf{x}_t,\mathbf{u}_t,\mathbf{d}_t,g,\boldsymbol{\theta}\right)+\mathbf{w}_t
x(t) is plant state; u(t) contains controlled inputs; d(t) contains measured disturbances; g identifies genotype; θ contains model parameters; and w(t) represents process variation.

ExplanationThe next plant state depends on the current state, controlled inputs, measured disturbances, genotype and model parameters, plus biological variation.

RCP-4
yt=h ⁣(xt)+vt\mathbf{y}_t=h\!\left(\mathbf{x}_t\right)+\mathbf{v}_t
The camera, sensors and laboratory measurements observe only part of the plant state; v(t) represents measurement error.

ExplanationSensors, images and laboratory analyses observe only part of the underlying plant state and include measurement error.

Article bibliography

Sources used on this page