ax.FontSize = 14;
ax.FontName = 'Times';
ax.Position = [.55 .1 .4 .85];
ax.ActivePositionProperty = 'outerposition';
ax.GridLineStyle =':';
ax.GridAlpha = .7;
ytickformat('%.2f')
set(h, {'color'}, {'r'; 'k'});
xlabel('time $/h$','interpreter','Latex',"FontSize",16);
ylabel('$\mu$ value $/\frac{1}{h}
$','interpreter','Latex',"FontSize",16);
grid on; box off; grid(gca,'minor');
legend('$\mu_1$','$\mu_2
$','interpreter','Latex',"FontSize",12,"Color",[.9 .9 1]);
annotation("arrow",[.55 .97],[.1 .1])
annotation("arrow",[.05 .47],[.1 .1])
annotation("arrow",[.05 .05],[.1 .98])
annotation("arrow",[.55 .55],[.1 .98])
saveas(f,'KalmanPred.svg','svg');
% save copy of figure to file
%Calculate Errors
SimTime = SimTime + ((1:numel(SimTime))*1e-10)';
SimValues = interp1(SimTime,SimState(:,1:3),time);
SSE = sum((SimValues - M).^2);
RMSE = sqrt(SSE/numel(time));
SQT = sum((M-mean(M)).^2);
RSq = 1-SSE./SQT;
T1 = table('Size',[3,3],'VariableTypes',
{'double','double','double'},'VariableNames',
{'Biomass','Glucose','Ethanol'},'RowNames',{'RMSEP','Error
%','R²'});
T1(1,:) = num2cell(RMSE);
T1(2,:) = num2cell(SSE./(max(M)-min(M))*100);
T1(3,:) = num2cell(RSq)
References
1. Zobel-Roos S, Schmidt A, Mestmäcker F, Mouellef M, Huter M, Uhlenbrock L, Kornecki M,
Lohmann L, Ditz R, Strube J (2019) Accelerating biologics manufacturing by modeling or: is
approval under the QbD and PAT approaches demanded by authorities acceptable without a
digital-twin? PRO 7(2):94
2. Kuchemüller KB, Pörtner R, Möller J (2020) Digital twins and their role in model-assisted
design of experiments. In: Advances in biochemical engineering/biotechnology. Springer,
Berlin. https://doi.org/10.1007/10_2020_136
3. Nargund S, Guenther K, Mauch K (2019) The move toward biopharma 4.0: In silico biotechnology develops “smart” processes that benefit biomanufacturing through digital twins. Genet
Eng Biotechnol News 39(6):53–55
122
A. Yousefi-Darani et al.
ax.FontName = 'Times';
ax.Position = [.55 .1 .4 .85];
ax.ActivePositionProperty = 'outerposition';
ax.GridLineStyle =':';
ax.GridAlpha = .7;
ytickformat('%.2f')
set(h, {'color'}, {'r'; 'k'});
xlabel('time $/h$','interpreter','Latex',"FontSize",16);
ylabel('$\mu$ value $/\frac{1}{h}
$','interpreter','Latex',"FontSize",16);
grid on; box off; grid(gca,'minor');
legend('$\mu_1$','$\mu_2
$','interpreter','Latex',"FontSize",12,"Color",[.9 .9 1]);
annotation("arrow",[.55 .97],[.1 .1])
annotation("arrow",[.05 .47],[.1 .1])
annotation("arrow",[.05 .05],[.1 .98])
annotation("arrow",[.55 .55],[.1 .98])
saveas(f,'KalmanPred.svg','svg');
% save copy of figure to file
%Calculate Errors
SimTime = SimTime + ((1:numel(SimTime))*1e-10)';
SimValues = interp1(SimTime,SimState(:,1:3),time);
SSE = sum((SimValues - M).^2);
RMSE = sqrt(SSE/numel(time));
SQT = sum((M-mean(M)).^2);
RSq = 1-SSE./SQT;
T1 = table('Size',[3,3],'VariableTypes',
{'double','double','double'},'VariableNames',
{'Biomass','Glucose','Ethanol'},'RowNames',{'RMSEP','Error
%','R²'});
T1(1,:) = num2cell(RMSE);
T1(2,:) = num2cell(SSE./(max(M)-min(M))*100);
T1(3,:) = num2cell(RSq)
References
1. Zobel-Roos S, Schmidt A, Mestmäcker F, Mouellef M, Huter M, Uhlenbrock L, Kornecki M,
Lohmann L, Ditz R, Strube J (2019) Accelerating biologics manufacturing by modeling or: is
approval under the QbD and PAT approaches demanded by authorities acceptable without a
digital-twin? PRO 7(2):94
2. Kuchemüller KB, Pörtner R, Möller J (2020) Digital twins and their role in model-assisted
design of experiments. In: Advances in biochemical engineering/biotechnology. Springer,
Berlin. https://doi.org/10.1007/10_2020_136
3. Nargund S, Guenther K, Mauch K (2019) The move toward biopharma 4.0: In silico biotechnology develops “smart” processes that benefit biomanufacturing through digital twins. Genet
Eng Biotechnol News 39(6):53–55
122
A. Yousefi-Darani et al.
