Sodium hyaluronate fermentation control system based on digital twinning
By using a digital twin-based sodium hyaluronate fermentation control system, the problem of balancing mass transfer efficiency and product quality in the high viscosity stage was solved, enabling directional control of product molecular weight, reducing the difficulty of scale-up fermentation processes, and stabilizing product quality.
Patent Information
- Application Number
- CN202611546795.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-08
- Publication Date
- 2026-11-27
AI Technical Summary
Existing sodium hyaluronate fermentation control technologies struggle to balance mass transfer efficiency and product quality during high-viscosity stages, leading to significant challenges in controlling product molecular weight. Furthermore, existing digital twin models lack bidirectional coupling relationships under conservation constraints, resulting in amplified control input and state judgment biases.
The sodium hyaluronate fermentation regulation system based on digital twins forms a bidirectional coupled digital twin through a process data mapping module, a metabolic synthesis domain model, a rheological mass transfer domain model, a polymerization product domain model, and a conservation constraint hidden state observer. It uses a hierarchical predictive controller to generate a collaborative control sequence, thereby achieving unified regulation of precursor supply, mass transfer capacity, and viscosity effects.
This technology enables the targeted control of product molecular weight in high-viscosity systems, reducing the difficulty of scaling up from the laboratory to the industrial level, stabilizing product molecular weight and quality, and avoiding product shear degradation caused by incorrect attribution of mass transfer changes.
Smart Images

Figure CN123172248A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer simulation, fermentation process control and data processing technology, specifically a sodium hyaluronate fermentation control system based on digital twins. Background Technology
[0002] Sodium hyaluronate fermentation typically employs facultative anaerobic bacteria and a single-feed process. During production, temperature, pH, stirring speed, and residual substrate concentration are routinely monitored. Continuous feeding and online dissolved oxygen and exhaust gas monitoring are generally not performed; only alkali is added according to pH changes. The fermentation endpoint is determined by the amount of residual glucose and the rate of pH decrease. Existing fermentation control schemes mostly establish process models based on fermenter operating data, constructing models for cell growth and substrate consumption, product formation, and viscosity and mass transfer correlation. Stirring, aeration, and pH adjustment commands are generated through segmented control or empirical adjustments. When mass transfer efficiency decreases, aeration or stirring intensity is usually increased directly; when the substrate consumption rate is abnormal, the feed ratio of subsequent batches is adjusted based on experience; when the viscosity of the fermentation broth increases, operating parameters are adjusted based on empirical relationships to compensate for mass transfer losses. Some digital twin solutions rely on online detection data such as dissolved oxygen and exhaust gas to build models, which is difficult to adapt to the conventional monitoring conditions of traditional facultative anaerobic fermentation. Moreover, metabolic models, rheological models and product models often run in parallel, and the models usually only transmit result values, lacking a unified state mapping that can reflect the mutual constraints between precursor supply, mass transfer capacity, viscosity changes and product accumulation.
[0003] As sodium hyaluronate accumulates during fermentation, the viscosity of the fermentation broth increases dramatically, exhibiting typical non-Newtonian fluid characteristics. Mixing hysteresis increases significantly, and mass transfer efficiency decreases drastically. Simultaneously, the shear intensity of stirring directly affects the molecular weight and quality of the product; excessive shearing leads to product degradation and a decrease in molecular weight, while insufficient stirring exacerbates mass transfer limitations. Existing control methods struggle to distinguish between changes in cell metabolic activity and mass transfer attenuation caused by increased viscosity from the same mass transfer decline phenomenon. They also struggle to achieve a balance between maintaining mass transfer efficiency and controlling shear damage. Especially in the high-viscosity stage of late fermentation, the aeration and stirring capabilities of existing equipment are nearing their limits, making it difficult to effectively stabilize the fermentation state and achieve targeted molecular weight control. This results in significant difficulties in scaling up laboratory processes to industrial production and large fluctuations in product quality. The root cause lies in the lack of bidirectional coupling relationships under conservation constraints in the process models and the absence of a state observation mechanism to separate the sources of residuals according to the propagation order of sampling response, mixing response, and metabolic response. Consequently, the controller might interpret a decrease in mass transfer capacity as a change in metabolic activity, continuously increasing aeration and stirring intensity, which in turn exacerbates product shear degradation. Alternatively, it might interpret a shift in metabolic state as simply insufficient mixing, delaying acid-base regulation and metabolic state correction. This misattribution causes aeration, stirring, and alkali supplementation commands to overlap in the same direction, leading to metabolic state, mass transfer capacity, and shear exposure state deviating from the same feasible range. This results in the subsequent digital twin model being updated based on the distorted response, forming a closed loop where state judgment bias and control input bias mutually amplify each other. Summary of the Invention
[0004] The purpose of this invention is to provide a digital twin-based sodium hyaluronate fermentation control system, which can solve the problems mentioned in the background art.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0006] The sodium hyaluronate fermentation control system based on digital twins includes a process data mapping module, a metabolic synthesis domain model, a rheological mass transfer domain model, a polymerization product domain model, a conservation constraint hidden state observer, and a hierarchical predictive controller.
[0007] The process data mapping module maps temperature, pH, stirring, aeration, residual substrate, and pH adjustment and alkali replenishment data into a unified time sequence, and can access dissolved oxygen and exhaust gas detection data as needed.
[0008] The metabolic synthesis domain model, the rheological mass transfer domain model, and the polymerization product domain model form a bidirectionally coupled digital twin through the precursor supply state, mass transfer capacity state, and viscosity influence state.
[0009] The conservation-constrained hidden state observer is based on the residual separation of metabolic activity changes and mass transfer decay between the actual state and the twin state.
[0010] The stratified predictive controller generates a coordinated control sequence for alkali replenishment, aeration, and stirring based on the separation results.
[0011] Preferably, the bidirectional coupled digital twin has a stage state map, which uses substrate consumption slope, viscosity growth inflection point, product generation rate and molecular weight change trend as node descriptors. When the exhaust gas data is connected, exhaust gas respiration characteristics are added as auxiliary descriptors, and each node is connected by the fermentation stage migration relationship.
[0012] The metabolic synthesis domain model outputs precursor generation capacity and metabolic activity status at the corresponding nodes. The rheological mass transfer domain model outputs mass transfer capacity and mixing hysteresis. The polymerization product domain model outputs product accumulation, molecular weight distribution, and viscosity feedback. The three types of outputs update the input boundaries of adjacent domain models according to the stage migration relationship.
[0013] Preferably, the conservation constraint latent state observer includes carbon source budget constraint, mass transfer capacity constraint, and product mass budget constraint, and extends oxygen budget constraint when dissolved oxygen and exhaust gas data are input; the carbon source budget constraint is related to the initial feed amount, residual substrate and biomass changes, the mass transfer capacity constraint is related to aeration and stirring input, viscosity change and mixing uniformity response, and the product mass budget constraint is related to the product accumulation, viscosity change, molecular weight distribution and precursor consumption;
[0014] The conservation constraint hidden state observer performs directional decomposition on the joint residuals of the three types of constraints, writes the continuously unidirectional residuals into the metabolic activity state, and writes the residuals that expand synchronously with viscosity changes into the mass transfer decay state.
[0015] Preferably, the hierarchical prediction controller includes a stage constraint layer and an execution sequence layer. The stage constraint layer determines the precursor supply range, mass transfer capacity range, shear exposure range and molecular weight target range of the current fermentation stage based on the bidirectional coupled digital twin, and forms a multivariable feasible region.
[0016] The execution sequence layer jointly generates alkali replenishment increment, aeration increment, and stirring increment within the multivariable feasible region. Control sequences are screened in the order of first correcting metabolic state mismatch, then correcting mass transfer capacity mismatch, and finally matching molecular weight target and limiting shear accumulation. The screened control sequences are then written into the next prediction cycle.
[0017] Preferably, the stage state map includes a coupling strength tensor, which records the mapping weight of the precursor supply state to the product generation state, the mapping weight of the viscosity influence state to the mass transfer capacity state, and the feedback weight of the mass transfer capacity state to the metabolic activity state.
[0018] The coupling strength tensor is locally updated according to the temporal sequence of changes in the output of each domain model within adjacent prediction periods. A freeze flag is set for the weight updates that fail to meet the carbon source budget constraint, mass transfer capacity constraint, or product quality budget constraint, so that only coupling paths that satisfy conservation consistency are retained during the stage migration process.
[0019] Preferably, a stage relocation mechanism is provided between the stage state map and the conservation constraint hidden state observer. The stage relocation mechanism divides the joint residual into transient residual segments and persistent residual segments, and performs sequence matching between the persistent residual segments and the state description quantities of adjacent stage nodes.
[0020] When the matching result points to a node other than the current stage, the stage relocation mechanism keeps the domain model parameters unchanged and only resets the stage node and the corresponding input boundary.
[0021] When the matching result does not point to any adjacent stage node, the conservative constraint hidden state observer retains the current stage node and generates the state variable to be corrected.
[0022] Preferably, the conservation constraint hidden state observer is provided with a multi-timescale residual stack, which stores the sampling period residual, the mixed response period residual and the metabolic response period residual respectively, and constructs a residual chain according to the propagation order of the same control input at different time scales.
[0023] The components that first appear in the sampling period but do not continue into the mixed response period in the residual chain are marked as observation perturbations. The components that first appear in the mixed response period and continue into the metabolic response period are written into the mass transfer decay state. The components that directly continue into the metabolic response period and meet the carbon source budget constraint are written into the metabolic activity state.
[0024] Preferably, the execution sequence layer establishes a control influence matrix for each candidate control sequence. The control influence matrix records the effects of alkali supplementation adjustment on precursor supply status and metabolic activity status, the effects of ventilation adjustment on mass transfer capacity status and mixing uniformity, and the effects of stirring adjustment on mass transfer capacity, shear exposure status and molecular weight distribution.
[0025] The execution sequence layer performs coupling elimination on the control influence matrix, eliminating candidate control sequences that introduce another state beyond the multivariable feasible region when correcting a mismatch state, and forming a rolling control queue for the remaining candidate control sequences according to the state boundaries given by the stage constraint layer.
[0026] Preferably, the coupling strength tensor has an identifiable gating matrix, which determines the separable combination of the precursor supply state, mass transfer capacity state, viscosity influence state and metabolic activity state based on the number of independent directions of each residual chain in the multi-timescale residual stack.
[0027] Local updates of the target mapping weights are enabled only when the input and output states corresponding to the target mapping weights are in the same separable combination and there are no conflicts in the relevant conservation constraints. The remaining mapping weights are frozen, and the new residuals are written into the identification sample cache of the subsequent prediction period.
[0028] Preferably, a bidirectional consistency check table is provided between the stage relocation mechanism and the rolling control queue. The bidirectional consistency check table records the predicted stage migration path and the stage matching path after execution for each candidate control sequence.
[0029] When two paths bifurcate within a continuous prediction period, the stage nodes before execution, the domain model input boundaries, and the control influence matrix are retained as a rollback snapshot, and the control sequence that caused the bifurcation is removed from the rolling control queue.
[0030] The stage relocation mechanism regenerates the state variables to be corrected based on the rollback snapshot, and the execution sequence layer reconstructs the candidate control sequence accordingly.
[0031] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0032] By establishing a digital twin that interconnects the metabolic synthesis domain, rheological mass transfer domain, and polymerization product domain, the precursor supply state, mass transfer capacity state, and viscosity influence state are used as cross-domain transfer quantities. This is adapted to the facultative anaerobic single-feed sodium hyaluronate fermentation scenario, allowing viscosity changes caused by product accumulation to be included in mass transfer calculations, mass transfer states to be included in metabolic activity calculations, and metabolic synthesis states to constrain product formation and molecular weight changes. The conservation-constrained hidden state observer, combining carbon source budget, mass transfer capacity constraints, and product mass budget, performs directional decomposition on the joint residual between the actual state and the twin state. It also uses a multi-timescale residual stack to determine the propagation order of the residual in the sampling period, mixing response period, and metabolic response period, respectively forming the observation perturbation, mass transfer decay, and metabolic activity states. Based on this, the stratified predictive controller selects alkali supplementation, aeration, and stirring control sequences within the feasible domain consisting of the precursor supply range, mass transfer capacity range, shear exposure range, and molecular weight target range. This avoids repeatedly allocating the same mass transfer change to aeration and stirring regulation, and also avoids continuously increasing stirring input and aggravating product shear degradation before mass transfer attenuation has been identified. This allows each control quantity to be allocated according to the identifiable state source, balancing mass transfer efficiency and product quality in high-viscosity systems.
[0033] The stage-state map maps substrate consumption slope, viscosity growth inflection point, product formation rate, and molecular weight change trends to unified stage nodes, and uses a coupling strength tensor to record the mapping weights between precursor supply, mass transfer capacity, viscosity influence, and metabolic activity. The stage relocation mechanism corrects stage nodes based on the sequence matching results of the persistent residual and adjacent stage nodes, while keeping the domain model parameters unchanged, reducing the possibility of stage identification offsets being mistakenly written as changes in kinetic parameters. The identifiability gating matrix only allows local weight updates when the input and output states are separable and there are no conflicts in conservation constraints; the remaining weights remain frozen to avoid observational perturbations or short-term mixing hysteresis contaminating coupling relationships. The execution sequence layer eliminates candidate sequences that would cause other states to fall outside the feasible region by controlling the influence matrix, and performs bidirectional consistency verification using the predicted stage migration path and the matching path of the post-execution stage. When the two paths continue to fork, the control queue is reconstructed based on the saved stage nodes, input boundaries and control influence matrix, so that the digital twin state update, stage migration and control sequence are consistent, realizing the directional control of product molecular weight, reducing the difficulty of fermentation process from laboratory to industrial scale-up, and stabilizing product molecular weight and quality. Attached Figure Description
[0034] Figure 1 This is a schematic diagram of the overall framework structure of the present invention;
[0035] Figure 2 To unify the time-series state reliability graph;
[0036] Figure 3 This is a recursive trajectory diagram for bidirectional coupling states;
[0037] Figure 4 Comparison diagram for controlling the coupling of influence matrices. Detailed Implementation
[0038] In one embodiment, please refer to Figure 1A digital twin-based sodium hyaluronate fermentation control system includes a process data mapping module, a metabolic synthesis domain model, a rheological mass transfer domain model, a polymerization product domain model, a conservation-constrained hidden state observer, and a hierarchical predictive controller. The process data mapping module maps temperature, pH, dissolved oxygen, feeding, stirring, aeration, and exhaust gas data to a unified time-series state. The metabolic synthesis domain model, rheological mass transfer domain model, and polymerization product domain model form a bidirectionally coupled digital twin through precursor supply state, effective oxygen supply state, and viscosity-affected state. The conservation-constrained hidden state observer is based on the residual values of the actual state and the twin state. The differential separation of metabolic oxygen consumption changes and mass transfer attenuation is used. A stratified predictive controller generates a coordinated control sequence for feeding, aeration, and stirring based on the separation results. In practice, the process data mapping module continuously receives temperature, pH, stirring control, aeration control, residual substrate concentration, and cumulative pH-adjusted alkali supplementation within the same fermentation batch, arranged according to sampling time. Dissolved oxygen and tail gas component detection data can be integrated as needed, and sampling timestamps, source identifiers, and control cycle numbers are added to each data point. Subsequently, resampling, missing data completion, mutation value verification, and dimensional consistency processing are performed according to a unified time reference. Resampling does not use simple linear interpolation; instead, it selects a preservation-type, slope-preserving, or response-delayed interpolation method based on the physical process to which the data belongs. Temperature and pH use slope-preserving interpolation, cumulative alkali supplementation and residual substrate concentration use preservation-type interpolation, and dissolved oxygen and tail gas changes use response-delayed interpolation. The mapped unified temporal state is encapsulated into a state frame according to the same control cycle, and the correction value, rate of change and confidence are retained. The metabolic synthesis domain model reads the state components related to substrate consumption, acid-base regulation and cell activity. The rheological mass transfer domain model reads the state components related to viscosity change, stirring, aeration and mass transfer capacity. The polymerization product domain model reads the state components related to precursor supply, product accumulation, molecular weight distribution and shear exposure. Each domain model completes sequential calculation and reverse correction in each prediction cycle by sharing state frames and cross-domain feedback variables, so that the state changes in the digital space keep the same time index and the same control input source as the actual fermentation process.
[0039] In this embodiment, the formation of a unified time-series state includes time alignment, anomaly fragment identification, and state confidence updating. The process data mapping module uses the actual issuance time of stirring, aeration, and feeding control quantities as the control event anchor point. Changes in dissolved oxygen, tail gas, pH adjustment response, and temperature disturbances before and after the anchor point are included in the same response window. Changes occurring before the control event are not included in the corresponding response; changes occurring after the physical propagation window are retained as pending states, avoiding the forced splicing of changes without causal correlation. Anomaly fragment identification is jointly achieved through local change direction, adjacent data consistency, and intervariate conservation relationships. When a single measurement value abruptly changes without corresponding changes in substrate budget, oxygen budget, and product mass budget, the abrupt value is marked as an observation anomaly and its confidence is reduced. When multiple related data change together within a reasonable response order, they are retained as pending states. In real-world processes, state reliability is not based on fixed weights, but rather is recursively updated based on measurement continuity, residual directional stability, and conservation consistency within the most recent control cycles. When the digital twin reads the state frame, it simultaneously reads the reliability and adjusts the contribution of each state component to the latent state estimation accordingly. This avoids short-term anomalies in local sensor data directly driving changes in domain model parameters. The metabolic synthesis domain model stores the precursor formation state and metabolic oxygen consumption state, the rheological mass transfer domain model stores the viscosity-affected state, mixing hysteresis state, and effective oxygen supply state, and the polymerization product domain model stores the product accumulation state and shear exposure state. States are connected by directed coupling edges, and forward computation, residual backpropagation, and edge weight correction are performed in each control cycle. Forward computation yields the predicted state, residual backpropagation locates the source of deviation, and edge weight correction is only open to coupling edges that meet the conditions of conservation consistency and identifiability.
[0040] The unified timing state is constructed using the following formula:
[0041]
[0042] ;
[0043] in, Let m represent the unified temporal state vector of the k-th control cycle, and m represent the number of data types included in the state frame. This represents the standardized state value of data type m after being weighted and normalized based on its credibility. Indicates transpose. This represents the fused normalized univariate state in the k-th control cycle. This represents the corrected measurement value of the j-th type of data over k control cycles. and Let these represent the lower bound and upper bound of the mapping for the j-th type of data, respectively. Indicates confidence level, with a value ranging from 0 to 1. This represents the prior state calculated from the state of the previous control cycle and the current control input; for example, when a certain dissolved oxygen data is consistent with the exhaust gas response and oxygen balance, A value close to 1 can be chosen to make the current measurement dominant in the state mapping, when dissolved oxygen data shows isolated abrupt changes without corresponding tail gas changes. By taking values close to 0, the prior state dominates the mapping, thus avoiding isolated mutations that directly alter the state of the digital twin.
[0044] Please refer to Figure 2 , Figure 2 The horizontal axis represents the continuous control cycle k within the same fermentation batch, covering the main operating range from batch access to the formation of the rolling control queue; the vertical axis represents the normalized state value and confidence level obtained by the process data mapping module, ranging from 0 to 1. Figure 2 The curves correspond to the states of temperature, dissolved oxygen, cumulative feed amount, tail gas oxygen, residual substrate, viscosity effect, and product accumulation, respectively. The component changes are represented by gray reference lines, which are used to identify the operating reference range and the confidence lower limit.
[0045] Figure 2 The state shown comes from The credibility fusion calculation, in which First press and Complete the dimensional consistency. Determine the current measurement and the prior state The weights of the temperature and pH components in the curves are relatively small, indicating that these slow variables mainly play a role in state alignment; the dissolved oxygen and tail gas oxygen components change in opposite directions after feeding and ventilation adjustments, indicating that the state frame can incorporate the responses before and after the control event into the same k-index.
[0046] Furthermore, the metabolic synthesis domain model takes the residual substrate change trend, acid-base regulation response, and temperature change in a unified time series as inputs. When dissolved oxygen and exhaust gas data are integrated, respiratory metabolic characteristics are simultaneously incorporated. This allows for the estimation of precursor supply and metabolic activity states without directly relying on a single measurement. The precursor supply state is jointly defined by the initial carbon source, the residual substrate trend from the previous cycle, and the product mass balance, adapting to facultative anaerobic fermentation scenarios with single-feeding. The metabolic activity state is jointly defined by the substrate consumption rate, pH change rate, and the current physiological stage, and can be further corrected by incorporating exhaust gas components when integrating exhaust gas data. The rheological mass transfer domain model updates the mixing hysteresis state based on the product accumulation state, viscosity influence state, and non-Newtonian fluid characteristic parameters returned from the polymerization product domain model. It also calculates the effective mass transfer capacity by combining stirring control quantities, aeration control quantities, and their response delays. For high-viscosity systems in the later stages of fermentation, the model introduces the correlation between shear rate and apparent viscosity to describe the mass transfer attenuation law of non-Newtonian fluids under different stirring intensities, adapting to viscosity abrupt changes during industrial scale-up. The polymerization product domain model updates the product accumulation trend and molecular weight distribution based on the precursor supply state, mass transfer capacity state, and shear exposure state. Simultaneously, it feeds back the viscosity effect caused by product accumulation and its molecular weight correlation parameters to the rheological mass transfer domain model, and the precursor consumption to the metabolic synthesis domain model. The bidirectionally coupled digital twin iterates in the order of initial calculation in the metabolic synthesis domain, correction in the rheological mass transfer domain, update in the polymerization product domain, and cross-domain residual backpropagation until the changes in precursor supply state, mass transfer capacity state, and viscosity effect state within the same control period satisfy the convergence condition. If the iteration does not converge within a limited number of iterations, the coupling strength of the previous period is retained, and the prediction reliability of the current period is reduced. The unconverged results are not directly used to generate the control sequence, ensuring that the viscosity increase caused by product formation, the mass transfer attenuation caused by the viscosity increase, and the metabolic changes caused by the mass transfer attenuation are incorporated into the same closed-loop calculation, rather than being given separate, unverified outputs by independent models.
[0047] The bidirectional coupling state is derived recursively by the following formula:
[0048] ;
[0049] in, This represents the cross-domain state vector of the k-th control cycle. This represents the cross-domain state vector for the (k+1)th control cycle, including precursor supply state, metabolic oxygen consumption state, viscosity influence state, mixing hysteresis state, effective oxygen supply state, product accumulation state, and shear exposure state. This represents the control vector consisting of feeding, aeration, and mixing. Indicates the current stage node. This represents the state continuity matrix within a stage. This represents the control input mapping matrix. Represents a cross-domain coupling matrix. This represents the nonlinear coupling term between viscosity effects, oxygen transfer, and metabolic oxygen consumption; for example, when the viscosity effect increases and stirring remains unchanged, The mass transfer attenuation component in the formula is positive and reduces the effective oxygen supply state in the next cycle. When the change in exhaust gas respiration indicates that metabolic activity is enhanced, the metabolic oxygen consumption component increases synchronously. Thus, the common contribution of two types of causes to dissolved oxygen response can be distinguished in the same recursive formula.
[0050] Please refer to Figure 3 , Figure 3 The horizontal axis represents the control period k, and the vertical axis represents the cross-domain state strength. The curve is shown below. The recursive trajectory of core states including precursor supply, metabolic oxygen consumption, viscosity effects, mixing hysteresis, effective oxygen supply, product accumulation, and shear exposure. Different line types represent different domain states, and gray reference lines mark the operating reference intervals to facilitate observation of whether the state is approaching the stage boundary.
[0051] Figure 3 correspond The recursive relationship of the stages, where Retain the current stage The internal state continues. This indicates the components of feeding, aeration, and mixing. Direct effect on the state, and Describes the nonlinear feedback between viscosity effects, oxygen transport, and metabolic oxygen consumption. Figure 3 The supply of precursors initially increases after feeding, but is then gradually consumed by product accumulation and metabolic oxygen consumption, demonstrating the combined effect of control inputs and state continuity.
[0052] In a preferred embodiment, the bidirectional coupled digital twin includes a stage state map. The stage state map uses substrate consumption slope, exhaust gas respiration characteristics, viscosity growth inflection point, and product formation rate as node descriptors, and connects each node according to fermentation stage migration relationships. The metabolic synthesis domain model outputs precursor generation capacity and metabolic oxygen consumption at corresponding nodes, the rheological mass transfer domain model outputs oxygen transfer capacity and mixing hysteresis, and the polymerization product domain model outputs product accumulation and viscosity feedback. These three types of outputs update the input boundaries of adjacent domain models according to stage migration relationships. Specifically, the stage state map does not divide nodes according to a fixed fermentation duration, but instead uses combinations of states such as the substrate consumption slope changing from gradual to increasing, the exhaust gas respiration characteristics changing from growth-dominated to product synthesis-dominated, the viscosity growth showing a continuous inflection point, and the product formation rate entering a stable range as node entry conditions. The nodes are connected in the allowed migration direction, and entry, exit and backtracking conditions are saved for each migration edge. The current period state frame is matched with the descriptive quantities of each node to obtain a candidate node set. Then, the node in the previous period and the allowed migration direction are combined to exclude discontinuous jumps. If multiple candidate nodes meet the conditions at the same time, the conservation residual and control response order are used for secondary discrimination. After the stage node is determined, the metabolic synthesis domain model reads the precursor supply prior range and metabolic oxygen consumption prior range corresponding to the node, the rheological mass transfer domain model reads the oxygen transfer capacity boundary and mixing hysteresis boundary, and the polymerization product domain model reads the product cumulative change range and viscosity feedback range. If the output of each domain model is close to the node boundary, the predicted state of the adjacent node is calculated in advance so that the input boundary can be switched continuously without resetting all internal states when the stage migration occurs.
[0053] Preferably, the node descriptors in the stage state map are jointly encoded using trend and response relationships. The substrate consumption slope is obtained from the difference between the residual substrate estimate and the initial feed amount within adjacent time windows. When incorporating exhaust gas data, exhaust gas respiration characteristics can be added as auxiliary descriptors. The viscosity growth inflection point is determined by the first-order and second-order change directions of viscosity influence state within continuous time windows. The product formation rate and molecular weight change trends are jointly inverted by product mass balance, cumulative shear exposure, and precursor consumption state. Node matching does not require all descriptors to reach a fixed threshold simultaneously, but rather requires that the descriptors satisfy the order relationship of the corresponding stages. For example, when entering the rapid viscosity growth stage, the cumulative change of products should precede the hysteretic change of mixing, and the hysteretic change of mixing should precede the decrease in mass transfer capacity. If the observation order is opposite to this relationship, stage migration is not performed, and the relevant data is retained in the discrimination window. The stage transition relationship also preserves the input boundary transformation rules for each adjacent domain model. These rules employ continuous boundary interpolation rather than instantaneous replacement, allowing the precursor supply interval, mass transfer capacity interval, and shear exposure interval to gradually transition over several control cycles, avoiding abrupt changes in the predicted state caused by stage node switching. During the boundary transition period, the digital twin simultaneously runs the current node model and the target node model, combining their outputs according to the transition confidence. The transition confidence increases with the degree of state order matching and conservation consistency. When the transition confidence is insufficient, the current node is retained as the control basis.
[0054] Stage node matching is calculated using the following formula:
[0055] ;
[0056] in, d represents the matching degree between the k-th control cycle and the r-th stage node, and d represents the number of node descriptors. This represents the description of the current h-th node. This represents the reference descriptor corresponding to the r-th stage node. Indicates the weight of the descriptive quantity. This represents a penalty term for violating the phase transition order or conservation relationship; for example, when the current state is similar in trend direction to a certain node but the cumulative change of the product lags behind the mixed hysteresis change. Taking a positive value and decreasing the matching degree, when the current state simultaneously satisfies the trend direction and response order, Set it to 0 to avoid misjudging the fermentation stage based solely on a single trend similarity.
[0057] In another embodiment, the conservation-constrained hidden-state observer includes carbon source budget constraints, mass transfer capacity constraints, and product mass budget constraints. When dissolved oxygen and exhaust gas data are integrated, oxygen budget constraints can be added. The carbon source budget constraint is related to initial feed rate, residual substrate, and biomass changes, adapting to single-feed processes. The mass transfer capacity constraint is related to aeration and stirring input, viscosity changes, and mixing uniformity response. The product mass budget constraint is related to product accumulation, viscosity changes, molecular weight distribution, and precursor consumption. The conservation-constrained hidden-state observer performs directional decomposition on the joint residuals of the three types of constraints, writing the continuously unidirectional residuals into the metabolic activity state and the residuals that expand synchronously with viscosity changes into the mass transfer decay state. During implementation, the carbon source budget constraint constructs a closed-loop carbon flow relationship based on the initial feed rate, estimated substrate consumption, cell growth-related consumption, and product precursor consumption. The mass transfer capacity constraint constructs a closed-loop mass transfer relationship based on aeration input, stirring and shear input, apparent viscosity change, and mixing hysteresis. The product quality budget constraint constructs a closed-loop product flow relationship based on precursor supply, cumulative product change, viscosity effect change, molecular weight distribution change, and chain degradation-related amount. These three budget relationships form a joint residual vector within the same control period. The observer stores the sign, amplitude, duration, and phase relationship with the control event for each residual component within a continuous time window. The joint residual is projected using the directional basis vector as the direction of metabolic activity change, mass transfer decay, observed perturbation, and unexplained direction. The direction of change in metabolic activity requires that the carbon source balance residual and the substrate consumption rate change in the same direction and that there is a corresponding response to the pH change; the direction of mass transfer attenuation requires that the mass transfer capacity residual and the viscosity effect change increase synchronously and that the substrate consumption change is insufficient to explain the entire difference; the direction of observational disturbance requires that a single measurement channel is abnormal while the other balance relationships remain closed; unexplained directions are retained for observation in subsequent cycles without immediately changing the control basis.
[0058] The joint residual and its directional decomposition are expressed by the following formula:
[0059] ;
[0060] in, Indicates the joint residual. This represents the carbon source balance residual. This represents the oxygen balance residual. Indicates the product quality residual. This represents the residual direction matrix determined by the current stage node. This indicates the change in metabolic oxygen consumption. This represents the change in mass transfer attenuation. Indicates the observed disturbance quantity. This indicates that the residuals have not yet been explained; for example, when the oxygen budget residual increases, the carbon source budget residual changes synchronously, and the viscosity effect remains stable, the decomposition results will... Dominant, when the oxygen budget residual increases with increasing viscosity influence state and no corresponding consumption occurs in the carbon source budget, Dominant.
[0061] Furthermore, the conservation-constrained hidden-state observer uses a rolling window to solve the joint residuals, rather than using a single sampling point as the basis for state attribution. The length of the rolling window covers at least one mixed response cycle and one metabolic response cycle. Within the window, a candidate correlation chain from input to response is established for each control event. The observer determines the causal order based on the timing of the control input occurrence, the start time of the dissolved oxygen response, the start time of the exhaust gas response, and the timing of viscosity-related state changes. If dissolved oxygen recovers briefly after agitation or ventilation changes but the exhaust gas respiration characteristics do not change synchronously, this recovery is attributed to the mass transfer response. If the substrate budget and exhaust gas respiration characteristics change together within the metabolic response cycle after a change in feed, the change is attributed to the metabolic response. Xie responded that the joint residual direction decomposition adopts the minimum residual solution with non-negative constraints, so that the changes in metabolic oxygen consumption and mass transfer attenuation do not physically contradict the observed direction. After the solution is obtained, the cost-benefit back substitution is performed, and the decomposition results are resubstituted into the cost-benefit relationship of carbon source, oxygen and product mass. Only when the back substitution error is lower than the error range allowed by the current state frame credibility is the corresponding hidden state written. If the back substitution error is too large, the hidden state of the previous cycle is maintained and the current residual is added to the unexplained residual cache. After the unexplained residuals accumulate continuously, the stage relocation is triggered instead of directly modifying the kinetic parameters. In this way, the residual separation and stage judgment form the order of state verification first and model correction later.
[0062] In a preferred embodiment, the hierarchical predictive controller includes a stage constraint layer and an execution sequence layer. The stage constraint layer determines the precursor supply range, mass transfer capacity range, shear exposure range, and molecular weight target range for the current fermentation stage based on a bidirectional coupled digital twin, forming a multivariate feasible region. The execution sequence layer jointly generates alkali supplementation increments, aeration increments, and stirring increments within the multivariate feasible region. It then selects control sequences in the order of first correcting metabolic state mismatches, then correcting mass transfer capacity mismatches, and finally matching molecular weight targets and limiting shear accumulation. The selected control sequences are then written into the next prediction cycle. The stage constraint layer reads the current stage node, cross-domain state vector, joint residual decomposition results, and state confidence, performs state prediction for several future control cycles, and combines the allowed lower and upper bounds of precursor supply, mass transfer capacity, shear exposure accumulation, molecular weight distribution target range, and product accumulation continuity conditions within the prediction cycle into a time-varying feasible region. The execution sequence layer generates candidate sequences with limited variation ranges based on the current alkali supply, aeration rate, and stirring speed. Each candidate sequence undergoes cross-domain forward extrapolation: if the precursor supply state deviates from the stage interval during extrapolation, the pH adjustment strategy is adjusted first, and the metabolic activity state is recalculated; if the mass transfer capacity state is below the lower bound of the stage, correction amounts are allocated between the aeration and stirring candidate components according to their respective impacts on mass transfer efficiency and shear exposure. For high viscosity stages, mass transfer is maintained primarily through aeration optimization to avoid excessive stirring that exacerbates product shear degradation; if the shear exposure is close to the cumulative upper bound or the molecular weight distribution deviates from the target interval, the stirring candidate component is restricted, and the aeration and acid-base adjustment parameters are adjusted to match the synthesis path. Candidate sequences only enter the rolling control queue if they remain within the time-varying feasible region throughout the entire prediction period and satisfy stage migration continuity.
[0063] Candidate control sequences are evaluated using the following formula:
[0064] ;
[0065] in, Indicates candidate control sequences, This represents a candidate control sequence with a predicted length of L. This indicates the predicted precursor supply status. Indicates the reference state for the corresponding stage. This indicates the predicted effective oxygen supply status. Indicates the reference state for the corresponding stage. Indicates the predicted shear exposure state. , and The stage weights representing the deviations from each state are: This indicates the control increment. This represents the constraint matrix for controlling changes; for example, it can improve [the control] during the rapid viscosity increase phase. and maintain A positive value ensures that candidate sequences can maintain effective oxygen supply while avoiding reliance on continuously increasing stirring to reduce oxygen supply deviation.
[0066] In this embodiment, the execution sequence layer does not directly issue all control variables based on the minimum value of a single objective function. Instead, it combines objective function evaluation with feasible region verification. After the candidate control sequences complete the forward inference, the execution sequence layer checks whether there are continuous segments in the precursor supply state below the lower bound, whether there is a continuous deviation in the effective oxygen supply state caused by mass transfer attenuation, whether there is irreversible accumulation in the shear exposure state, and whether disallowed jumps occur at the stage nodes. If any condition is not met, the candidate sequence is directly deleted. The remaining candidate sequences are then processed according to the degree of precursor mismatch correction, the degree of oxygen supply mismatch correction, the shear accumulation constraint margin, and the control... The control changes are continuously ordered. The sequence at the top of the order only executes the component of the current control cycle, and the subsequent components are used as the initial values for the prediction of the next cycle. After the actual response returns, a unified time sequence state is reconstructed and the joint residual is updated. Then, a new control queue is generated. If the actual response and the predicted response are inconsistent in direction, the subsequent components of the original sequence are not executed. Instead, the conservatism constraint hidden state observer is called to determine whether the deviation comes from changes in metabolic oxygen consumption, changes in mass transfer attenuation, or stage identification offset. The execution sequence layer then reallocates the feed, ventilation, and stirring correction amounts accordingly, so that the control output always depends on the current identifiable state rather than a fixed proportional linkage.
[0067] In a further embodiment, the stage state map includes a coupling strength tensor. This tensor records the mapping weights of the precursor supply state to the product generation state, the mapping weights of the viscosity influence state to the effective oxygen supply state, and the feedback weights of the effective oxygen supply state to the metabolic oxygen consumption state. The coupling strength tensor is locally updated according to the temporal sequence of changes in the model outputs of each domain within adjacent prediction periods. A freeze flag is set for weight updates that fail to meet carbon source budget constraints, oxygen budget constraints, or product quality budget constraints, ensuring that only coupling paths satisfying conservation consistency are retained during stage migration. Specifically, each stage node stores a set of coupling strength tensors, with the tensor index consisting of the input state type, output state type, response delay level, and... The stage nodes are jointly determined. The current cycle records the order of changes in precursor supply, metabolic oxygen consumption, and product accumulation after feed changes, and also records the order of changes in effective oxygen supply, exhaust gas respiration, and viscosity effects after aeration or stirring changes. Only when the input state change precedes the output state change and the time interval falls within the corresponding physical response window, the relevant tensor elements enter the set to be updated. The increment of the elements to be updated is calculated using the current prediction error and historical reliability, and then sent to the carbon source balance, oxygen balance, and product quality balance for back-substitution verification. When any balance relationship has a directional conflict, a freeze mark is set for that element. During the freeze period, the original weight is retained and new identifiable samples are accumulated. When consecutive samples meet the balance consistency in the same direction, the freeze is lifted and a restricted update is performed.
[0068] The local update of the coupling strength tensor is expressed by the following equation:
[0069] ;
[0070] in, This indicates that the input state i in stage node r within the k-th control cycle has passed through the delay level. The coupling weights acting on the output state j This represents the coupling weights in the (k+1)th control cycle. This indicates the update step size, which is constrained by the reliability of the state. This represents the gating value; it is 1 when open and 0 when frozen. This represents the predicted residual for output state j; for example, when viscosity affects state changes before the effective oxygen supply state declines and oxygen balance is consistent with back-substitution, the corresponding... Set to 1, and set to 0 if the order of change is not valid or if there is a conflict between product quality and expenditure. In this way, only the coupling weights with time sequence and conservation basis are updated.
[0071] In this embodiment, the coupling strength tensor update adopts the principle of local sparsity. Instead of simultaneously opening all mapping weights within the same control cycle, candidate coupling paths are determined based on the control event type and residual direction. Feeding events correspond to candidate paths from precursor supply to metabolic oxygen consumption, precursor supply to product accumulation, and precursor consumption to carbon source balance. Ventilation events correspond to candidate paths from ventilation input to effective oxygen supply, effective oxygen supply to metabolic oxygen consumption, and exhaust gas response to oxygen balance. Agitation events correspond to candidate paths from agitation input to mixing hysteresis, mixing hysteresis to effective oxygen supply, and agitation input to shear exposure. Product accumulation events correspond to product accumulation to viscosity influence. Viscosity affects mass transfer attenuation and the candidate paths from mass transfer attenuation to effective oxygen supply. The system opens candidate paths one by one according to the order of event occurrence, and requires that the input changes, output changes and cost residuals of each path form closed evidence within the same response window. If multiple paths can explain the same residual, the coupling weights are not updated and are further distinguished by the discernibility gating matrix. During the stage transition, the tensor of the current stage and the tensor of the target stage participate in the prediction in parallel. When the transition confidence is low, the tensor of the current stage is dominant. As the transition confidence increases, the participation ratio of the tensor of the target stage is gradually increased to prevent the stage switching from causing abrupt changes in the coupling relationship.
[0072] In a preferred embodiment, a stage relocation mechanism is provided between the stage state map and the conserved constraint hidden state observer. This mechanism divides the joint residual into transient residual segments and persistent residual segments, and performs sequence matching between the persistent residual segments and the state descriptors of adjacent stage nodes. When the matching result points to a non-current stage node, the stage relocation mechanism keeps the domain model parameters unchanged, only resetting the stage node and its corresponding input boundary. When the matching result does not point to any adjacent stage node, the conserved constraint hidden state observer retains the current stage node and generates state variables to be corrected. In practice, the transient residual segment consists of residuals whose duration is shorter than the mixing response period and which do not form a stable directional relationship between the carbon source, oxygen, and product mass budgets. The persistent residual segment consists of residuals that span the mixing response period and are present in at least one budget. The residuals in the relationship are kept in the same direction. The stage relocation mechanism extracts the substrate consumption direction, exhaust gas respiration direction, viscosity influence change direction and product generation rate change direction in the persistent residual segment. It performs sequence matching with the current stage node and the allowed adjacent stage nodes one by one. If the description order of the adjacent stage node is consistent with the persistent residual segment and the joint residual decreases after resubstituting the node boundary, the adjacent node is set as the new stage node. At the same time, the internal parameters of the metabolic synthesis domain, rheological mass transfer domain and polymerization product domain are retained. Only the input boundary and coupling tensor index of each domain are replaced. If all adjacent nodes cannot explain the persistent residual, the current node is retained and the unexplained state components are written into the state variables to be corrected for subsequent processing by the multi-timescale residual stack and the identifiability gating matrix.
[0073] The stage relocation criterion is as follows:
[0074] ;
[0075] in, This represents the relocation score of candidate stage node r in the k-th control cycle. Indicates the node matching degree. This represents the joint residual obtained by recalculating using the candidate node boundaries. This indicates the penalty amount for violating the permitted migration direction. , and This represents the combination coefficients that remain positive; for example, when adjacent nodes match the persistent residual segment and the joint residual decreases after recalculation. The increase in size means that even if non-adjacent nodes have similar descriptive values, they will still be affected. The larger positive value is not selected.
[0076] Preferably, after the stage relocation is completed, boundary continuity processing is performed. The new stage node does not directly replace all input boundaries in the current cycle. Instead, it generates boundary transition coefficients based on the relocation score and the matching stability of several consecutive cycles. The precursor supply interval, effective oxygen supply interval, shear exposure interval, and the prior range of each domain state are smoothly transitioned from the old node boundary to the new node boundary. During the transition, the conserved constraint hidden state observer uses the old boundary and the new boundary to calculate two sets of joint residuals respectively, and compares which set of residuals is more stable in terms of time direction and budget closure. If the new boundary residual continues to decrease, the node replacement is completed. If the new boundary residual expands again, the backoff condition is called to restore the original node and the relocation sample is marked as a sample that cannot be directly migrated. The state quantity to be corrected consists of the residual direction, corresponding state component, and occurrence time that cannot be explained by stage relocation. It is not immediately used to modify the domain model parameters, but enters the identification sample cache of the subsequent prediction cycle. Only when the same state direction appears repeatedly under different control events and can be separated by independent residual chains is it allowed to update the relevant coupling weights.
[0077] In another preferred embodiment, the conservation-constrained hidden state observer is equipped with a multi-timescale residual stack. The multi-timescale residual stack stores sampling period residuals, mixed response period residuals, and metabolic response period residuals, respectively, and constructs a residual chain based on the propagation order of the same control input at different timescales. Components that appear first in the sampling period but do not extend to the mixed response period are marked as observation perturbations; components that appear first in the mixed response period and extend to the metabolic response period are written into the mass transfer decay state; and components that directly extend to the metabolic response period and meet the carbon source budget constraint are written into the metabolic oxygen consumption state. Specifically, the sampling period residual stack stores the joint residuals and residuals that have not been time-aggregated according to the original sampling frequency. The reliability of the mixed response cycle residual stack is achieved by directional aggregation of the windows for cover stirring and ventilation response delays, and state association aggregation of the windows for cover substrate utilization and tail gas respiration changes. The residuals of the same control input in the three stacks are connected into a residual chain by the control cycle number and response start time. The residual chain records the direction, amplitude, duration and conservation association at each scale. The observation perturbation only reduces the reliability of the corresponding measurement state. The mass transfer decay state is entered into the rheological mass transfer domain model and the effective oxygen supply estimate is corrected. The metabolic oxygen consumption state is entered into the metabolic synthesis domain model and the precursor supply and oxygen consumption relationship is corrected. The residual chain that does not satisfy any propagation mode is retained in the state quantity to be corrected.
[0078] The classification factor for multi-timescale residual chains is expressed by the following formula:
[0079] ;
[0080] in, Indicates the number of categories. , and These represent the aggregated residuals at the sampling scale, mixed response scale, and metabolic response scale, respectively. , and These represent the window lengths at three different scales. , and This indicates that the time weights are kept normalized. Represents a historical residual sequence; for example, when Deviated and When all are close to a steady state, the residual chain is incorporated into the observation perturbation. and When the deviations are in the same direction and the viscosity affects the state synchronously, the residual chain is included in the mass transfer decay.
[0081] In this embodiment, the multi-timescale residual stack is updated using an event-driven approach. When no feeding, ventilation, or agitation changes occur, the natural evolution residual is preserved, but it is not mixed with the control response chain. After a control event occurs, a new residual chain identifier is established, and the event type, direction, and timing are recorded. The sampling scale is used to identify single-point or short-term observational anomalies, the mixed response scale is used to identify the physical responses between ventilation, agitation, and dissolved oxygen, and the metabolic response scale is used to identify the physiological responses between feeding, exhaust respiration, and precursor supply. If multiple control events occur within the same time period, a multi-source residual chain is constructed based on the known sequence of responses for each event, and the contribution of each event is decomposed using the control influence matrix. Residual chains that cannot be independently decomposed are not written into the metabolic oxygen consumption state or mass transfer decay state, but instead wait for subsequent independent events to provide additional identification directions. After the residual chain is classified, the source path is retained, enabling subsequent coupling weight updates to trace the corresponding input state, output state, and response delay level, preventing the same residual from being repeatedly used for updating multiple coupling paths.
[0082] In a further embodiment, the execution sequence layer establishes a control influence matrix for each candidate control sequence. The control influence matrix records the effects of feed adjustment on precursor supply and metabolic oxygen consumption, ventilation adjustment on effective oxygen supply and tail gas response, and agitation adjustment on oxygen transfer capacity and shear exposure. The execution sequence layer performs coupling elimination on the control influence matrix, removing candidate control sequences that introduce another state exceeding the multivariable feasible region when correcting a mismatch state. The remaining candidate control sequences are then arranged into a rolling control queue according to the state boundaries given by the stage constraint layer. The control influence matrix consists of the coupling strength tensor of the current stage node, the residual chain of the most recent independent control events, and... The local responses of the domain model are jointly determined. Each column corresponds to a control increment, and each row corresponds to a state change among precursor supply, metabolic oxygen consumption, effective oxygen supply, tail gas response, oxygen transfer capacity, and shear exposure. After establishing the matrix, the overlapping directions between column vectors are eliminated. For example, when both ventilation and stirring can improve effective oxygen supply, the system uses the differences between the two in the tail gas response and shear exposure rows to separate their independent contributions. If a certain stirring candidate increment can correct the effective oxygen supply deviation but causes the shear exposure to exceed the stage upper bound, then the candidate sequence containing that increment is deleted. If the ventilation candidate increment can bear the corresponding oxygen supply correction and does not cause other states to exceed the boundary, then the candidate sequence with ventilation as the main component is retained and enters the rolling control queue.
[0083] The control effect and coupling elimination are expressed by the following formula:
[0084]
[0085] ;
[0086] in, This represents the predicted state change caused by the control increment. Represents the control effect matrix. Indicates the control increments for feeding, aeration, and mixing; I represents the identity matrix. This represents the projection matrix formed by the repeated influence directions. This indicates the independent control effect after removing duplication effects; for example, when ventilation and agitation have similar directions in the effective oxygen supply line, Extract the repeating direction, and then use the tail gas response line and shear exposure line to retain the difference between the two, so that the execution sequence layer can determine which control increment will introduce a smaller shear exposure under the same oxygen supply correction.
[0087] Please refer to Figure 4 , Figure 4 The horizontal axis represents the control increment channel in the execution sequence layer, including actions that can be issued such as feeding, aeration, and stirring; the vertical axis represents the intensity of the influence of this control increment on the cross-domain state. Each set of bars compares the influence matrix results before and after coupling elimination, where dark bars represent... Predicted impact under direct action; light-colored bars represent direct effects. The result after removing duplicate directions by projection Independent influence.
[0088] Figure 4 Depend on and The focus of the linear incremental relationship is not on showing the objective function values of candidate sequences, but on illustrating that the same oxygen supply correction may be contributed by both ventilation and agitation. Projecting the overlapping portion of the two in the effective oxygen supply direction preserves the differences in tail gas response, mixing hysteresis, and shear exposure, enabling the control queue to determine which column of control increment has more independent and executable adjustment value.
[0089] In this embodiment, the rolling control queue is organized according to the stage constraint margin and the independence of control effects. Each queue item stores the candidate control sequence, the predicted state trajectory, the control effect matrix, the feasible region verification result, the corresponding stage migration path, and the state confidence. When the queue is updated, not only the objective function value is compared, but also the closeness of the candidate sequence to the feasible region boundary is compared. If multiple candidate sequences can correct the same precursor or oxygen supply mismatch, the sequence with a larger margin for shear exposure boundary, product accumulation continuity, and stage migration boundary is retained first. The control effect matrix is re-estimated using the real response after each actual control cycle. During estimation, the multi-timescale residual chain is called to remove observation disturbances and distinguish between mixed response and metabolic response. If a column of control effects cannot be independently identified in a continuous cycle, the control increment range corresponding to that column is shrunk and stops participating in coupling elimination until a new independent control event forms an identifiable residual chain. Candidate sequences that have depended on the failure control effects in the queue are deleted synchronously.
[0090] In one further embodiment, the coupling strength tensor has a distinguishable gating matrix. This matrix determines the separable combinations of precursor supply states, effective oxygen supply states, viscosity-affected states, and metabolic oxygen consumption states based on the number of independent directions of each residual chain in the multi-timescale residual stack. Only when the input and output states corresponding to the target mapping weights are in the same separable combination and there are no conflicts with relevant conservation constraints is a local update of the target mapping weights initiated. The remaining mapping weights remain frozen, and the newly added residuals are written into the distinguishable sample cache for subsequent prediction periods. Specifically, the distinguishable gating matrix uses candidate coupling paths as columns and independent residual chain directions as rows, with each matrix element representing a specific... Whether the residual chain contains the observable contribution of the corresponding coupling path, the system determines whether multiple candidate paths can be independently distinguished by the column rank of the matrix. When feeding, aeration, and stirring change simultaneously in adjacent time periods and the direction of the residual chain is insufficient to separate their respective contributions, all coupling weights related to these control events are frozen. When a separate feeding change or a separate aeration change occurs and forms a new independent residual chain, the column rank of the matrix increases, and the mapping weights that can be independently separated are opened for local updates. Before opening, it is also necessary to check whether the carbon source budget, oxygen budget, and product quality budget are consistent with the update direction. If any budget conflict occurs, the system continues to freeze and retain the sample to avoid forcibly correcting cross-domain relationships using residuals with insufficient information.
[0091] Preferably, the identification sample cache is partitioned and stored according to stage node, control event type, residual chain direction, and conservation consistency label. When a new sample enters the cache, it does not immediately participate in the model update. Instead, it is checked for direction coverage with existing samples under the same stage node. If the sample only repeats the existing direction without adding separable combinations, it is used to improve the credibility of the corresponding direction but does not open new coupling weights. If the sample provides a new independent direction and makes the gating matrix satisfy the column rank condition, the system selects a subset of samples directly related to the target mapping weight for local back substitution. Local back substitution only modifies the target weight and the necessary compensation terms that share the output state with it, while other weights remain unchanged. After the update is completed, the digital twin inference of the same time window is rerun and the joint residual, stage matching degree, and control influence matrix stability before and after the update are compared. If any result shows a direction conflict, the update is canceled and the freeze mark is restored. The gating matrix also distinguishes the response delay levels of the input state and the output state, so that the same state pair corresponds to different coupling weights under different response delays, preventing the mass transfer changes in the mixed response cycle from being mistakenly written into the oxygen consumption relationship in the metabolic response cycle.
[0092] In one final-layer implementation, a bidirectional consistency check table is provided between the stage relocation mechanism and the rolling control queue. This table records the predicted stage migration path and the stage matching path after execution for each candidate control sequence. When two paths fork within a continuous prediction period, the stage nodes before execution, the domain model input boundaries, and the control influence matrix are retained as a backtrack snapshot, and the control sequence causing the fork is deleted from the rolling control queue. The stage relocation mechanism regenerates the state variables to be corrected based on the backtrack snapshot, and the execution sequence layer reconstructs the candidate control sequences accordingly. Specifically, after each candidate control sequence completes its forward inference, it generates a sequence consisting of the current node, potentially adjacent nodes, and pre-defined nodes for each node. The predicted migration path for the entry cycle is calculated. After the control sequence is executed, the stage state map generates the post-execution stage matching path based on the actual state frame, continuous residual segment, and conservation back substitution result. The bidirectional consistency check table compares the nodes, migration direction, and entry time according to the control cycle. If the nodes are consistent and the entry time is within the allowable deviation range, the original rolling control queue is retained and the initial prediction value is updated. If the two paths deviate only in a single cycle, they are marked as transient bifurcation and continue to be observed. If the bifurcation exists continuously and cannot be explained by the observed disturbance, the rollback snapshot is called to restore the stage nodes, domain model input boundary, coupling strength tensor index, and control influence matrix before execution, and the subsequent control components related to the bifurcation path are deleted.
[0093] In this embodiment, the rollback snapshot employs state consistency encapsulation. In addition to saving the pre-execution stage nodes, domain model input boundaries, and control influence matrices, it also saves the unified temporal state, joint residual decomposition results, coupling strength tensor freeze markers, multi-timescale residual chain indexes, and candidate control sequence sources. This allows the rollback operation to restore the complete inference starting point. The stage relocation mechanism rereads the actual data after execution from the rollback starting point, uses the actual response during the bifurcation period as the new state variable to be corrected, and re-determines whether it belongs to metabolic oxygen consumption change, mass transfer attenuation change, stage identification offset, or unidentifiable change. The execution sequence layer reconstructs the multivariate feasible domain and control influence matrix based on the new state attribution, and then generates feeding, ventilation, and stirring candidate sequences. The control combination that caused the path bifurcation is written into the exclusion set and is no longer directly generated under the same stage node and similar state conditions. It is only allowed to re-enter the candidate set when the subsequent coupling weights or identifiability conditions change and are replaced by conservation back-substitution. Thus, bidirectional consistency verification runs through the entire process of state prediction, stage migration, control execution, and model correction.
Claims
1. A digital twin-based sodium hyaluronate fermentation control system, characterized in that, It includes a process data mapping module, a metabolic synthesis domain model, a rheological mass transfer domain model, a polymerization product domain model, a conservation constraint hidden state observer, and a hierarchical predictive controller. The process data mapping module maps temperature, pH, stirring, aeration, residual substrate, and pH adjustment and alkali replenishment data into a unified time sequence, and can access dissolved oxygen and exhaust gas detection data as needed. The metabolic synthesis domain model, the rheological mass transfer domain model, and the polymerization product domain model form a bidirectionally coupled digital twin through the precursor supply state, mass transfer capacity state, and viscosity influence state. The conservation-constrained hidden state observer is based on the residual separation of metabolic activity changes and mass transfer decay between the actual state and the twin state. The stratified predictive controller generates a coordinated control sequence for alkali replenishment, aeration, and stirring based on the separation results.
2. The sodium hyaluronate fermentation control system based on digital twins according to claim 1, characterized in that, The bidirectional coupled digital twin has a stage state map. The stage state map uses the substrate consumption slope, viscosity growth inflection point, product generation rate and molecular weight change trend as node descriptors. When the exhaust gas data is connected, the exhaust gas respiration characteristics are added as auxiliary descriptors, and the nodes are connected by the fermentation stage migration relationship. The metabolic synthesis domain model outputs precursor generation capacity and metabolic activity status at the corresponding nodes. The rheological mass transfer domain model outputs mass transfer capacity and mixing hysteresis. The polymerization product domain model outputs product accumulation, molecular weight distribution, and viscosity feedback. The three types of outputs update the input boundaries of adjacent domain models according to the stage migration relationship.
3. The sodium hyaluronate fermentation control system based on digital twins according to claim 2, characterized in that, The conservation constraint hidden state observer includes carbon source budget constraint, mass transfer capacity constraint, and product mass budget constraint, and extends oxygen budget constraint when dissolved oxygen and exhaust gas data are input; the carbon source budget constraint is related to the initial feed amount, residual substrate and biomass changes, the mass transfer capacity constraint is related to aeration and stirring input, viscosity change and mixing uniformity response, and the product mass budget constraint is related to the product accumulation, viscosity change, molecular weight distribution and precursor consumption. The conservation constraint hidden state observer performs directional decomposition on the joint residuals of the three types of constraints, writes the continuously unidirectional residuals into the metabolic activity state, and writes the residuals that expand synchronously with viscosity changes into the mass transfer decay state.
4. The sodium hyaluronate fermentation control system based on digital twins according to claim 1, characterized in that, The hierarchical predictive controller includes a stage constraint layer and an execution sequence layer. The stage constraint layer determines the precursor supply range, mass transfer capacity range, shear exposure range and molecular weight target range of the current fermentation stage based on the bidirectional coupled digital twin, and forms a multivariable feasible region. The execution sequence layer jointly generates alkali replenishment increment, aeration increment, and stirring increment within the multivariable feasible region. Control sequences are screened in the order of first correcting metabolic state mismatch, then correcting mass transfer capacity mismatch, and finally matching molecular weight target and limiting shear accumulation. The screened control sequences are then written into the next prediction cycle.
5. The sodium hyaluronate fermentation control system based on digital twins according to claim 2, characterized in that, The stage state map includes a coupling strength tensor, which records the mapping weight of the precursor supply state to the product generation state, the mapping weight of the viscosity influence state to the mass transfer capacity state, and the feedback weight of the mass transfer capacity state to the metabolic activity state. The coupling strength tensor is locally updated according to the temporal sequence of changes in the output of each domain model within adjacent prediction periods. A freeze flag is set for the weight updates that fail to meet the carbon source budget constraint, mass transfer capacity constraint, or product quality budget constraint, so that only coupling paths that satisfy conservation consistency are retained during the stage migration process.
6. The sodium hyaluronate fermentation control system based on digital twins according to claim 3, characterized in that, A stage relocation mechanism is provided between the stage state map and the conserved constraint hidden state observer. The stage relocation mechanism divides the joint residual into transient residual segments and persistent residual segments, and performs sequence matching between the persistent residual segments and the state description quantities of adjacent stage nodes. When the matching result points to a node other than the current stage, the stage relocation mechanism keeps the domain model parameters unchanged and only resets the stage node and the corresponding input boundary. When the matching result does not point to any adjacent stage node, the conservative constraint hidden state observer retains the current stage node and generates the state variable to be corrected.
7. The sodium hyaluronate fermentation control system based on digital twins according to claim 5, characterized in that, The conservation-constrained hidden state observer is equipped with a multi-timescale residual stack, which stores the sampling period residual, the mixed response period residual, and the metabolic response period residual respectively, and constructs a residual chain based on the propagation order of the same control input at different time scales. The components that first appear in the sampling period but do not continue into the mixed response period in the residual chain are marked as observation perturbations. The components that first appear in the mixed response period and continue into the metabolic response period are written into the mass transfer decay state. The components that directly continue into the metabolic response period and meet the carbon source budget constraint are written into the metabolic activity state.
8. The sodium hyaluronate fermentation control system based on digital twins according to claim 6, characterized in that, The execution sequence layer establishes a control influence matrix for each candidate control sequence. The control influence matrix records the effects of alkali supplementation adjustment on precursor supply status and metabolic activity status, ventilation adjustment on mass transfer capacity status and mixing uniformity, and stirring adjustment on mass transfer capacity, shear exposure status and molecular weight distribution. The execution sequence layer performs coupling elimination on the control influence matrix, eliminating candidate control sequences that introduce another state beyond the multivariable feasible region when correcting a mismatch state, and forming a rolling control queue for the remaining candidate control sequences according to the state boundaries given by the stage constraint layer.
9. The sodium hyaluronate fermentation control system based on digital twins according to claim 7, characterized in that, The coupling strength tensor is provided with a distinguishable gating matrix. The distinguishable gating matrix determines the separable combination of the precursor supply state, mass transfer capacity state, viscosity influence state and metabolic activity state based on the number of independent directions of each residual chain in the multi-timescale residual stack. Local updates of the target mapping weights are enabled only when the input and output states corresponding to the target mapping weights are in the same separable combination and there are no conflicts in the relevant conservation constraints. The remaining mapping weights are frozen, and the new residuals are written into the identification sample cache of the subsequent prediction period.
10. The sodium hyaluronate fermentation control system based on digital twins according to claim 8, characterized in that, A bidirectional consistency check table is provided between the stage relocation mechanism and the rolling control queue. The bidirectional consistency check table records the predicted stage migration path and the stage matching path after execution for each candidate control sequence. When two paths bifurcate within a continuous prediction period, the stage nodes before execution, the domain model input boundaries, and the control influence matrix are retained as a rollback snapshot, and the control sequence that caused the bifurcation is removed from the rolling control queue. The stage relocation mechanism regenerates the state variables to be corrected based on the rollback snapshot, and the execution sequence layer reconstructs the candidate control sequence accordingly.
