원시데이터 수집 시스템
선정목록으로

Mathematical Model-Based Optimization of Trace Metal Dosage in Anaerobic Batch Bioreactors

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Tina Kegl — Faculty of Chemistry and Chemical Engineering, University of Maribor, 2000 Maribor, Slovenia
  2. P. Balasubramanian — Department of Biotechnology and Medical Engineering, National Institute of Technology Rourkela, Rourkela 769008, Odisha, India
  3. Bikash Chandra Maharaj — Department of Biotechnology and Medical Engineering, National Institute of Technology Rourkela, Rourkela 769008, Odisha, India
DOI
10.3390/bioengineering12020117
저널
Bioengineering
발행년도
2025
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/bioengineering12020117
토픽
Membrane Separation Technologies
OpenAlex ID
W4406843604

평가 내용

관련도
관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > MEA(막전극접합체)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Anaerobic digestion (AD) is a promising and yet a complex waste-to-energy technology. To optimize such a process, precise modeling is essential. Developing complex, mechanistically inspired AD models can result in an overwhelming number of parameters that require calibration. This study presents a novel approach that considers the role of trace metals (Ca, K, Mg, Na, Co, Cr, Cu, Fe, Ni, Pb, and Zn) in the modeling, numerical simulation, and optimization of the AD process in a batch bioreactor. In this context, BioModel is enhanced by incorporating the influence of metal activities on chemical, biochemical, and physicochemical processes. Trace metal-related parameters are also included in the calibration of all model parameters. The model’s reliability is rigorously validated by comparing simulation results with experimental data. The study reveals that perturbations of 5% in model parameter values significantly increase the discrepancy between simulated and experimental results up to threefold. Additionally, the study highlights how precise optimization of metal additives can enhance both the quantity and quality of biogas production. The optimal concentrations of trace metals increased biogas and CH4 production by 5.4% and 13.5%, respectively, while H2, H2S, and NH3 decreased by 28.2%, 43.6%, and 42.5%, respectively.

본문 86,351자

본문 펼치기
_Article_ # Mathematical Model-Based Optimization of Trace Metal Dosage in Anaerobic Batch Bioreactors Tina Kegl <sup>1,</sup> *, Balasubramanian Paramasivan <sup>2</sup> and Bikash Chandra Maharaj <sup>2,</sup> * 1 Faculty of Chemistry and Chemical Engineering, University of Maribor, 2000 Maribor, Slovenia 2 Department of Biotechnology and Medical Engineering, National Institute of Technology Rourkela, Rourkela 769008, Odisha, India; balap@nitrkl.ac.in * Correspondence: tina.kegl@um.si (T.K.); maharajb@nitrkl.ac.in (B.C.M.) Abstract: Anaerobic digestion (AD) is a promising and yet a complex waste-to-energy technology. To optimize such a process, precise modeling is essential. Developing complex, mechanistically inspired AD models can result in an overwhelming number of parameters that require calibration. This study presents a novel approach that considers the role of trace metals (Ca, K, Mg, Na, Co, Cr, Cu, Fe, Ni, Pb, and Zn) in the modeling, numerical simulation, and optimization of the AD process in a batch bioreactor. In this context, BioModel is enhanced by incorporating the influence of metal activities on chemical, biochemical, and physicochemical processes. Trace metal-related parameters are also included in the calibration of all model parameters. The model’s reliability is rigorously validated by comparing simulation results with experimental data. The study reveals that perturbations of 5% in model parameter values significantly increase the discrepancy between simulated and experimental results up to threefold. Additionally, the study highlights how precise optimization of metal additives can enhance both the quantity and quality of biogas production. The optimal concentrations of trace metals increased biogas and CH4 production by 5.4% and 13.5%, respectively, while H2, H2S, and NH3 decreased by 28.2%, 43.6%, and 42.5%, respectively. Keywords: anaerobic digestion; batch bioreactor; methane production; model parameters calibration; active set optimization method; perturbation of model parameters; gradient based optimization; trace metals Academic Editor: Kun-Lin Yang Received: 26 December 2024 Revised: 21 January 2025 Accepted: 23 January 2025 Published: 26 January 2025 Citation: Kegl, T.; Paramasivan, B.; Maharaj, B.C. Mathematical Model-Based Optimization of Trace Metal Dosage in Anaerobic Batch Bioreactors. _Bioengineering_ 2025, _12_, 117. [https://doi.org/10.3390/](https://doi.org/10.3390/bioengineering12020117) [bioengineering12020117](https://doi.org/10.3390/bioengineering12020117) Copyright: © 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license [(https://creativecommons.org/](https://creativecommons.org/licenses/by/4.0/) [licenses/by/4.0/).](https://creativecommons.org/licenses/by/4.0/) 1. Introduction Ever increasing demands for reducing waste and greenhouse gas emissions coupled with increasing renewable energy sources are the driving force for the development of circular waste management technologies such as anaerobic digestion (AD) technology. AD enables reduction of waste entering landfills and has the potential to reduce greenhouse gas (GHG) emissions [1–4]; the World Biogas Association confirmed in a recent report that AD technology has a potential to reduce GHG emissions in the range between 3290 and 4360 Mt CO2,eq, which is equivalent to 10–13% of the world’s current emissions [4]. Furthermore, the production of biogas by AD processes has reached approximately 66 billion m <sup>3</sup> in 2020, which is equivalent to an energy content of 1.52 EJ. Interestingly, the International Renewable Energy Agency (IRENA) forecasted a tenfold increase in biogas pathways, leading to a supply of 15 EJ by 2050 as part of the Transforming Energy Scenario [5]. The energy, environmental, and financial incentives associated with setting up an AD system necessitates rigorous engineering analysis of the process, where microorganisms in a bioreactor breakdown organic matter (OM) in the absence of oxygen to biogas. The _Bioengineering_ 2025, _12_, 117 2 of 22 quality and quantity of biogas production depend mainly on AD process conditions, feeding strategy, and feedstock substrate composition (macro and micronutrients). In addition to the microbial community, enzymes and organic degradable matters, such as carbohydrates, proteins, lipids, inorganic compounds, and trace metals (TMs), play a very important role. Although the AD system has been extensively studied, the role of TMs is still under scrutiny and has not sufficiently undergone rigorous engineering analysis to establish tradeoffs between efficiency and cost. Light metals (Ca, K, Mg, Na, etc.) and heavy metals (Co, Cr, Cu, Fe, Ni, Pb, Zn, etc.) are integral to the biochemical processes occurring in the bioreactor [6–8] that facilitate biodegradation. During biodegradation, TMs influence the biogas production quality and quantity by impacting different stages: hydrolysis, acidogenesis, acetogenesis, and methanogenesis. The impact of the TMs on these processes is a consequence of the effect of TMs on microbial consortium activity. Each individual microorganism is affected by various TMs in multiple ways. For example, Co supports the growth and activity of acetogenic bacteria, while Fe, Zn, and Ni are important methanogens building elements [9]. The involvement of TMs (Fe, Ni, Cu, Ca, Mg, and Co) into chemical and physicochemical processes, where sulfide, carbonate, and phosphate precipitates are formed, influences the pH value during the AD process and also the quality and quantity of the produced biogas. Fe can reduce H2S in the produced biogas by shifting the chemical equilibrium toward the formation of sulfide precipitates [10–12]. Likewise, a Zn concentration below 470 mg L <sup>_−_</sup> <sup>1</sup> can enhance the conversion of organic matter to CH4 because zinc ions are a critical element of the active sites in multiple enzymes [13,14]. In general, a lack of TMs reduces microbial growth and activity, which significantly limits the AD process, resulting in accumulation of metabolic intermediates [15]. One intermediate is volatile fatty acids, which cause bioreactor acidification and consequently reduce methane yield. Since some substrates for the AD process may lack adequate amounts of TMs, TM supplementation is necessary in order to maintain an efficient AD process. Contrarily, many investigations have concluded that an excess of essential TMs may also strongly inhibit the AD process [14–16]. It is worth noting that the reported inhibitory concentration of each metal in a bioreactor depends on the interaction of various AD parameters, especially the available microbial community, AD process conditions, and feedstock substrate composition [17]. For example, Chen et al. [18] reported that a concentration of Na over 3.5 g L <sup>_−_</sup> <sup>1</sup> is inhibitory to methanogens at mesophilic temperature, while Geng et al. [19] reported that a Na concentration over 0.35 g L <sup>_−_</sup> <sup>1</sup> can cause hyperosmotic stress, which results in the cellular dehydration of methanogens and a decrease in dehydrogenase activity during food waste AD. Abdel-Shafy and Mansour [20] reported that a Cr concentration over 0.775 g L <sup>_−_</sup> <sup>1</sup> has an inhibitory effect on AD of sludge, while Jha and Schmidt [21] reported that a Cr concentration of 0.012 g L <sup>_−_</sup> <sup>1</sup> may reduce methanogens by 50%. Zhang et al. [16] reported that Fe concentrations over 5.65 g L <sup>_−_</sup> <sup>1</sup> can have inhibitory effects on the AD process of cow dung and Phragmites straw. On the other hand, Wang et al. [22] showed that a concentration of Fe above 2.9 g L <sup>_−_</sup> <sup>1</sup> in the AD of waste-activated sludge can decrease CH4 production due to the formation of carbonate precipitates, thereby reducing the CO <sup>2</sup> 3 <sup>_−_</sup> and HCO3 <sup>_−_</sup> <sup>content in the bulk phase and decreasing the availability of</sup> CO2 for hydrogen-utilizing methanogens. Furthermore, Xing et al. [14] investigated the long- and short-term effects of the Zn concentration during excess activated sludge AD and concluded that a Zn concentration over 670 mg L <sup>_−_</sup> <sup>1</sup> reduced methanogenic activities markedly, indicating that an excessive concentration of Zn significantly impairs system stability. These results show that optimal concentrations of metals can vary for various AD scenarios. _Bioengineering_ 2025, _12_, 117 3 of 22 As the experiments related to AD are time-consuming, labor intensive, and expensive, numerical simulations (NSs) provide a cost-effective solution when there is a large number of operating parameters with complex interrelationships. So far, NS, which provides a useful tool for AD process understanding and optimization, has been performed using more or less complex mechanistically inspired mathematical models [6,15,23–35]. It is clear that with the complexity of AD models, which consider various biochemical, chemical, and physicochemical processes, the number of model parameters increases. Since these parameters are unknown or hard to determine, various efficient procedures for model parameters calibration have been developed in multiple studies [28–30,35]. However, many researchers calibrate only the most important model parameter, while the estimated values from the literature are typically used for the less important parameters. This simplification neglects the interactions among the less significant model parameters [28–30]. Some of these model parameters are related to the activities of TMs, which were included to some extent in some complex AD models [15,26,28–30,32–34]. For example, Frunzo et al. [15] and Flores-Alsina et al. [26] included the interactions of iron with phosphorus and sulfur into the modeling of the AD process in a CSTR bioreactor. For NS of the AD process in a batch bioreactor, Maharaj et al. [32–34] upgraded the AD model by including the activities of Ca, Co, Fe, Mg, and Ni in physicochemical processes; all TM-related model parameters were estimated according to the literature. Kegl et al. [28–30] upgraded BioModel for NS of AD performance in a CSTR bioreactor by considering TMs activities; all TM-related parameters were calibrated. However, challenges remain in calibrating and validating such complex models due to the lack of reported data on the range of TM concentrations required for optimal microbial activity, particularly in relation to methane production and other key intermediates in the AD process [34]. Therefore, there is still a need for adequate modeling of the role and activities of all key TMs during the AD process and adequate calibration of all model parameters, including those related to TMs. To the author’s knowledge, no study has yet addressed the importance of accurately calibrating all model parameters. Additionally, there is still a lack of sufficient numerical optimization regarding the optimal concentrations of TMs in the influent feedstock. This paper investigates the impact of TMs on AD performance, focusing on the modeling, calibration, validation, and numerical optimization of TM concentrations in lab-scale batch bioreactors, with the aim of improving both the understanding and practical application of TM management in AD processes. To explore the impact of various TMs on the AD process, a self-developed BioModel is enhanced to simulate the dynamics of metal interactions throughout the process. The enhanced BioModel incorporates 187 model parameters, all of which require careful calibration. To assess the precision of this calibration, both low and high perturbations of the parameters are thoroughly investigated and analyzed. The calibrated and validated BioModel, tested under diverse operating conditions across different bioreactors, is then integrated into an optimization procedure using a gradient-based approximation method. The optimization aims to determine the optimal quantities of metals added or removed in the influent feedstock, defined using a range of multi-objective and constraint functions. Finally, the results of the BioModel calibration, validation, and numerical optimization are presented and discussed in detail. 2. Materials and Methods At first, the experimental data of the AD process are presented, followed by a detailed description of the enhanced BioModel. In the following, the paper outlines the procedures employed for BioModel calibration and the optimization process, which aims to fine-tune the quantities of trace metals (TMs) in the feedstock to enhance the AD process, using a sophisticated gradient-based approximation method. _Bioengineering_ 2025, _12_, 117 4 of 22 _2.1._ _Experimental Data_ The AD processes of cattle and cow manure in three-batch-mode lab-scale bioreactors (B1, B2, B3) were observed. The bioreactor data are given in Table 1. The animal manure is composed of carbohydrates, proteins, lipids, inert matters, inorganic carbon, inorganic nitrogen, inorganic phosphorus, inorganic potassium, inorganic sulfur in the form of sulfide and sulfate, and other elements and compounds [27,36–38]. The input data of the feedstock composition for the AD process in bioreactors B1 [27,36], B2 [37], and B3 [38] are given in Table 2. Table 1. Bioreactor data. Bioreactor Parameter B1 B2 B3 pH value, pH (/) 8.00 8.00 7.4 Temperature, _T_ (°C) 35.00 37.00 38.5 Liquid volume of bioreactor, _V_ liq(L) 1.00 0.25 4.5 Gas volume of bioreactor, _V_ g(L) 0.10 0.20 3.5 Total pressure in bioreactor, _p_ <u>total(bar)</u> 1.0059 1.0059 1.0073 Table 2. Input data of feedstock composition. Parameter Value Carbohydrate concentration, _c_ ch <u>�g L</u> <sup>_−_</sup> <sup>1�</sup> Protein concentration, _c_ pr �g L <sup>_−_</sup> <sup>1�</sup> Lipid concentration, _c_ li �g L <sup>_−_</sup> <sup>1�</sup> Inert matter concentration, _c_ inert �g L <sup>_−_</sup> <sup>1�</sup> Inorganic carbon concentration, _c_ Cio �g L <sup>_−_</sup> <sup>1�</sup> Inorganic nitrogen concentration, _c_ Nio �g L <sup>_−_</sup> <sup>1�</sup> Inorganic phosphorous concentration, _c_ Pio �g L <sup>_−_</sup> <sup>1�</sup> 15.0000 35.0000 3.0000 50.0000 2.5000 2.0000 2.6000 0.1000 0.5000 0.0080 3.0000 0.0200 0.0030 0.0100 0.1100 3.2000 0.8000 0.3000 0.0010 0.0002 0.0500 Inorganic sulfur (sulfide) concentration, _c_ Sioid Inorganic sulfur (sulfate) concentration, _c_ Sioat �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> Nitrogen dioxide concentration, _c_ NO2 �g L <sup>_−_</sup> <sup>1�</sup> Calcium concentration, _c_ Ca �g L <sup>_−_</sup> <sup>1�</sup> Cobalt concentration, _c_ Co �g L <sup>_−_</sup> <sup>1�</sup> Chromium concentration, _c_ Cr �g L <sup>_−_</sup> <sup>1�</sup> Copper concentration, _c_ Cu �g L <sup>_−_</sup> <sup>1�</sup> Iron concentration, _c_ Fe �g L <sup>_−_</sup> <sup>1�</sup> Potassium concentration, _c_ K �g L <sup>_−_</sup> <sup>1�</sup> Magnesium concentration, _c_ Mg �g L <sup>_−_</sup> <sup>1�</sup> Sodium concentration, _c_ Na �g L <sup>_−_</sup> <sup>1�</sup> Nickel concentration, _c_ Ni �g L <sup>_−_</sup> <sup>1�</sup> Lead concentration, _c_ Pb Zinc concentration, _c_ Zn �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> _Bioengineering_ 2025, _12_, 117 5 of 22 _2.2._ _Numerical Simulation of the AD Process_ To ensure a reliable and efficient NS of AD performance in a batch-mode AD process, an upgraded BioModel was developed and incorporated into the active set optimization (ASO) procedure. Enhanced BioModel. The upgraded BioModel is based on the BioModel presented in [28–30], which considers chemical (acid–base reactions), physicochemical (mass transfer from liquid to gas phase and the precipitation), and biochemical (hydrolysis, acidogenesis, acetogenesis, and methanogenesis) processes. In the biochemical reactions, the inhibitory effects of various compounds and TMs on bacteria growth are modeled with non-competitive inhibition. The main modifications are related to the modeling of the activities of various TMs from the set _I_ TMs = _{_ Ca, Co, Cu, Cl, Cr, Fe, K, Mg, Na, Ni, Pb, Se, Zn _}_ as these TMs are present in the feeding substrate. The effects of all TMs during the AD process are incorporated into the upgraded BioModel using Equations (1)–(8). At first, the effects of TMs on the pH value in the bioreactor are determined using Equation (1). The H <sup>+</sup> concentration derivative, needed for pH determination, can be expressed as follows: �H <sup>+�</sup> _dC_ h _<u>dC</u>_ <u>h</u> (1) _dt_ _<u>d</u>_ �H <sup>+�</sup> = <sup>_<u>d</u>_</sup> _dt_ Here, _C_ h denotes the sum of ionic metals concentrations obtained from the following charge balance equation: �HSO4 <sup>_−_</sup> �bu <sup>_−_</sup> <sup>�</sup> + [va <sup>_−_</sup> ] + [ac <sup>_−_</sup> ] _−_ 4 <sup>+</sup> - + �HCO3 <sup>_−_</sup> <sup>2</sup> 3 <sup>_−_</sup> + 3 <sup>_−_</sup> - + 2�CO <sup>2</sup> 3 <sup>_−_</sup> _C_ h = [pro <sup>_−_</sup> ] + �NH4 <sup>+</sup> - SO <sup>2</sup> 4 <sup>_−_</sup> + - PO <sup>3</sup> 4 <sup>_−_</sup> + <sup>2</sup> 4 <sup>_−_</sup> +2 +3 _−_ 2 �HS <sup>_−_</sup> <sup>�</sup> + 2�S <sup>2</sup> <sup>_−_</sup> <sup>�</sup> + �H2PO4 <sup>_−_</sup> 4 <sup>_−_</sup> - + 2�HPO <sup>2</sup> 4 <sup>_−_</sup> �NO2 <sup>_−_</sup> - + �An <sup>_−_</sup> <sup>�</sup> _−_ 2�Ca <sup>2+�</sup> �Cl <sup>_−_</sup> <sup>�</sup> _−_ �Cat <sup>+�</sup> + �Co <sup>2+�</sup> _−_ 2 _−_ 2 _−_ 2 �K <sup>+�</sup> _−_ 2�Mg <sup>2+�</sup> �Cr <sup>2+�</sup> �Cu <sup>2+�</sup> Fe <sup>2+�</sup> _−_ _−_ 2 �Pb <sup>2+�</sup> �Na <sup>+�</sup> _−_ 2 _−_ 2 _−_ �Ni <sup>2+�</sup> �Se <sup>2+�</sup> �Zn <sup>2+�</sup> _−_ 2 The role of TMs in precipitation is included into the modeling of liquid–solid precipitation rates and the concentrations of precipitates from the set _I_ prec = _{_ CaCO3, CoCO3, CuCO3, FeCO3, MgCO3, NiCO3, PbCO3, ZnCO3, FeS, CoS, CuS, NiS, PbS, ZnS, Ca3(PO4)2, Co3(PO4)2, Fe3(PO4)2, Ni3(PO4)2, MgNH4PO4, KMgPO4 _}_ . The precipitation rates of sulfides _ρ_ l _−_ s,S2 _−_ �g L <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup>, carbonates _ρ_ l _−_ s,CO2 _−_ �g L <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup>, phosphates _ρ_ l _−_ s,PO3 _−_ �g L <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup>, 4 , carbonates _ρ_ l _−_ s,CO23 _−_ �g L <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup> , phosphates _ρ_ l _−_ s,PO34 _−_ �g L <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup>, , 3 and ionic forms of TMs _ρ_ l _−_ s, _i_ �g L <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup> , _i ∈_ _I_ TMs are determined as follows: , _i ∈{_ Co, Cu, Fe, Ni, Pb, Zn _}_ (2) �2 - <u>12</u> _k_ cryst, _i_ S �� _ci_ 2+ _c_ S2 _−_ - <u>12</u> _−_ - _K_ sp, _i_ S _ρ_ l _−_ s,S2 _−_ = ∑ _i_ _ρ_ l _−_ s,S2 _−_ = ∑ �2 - <u>12</u>, _i ∈{_ Ca, Co, Cu, Fe, Mg, Ni, Pb, Zn _}_ (3) 23 _−_ = ∑ �� _ci_ 2+ _c_ CO23 _−_ �� _ci_ 2+ _c_ CO23 _−_ - <u>1</u> 2 _−_ _K_ sp, _i_ CO3 _ρ_ l _−_ s,CO23 _−_ _i_ _k_ cryst, _i_ CO3 _Bioengineering_ 2025, _12_, 117 6 of 22    _c_ PO34 _−_ 2 34 _−_ = 2∑ _i_    �( _ci_ 2+ ) <sup>3�</sup> �2 <sup>�</sup> <sup><u>1</u></sup> - - <sup><u>1</u></sup> 5 _−_ 5 _K_ sp, _i_ 2(PO4)3 _ρ_ l _−_ s,PO34 _−_ _i_ _k_ cryst, _i_ 2(PO4)3 _c_ PO34 _−_ 2    + _k_ cryst,MgNH4PO4   - <sup><u>1</u></sup> 3 _−_ - _K_ sp,KMgPO4 _c_ Mg2+ _c_ NH4+ <sup>_c_</sup> <sup>PO</sup> 4 <sup>3</sup> <sup>_−_</sup> - <sup><u>1</u></sup> - - <sup><u>1</u></sup> 3 _−_ _K_ sp,MgNH4PO4 3   2 , _i ∈{_ Ca, Co, Fe, Ni _}_ - <sup><u>1</u></sup> 3 + _k_ cryst,KMgPO4 _c_ K+ _c_ Mg2+ _c_ PO34 _−_ _c_ K+ _c_ Mg2+ _c_ PO34 _−_  (4) (5) _K_ sp, _i_ 3(PO4)2 _c_ PO34 _−_ �2 <sup>�</sup> <sup><u>1</u></sup> 5 _−_ - <u>12</u> �2 + 3 _k_ cryst, _i_ 3(PO4)2 �� ( _ci_ 2+ ) <sup>3</sup> <sup>�</sup> _c_ PO34 _−_ - <u>12</u> _−_ - _K_ sp, _i_ CO3 �2 - <u>15</u> _ρ_ l _−_ s, _i_ 2+ = _k_ cryst, _i_ CO3 �� _ci_ 2+ _c_ CO23 _−_ - <u>12</u> �2, _i ∈{_ Ca, Co, Cu, Fe, K, Mg, Ni, Pb, Zn _}_ + _k_ cryst, _i_ S �� _ci_ 2+ _c_ S2 _−_ - <u>12</u> _−_ - _K_ sp, _i_ S and _K_ sp where the symbols _k_ cryst �day <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> where the symbols _k_ cryst day <sup>_−_</sup> <sup>1�</sup> and _K_ sp g L <sup>_−_</sup> <sup>1�</sup> are the crystallization rate and solu bility product constants of precipitates from the set _I_ prec, respectively, while the symbol _ck_ �g L <sup>_−_</sup> <sup>1�</sup> denotes the concentration of the corresponding _k_ <sup>th</sup> compound in ionic form (sulfide, carbonate, phosphate, and TMs). _ck_ �g L <sup>_−_</sup> <sup>1�</sup> The precipitation rates of sulfides in Equation (2) are obtained from precipitation/dissolution reactions (TMs) <sup>2</sup> (l <sup>+</sup> ) <sup>+ S2</sup> (l <sup>_−_</sup> ) <sup>_↔_</sup> <sup>(TMs)S(s), where the TMs are Co, Cu, Fe, Ni,</sup> <sup>2</sup> (l <sup>+</sup> ) <sup>+ S2</sup> (l <sup>_−_</sup> ) <sup>2</sup> (l <sup>_−_</sup> ) <sup>_↔_</sup> <sup>(TMs)S(s), where the TMs are Co, Cu, Fe, Ni,</sup> Pb, and Zn. The precipitation/dissolution reactions (TMs) <sup>2</sup> (l <sup>+</sup> ) <sup>2</sup> (l <sup>+</sup> ) <sup>+ CO2</sup> 3 <sup>_−_</sup> ( Pb, and Zn. The precipitation/dissolution reactions (TMs) <sup>2</sup> (l <sup>+</sup> ) <sup>+ CO2</sup> 3 <sup>_−_</sup> (l) <sup>_↔_</sup> <sup>(TMs)CO3</sup> <sup>(s),</sup> where the TMs are Ca, Co, Cu, Fe, Mg, Ni, Pb, and Zn, are the basis for precipitation rates of carbonates in Equation (3). Furthermore, Equation (4) is obtained from the reaction 3 (TMs) <sup>2</sup> (l <sup>+</sup> ) <sup>+ 2PO3</sup> 4 <sup>_−_</sup> (l) <sup>_↔_</sup> <sup>(TMs)3(PO4)</sup> 2 (s) <sup>,</sup> <sup>where</sup> <sup>the</sup> <sup>TMs</sup> <sup>are</sup> <sup>Ca,</sup> <sup>2</sup> (l <sup>+</sup> ) <sup>+ 2PO3</sup> 4 <sup>_−_</sup> ( <sup>3</sup> 4 <sup>_−_</sup> (l) <sup>_↔_</sup> <sup>(TMs)3(PO4)</sup> 2 (s) <sup>,</sup> <sup>where</sup> <sup>the</sup> <sup>TMs</sup> <sup>are</sup> <sup>Ca,</sup> <sup>2</sup> (l <sup>+</sup> ) <sup>+ NH</sup> 4 <sup>+</sup> Co, Fe, and Ni, and from the reactions Mg <sup>2</sup> (l <sup>+</sup> ) 4 <sup>+</sup> (l) <sup>+PO3</sup> 4 <sup>_−_</sup> (l) <sup>_↔_</sup> <sup>MgNH4PO4</sup> <sup>(s)</sup> <sup>and</sup> <sup>+</sup> (l) <sup>+ Mg2</sup> (l <sup>+</sup> ) K <sup>+</sup> (l <sup>2</sup> (l <sup>+</sup> ) <sup>+PO3</sup> 4 <sup>_−_</sup> ( K <sup>+</sup> (l) <sup>+ Mg2</sup> (l <sup>+</sup> ) <sup>+PO3</sup> 4 <sup>_−_</sup> (l) <sup>_↔_</sup> <sup>KMgPO4</sup> <sup>(s)</sup> <sup>.</sup> <sup>All</sup> <sup>these</sup> <sup>precipitation/dissolution</sup> <sup>reactions</sup> <sup>are</sup> used to formulate Equation (5), where the precipitation rates of ionic forms of TMs are determined. All already mentioned precipitation/dissolution reactions represent the basis for the determination of the concentrations of precipitates. The concentrations of the precipitates, formed with ionic forms of appropriate TMs during the batch AD process, are computed as follows: �2 - 21, _i ∈{_ Ca, Co, Cu, Fe, Mg, Ni, Pb, Zn _}_ (6) _<u>dci</u>_ <u>CO3</u> = _k_ cryst, _i_ CO3 _dt_ �� _ci_ 2+ _c_ CO23 _−_ �� _ci_ 2+ _c_ CO23 _−_ - <u>1</u> 2 _−_ _k_ sp, _i_ CO3 _k_ sp, _i_ 3(PO4)2 �2 - <u>15</u> , _i ∈{_ Ca, Co, Fe, Ni _}_ (7) �� ( _ci_ 2+ ) <sup>3�</sup> _dci_ <u>3(PO4)2</u> _dt_ = _k_ cryst, _i_ 3(PO4)2 _c_ PO34 _−_ _c_ PO34 _−_ �2 <sup>�</sup> <sup><u>1</u></sup> 5 _−_ _<u>dci</u>_ <u>S</u> _dt_ <sup>=</sup> <sup>_k_</sup> <sup>cryst,</sup> <sup>_i_</sup> <sup>S</sup> �� _ci_ 2+ _c_ S2 _−_ - <u>12</u> _−_ - _k_ sp, _i_ S �2 - 21, _i ∈{_ Co, Cu, Fe, Ni, Pb, Zn _}_ (8) The upgraded BioModel, which comprises 80 ordinary differential equations (ODEs) and 54 algebraic equations (AEs), contains 187 model parameters, which are unknown or hard to determine. These model parameters, _x_ m, _i_, _i_ = 1 . . . _N_ m ( _N_ m = 187), which have to be calibrated, can be summarized as follows: _•_ Initial influent concentrations of 13 types of bacteria in the feeding substrate, _Xj_ �g L <sup>_−_</sup> <sup>1�</sup>, _j_ _∈_ _I_ bac and concentrations of three types of enzymes in the feeding , _i ∈_ _I_ enz; substrate for degrading carbohydrates, proteins, and lipids, _c_ E0, _i_ �g L <sup>_−_</sup> <sup>1�</sup> _Bioengineering_ 2025, _12_, 117 7 of 22 _•_ Thirteen maximal microbial grow rates at optimal temperature, _µj_,max, _T_ opt �day <sup>_−_</sup> <sup>1�</sup>, _j∈_ _I_ bac; 13 microbial decays as a percentage of maximal microbial growth rates _bj_,dec (/), _j∈_ _I_ bac; 26 parameters (pK <sup>lo</sup> _j_ <sup>(/), pKup</sup> _j_ (/), _j_ _∈_ _I_ bac) which are included in the pH function _f_ pH, _j_ describing the pH effects on the growth rate using the Michaelis pH function; 13 parameters _αj_ �°C <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup>, _j_ _∈_ _I_ bac; 13 optimal temperatures _Tj_,opt(°C); and 13 maximal temperatures _Tj_,max(°C), _j ∈_ _I_ bac for the growth rate of _j_ <sup>th</sup> microbial type; _•_ Hydrolysis rate constants _k_ hyd, _i_ day <sup>_−_</sup> <sup>1�</sup> , _i∈_ _I_ hyd and three Michaelis–Menten half , _i∈_ _I_ hyd; saturation constants _K_ ME0, _i_ �g L <sup>_−_</sup> <sup>1�</sup> _•_ Sixteen Monod saturation constants _k_ M �g L <sup>_−_</sup> <sup>1�</sup> Sixteen Monod saturation constants _k_ M g L <sup>_−_</sup> <sup>1�</sup> related to various substrates and bac teria: _k_ M,suAsu, _k_ M,aaAaa, _k_ M,glyAgly, _k_ M,oaAoa, _k_ M,proApro, _k_ M,buAbu, _k_ M,vaAva, _k_ M,H2Mhyd, _k_ M,acMac, _k_ M,Sio,atSs, _k_ M,proSpro, _k_ M,Sio,atSpro, _k_ M,acSac, _k_ M,Sio,atSac, _k_ M,H2Shyd, and _k_ M,Sio,atShyd; Twenty-six inhibition constants _K_ inh g L <sup>_−_</sup> <sup>1�</sup> related to (a) VFA inhibition of hydrolysis process _K_ inh,VFA and (b) compound and metal ion inhibition of the growth of various bacteria _K_ inh,H2,Agly, _K_ inh,H2,Aoa, _K_ inh,H2,Apro, _K_ inh,H2S,Apro, _K_ inh,H2,Abu, _K_ inh,H2S,Abu, _K_ inh,H2,Ava, _K_ inh,H2S,Ava, _K_ inh,H2S,Mac, _K_ inh,NH3,Mac, _K_ inh,Cu2+,Abu, _K_ inh,Zn2+,Abu, _K_ inh,Cr2+,Abu, _K_ inh,Pb2+,Abu, _K_ inh,Ni2+,Abu, _K_ inh,Cu2+,Mac, _K_ inh,Zn2+,Mac, _K_ inh,Cr2+,Mac, _K_ inh,Pb2+,Mac, _K_ inh,Ni2+,Mac, _K_ inh,H2S,Mhyd, _K_ inh,H2S,Ss, _K_ inh,H2S,Spro, _K_ inh,H2S,Sac, and _K_ inh,H2S,Shyd, and two limitation factors _K_ M�g L <sup>_−_</sup> <sup>1�</sup> of inorganic nitrogen ( _K_ M,Nio) and inorganic phosphorus ( _K_ M,Pio) related to all microbial growth rates; _•_ Twenty-six inhibition constants _K_ inh �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> _K_ inh,H2S,Shyd, and two limitation factors _K_ M _•_ Ten parameters of mass transfer rates from liquid to gas phase ( _K_ L _a_ ) _j_,a �°C <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1�</sup> , _j ∈_ _I_ gas; and ( _K_ L _a_ ) _j_,b �day <sup>_−_</sup> <sup>1�</sup> �day <sup>_−_</sup> <sup>1�</sup> _•_ Twenty precipitation rate constants _k_ cryst Twenty precipitation rate constants _k_ cryst day <sup>_−_</sup> <sup>1�</sup> : _k_ cryst,CaCO3, _k_ cryst,CoCO3, _k_ cryst,CuCO3, _k_ cryst,FeCO3, _k_ cryst,MgCO3, _k_ cryst,NiCO3, _k_ cryst,PbCO3, _k_ cryst,ZnCO3, _k_ cryst,CoS, _k_ cryst,CuS, _k_ cryst,FeS, _k_ cryst,NiS, _k_ cryst,PbS, _k_ cryst,ZnS, _k_ cryst,Ca3(PO4)2, _k_ cryst,Co3(PO4)2, _k_ cryst,Fe3(PO4)2, _k_ cryst,Ni3(PO4)2, _k_ cryst,MgNH4PO4, and _k_ cryst,KMgPO4. The values of the 20 precipitation rate constants and 10 inhibition constants, which are directly connected to the modeling of TM activities during the AD process, as well as the other 157 model parameters, are determined using a self-developed calibration procedure. Sensitivity analysis. The sensitivity analysis was performed to determine the socalled importance factor _f_ IM, _i_ of each _i_ <sup>th</sup> model parameter from the set of all _N_ m parameters. For this reason, random values of 5 _·N_ m AD model designs were generated (each design is a complete set of all _N_ m model parameters). The importance of model parameters is determined by their effects on the CH4 flow rate. Calibration procedure. In order to calibrate the _N_ m model parameters, the ASO procedure was used [28–30]. The ASO procedure incorporates the upgraded BioModel and the sensitivity analysis with a gradient-based optimization algorithm. The initial values of all model parameters (which are linearly mapped to design variables) were taken as recommended from the available literature. At the beginning of the first stage, some initial and a relatively high activation threshold value _fT_ was chosen to determine a relatively low number of active design parameters. Within each stage, the active design variables _x_ m, <sup>_∗_</sup> _i_ <sup>, for which it holds that the importance factor is greater than the threshold</sup> <sup>_f_</sup> <sup>IM,</sup> <sup>_i_</sup> <sup>_≥_</sup> <sup>_fT_</sup> <sup>,</sup> are determined, while all other design variables are designated as passive in the current stage. The values of active design parameters are optimized while keeping the passive ones constant at their recommended values. After that, a new stage with a lower value of threshold _fT_ is started until all design variables are active and calibrated using the optimization procedure. _Bioengineering_ 2025, _12_, 117 8 of 22 BioModel parameter calibration. A unified optimization procedure was used to calibrate the model parameters _x_ mp, _i_, _i_ = 1 . . . _N_ m. The design variables _x_ m, _i_ are defined as normalized model parameters by the relation _x_ m, _i_ = _x_ mp, _i−x_ <u>mp,</u> <sup>LO</sup> _<u>i</u>_ _x_ mp, <sup>UP</sup> _i_ <sup>_−x_</sup> mp, <sup>LO</sup> _i_ mp, <sup>UP</sup> _i_ <sup>_−x_</sup> mp, <sup>LO</sup> <u>mp,</u> _<u>i</u>_ mp, mp, <sup>LO</sup> _i_ <sup>, where</sup> <sup>_x_</sup> <sup>LO</sup> mp, <sup>LO</sup> _i_ <sup>and</sup> <sup>_x_</sup> mp, <sup>UP</sup> mp, <sup>UP</sup> _i_ <sup>are</sup> the corresponding lower and upper limits of the _i_ <sup>th</sup> model parameter _x_ mp, _i_ to be optimized, respectively. The design variables _x_ m, _i_, the objective function _g_ 0, as well as the constraint _gi_ are defined in various ways, as follows. The objective function _g_ 0,cal is defined as an integral of daily deviations between the simulated and measured CH4 flow rates, as shown in Equation (9). These deviations should be minimized. Furthermore, the constraints, which are defined in the standard form _gi_,cal _≤_ 0, are related to the maximal bacteria concentration by limiting the concentration to below the maximal value of _x_ bac <sup>max, as shown in Equation (10), and to various AD</sup> performances by limiting the lower [Equation (11)] and upper [Equation (12)] values of CH4 flow rates, by limiting the minimal value of the produced CH4 [Equation (13)], and by prescribing the maximal allowed fractions of the produced H2, H2S, andNH3 in biogas [Equations (14)–(16)]. These functions are as described as follows: The objective function _g_ 0,cal is defined as an integral of daily deviations between the simulated and measured CH4 flow rates, as shown in Equation (9). These deviations should be minimized. Furthermore, the constraints, which are defined in the standard form _gi_,cal _≤_ 0, are related to the maximal bacteria concentration by limiting the concentration to below the maximal value of _x_ bac <sup>max, as shown in Equation (10), and to various AD</sup> _g_ 0,cal = _ψ_ 0,cal _t_ total� _Q_ CH4 ( _t_ ) _−_ _Q_ CH4,exp ( _t_ ) 0 _Q_ CH4,exp �2 _dt_ (9) - _Xj_ _−_ _X_ <u>bac</u> <sup>max</sup> , _j ∈_ _I_ bac (10) _g_ 1,cal = <sup>∑</sup> <sup>_<u>j</u>_</sup> _X_ <sup>max</sup> bac - - 10 _k_ <sup>LO</sup> _Q_ CH4,exp ( _t_ ) _−Q_ CH4 ( _t_ ) 0.5 + tan <sup>_−_</sup> <sup>1</sup> _Q_ CH4,exp - - 10 _Q_ CH4 ( _t_ ) _−k_ <sup>UP</sup> _Q_ CH4,exp ( _t_ ) 0.5 + tan <sup>_−_</sup> <sup>1</sup> _Q_ CH4,exp �� _k_ <sup>LO</sup> _Q_ CH4,exp ( _t_ ) _−_ _Q_ CH4 ( _t_ ) �� _Q_ CH4 ( _t_ ) _−_ _k_ <sup>UP</sup> _Q_ CH4,exp ( _t_ ) (11) (12) _g_ 2,cal = _g_ 3,cal = - _t_ total 0 - _t_ total 0 _t_ total _Q_ CH4,exp _t_ total _Q_ CH4,exp - <sup>�</sup> _dt_ - <sup>�</sup> _dt_ _−_ _φ_ CH4   (13) (14) (15) (16) _g_ 4,cal = _ψ_ 4,cal  ��� _V_ CH4 _−_ _V_ CH4,exp ���  _V_ CH4,exp _<u>V</u>_ <u>H2</u> _V_ biogas _g_ 5,cal = _ψ_ 5,cal _−_ _φ_ H2max _−_ _φ_ H2S,max _<u>V</u>_ <u>H2S</u> _V_ biogas _g_ 6,cal = _ψ_ 6,cal _g_ 7,cal = _ψ_ 7,cal - _<u>V</u>_ <u>NH3</u> _V_ biogas _−_ _φ_ NH3,max where _ψ_ 0,cal, _ψ_ 4,cal, _ψ_ 5,cal, _ψ_ 6,cal, and _ψ_ 7,cal are normalization constants; _t_ total is the AD , QCH4,exp( _t_ ) , and process duration; and the symbols QCH4 ( _t_ ) �L day <sup>_−_</sup> <sup>1�</sup> �L day <sup>_−_</sup> <sup>1�</sup> �L day <sup>_−_</sup> <sup>1�</sup> QCH4,exp L day <sup>_−_</sup> <sup>1�</sup> denote time-dependent simulated values, time-dependent measured values, and the average values of the measured CH4 flow rates, respectively. The sym QCH4,exp denotes the concentration of _j_ <sup>th</sup> bacteria type from the set _I_ bac, while bol _Xj_ �g L <sup>_−_</sup> <sup>1�</sup> denotes the maximal allowed initial concentration of all bacteria. The sym _X_ <sup>max</sup> bac �g L <sup>_−_</sup> <sup>1�</sup> bols VCH4 (L) and VCH4,exp (L) are the simulated and measured volumes of the produced _Bioengineering_ 2025, _12_, 117 9 of 22 CH4, while VH2, VH2S, VNH3, and _V_ biogas represent the simulated volumes of hydrogen, hydrogen sulfide, ammonia, and biogas, respectively. Finally, the symbol _φ_ CH4 denotes the prescribed fraction of CH4, while the symbols _φ_ H2max, _φ_ H2S,max, and _φ_ NH3,max are the prescribed maximal allowed fractions of hydrogen, hydrogen sulfide, and ammonia, respectively, in the produced biogas. The inverse tangent function in Equations (11) and (12) was employed as a smooth substitute for the conventional step function. This choice is essential to maintain the differentiability of the involved functions, a requirement for using a gradient-based optimizer. Statistical evaluation methodology. For the evaluation of the proposed upgraded BioModel, the measured AD performance is compared with NS using four statistical indicators (SIs): (i) mean absolute error _ε_ MAE, (ii) root mean square error _ε_ RMSE, (iii) coefficient of determination _R_ <sup>2</sup>, and (iv) the relative index of agreement _I_ A,rel [29]. _2.3._ _Optimization of the AD Process_ The design variables _x_ p, _i_ were related to some process parameters _x_ pp, _i_, _i_ = 1 . . . _N_ p, and more precisely to the concentrations of TMs (Ca, Co, Cr, Cu, Fe, K, Mg, Na, Ni, Pb, Zn) in the feeding substrate. Thus, there are a total of 11 design variables _x_ p, _i_, _i_ = 1 . . . _N_ p, - _N_ p = 11� that are defined as normalized process parameters based on - _N_ p = 11 - that are defined as normalized process parameters based on the relation _x_ p, _i_ = _x_ pp, _i−x_ <u>pp,</u> <sup>LO</sup> _<u>i</u>_ _x_ pp, <sup>UP</sup> _i_ <sup>_−x_</sup> pp, <sup>LO</sup> _i_ pp, <sup>UP</sup> _i_ <sup>_−x_</sup> pp, <sup>LO</sup> _i_ <u>pp,</u> _<u>i</u>_ pp, pp, <sup>LO</sup> _i_ <sup>, where</sup> <sup>_x_</sup> <sup>LO</sup> pp, <sup>LO</sup> _i_ <sup>and</sup> <sup>_x_</sup> pp, <sup>UP</sup> pp, <sup>UP</sup> _i_ <sup>are the corresponding lower and upper</sup> limits of the _i_ <sup>th</sup> process parameter _x_ pp, _i_, _i_ = 1 . . . _N_ p to be optimized, respectively. Three different optimization tasks were formulated using various definitions of objective _g_ 0 and constraint _gi_ functions; these optimization tasks are labeled as Cases A, B, and C. In Case A, a single objective function is defined, while in Cases B and C the multi-objective optimization problems are defined by combining multiple objectives into a single-objective function. This is achieved by summing individual objective functions, multiplied by adequate weighting factors. In Case A, the produced biogas volume is maximized in the shortest production time possible, as noted in Equation (17). This is achieved using the time-integrated biogas volume, where maximizing the objective function will increase both the total biogas volume and the biogas production rate. In Case B, the produced biogas volume is maximized in the shortest production time possible, and the H2S production is minimized, as shown in Equation (18). The objective function, defined by Equation (19), promotes maximal CH4 volume in the shortest production time possible and minimal H2S production. The imposed constraints in Case A are related only to the upper and lower values of the design variables _x_ p, _i_, _i_ = 1 . . . _N_ p. In addition to these, the constraint in Case B is related to the maximal allowed H2S fraction in biogas, as shown in Equation (20); in Case C, the constraints are related to the maximal allowed fractions of H2S, H2, and NH3 in the produced biogas, as shown in Equations (20)–(22). These objective and constraint functions are provided below: _g_ 0 = _−ψ_ 0 _t_ total _V_ biogas( _t_ ) _dt_ (17) 0 _g_ 0 = _−ψ_ 01 _g_ 0 = _−ψ_ 01 _t_ total _V_ biogas( _t_ ) + _ψ_ 02 _V_ H2S (18) 0 _t_ total _V_ CH4 ( _t_ ) _dt_ + _ψ_ 02 _V_ H2S (19) 0 _Bioengineering_ 2025, _12_, 117 10 of 22 _<u>V</u>_ <u>H2S</u> _g_ 1 = _ψ_ 1 _V_ biogas _−_ _φ_ H2S,max _−_ _φ_ H2,max _−_ _φ_ NH3,max (20) (21) (22) _g_ 2 = _ψ_ 2 _<u>V</u>_ <u>H2</u> _V_ biogas _g_ 3 = _ψ_ 3 - _<u>V</u>_ <u>NH3</u> _V_ biogas where _ψ_ 0, _ψ_ 01, _ψ_ 02, _ψ_ 1, _ψ_ 2, _ψ_ 3, and _ψ_ 4 are the weighting factors; _φ_ H2S,max, _φ_ H2,max, and _φ_ NH3,max, denote maximal fractions of H2, H2S, and NH3 in the produced biogas, respectively. The symbols _V_ biogas (L), _V_ CH4 (L), _V_ H2 (L), _V_ H2S (L), and _V_ NH3 (L) denote the volumes of biogas, CH4, H2, H2S, and NH3, respectively. _2.4._ _Solution Procedure_ The proposed BioModel, the ASO procedure, and the whole optimization procedure were coded in-house in C# language. To solve the system of ODEs, the Runge–Kutta and Euler methods are used. The engaged gradient-based optimization algorithm is based on an approximation method [39,40] that sequentially generates approximate strictly convex and separable nonlinear programming problems and solves them to generate a sequence of converging approximate solutions. The algorithm uses the history of design derivatives of the objective and constraint functions to gradually improve the quality of the approximation. Consequently, the convergence is often relatively fast and stable. Since the analytical derivatives cannot be obtained easily and any derived formulas would be valid only for a particular AD model form, the numerical differentiation using simple forward differences was used in this work to get the needed design derivatives. All numerical simulations were performed using a desktop computer with Inter i7 3.2 GHz CPU with 8 cores. The CPU time for one simulation of the AD process was approximately 1 s. The CPU time for one full optimization cycle of BioModel parameter calibration, where design derivatives computation was parallelized, is up to 1 min, while 4 s are needed for one optimization cycle of the AD process. 3. Results and Discussion At first, the results of sensitivity analysis, which were used in BioModel calibration, are presented. Then the AD performance results, obtained by NS using the upgraded BioModel, are compared with experimentally obtained data in the cases of BioModel calibration (bioreactor B1) and BioModel validation (bioreactors B2 and B3) and with various perturbations of calibrated model parameters. Finally, the results of AD model optimization are presented and discussed. _3.1._ _Sensitivity Analysis_ The sensitivity analysis was performed for the AD process in bioreactor B1. The obtained importance factors for 187 BioModel parameters, obtained from sensitivity analysis, are presented in Figure 1. According to Figure 1, the first ten most important BioModel parameters are the maximal growth rate of methanogenic acetate degraders at optimal temperature _µ_ Mac,max, _T_ opt, lower pH drop-off value for methanogenic acetate degraders pK <sup>LO</sup> Mac <sup>, inhibition constant for</sup> H2S by methanogenic acetate degraders _K_ inh,H2S,Mac, initial concentration of methanogenic acetate degraders _X_ Mac,in, maximal growth rate of acidogenic amino acid degraders at optimal temperature _µ_ Aaa,max, _T_ opt, inhibition constant for Zn by methanogenic acetate degraders _K_ inh,Zn,Mac, Monod constant related to acetate and methanogenic acetate degraders _k_ M,acMac, _Bioengineering_ 2025, _12_, 117 11 of 22 Monod constant related to sulfates and sulfate-reducing bacteria _k_ M,Sio,atSac, maximal growth rate of sulfate-reducing bacteria of acetate at optimal temperature _µ_ Sac,max, _T_ opt, and maximal growth rate of acidogenic sugar degraders at optimal temperature _µ_ Asu,max, _T_ opt. Figure 1. Importance factors of BioModel parameters. _3.2._ _BioModel Calibration_ The calibration of BioModel parameters was performed for the AD process in biore mp, <sup>UP</sup> _i_ actor B1. At the beginning, the mean value of interval - _x_ mp, <sup>LO</sup> mp, <sup>LO</sup> _i_ <sup>,</sup> <sup>_x_</sup> mp, <sup>UP</sup> is set as the initial value (initial design) of _i_ <sup>th</sup> model parameter. The lower, upper, and calibrated values of all 187 BioModel parameters are shown in Table A1 in Appendix A. For the selection of active design variables, the threshold values of _fT_ were sequentially chosen as 0.2 (Set 1), 0.1 (Set 2), 0.001 (Set 3), and 0 (Set 4, optimal design). For each set, the total number _Nx_ m, _i_ _∗_ of the corresponding active design variables _x_ m, <sup>_∗_</sup> _i_ <sup>, number of iterations</sup> _N_ iter during the calibration, and the value of objective function _g_ 0 are collected in Table 3. The optimized values of active design variables _x_ m, <sup>_∗_</sup> _i_ <sup>, obtained by considering Set 1, were</sup> used as initial values of these variables for the optimization of the next set. The value of the objective function was gradually minimized from the initial design (IDcal) value of 3.1060 to the optimal design (ODcal, Set 4) value of 0.01185. Table 3. Active sets data related to the ASO procedure. Set _fT_ _Nx_ <u>m,</u> _<u>i*</u>_ _N_ iter _g_ 0 1 0.2 17 16 0.25700 2 0.1 30 59 0.05285 3 0.001 89 78 0.02280 4 (ODcal) 0 187 190 0.01185 The results of BioModel calibration by the ASO procedure are presented in Figure 2. It can be seen that the differences between measured and simulated CH4 flow rates in the initial design are extremely high. Furthermore, the simulated values are becoming closer to experimental data as the number of active parameters increases. This is confirmed also by the average difference between simulated and measured CH4 flow rates (average absolute daily difference divided by average measurement value). The average difference of CH4 flow rates is reduced during calibration from 95.5% (initial values of model parameters; IDcal), through 40.9% (Set 1), 23.6% (Set 2), and 16.8% (Set 3) to 12.0% (final calibrated values of model parameters; ODcal). It is clearly evident that the simulated CH4 flow rates, obtained under the optimal design with all calibrated BioModel parameters, agree very well with the measured values throughout the whole time period of the AD process. _Bioengineering_ 2025, _12_, 117 12 of 22 Figure 2. Methane flow rate during BioModel calibration using the ASO procedure. The upgraded BioModel enables predictions of the concentration of TEs during the AD process. As an example, the concentrations of various Fe and Mg species at ODcal are presented in Figure 3. Figure 3. Fe and Mg species during the AD process at ODcal. The calibrated values of BioModel parameters are confirmed also by error, _ε_ MAE, and _ε_ RMSE as well as efficiency, _R_ <sup>2</sup> and _I_ A,rel, SIs, as shown in Table 4. For bioreactor B1 (BioModel calibration), the calculated values of SIs are related to methane flow rate _Q_ CH4. During calibration process using the ASO procedure, from the IDcal to the ODcal design, the values of _ε_ MAE and _ε_ RMSE decrease by approximately eightfold and sixteenfold, respectively. On the other hand, the values of _R_ <sup>2</sup> and _I_ A,rel increase by approximately fourfold and twofold, respectively. The obtained values of all error and efficiency SIs for ODcal design are acceptable. Table 4. Statistical indicators of CH4 flow rate; bioreactor B1, BioModel calibration. <u>SIs</u> ~~BioModel Calibration, Bioreactor B1~~ ~~ID~~ <u>cal</u> ~~Set 1~~ ~~Set 2~~ ~~Set 3~~ ~~OD~~ <u>cal</u> _ε_ MAE (L day <sup>_−_</sup> <sup>1</sup> ) 0.0583 0.0250 0.0144 0.0102 0.0074 _ε_ RMSE (L day <sup>_−_</sup> <sup>1</sup> ) 0.2933 0.08438 0.0382 0.0252 0.0181 _<u>R</u>_ <sup>2</sup> <u>(/)</u> <u>0.2374</u> <u>0.6491</u> <u>0.9360</u> <u>0.9810</u> <u>0.9855</u> _I_ <u>A,rel</u> (/) 0.4872 0.8440 0.9774 0.9902 0.9953 _Bioengineering_ 2025, _12_, 117 13 of 22 _3.3._ _BioModel Validation_ The validation of BioModel parameters, which were calibrated with respect to the experimental data of the AD process in bioreactor B1, is performed for the AD processes in bioreactors B2 and B3. For these two cases, the numerically obtained biogas flow rates are compared with measured data, as shown in Figure 4. The average differences in biogas flow rates are 11.5% (bioreactor B2) and 11.2% (bioreactor B3). In both cases, the biogas flow rate obtained using NS agree very well with the experimentally obtained one. This ~~good~~ ~~agreement~~ ~~of~~ ~~AD~~ ~~performance~~ ~~conf~~ i ~~rms~~ ~~also~~ ~~the~~ ~~eff~~ i ~~ciency~~ ~~of~~ ~~the~~ ~~ASO~~ ~~procedure~~ for calibration. Figure 4. Biogas flow rates for the AD process in bioreactors B2 and B3. Furthermore, with respect to the measured and simulated biogas flow rates in bioreactors B2 and B3 (BioModel validation), various SIs were calculated, as shown in Table 5. All obtained values of the error SIs are acceptable. Table 5. Statistical indicators of biogas flow rate; bioreactors B2 and B3, BioModel validation. SIs B2 B3 _ε_ MAE (L day <sup>_−_</sup> <sup>1</sup> ) 0.0033 0.0654 _ε_ RMSE (L day <sup>_−_</sup> <sup>1</sup> ) 0.0111 0.1817 _R_ <sup>2</sup> (/) 0.9780 0.9775 _I_ <u>A,rel</u> (/) 0.9877 0.9931 _3.4._ _Importance of Accurate Calibration of BioModel Parameters_ In order to test the importance of the accuracy of calibration of all model parameters, an extra study was performed to include various perturbations of the calibrated values; the observed bioreactors are B2 and B3. For this purpose, the impact of random perturbations of all BioModel parameters on the AD performance was investigated. In the case of small perturbations, the values of model parameters were randomly generated based on a _±_ 1% perturbation of their calibrated values (ODcal _±_ 1%). In the case of high perturbation, the values of model parameters were randomly generated based on a _±_ 5% perturbation of their calibrated values (ODcal _±_ 5%). The comparison of the simulated AD performances with the measured data are shown in Figure 5. The values of average differences in biogas flow rates in the case of validation in bioreactor B2 increases by increasing the perturbation of calibrated values of model parameters from 11.5% (ODcal) and 12.0% (ODcal _±_ 1%) to 29.1% (ODcal _±_ 5%). In the case of validation in bioreactor B3, the obtained average _Bioengineering_ 2025, _12_, 117 14 of 22 difference of the biogas flow rate increases from 11.2% (ODcal) and 14.6% (ODcal _±_ 1%) to 34.5% (ODcal _±_ 5%). It is evident that using 5% random perturbation of calibrated values of <u>model parameters, the discrepancy between simulated and experimental AD performance</u> can increase up to threefold with respect to those obtained with ODcal. Figure 5. Biogas flow rates in B2 and B3; NS done using various perturbations of calibrated model parameter values. The comparison of biogas flow rates in Figure 5 clearly shows that the disagreement increases by increasing the perturbation of model parameters. A similar conclusion can be ~~made also by comparing the SIs, as shown in Table 6.~~ ~~Table 6.~~ ~~Statistical indicators of biogas f~~ l ~~ow rate; perturbation of model parameters, bioreactors B2~~ and B3, validation period. <u>Bioreactor</u> <u>Design</u> <u>SIs</u> _ε_ <u>MAE</u> ( L day <sup>_−_</sup> <sup>1</sup> ) _ε_ <u>RMSE</u> ( L day <sup>_−_</sup> <sup>1</sup> ) _R_ <sup>2</sup> ( / ) _I_ <u>A,rel</u> ( / ) ~~B2~~ B3 ODcal 0.0033 0.0111 0.9780 0.9877 ~~OD~~ <u>cal</u> _~~±~~_ ~~1%~~ ~~0.0036~~ ~~0.0113~~ ~~0.9712~~ ~~0.9866~~ <u>ODcal</u> _±_ <u>5%</u> <u>0.0087</u> <u>0.0303</u> <u>0.8681</u> <u>0.9261</u> ODcal 0.0654 0.1817 0.9775 0.9931 ODcal _±_ 1% 0.0850 0.2544 0.9571 0.9869 ODcal _±_ 5% 0.2010 0.6241 0.8090 0.9311 Increasing perturbations of the calibrated values of model parameters results in progressively degraded accuracy of simulated performances. The values of _ε_ MAE and _ε_ RMSE increase, while the values of _R_ <sup>2</sup> and _I_ A,rel decrease. The results in Figure 5 and Table 6 show that accurate calibration of all model parameters is very important. _3.5._ _Optimized AD Process_ In order to improve AD performance, the concentrations of all considered light TMs (Ca, K, Mg, and Na) and heavy TMs (Co, Cr, Cu, Fe, Ni, Pb, and Zn) are optimized. The prescribed allowed lower and upper values of TMs concentrations, actual initial TMs concentrations in the feeding substrate of bioreactor B1, as well as the optimal values of TMs in optimization Cases A, B, and C are given in Table 7. The lower values are prescribed as 10% of the initial concentration in the feeding substrate; these TM concentration values _Bioengineering_ 2025, _12_, 117 15 of 22 can be achieved by removing 90% of TMs from the feeding substrate. The upper values of TM concentrations can be achieved by adding TMs to the feeding substrate. As it is evident from Table 7, only the initial value of Na concentration remains the same in all optimization cases. This result is not surprising because the Na concentration in the feeding substrate in the initial design is already in the optimal range for the growth of mesophilic hydrogenotrophic methanogens and the associated methane production [19]. Table 7. TM concentration; lower, upper, initial, and optimized values. OD Case B OD Case C <sup>LO</sup> pp, _i_ x <sup>UP</sup> pp, No. TM x <sup>LO</sup> pp, OD <sup>UP</sup> pp, _i_ ID Case A 1 _c_ <u>Ca</u> (g L <sup>_−_</sup> <sup>1</sup> ) 0.30000 4.00000 3.00000 3.9870 2.2957 3.1290 2 _c_ <u>K</u> (g L <sup>_−_</sup> <sup>1</sup> ) 0.32000 4.20000 3.20000 3.2587 3.2263 3.1430 3 _c_ <u>Mg</u> (g L <sup>_−_</sup> <sup>1</sup> ) 0.08000 1.80000 0.80000 1.7868 1.7970 0.0887 4 _c_ <u>Na</u> (g L <sup>_−_</sup> <sup>1</sup> ) 0.03000 0.80000 0.30000 0.3000 0.3000 0.3000 5 _c_ <u>Fe</u> (g L <sup>_−_</sup> <sup>1</sup> ) 0.01100 5.11000 0.11000 5.0431 5.1100 5.1099 6 _c_ <u>Co</u> (g L <sup>_−_</sup> <sup>1</sup> ) 0.00200 0.12000 0.02000 0.0251 0.0229 0.0239 7 _c_ <u>Cr</u> (mg L <sup>_−_</sup> <sup>1</sup> ) 0.30000 103.000 3.00000 0.3342 0.3000 0.3000 8 _c_ <u>Ni</u> (mg L <sup>_−_</sup> <sup>1</sup> ) 0.10000 101.000 1.00000 0.1113 0.1000 0.1000 9 _c_ <u>Pb</u> (mg L <sup>_−_</sup> <sup>1</sup> ) 0.02000 100.200 0.20000 0.0218 0.0200 0.0200 10 _c_ <u>Cu</u> (mg L <sup>_−_</sup> <sup>1</sup> ) 1.00000 110.000 10.00000 1.1192 1.0001 1.0001 11 _c_ <u>Zn</u> (mg L <sup>_−_</sup> <sup>1</sup> ) 5.00000 150.000 50.00000 5.9228 5.0003 5.0010 Some results of AD process optimization are shown in Figures 6–9. The optimized amounts of added/removed TMs in the optimization Cases A, B, and C with respect to the initial TM concentrations in the feeding substrate are shown in Figure 6. It is evident that in all cases, the heavy metals Cr, Ni, Pb, Cu, and Zn have to be removed from the feeding substrate before starting the AD process, while Fe and Co should be added. The light TMs should be added or removed independently of the optimization case. All light TMs should be added in all cases, with the exceptions of removing Ca in Case B as well as Mg and K in Case C. Using these optimized concentrations of TMs in the feeding substrate, the quality and quantity of the produced biogas are improved in all cases, as shown in Figure 7. The obtained results show that the highest biogas production is reached in Case A, where the objective of optimization is related only to the maximization of biogas volume. As expected, by including other requirements in the objective and constraint functions (Cases B and C), the improvement in biogas production becomes smaller. By comparing the obtained optimal designs with the initial design in Figure 8, the biogas production increases by 22.6%, 17.3%, and 5.4% in Cases A, B, and C, respectively. The CH4 production with respect to the initial design increases by 29.4%, 23.6%, and 13.2% in Cases A, B, and C, respectively. By analyzing the results presented in Figure 7, it can be concluded that the biogas quality increases from Case A through Case B to Case C. For example, the produced biogas in Case C contains 7.4% more CH4, 31.9% less H2, 46.5% less H2S, and 45.4% less NH3 with respect to the initial design, as shown in Figure 8. The highest content of CH4 in Case C is a consequence of lower concentrations of Ca, Mg, and K in the feeding substrate. Namely, the obtained optimal Ca <sup>2+</sup>, Mg <sup>2+</sup>, and K <sup>+</sup> concentrations are important for dehydrogenase activity, cell viability, and maintenance of the morphology of microbes. Higher K <sup>+</sup> concentrations could lead to the displacement of exchangeable metal ions from exchangeable _Bioengineering_ 2025, _12_, 117 16 of 22 sites and consequently to the loss of micronutrients important for methanogens activity, or to cell dehydration, leading to the inhibition of methanogen activity [19]. Since the methanogens are less tolerant to high Mg <sup>2+</sup> and Ca <sup>2+</sup> concentrations, the maximization of CH4 production in Case C results in the lowest optimized Mg <sup>2+</sup> concentration. Figure 6. The concentrations of added/removed TMs in optimization Cases A, B, and C. Figure 7. The volumes of the produced biogas, CH4, H2, H2S, and NH3 in optimization Cases A, B, and C. _Bioengineering_ 2025, _12_, 117 <u>17 of 22</u> Figure 8. Variation in cumulative volume of biogas,CH4, H2, H2S, and NH3 with respect to initial design. Figure 9. Iron species in the initial and optimal designs in Cases A, B, and C. The main impact for the reduction of the content of H2S in biogas is due to the added amount of Fe <sup>2+</sup> in the feeding substrate. The Fe <sup>2+</sup> ions form various precipitates, such as carbonates, sulfates, and phosphates. The concentrations of various iron species during the AD process are presented in Figure 9. It is clearly evident that the formation of iron precipitates (sulfide, carbonate, and phosphate) is the fastest in the initial stage of the AD process in Case C (at optimal design) and that the amounts of FeS formed during the AD process at optimal designs in Cases A, B, and C are significantly larger than those obtained with the initial designs. Consequently, the content of H2S in the produced biogas is the smallest in Case C; the reduction of H2S with respect to initial design is 46.5%, followed by 42.5% in Case B and 38.6% in Case A, as shown in Figure 8. An analysis of the obtained results of the AD process optimization shows the following findings: (i) the amount of H2S in biogas depends not only on the availability of Fe <sup>2+</sup> ions but also on the formation of FeS at the initial stage of the AD process; (ii) the necessary reductions in metal concentrations in the feeding substrate, obtained during AD process optimization, require appropriate pretreatments of the feeding substrate, includ _Bioengineering_ 2025, _12_, 117 18 of 22 ing adsorption of various light and heavy metals by various adsorbents (biochar, active carbon, nanomaterials, etc.) or by the addition of various substrates with lower content of metals; (iii) by maximizing the production of CH4 and minimizing the content of H2S simultaneously and by introducing the limits on the content of H2, H2S, and NH3 by the constraint functions (Case C), the optimal concentrations of TMs increased biogas and CH4 production by 5.4% and 13.5%, respectively, while H2, H2S, and NH3 decreased by 28.2%, 43.6%, and 42.5%, respectively. Furthermore, the content of CH4 increases by 7.4%, while H2, H2S, and NH3 decreases by 31.9%, 46.5%, and 45.4%, respectively. 4. Conclusions This study deals with the modeling, calibration, validation, and numerical optimization of the AD process with special attention given to the role of TMs in batch anaerobic digestion. For this reason, a mechanistically inspired BioModel was enhanced by modeling TM activities in biochemical, chemical, and physicochemical processes; all 187 model parameters, including TM-related parameters, were calibrated by considering their interactions. The average differences in the observed AD performance in bioreactors B1, B2, and B3 are 11.6% _±_ 0.4% (calibrated model parameters, ODcal). A relatively small increase in average differences in biogas flow rate in bioreactors B2 and B3 is obtained at low perturbation of calibrated parameters. Meanwhile, at high perturbation (ODcal _±_ 5%), the average differences increase up to 34.5%; a random _±_ 5% perturbation of calibrated values of model parameters results in rather inaccurate predictions of AD performance. Finally, by optimizing TM concentrations in the feeding substrate, the quantity and quality of the produced biogas can be improved essentially; the biogas and CH4 production increased by 5.4% and 13.5%, respectively, while H2, H2S, and NH3 decreased by 28.2%, 43.6%, and 42.5%, respectively. In the future, further research focusing on the effects of multiple metals in bioreactors on the AD process as well as on the specific thresholds of the stimulatory and inhibitory concentrations during various stages of the AD process would be highly useful. Author Contributions: Conceptualization, methodology, software, validation, formal analysis, investigation, resources, data curation, and writing—original draft preparation: T.K.; writing—review and editing, visualization, supervision, project administration, and funding acquisition: T.K., B.P. and B.C.M. All authors have read and agreed to the published version of the manuscript. Funding: This research was funded by Slovenian Research Agency (grant numbers P2-0032 and P2-0414) and the National Institute of Technology Rourkela for the Institute Seed Grant through NITR/DN/2024/M0217. Informed Consent Statement: Not applicable. Data Availability Statement: The data presented in this study are available upon request from the corresponding author. Conflicts of Interest: The authors declare no conflicts of interest. Appendix A Table A1. Lower, upper, and optimal (calibrated) values of BioModel parameters. <sup>LO</sup> mp, _i_ x <sup>UP</sup> mp, <sup>LO</sup> mp, _i_ x <sup>UP</sup> mp, Optimal _i_ Parameter x <sup>LO</sup> mp, mp, _i_ Value _i_ Parameter x <sup>LO</sup> mp, mp, _i_ Optimal Value 1 _k_ hyd,ch (day <sup>_−_</sup> <sup>1</sup> ) 1 10 5.28848 95 _k_ cryst,PbS (day <sup>_−_</sup> <sup>1</sup> ) 10 100 55.0005 2 _k_ hyd,pr (day <sup>_−_</sup> <sup>1</sup> ) 1 10 6.07000 96 _k_ cryst,ZnS (day <sup>_−_</sup> <sup>1</sup> ) 10 100 54.9998 3 _k_ hyd,li (day <sup>_−_</sup> <sup>1</sup> ) 1 10 6.53405 97 _k_ cryst,CoS (day <sup>_−_</sup> <sup>1</sup> ) 500 1000 750.386 4 _K_ inh,VFA (g L <sup>_−_</sup> <sup>1</sup> ) 0.1 0.6 0.27516 98 _k_ cryst,Co3(PO44)2 (day <sup>_−_</sup> <sup>1</sup> ) 50 100 74.9785 _Bioengineering_ 2025, _12_, 117 19 of 22 Table A1. _Cont._ <sup>LO</sup> mp, _i_ x <sup>UP</sup> mp, <sup>LO</sup> mp, _i_ x <sup>UP</sup> mp, Optimal _i_ Parameter x <sup>LO</sup> mp, mp, _i_ Value _i_ Parameter x <sup>LO</sup> mp, mp, _i_ Optimal Value 5 _K_ inh,H2,Agly (gL <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.47075 99 _k_ cryst,Ca3(PO44)2 (day <sup>_−_</sup> <sup>1</sup> ) 50 100 59.3824 6 _K_ inh,H2,Aoa (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.52991 100 _k_ cryst,Fe3(PO44)2 (day <sup>_−_</sup> <sup>1</sup> ) 50 100 74.3711 7 _K_ inh,H2,Apro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.56099 101 _k_ cryst,Ni3(PO44)2 (day <sup>_−_</sup> <sup>1</sup> ) 50 100 74.9990 8 _K_ inh,H2,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.41827 102 _k_ cryst,MgNH4PO4 (day <sup>_−_</sup> <sup>1</sup> ) 50 200 76.4582 9 _K_ inh,H2,Ava (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.44331 103 _k_ cryst,KMgPO4 (day <sup>_−_</sup> <sup>1</sup> ) 50 200 124.992 10 _K_ inh,H2S,Apro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.51747 104 pK <sup>lo</sup> Asu <sup>(/)</sup> 4.5 5.5 4.98825 10 _K_ inh,H2S,Apro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.51747 104 pK <sup>lo</sup> Asu <sup>(/)</sup> 4.5 5.5 4.98825 11 _K_ inh,H2S,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.12073 105 pK <sup>up</sup> Asu <sup>(/)</sup> 7.5 8.5 8.27958 11 _K_ inh,H2S,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.12073 105 pK <sup>up</sup> Asu <sup>(/)</sup> 7.5 8.5 8.27958 12 _K_ inh,H2S,Ava (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.09301 106 pK <sup>lo</sup> Aaa <sup>(/)</sup> 4.5 5.5 4.98971 12 _K_ inh,H2S,Ava (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.09301 106 pK <sup>lo</sup> Aaa <sup>(/)</sup> 4.5 5.5 4.98971 13 _K_ inh,H2S,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.07857 107 pK <sup>up</sup> Aaa <sup>(/)</sup> 7.5 8.5 8.48995 13 _K_ inh,H2S,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.07857 107 pK <sup>up</sup> Aaa <sup>(/)</sup> 7.5 8.5 8.48995 14 _K_ inh,H2S,Mhyd (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.07034 108 pK <sup>lo</sup> Agly <sup>(/)</sup> 4.5 5.5 5.02014 14 _K_ inh,H2S,Mhyd (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.07034 108 pK <sup>lo</sup> Agly <sup>(/)</sup> 4.5 5.5 5.02014 15 _K_ inh,H2S, _Ss_ (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.47785 109 pK <sup>up</sup> Agly <sup>(/)</sup> 7.5 8.5 8.22301 <sup>up</sup> Agly <sup>(/)</sup> 7.5 8.5 8.22301 16 _K_ inh,H2S,Spro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.25675 110 pK <sup>lo</sup> Aoa 16 _K_ inh,H2S,Spro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.25675 110 pK <sup>lo</sup> Aoa <sup>(/)</sup> 4.5 5.5 5.04878 17 _K_ inh,H2S,Sac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.31965 111 pK <sup>up</sup> Aoa <sup>(/)</sup> 7.5 8.5 8.45347 17 _K_ inh,H2S,Sac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.31965 111 pK <sup>up</sup> Aoa <sup>(/)</sup> 7.5 8.5 8.45347 18 _K_ inh,H2S,Shyd (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.53034 112 pK <sup>lo</sup> Apro <sup>(/)</sup> 5.5 6.5 6.40484 18 _K_ inh,H2S,Shyd (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.53034 112 pK <sup>lo</sup> Apro <sup>(/)</sup> 5.5 6.5 6.40484 19 _K_ inh,NH3,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.3 0.58207 113 pK <sup>up</sup> Apro <sup>(/)</sup> 8.0 9.0 8.20391 19 _K_ inh,NH3,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.3 0.58207 113 pK <sup>up</sup> Apro <sup>(/)</sup> 8.0 9.0 8.20391 20 _K_ inh,Cu2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.41420 114 pK <sup>lo</sup> Abu <sup>(/)</sup> 5.5 6.5 6.31587 20 _K_ inh,Cu2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.41420 114 pK <sup>lo</sup> Abu <sup>(/)</sup> 5.5 6.5 6.31587 21 _K_ inh,Zn2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.35448 115 pK <sup>up</sup> Abu <sup>(/)</sup> 8.0 9.0 8.61508 21 _K_ inh,Zn2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.35448 115 pK <sup>up</sup> Abu <sup>(/)</sup> 8.0 9.0 8.61508 22 _K_ inh,Cr2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.44256 116 pK <sup>lo</sup> Ava <sup>(/)</sup> 5.5 6.5 6.13055 22 _K_ inh,Cr2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.44256 116 pK <sup>lo</sup> Ava <sup>(/)</sup> 5.5 6.5 6.13055 23 _K_ inh,Pb2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.45450 117 pK <sup>up</sup> Ava <sup>(/)</sup> 8.0 9.0 8.53030 23 _K_ inh,Pb2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.45450 117 pK <sup>up</sup> Ava <sup>(/)</sup> 8.0 9.0 8.53030 24 _K_ inh,Ni2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.45174 118 pK <sup>lo</sup> Mac <sup>(/)</sup> 5.5 6.5 6.00441 24 _K_ inh,Ni2+,Abu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.45174 118 pK <sup>lo</sup> Mac <sup>(/)</sup> 5.5 6.5 6.00441 25 _K_ inh,Cu2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.51131 119 pK <sup>up</sup> Mac <sup>(/)</sup> 8.0 9.0 8.34907 25 _K_ inh,Cu2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.51131 119 pK <sup>up</sup> Mac <sup>(/)</sup> 8.0 9.0 8.34907 26 _K_ inh,Zn2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.58076 120 pK <sup>lo</sup> Mhyd <sup>(/)</sup> 5.5 6.5 6.04491 26 _K_ inh,Zn2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.58076 120 pK <sup>lo</sup> Mhyd <sup>(/)</sup> 5.5 6.5 6.04491 27 _K_ inh,Cr2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.43723 121 pK <sup>up</sup> Mhyd <sup>(/)</sup> 8.0 9.0 8.48158 <sup>up</sup> Mhyd <sup>(/)</sup> 8.0 9.0 8.48158 28 _K_ inh,Pb2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.45489 122 pK <sup>lo</sup> Ss 28 _K_ inh,Pb2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.45489 122 pK <sup>lo</sup> Ss <sup>(/)</sup> 5.5 6.5 5.96875 29 _K_ inh,Ni2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.49740 123 pK <sup>up</sup> Ss <sup>(/)</sup> 7.5 8.5 8.07330 29 _K_ inh,Ni2+,Mac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.49740 123 pK <sup>up</sup> Ss <sup>(/)</sup> 7.5 8.5 8.07330 30 _K_ M,Nio (g L <sup>_−_</sup> <sup>1</sup> ) 0.001 0.01 0.00513 124 pK <sup>lo</sup> Spro <sup>(/)</sup> 5.5 6.5 6.21593 30 _K_ M,Nio (g L <sup>_−_</sup> <sup>1</sup> ) 0.001 0.01 0.00513 124 pK <sup>lo</sup> Spro <sup>(/)</sup> 5.5 6.5 6.21593 31 _K_ M,Pio (g L <sup>_−_</sup> <sup>1</sup> ) 0.001 0.01 0.00536 125 pK <sup>up</sup> Spro <sup>(/)</sup> 7.5 8.5 8.00344 31 _K_ M,Pio (g L <sup>_−_</sup> <sup>1</sup> ) 0.001 0.01 0.00536 125 pK <sup>up</sup> Spro <sup>(/)</sup> 7.5 8.5 8.00344 32 _k_ M,suAsu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.45069 126 pK <sup>lo</sup> Sac <sup>(/)</sup> 5.5 6.5 5.64308 33 _k_ M,aaAaa (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.38091 127 pK <sup>up</sup> Sac <sup>(/)</sup> 7.5 8.5 7.64437 34 _k_ M,glyAgly (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.28036 128 pK <sup>lo</sup> Shyd <sup>(/)</sup> 5.5 6.5 6.02774 35 _k_ M,oaAoa (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.02559 129 pK <sup>up</sup> Shyd <sup>(/)</sup> 7.5 8.5 7.98378 36 _k_ M,proApro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.72705 130 _α_ Asu (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00015 0.00019 0.00055 37 _k_ M,buAbu (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.86578 131 _α_ Aaa (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00015 0.00019 0.00055 38 _k_ M,vaAva (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.65487 132 _α_ Agly (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00015 0.00019 0.00055 39 _k_ M,H2Mhyd (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.89994 133 _α_ Aoa (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00015 0.00019 0.00055 40 _k_ M,acMac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.70222 134 _α_ Apro (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00015 0.00019 0.00055 41 _k_ M,Sio,atSs (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.09066 135 _α_ Abu (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00016 0.00020 0.00055 42 _k_ M,proSpro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.58511 136 _α_ Ava (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00016 0.00020 0.00055 43 _k_ M,Sio,atSpro (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.61723 137 _α_ Mac (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00015 0.00019 0.00054 44 _k_ M,acSac (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.24452 138 _α_ Mhyd (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00015 0.00019 0.00055 45 _k_ M,Sio,atSac(g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.24192 139 _α_ Ss (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00016 0.00020 0.00055 46 kM,H2Shyd (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.33351 140 _α_ Spro (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00016 0.00020 0.00055 47 _k_ M,Sio,atShyd (g L <sup>_−_</sup> <sup>1</sup> ) 0.01 0.9 0.34444 141 _α_ Sac (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00016 0.00020 0.00055 48 _µ_ Asu,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 7.27177 142 _α_ Shyd (K <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.00016 0.00020 0.00055 49 _µ_ Aaa,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 9.99998 143 _T_ Asu,opt (°C) 50 60 54.9854 50 _µ_ Agly,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 9.18755 144 _T_ Asu,max (°C) 60 70 65.0000 51 _µ_ Aoa,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 9.91931 145 _T_ Asa,opt (°C) 50 60 54.9685 52 _µ_ Apro,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 3.51354 146 _T_ Aaa,max (°C) 60 70 65.0000 53 _µ_ Abu,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 1.62130 147 _T_ Agly,opt (°C) 50 60 54.9975 54 _µ_ Ava,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 2.94090 148 _T_ Agly,max (°C) 60 70 65.0000 55 _µ_ Mac,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 5.46362 149 _T_ Aoa,opt (°C) 50 60 54.9941 56 _µ_ Mhyd,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 3.64307 150 _T_ Aoa,max (°C) 60 70 65.0000 57 _µ_ Ss,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 5.63776 151 _T_ Apro,opt (°C) 50 60 54.9866 58 _µ_ Spro,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 1.17762 152 _T_ Apro,max (°C) 60 70 65.0000 59 _µ_ Sac,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 9.34170 153 _T_ Abu,opt (°C) 55 65 60.0039 60 _µ_ Shyd,max, _T_ opt (day <sup>_−_</sup> <sup>1</sup> ) 1 10 6.70977 154 _T_ Abu,max (°C) 65 75 70.0000 61 _b_ dec,Asu (/) 0.01 0.05 0.02996 155 _T_ Ava,opt (°C) 55 65 60.0130 62 _b_ dec,Aaa (/) 0.01 0.05 0.02684 156 _T_ Ava,max (°C) 65 75 70.0000 63 _b_ dec,Agly (/) 0.01 0.05 0.02985 157 _T_ Mac,opt (°C) 50 60 54.9936 64 _b_ dec,Aoa (/) 0.01 0.05 0.03009 158 _T_ Mac,max (°C) 60 70 65.0000 65 _b_ dec,Apro (/) 0.01 0.05 0.01590 159 _T_ Mhyd,opt (°C) 50 60 55.0023 66 _b_ dec,Abu (/) 0.01 0.05 0.04289 160 _T_ Mhyd,max (°C) 60 70 65.0000 67 _b_ dec,Ava (/) 0.01 0.05 0.02859 161 _T_ Ss,opt (°C) 30 40 35.1549 68 _b_ <u>dec,Mac</u> (/) 0.01 0.05 0.01980 162 _T_ <u>Ss,max</u> (°C) 60 70 65.0022 <sup>up</sup> Shyd <sup>(/)</sup> 7.5 8.5 7.98378 _Bioengineering_ 2025, _12_, 117 20 of 22 Table A1. _Cont._ <sup>LO</sup> mp, _i_ x <sup>UP</sup> mp, <sup>LO</sup> mp, _i_ x <sup>UP</sup> mp, Optimal _i_ Parameter x <sup>LO</sup> mp, mp, _i_ Value _i_ Parameter x <sup>LO</sup> mp, mp, _i_ Optimal Value 69 _b_ dec,Mhyd (/) 0.01 0.05 0.04300 163 _T_ Spro,opt (°C) 30 40 35.0021 70 _b_ dec,Ss (/) 0.01 0.05 0.03071 164 _T_ Spro,max( <sup>_◦_</sup> C) 60 70 65.0000 71 _b_ dec,Spro (/) 0.01 0.05 0.03000 165 _T_ Sac,opt (°C) 30 40 36.2293 72 _b_ dec,Sac (/) 0.01 0.05 0.02867 166 _T_ Sac,max (°C) 60 70 65.0008 73 _b_ dec,Shyd (/) 0.01 0.05 0.02999 167 _T_ Shyd,opt (°C) 30 40 34.9999 74 ( _K_ L _a_ )CO2,a (°C <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 1 5 3.59248 168 _T_ Shyd,max (°C) 60 70 64.9999 0.00001 0.001 0.00009 0.00001 0.001 0.00024 0.00001 0.001 0.00053 0.1 0.5 0.26646 0.1 0.5 0.49999 0.1 0.5 0.35606 0.1 0.5 0.48358 0.1 0.5 0.10110 0.1 0.5 0.20184 0.1 0.5 0.14735 0.1 0.5 0.10001 0.1 0.5 0.31548 0.1 0.5 0.25498 0.1 0.5 0.10000 0.1 0.5 0.41458 0.1 0.5 0.34090 0.00001 0.001 0.00063 0.00001 0.001 0.00046 0.00001 0.001 0.00054 75 ( _K_ L _a_ )CO2,b (day <sup>_−_</sup> <sup>1</sup> ) 10 20 14.97329 169 _K_ ME0,ch 76 ( _K_ L _a_ )CH4,a (°C <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 1 5 2.97810 170 _K_ ME0,pr 77 ( _K_ L _a_ )CH4,b (day <sup>_−_</sup> <sup>1</sup> ) 10 20 14.99536 171 _K_ ME0,li 78 ( _K_ L _a_ )H2,a (°C <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.0001 0.001 0.00086 172 _X_ Asu 79 ( _K_ L _a_ )H2,b (day <sup>_−_</sup> <sup>1</sup> ) 0.001 0.01 0.00641 173 _X_ Aaa 80 ( _K_ L _a_ )H2S,a (°C <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.0001 0.001 0.00053 174 _X_ Agly 81 ( _K_ L _a_ )H2S,b (day <sup>_−_</sup> <sup>1</sup> ) 0.001 0.01 0.00565 175 _X_ Aoa 82 ( _K_ L _a_ )NH3,a (°C <sup>_−_</sup> <sup>1</sup> day <sup>_−_</sup> <sup>1</sup> ) 0.0001 0.001 0.00055 176 _X_ Apro 83 ( _K_ L _a_ )NH3,b (day <sup>_−_</sup> <sup>1</sup> ) 0.001 0.01 0.00550 177 _X_ Abu 84 _k_ cryst,CaCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 2.26219 178 _X_ Ava 85 _k_ cryst,MgCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 6.23296 179 _X_ Mac 86 _k_ cryst,FeCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 2.45088 180 _X_ Mhyd 87 _k_ cryst,NiCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 5.34170 181 _X_ Spro 88 _k_ cryst,CuCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 2.21574 182 _X_ Sac 89 _k_ cryst,PbCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 5.47297 183 _X_ Ss �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> �g L <sup>_−_</sup> <sup>1�</sup> 90 _k_ cryst,ZnCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 2.61502 184 _X_ Shyd 91 _k_ cryst,CoCO3 (day <sup>_−_</sup> <sup>1</sup> ) 1 10 4.96625 185 _c_ E0,ch 92 _k_ cryst,FeS (day <sup>_−_</sup> <sup>1</sup> ) 1000 5000 2999.88 186 _c_ E0,pr 93 _k_ cryst,NiS (day <sup>_−_</sup> <sup>1</sup> ) 500 1000 2999.88 187 _c_ E0,li 94 _k_ cryst,CuS (day <sup>_−_</sup> <sup>1</sup> ) 500 1000 749.971 References 1. Piadeh, F.; Offie, I.; Behzadian, K.; Rizzuto, J.P.; Bywater, A.; Córdoba-Pachón, J.R.; Walker, M. A critical review for the impact of anaerobic digestion on the sustainable development goals. _J. Environ._ _Manag._ 2024, _349_, 119458. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.jenvman.2023.119458) 2. Liao, N.; Bolyard, S.C.; Lü, F.; Yang, N.; Zhang, H.; Shao, L.; He, P. Can waste management system be a Greenhouse Gas sink? Perspective from Shanghai, China. _Resour._ _Conserv._ _Recycl._ 2022, _180_, 106170. [[CrossRef]](https://doi.org/10.1016/j.resconrec.2022.106170) 3. Mata-Alvarez, J.; Macé, S.; Llabrés, P. Anaerobic digestion of organic solid wastes. An overview of research achievements and perspectives. _Bioresour._ _Technol._ 2000, _74_, 3–16. [[CrossRef]](https://doi.org/10.1016/S0960-8524%0x2800%0x2900023-7) 4. Wu, D.; Peng, X.; Li, L.; Yang, P.; Peng, Y.; Liu, H.; Wang, X. Commercial biogas plant: Review on operational parameters and guide for performance optimization. _Fuel_ 2021, _303_, 121282. [[CrossRef]](https://doi.org/10.1016/j.fuel.2021.121282) 5. IRENA. _Global Renewables Outlook, Energy Transformation 2050_ ; International Renewable Energy Agency: Masdar City, Abu Dhabi, 2020. 6. Kegl, T.; Torres Jiménez, E.; Kegl, B.; Kovaˇc Kralj, A.; Kegl, M. Modeling and optimization of anaerobic digestion technology: Current status and future outlook. _Prog._ _Energy Combust._ _Sci._ 2025, _106_, 101199. [[CrossRef]](https://doi.org/10.1016/j.pecs.2024.101199) 7. Mihi, M.; Ouhammou, B.; Aggour, M.; Daouchi, B.; Naaim, S.; El Mers, E.M.; Kousksou, T. Modeling and forecasting biogas production from anaerobic digestion process for sustainable resource energy recovery. _Heliyon_ 2024, _10_, e38472. [[CrossRef]](https://doi.org/10.1016/j.heliyon.2024.e38472) 8. Myszograj, S.; Stadnik, A.; Płuciennik-Koropczuk, E. The Influence of Trace Elements on Anaerobic Digestion Process. _Civ._ _Environ._ _Eng._ _Rep._ 2018, _28_, 105–115. [[CrossRef]](https://doi.org/10.2478/ceer-2018-0054) 9. Choong, Y.Y.; Norli, I.; Abdullah, A.Z.; Yhaya, M.F. Impacts of trace element supplementation on the performance of anaerobic digestion process: A critical review. _Bioresour._ _Technol._ 2016, _209_, 369–379. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.biortech.2016.03.028) 10. Paritosh, K.; Yadav, M.; Chawade, A.; Sahoo, D.; Kesharwani, N.; Pareek, N.; Vivekanand, V. Additives as a support structure for specific biochemical activity boosts in anaerobic digestion: A review. _Front._ _Energy Res._ 2020, _8_, 88. [[CrossRef]](https://doi.org/10.3389/fenrg.2020.00088) 11. Romero-Güiza, M.S.; Vila, J.; Mata-Alvarez, J.; Chimenos, J.M.; Astals, S. The role of additives on anaerobic digestion: A review. _Renew._ _Sustain._ _Energy Rev._ 2016, _5_, 1486–1499. [[CrossRef]](https://doi.org/10.1016/j.rser.2015.12.094) 12. Thanh, P.M.; Ketheesan, B.; Yan, Z.; Stuckey, D. Trace metal speciation and bioavailability in anaerobic digestion: A review. _Biotechnol._ _Adv._ 2016, _34_, 122–136. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.biotechadv.2015.12.006) _Bioengineering_ 2025, _12_, 117 21 of 22 13. Glass, J.B.; Orphan, V.J. Trace metal requirements for microbial enzymes involved in the production and consumption of methane and nitrous oxide. _Front._ _Microbiol._ 2021, _3_, 61. [[CrossRef] [PubMed]](https://doi.org/10.3389/fmicb.2012.00061) 14. Xing, B.S.; Su, Y.M.; Fu, Y.L.; Wu, Y.F.; Yan, C.H.; Wang, X.C.; Li, Y.Y.; Chen, R. Comparison of the short- and long-term effects of zinc ions on the anaerobic mesophilic co-digestion of food waste and waste activated sludge: Digester performance, antibiotic resistance gene reduction and the microbial community. _J. Hazard._ _Mater._ 2024, _480_, 136119. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.jhazmat.2024.136119) 15. Frunzo, L.; Fermoso, F.G.; Luongo, V.; Mattei, M.R.; Esposito, G. ADM1-based mechanistic model for the role of trace elements in anaerobic digestion processes. _J. Environ._ _Manag._ 2019, _241_, 587–602. [[CrossRef]](https://doi.org/10.1016/j.jenvman.2018.11.058) 16. Zhang, H.; Tian, Y.; Wang, L.; Mi, X.; Chai, Y. Effect of ferrous chloride on biogas production and enzymatic activities during anaerobic fermentation of cow dung and Phragmites straw. _Biodegradation_ 2016, _27_, 69–82. [[CrossRef] [PubMed]](https://doi.org/10.1007/s10532-016-9756-7) 17. Westerholm, M.; Müller, B.; Isaksson, S.; Schnürer, A. Trace element and temperature effects on microbial communities and links to biogas digester performance at high ammonia levels. _Biotechnol._ _Biofuels_ 2015, _8_, 154. [[CrossRef]](https://doi.org/10.1186/s13068-015-0328-6) 18. Chen, Y.; Cheng, J.J.; Creamer, K.S. Inhibition of anaerobic digestion process: A review. _Bioresour._ _Technol._ 2008, _99_, 4044–4064. [[CrossRef]](https://doi.org/10.1016/j.biortech.2007.01.057) 19. Geng, H.; Xu, Y.; Dai, X.; Yang, D. Abiotic and biotic roles of metals in the anaerobic digestion of sewage sludge: A review. _Sci._ _Total Environ._ 2024, _912_, 169313. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.scitotenv.2023.169313) 20. Abdel-Shafy, H.I.; Mansour, M.S.M. Biogas production as affected by heavy metals in the anaerobic digestion of sludge. _Egypt._ _J._ _Pet._ 2014, _23_, 409–417. [[CrossRef]](https://doi.org/10.1016/j.ejpe.2014.09.009) 21. Jha, P.; Schmidt, S. Reappraisal of chemical interference in anaerobic digestion processes. _Renewable and Sustainable Energy Reviews_ 2017, _75_, 954–971. [[CrossRef]](https://doi.org/10.1016/j.rser.2016.11.076) 22. Wang, X.; Gong, Y.; Sun, C.; Wang, Z.; Sun, Y.; Yu, Q.; Zhang, Y. New insights into inhibition of high Fe(III) content on anaerobic digestion of waste-activated sludge. _Sci._ _Total Environ._ 2024, _916_, 170147. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.scitotenv.2024.170147) 23. Angelidaki, I.; Ellegaard, L.; Ahring, B.K. A comprehensive model of anaerobic bioconversion of complex substrates to biogas. _Biotechnol._ _Bioeng._ 1999, _63_, 363–372. [[CrossRef]](https://doi.org/10.1002/%0x28SICI%0x291097-0290%0x2819990505%0x2963:3%3C363::AID-BIT13%3E3.0.CO;2-Z) 24. Batstone, D.J.; Amerlinck, Y.; Ekam, G.; Goel, R.; Grau, P.; Johnson, B.; Kaya, I.; Steyer, J.P.; Tait, S.; Takács, I.; et al. Towards a generalized physicochemical framework. _Water Sci._ _Technol._ 2012, _66_, 1147–1161. [[CrossRef]](https://doi.org/10.2166/wst.2012.300) 25. Cai, Y.; Janke, L.; Meng, X.; Zheng, Z.; Zhao, X.; Pröter, J.; Schäfer, F. The absolute concentration and bioavailability of trace elements: Two vital parameters affecting anaerobic digestion performance of chicken manure leachate. _Bioresour._ _Technol._ 2022, _350_, 126909. [[CrossRef]](https://doi.org/10.1016/j.biortech.2022.126909) 26. Flores-Alsina, X.; Solon, K.; Kazadi Mbamba, C.; Tait, S.; Gernaey, K.V.; Jeppsson, U.; Batstone, D.J. Modelling phosphorus (P), sulfur (S) and iron (Fe) interactions for dynamic simulations of anaerobic digestion processes. _Water_ _Res._ 2016, _95_, 370–382. [[CrossRef]](https://doi.org/10.1016/j.watres.2016.03.012) 27. Kegl, T.; Kovaˇc Kralj, A. Multi-objective optimization of anaerobic digestion process using a gradient-based algorithm. _Energy_ _Convers._ _Manag._ 2020, _226_, 113560. [[CrossRef]](https://doi.org/10.1016/j.enconman.2020.113560) 28. Kegl, T.; Kovaˇc Kralj, A. An enhanced anaerobic digestion BioModel calibrated by parameters optimization based on measured biogas plant data. _Fuel_ 2022, _322_, 122984. [[CrossRef]](https://doi.org/10.1016/j.fuel.2021.122984) 29. Kegl, T. Consideration of biological and inorganic additives in upgraded anaerobic digestion BioModel. _Bioresour._ _Technol._ 2022, _355_, 127252. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.biortech.2022.127252) 30. Kegl, T. Anaerobic digestion BioModel upgraded by various inhibition types. _Renew._ _Energy_ 2024, _226_, 20427. [[CrossRef]](https://doi.org/10.1016/j.renene.2024.120427) 31. Kegl, T.; Kegl, B.; Kegl, M. Improvement of biogas production utilizing a complex anaerobic digestion model and gradient-based optimization. _Energies_ 2024, _17_, 1279. [[CrossRef]](https://doi.org/10.3390/en17061279) 32. Maharaj, B.C.; Mattei, M.R.; Frunzo, L.; van Hullebusch, E.D.; Esposito, G. ADM1 based mathematical model of trace element precipitation/dissolution in anaerobic digestion processes. _Bioresour._ _Technol._ 2018, _267_, 666–676. [[CrossRef] [PubMed]](https://doi.org/10.1016/j.biortech.2018.06.099) 33. Maharaj, B.C.; Mattei, M.R.; Frunzo, L.; van Hullenbusch, E.D.; Esposito, G. ADM1 based mathematical model of trace element complexation in anaerobic digestion processes. _Bioresour._ _Technol._ 2019, _276_, 253–259. [[CrossRef]](https://doi.org/10.1016/j.biortech.2018.12.064) 34. Maharaj, B.C.; Mattei, M.R.; Frunzo, L.; van Hullebusch, E.D.; Esposito, G. A general framework to model the fate of trace elements in anaerobic digestion environments. _Sci._ _Rep._ 2021, _11_, 7476. [[CrossRef]](https://doi.org/10.1038/s41598-021-85403-2) 35. Ahmed, W.; Rodríguez, J. Generalized parameter estimation and calibration for biokinetic models using correlation and single variable optimisations: Application to sulfate reduction modelling in anaerobic digestion. _Water_ _Res._ 2017, _122_, 407–418. [[CrossRef]](https://doi.org/10.1016/j.watres.2017.05.067) 36. Keshtkar, A.; Ghaforian, H.; Abolhamd, G.; Meyssami, B. Dynamic simulation of cyclic batch anaerobic digestion of cattle manure. _Bioresour._ _Technol._ 2001, _80_, 9–17. [[CrossRef] [PubMed]](https://doi.org/10.1016/S0960-8524%0x2801%0x2900071-2) 37. Hossain, S.; Karim, T.; Onik, M.H.; Kumar, D.; Rahman, A.; Yousuf, A.; Uddin, M.R. Impact of temperature, inoculum flow pattern, inoculum type, and their ratio on dry anaerobic digestion for biogas production. _Sci._ _Rep._ 2022, _12_, 6162. [[CrossRef]](https://doi.org/10.1038/s41598-022-10025-1) 38. Abdelsalam, E.; Samer, M.; Abdel-Hadi, M.A.; Hassan, H.E.; Badr, Y. The effect of buffalo dung treatment with paunch fluid on biogas production. _Misr J. Agric._ _Eng._ 2015, _32_, 807–826. [[CrossRef]](https://doi.org/10.21608/mjae.2015.98653) _Bioengineering_ 2025, _12_, 117 22 of 22 39. Kegl, M.; Oblak, M.M. Optimization of mechanical systems: On non-linear first-order approximation with an additive convex term. _Commun._ _Numer._ _Methods Eng._ 1997, _13_, 13–20. [[CrossRef]](https://doi.org/10.1002/%0x28SICI%0x291099-0887%0x28199701%0x2913:1%3C13::AID-CNM33%3E3.0.CO;2-E) 40. Kegl, M.; Butinar, B.J.; Kegl, B. An efficient gradient-based optimization algorithm for mechanical systems. _Commun._ _Numer._ _Methods Eng._ 2002, _18_, 363–371. [[CrossRef]](https://doi.org/10.1002/cnm.499) Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

섹션 본문 96문단 · 48,894자

(제목 없음)

1Anaerobic digestion (AD) is a promising and yet a complex waste-to-energy technology.To optimize such a process, precise modeling is essential.Developing complex, mechanistically inspired AD models can result in an overwhelming number of parameters that require calibration.This study presents a novel approach that considers the role of trace metals (Ca, K, Mg, Na, Co, Cr, Cu, Fe, Ni, Pb, and Zn) in the modeling, numerical simulation, and optimization of the AD process in a batch bioreactor.In this context, BioModel is enhanced by incorporating the influence of metal activities on chemical, biochemical, and physicochemical processes.Trace metal-related parameters are also included in the calibration of all model parameters.The model's reliability is rigorously validated by comparing simulation results with experimental data.The study reveals that perturbations of 5% in model parameter values significantly increase the discrepancy between simulated and experimental results up to threefold.Additionally, the study highlights how precise optimization of metal additives can enhance both the quantity and quality of biogas production.The optimal concentrations of trace metals increased biogas and CH 4 production by 5.4% and 13.5%, respectively, while H 2 , H 2 S, and NH 3 decreased by 28.2%, 43.6%, and 42.5%, respectively.

Introduction

2Ever increasing demands for reducing waste and greenhouse gas emissions coupled with increasing renewable energy sources are the driving force for the development of circular waste management technologies such as anaerobic digestion (AD) technology.AD enables reduction of waste entering landfills and has the potential to reduce greenhouse gas (GHG) emissions [1][2][3][4]; the World Biogas Association confirmed in a recent report that AD technology has a potential to reduce GHG emissions in the range between 3290 and 4360 Mt CO 2,eq , which is equivalent to 10-13% of the world's current emissions [4].Furthermore, the production of biogas by AD processes has reached approximately 66 billion m 3 in 2020, which is equivalent to an energy content of 1.52 EJ.Interestingly, the International Renewable Energy Agency (IRENA) forecasted a tenfold increase in biogas pathways, leading to a supply of 15 EJ by 2050 as part of the Transforming Energy Scenario [5].

3The energy, environmental, and financial incentives associated with setting up an AD system necessitates rigorous engineering analysis of the process, where microorganisms in a bioreactor breakdown organic matter (OM) in the absence of oxygen to biogas.The As the experiments related to AD are time-consuming, labor intensive, and expensive, numerical simulations (NSs) provide a cost-effective solution when there is a large number of operating parameters with complex interrelationships.So far, NS, which provides a useful tool for AD process understanding and optimization, has been performed using more or less complex mechanistically inspired mathematical models [6,15,[23][24][25][26][27][28][29][30][31][32][33][34][35].It is clear that with the complexity of AD models, which consider various biochemical, chemical, and physicochemical processes, the number of model parameters increases.Since these parameters are unknown or hard to determine, various efficient procedures for model parameters calibration have been developed in multiple studies [28][29][30]35].However, many researchers calibrate only the most important model parameter, while the estimated values from the literature are typically used for the less important parameters.This simplification neglects the interactions among the less significant model parameters [28][29][30].Some of these model parameters are related to the activities of TMs, which were included to some extent in some complex AD models [15,26,[28][29][30][32][33][34].For example, Frunzo et al. [15] and Flores-Alsina et al. [26] included the interactions of iron with phosphorus and sulfur into the modeling of the AD process in a CSTR bioreactor.For NS of the AD process in a batch bioreactor, Maharaj et al. [32][33][34] upgraded the AD model by including the activities of Ca, Co, Fe, Mg, and Ni in physicochemical processes; all TM-related model parameters were estimated according to the literature.Kegl et al. [28][29][30] upgraded BioModel for NS of AD performance in a CSTR bioreactor by considering TMs activities; all TM-related parameters were calibrated.However, challenges remain in calibrating and validating such complex models due to the lack of reported data on the range of TM concentrations required for optimal microbial activity, particularly in relation to methane production and other key intermediates in the AD process [34].Therefore, there is still a need for adequate modeling of the role and activities of all key TMs during the AD process and adequate calibration of all model parameters, including those related to TMs.To the author's knowledge, no study has yet addressed the importance of accurately calibrating all model parameters.Additionally, there is still a lack of sufficient numerical optimization regarding the optimal concentrations of TMs in the influent feedstock.

4This paper investigates the impact of TMs on AD performance, focusing on the modeling, calibration, validation, and numerical optimization of TM concentrations in lab-scale batch bioreactors, with the aim of improving both the understanding and practical application of TM management in AD processes.To explore the impact of various TMs on the AD process, a self-developed BioModel is enhanced to simulate the dynamics of metal interactions throughout the process.The enhanced BioModel incorporates 187 model parameters, all of which require careful calibration.To assess the precision of this calibration, both low and high perturbations of the parameters are thoroughly investigated and analyzed.The calibrated and validated BioModel, tested under diverse operating conditions across different bioreactors, is then integrated into an optimization procedure using a gradient-based approximation method.The optimization aims to determine the optimal quantities of metals added or removed in the influent feedstock, defined using a range of multi-objective and constraint functions.Finally, the results of the BioModel calibration, validation, and numerical optimization are presented and discussed in detail.

Materials and Methods

5At first, the experimental data of the AD process are presented, followed by a detailed description of the enhanced BioModel.In the following, the paper outlines the procedures employed for BioModel calibration and the optimization process, which aims to fine-tune the quantities of trace metals (TMs) in the feedstock to enhance the AD process, using a sophisticated gradient-based approximation method.

Experimental Data

6The AD processes of cattle and cow manure in three-batch-mode lab-scale bioreactors (B1, B2, B3) were observed.The bioreactor data are given in Table 1.The animal manure is composed of carbohydrates, proteins, lipids, inert matters, inorganic carbon, inorganic nitrogen, inorganic phosphorus, inorganic potassium, inorganic sulfur in the form of sulfide and sulfate, and other elements and compounds [27,[36][37][38].The input data of the feedstock composition for the AD process in bioreactors B1 [27,36], B2 [37], and B3 [38] are given in Table 2.

Parameter Value

7Carbohydrate concentration, c ch g L

Numerical Simulation of the AD Process

8To ensure a reliable and efficient NS of AD performance in a batch-mode AD process, an upgraded BioModel was developed and incorporated into the active set optimization (ASO) procedure.

9Enhanced BioModel.The upgraded BioModel is based on the BioModel presented in [28][29][30], which considers chemical (acid-base reactions), physicochemical (mass transfer from liquid to gas phase and the precipitation), and biochemical (hydrolysis, acidogenesis, acetogenesis, and methanogenesis) processes.In the biochemical reactions, the inhibitory effects of various compounds and TMs on bacteria growth are modeled with non-competitive inhibition.

10The main modifications are related to the modeling of the activities of various TMs from the set I TMs = {Ca, Co, Cu, Cl, Cr, Fe, K, Mg, Na, Ni, Pb, Se, Zn} as these TMs are present in the feeding substrate.The effects of all TMs during the AD process are incorporated into the upgraded BioModel using Equations ( 1)- (8).

11At first, the effects of TMs on the pH value in the bioreactor are determined using Equation (1).The H + concentration derivative, needed for pH determination, can be expressed as follows:

12Here, C h denotes the sum of ionic metals concentrations obtained from the following charge balance equation:

13The role of TMs in precipitation is included into the modeling of liquid-solid precipitation rates and the concentrations of precipitates from the set I prec = {CaCO 3 , CoCO 3 , CuCO 3, FeCO 3 , MgCO 3 , NiCO 3 , PbCO 3 , ZnCO 3 , FeS, CoS, CuS, NiS, PbS, ZnS, Ca 3 (PO 4 ) 2 , Co 3 (PO 4 ) 2 , Fe 3 (PO 4 ) 2 , Ni 3 (PO 4 ) 2 , MgNH 4 PO 4 , KMgPO 4 }.The precipitation rates of sulfides

14and ionic forms of TMs ρ l−s,i g L −1 day −1 , i ∈ I TMs are determined as follows:

15, i ∈ {Ca, Co, Cu, Fe, K, Mg, Ni, Pb, Zn} (5) where the symbols k cryst day −1 and K sp g L −1 are the crystallization rate and solubility product constants of precipitates from the set I prec , respectively, while the symbol c k g L −1 denotes the concentration of the corresponding k th compound in ionic form (sulfide, carbonate, phosphate, and TMs).

16The precipitation rates of sulfides in Equation ( 2) are obtained from precipitation/dissolution reactions (TMs) 2+ (l) + S 2− (l) ↔ (TMs)S (s) , where the TMs are Co, Cu, Fe, Ni, Pb, and Zn.The precipitation/dissolution reactions (TMs) 2+ (l) + CO 2− 3 (l) ↔ (TMs)CO 3 (s) , where the TMs are Ca, Co, Cu, Fe, Mg, Ni, Pb, and Zn, are the basis for precipitation rates of carbonates in Equation (3).Furthermore, Equation ( 4) is obtained from the reaction 3 (TMs) 2+ (l) + 2PO 3− 4 (l) ↔ (TMs) 3 (PO 4 ) 2 (s) , where the TMs are Ca, Co, Fe, and Ni, and from the reactions Mg 2+ (l) + NH + 4 (l) +PO 3− 4 (l) ↔ MgNH 4 PO 4 (s) and K + (l) + Mg 2+ (l) +PO 3− 4 (l) ↔ KMgPO 4 (s) .All these precipitation/dissolution reactions are used to formulate Equation (5), where the precipitation rates of ionic forms of TMs are determined.All already mentioned precipitation/dissolution reactions represent the basis for the determination of the concentrations of precipitates.

17The concentrations of the precipitates, formed with ionic forms of appropriate TMs during the batch AD process, are computed as follows:

18The upgraded BioModel, which comprises 80 ordinary differential equations (ODEs) and 54 algebraic equations (AEs), contains 187 model parameters, which are unknown or hard to determine.These model parameters, x m,i , i = 1 . . .N m (N m = 187), which have to be calibrated, can be summarized as follows:

•

19Initial influent concentrations of 13 types of bacteria in the feeding substrate, X j g L −1 , j ∈ I bac and concentrations of three types of enzymes in the feeding substrate for degrading carbohydrates, proteins, and lipids, c E0,i g L −1 , i ∈ I enz ;

20• Thirteen maximal microbial grow rates at optimal temperature, µ j,max,T opt day −1 , j∈ I bac ;

2113 microbial decays as a percentage of maximal microbial growth rates b j,dec (/), j∈ I bac ; 26 parameters (pK lo j (/), pK up j (/), j ∈ I bac ) which are included in the pH function f pH,j describing the pH effects on the growth rate using the Michaelis pH function; 13 parameters α j °C−1 day −1 , j ∈ I bac ; 13 optimal temperatures T j,opt (°C); and 13 maximal temperatures T j,max (°C), j ∈ I bac for the growth rate of j th microbial type;

22• Hydrolysis rate constants k hyd,i day −1 , i∈ I hyd and three Michaelis-Menten halfsaturation constants K ME0,i g L −1 , i∈ I hyd ;

23and inorganic phosphorus (K M,P io ) related to all microbial growth rates;

24• Ten parameters of mass transfer rates from liquid to gas phase (K L a) j,a °C−1 day −1 and (K L a) j,b day −1 , j ∈ I gas ; The values of the 20 precipitation rate constants and 10 inhibition constants, which are directly connected to the modeling of TM activities during the AD process, as well as the other 157 model parameters, are determined using a self-developed calibration procedure.

25Sensitivity analysis.The sensitivity analysis was performed to determine the socalled importance factor f IM,i of each i th model parameter from the set of all N m parameters.For this reason, random values of 5•N m AD model designs were generated (each design is a complete set of all N m model parameters).The importance of model parameters is determined by their effects on the CH 4 flow rate.

26Calibration procedure.In order to calibrate the N m model parameters, the ASO procedure was used [28][29][30].The ASO procedure incorporates the upgraded BioModel and the sensitivity analysis with a gradient-based optimization algorithm.The initial values of all model parameters (which are linearly mapped to design variables) were taken as recommended from the available literature.At the beginning of the first stage, some initial and a relatively high activation threshold value f T was chosen to determine a relatively low number of active design parameters.Within each stage, the active design variables x * m,i , for which it holds that the importance factor is greater than the threshold f IM,i ≥ f T , are determined, while all other design variables are designated as passive in the current stage.The values of active design parameters are optimized while keeping the passive ones constant at their recommended values.After that, a new stage with a lower value of threshold f T is started until all design variables are active and calibrated using the optimization procedure.

BioModel parameter calibration.

27A unified optimization procedure was used to calibrate the model parameters x mp,i , i = 1 . . .N m .The design variables x m,i are defined as normalized model parameters by the relation x m,i =

28, where x LO mp,i and x UP mp,i are the corresponding lower and upper limits of the i th model parameter x mp,i to be optimized, respectively.The design variables x m,i , the objective function g 0 , as well as the constraint g i are defined in various ways, as follows.

29The objective function g 0,cal is defined as an integral of daily deviations between the simulated and measured CH 4 flow rates, as shown in Equation ( 9).These deviations should be minimized.Furthermore, the constraints, which are defined in the standard form g i,cal ≤ 0, are related to the maximal bacteria concentration by limiting the concentration to below the maximal value of x max bac , as shown in Equation ( 10), and to various AD performances by limiting the lower [Equation (11)] and upper [Equation (12)] values of CH 4 flow rates, by limiting the minimal value of the produced CH 4 [Equation ( 13)], and by prescribing the maximal allowed fractions of the produced H 2 , H 2 S, andNH 3 in biogas [Equations ( 14)-( 16)].These functions are as described as follows:

30where ψ 0,cal , ψ 4,cal , ψ 5,cal , ψ 6,cal , and ψ 7,cal are normalization constants; t total is the AD process duration; and the symbols Q CH 4 (t) L day −1 , Q CH 4 ,exp (t) L day −1 , and Q CH 4,exp L day −1 denote time-dependent simulated values, time-dependent measured values, and the average values of the measured CH 4 flow rates, respectively.The symbol X j g L −1 denotes the concentration of j th bacteria type from the set I bac , while X max bac g L −1 denotes the maximal allowed initial concentration of all bacteria.The symbols V CH 4 (L) and V CH 4 ,exp (L) are the simulated and measured volumes of the produced CH 4 , while V H 2 , V H 2 S , V NH 3 , and V biogas represent the simulated volumes of hydrogen, hydrogen sulfide, ammonia, and biogas, respectively.Finally, the symbol φ CH 4 denotes the prescribed fraction of CH 4 , while the symbols φ H 2 max , φ H 2 S,max , and φ NH 3 ,max are the prescribed maximal allowed fractions of hydrogen, hydrogen sulfide, and ammonia, respectively, in the produced biogas.The inverse tangent function in Equations ( 11) and ( 12) was employed as a smooth substitute for the conventional step function.This choice is essential to maintain the differentiability of the involved functions, a requirement for using a gradient-based optimizer.Statistical evaluation methodology.For the evaluation of the proposed upgraded BioModel, the measured AD performance is compared with NS using four statistical indicators (SIs): (i) mean absolute error ε MAE , (ii) root mean square error ε RMSE , (iii) coefficient of determination R 2 , and (iv) the relative index of agreement I A,rel [29].

Optimization of the AD Process

31The design variables x p,i were related to some process parameters x pp,i , i = 1 . . .N p , and more precisely to the concentrations of TMs (Ca, Co, Cr, Cu, Fe, K, Mg, Na, Ni, Pb, Zn) in the feeding substrate.

32Thus, there are a total of 11 design variables x p,i , i = 1 . . .N p , N p = 11 that are defined as normalized process parameters based on the relation x p,i =

33, where x LO pp,i and x UP pp,i are the corresponding lower and upper limits of the i th process parameter x pp,i , i = 1 . . .N p to be optimized, respectively.

34Three different optimization tasks were formulated using various definitions of objective g 0 and constraint g i functions; these optimization tasks are labeled as Cases A, B, and C. In Case A, a single objective function is defined, while in Cases B and C the multi-objective optimization problems are defined by combining multiple objectives into a single-objective function.This is achieved by summing individual objective functions, multiplied by adequate weighting factors.

35In Case A, the produced biogas volume is maximized in the shortest production time possible, as noted in Equation (17).This is achieved using the time-integrated biogas volume, where maximizing the objective function will increase both the total biogas volume and the biogas production rate.In Case B, the produced biogas volume is maximized in the shortest production time possible, and the H 2 S production is minimized, as shown in Equation (18).The objective function, defined by Equation (19), promotes maximal CH 4 volume in the shortest production time possible and minimal H 2 S production.The imposed constraints in Case A are related only to the upper and lower values of the design variables x p,i , i = 1 . . .N p .In addition to these, the constraint in Case B is related to the maximal allowed H 2 S fraction in biogas, as shown in Equation (20); in Case C, the constraints are related to the maximal allowed fractions of H 2 S, H 2 , and NH 3 in the produced biogas, as shown in Equations ( 20)- (22).These objective and constraint functions are provided below:

36where ψ 0 , ψ 01 , ψ 02 , ψ

Solution Procedure

37The proposed BioModel, the ASO procedure, and the whole optimization procedure were coded in-house in C# language.To solve the system of ODEs, the Runge-Kutta and Euler methods are used.The engaged gradient-based optimization algorithm is based on an approximation method [39,40] that sequentially generates approximate strictly convex and separable nonlinear programming problems and solves them to generate a sequence of converging approximate solutions.The algorithm uses the history of design derivatives of the objective and constraint functions to gradually improve the quality of the approximation.Consequently, the convergence is often relatively fast and stable.Since the analytical derivatives cannot be obtained easily and any derived formulas would be valid only for a particular AD model form, the numerical differentiation using simple forward differences was used in this work to get the needed design derivatives.

38All numerical simulations were performed using a desktop computer with Inter i7 3.2 GHz CPU with 8 cores.The CPU time for one simulation of the AD process was approximately 1 s.The CPU time for one full optimization cycle of BioModel parameter calibration, where design derivatives computation was parallelized, is up to 1 min, while 4 s are needed for one optimization cycle of the AD process.

Results and Discussion

39At first, the results of sensitivity analysis, which were used in BioModel calibration, are presented.Then the AD performance results, obtained by NS using the upgraded BioModel, are compared with experimentally obtained data in the cases of BioModel calibration (bioreactor B1) and BioModel validation (bioreactors B2 and B3) and with various perturbations of calibrated model parameters.Finally, the results of AD model optimization are presented and discussed.

Sensitivity Analysis

40The sensitivity analysis was performed for the AD process in bioreactor B1.The obtained importance factors for 187 BioModel parameters, obtained from sensitivity analysis, are presented in Figure 1.

41According to Figure 1, the first ten most important BioModel parameters are the maximal growth rate of methanogenic acetate degraders at optimal temperature µ Mac,max,T opt , lower pH drop-off value for methanogenic acetate degraders pK LO Mac , inhibition constant for H 2 S by methanogenic acetate degraders K inh,H 2 S,Mac , initial concentration of methanogenic acetate degraders X Mac,in , maximal growth rate of acidogenic amino acid degraders at optimal temperature µ Aaa,max,T opt , inhibition constant for Zn by methanogenic acetate degraders K inh,Zn,Mac , Monod constant related to acetate and methanogenic acetate degraders k M,acMac , Monod constant related to sulfates and sulfate-reducing bacteria k M,Sio,atSac , maximal growth rate of sulfate-reducing bacteria of acetate at optimal temperature µ Sac,max,T opt , and maximal growth rate of acidogenic sugar degraders at optimal temperature µ Asu,max,T opt .

42bration (bioreactor B1) and BioModel validation (bioreactors B2 and B3) and with various perturbations of calibrated model parameters.Finally, the results of AD model optimization are presented and discussed.

43The sensitivity analysis was performed for the AD process in bioreactor B1.The obtained importance factors for 187 BioModel parameters, obtained from sensitivity analysis, are presented in Figure 1.According to Figure 1, the first ten most important BioModel parameters are the maximal growth rate of methanogenic acetate degraders at optimal temperature , , , lower pH drop-off value for methanogenic acetate degraders pK , inhibition constant for H S by methanogenic acetate degraders , , , initial concentration of methanogenic acetate degraders , , maximal growth rate of acidogenic amino acid degraders at optimal temperature , , , inhibition constant for Zn by methanogenic acetate degraders , , , Monod constant related to acetate and methanogenic acetate degraders , , Monod constant related to sulfates and sulfate-reducing bacteria

BioModel Calibration

44The calibration of BioModel parameters was performed for the AD process in bioreactor B1.At the beginning, the mean value of interval x LO mp,i , x UP mp,i is set as the initial value (initial design) of i th model parameter.The lower, upper, and calibrated values of all 187 BioModel parameters are shown in Table A1 in Appendix A.

45For the selection of active design variables, the threshold values of f T were sequentially chosen as 0.2 (Set 1), 0.1 (Set 2), 0.001 (Set 3), and 0 (Set 4, optimal design).For each set, the total number N x m,i * of the corresponding active design variables x * m,i , number of iterations N iter during the calibration, and the value of objective function g 0 are collected in Table 3.The optimized values of active design variables x * m,i , obtained by considering Set 1, were used as initial values of these variables for the optimization of the next set.The value of the objective function was gradually minimized from the initial design (ID cal ) value of 3.1060 to the optimal design (OD cal , Set 4) value of 0.01185.The results of BioModel calibration by the ASO procedure are presented in Figure 2. It can be seen that the differences between measured and simulated CH 4 flow rates in the initial design are extremely high.Furthermore, the simulated values are becoming closer to experimental data as the number of active parameters increases.This is confirmed also by the average difference between simulated and measured CH 4 flow rates (average absolute daily difference divided by average measurement value).The average difference of CH 4 flow rates is reduced during calibration from 95.5% (initial values of model parameters; ID cal ), through 40.9% (Set 1), 23.6% (Set 2), and 16.8% (Set 3) to 12.0% (final calibrated values of model parameters; OD cal ).It is clearly evident that the simulated CH 4 flow rates, obtained under the optimal design with all calibrated BioModel parameters, agree very well with the measured values throughout the whole time period of the AD process.

46ters; IDcal), through 40.9% (Set 1), 23.6% (Set 2), and 16.8% (Set 3) to 12.0% (final calibrated values of model parameters; ODcal).It is clearly evident that the simulated CH flow rates, obtained under the optimal design with all calibrated BioModel parameters, agree very well with the measured values throughout the whole time period of the AD process.The upgraded BioModel enables predictions of the concentration of TEs during the AD process.As an example, the concentrations of various Fe and Mg species at OD cal are presented in Figure 3.The upgraded BioModel enables predictions of the concentration of TEs during the AD process.As an example, the concentrations of various Fe and Mg species at ODcal are presented in Figure 3.The calibrated values of BioModel parameters are confirmed also by error, , and as well as efficiency, and , , SIs, as shown in Table 4.For bioreactor B1 (Bio-Model calibration), the calculated values of SIs are related to methane flow rate .During calibration process using the ASO procedure, from the IDcal to the ODcal design, the values of and decrease by approximately eightfold and sixteenfold, respectively.On the other hand, the values of and , increase by approximately fourfold and twofold, respectively.The obtained values of all error and efficiency SIs for ODcal design are acceptable.

BioModel Validation

47The validation of BioModel parameters, which were calibrated with respect to the experimental data of the AD process in bioreactor B1, is performed for the AD processes in bioreactors B2 and B3.For these two cases, the numerically obtained biogas flow rates are compared with measured data, as shown in Figure 4.The average differences in biogas flow rates are 11.5% (bioreactor B2) and 11.2% (bioreactor B3).In both cases, the biogas The calibrated values of BioModel parameters are confirmed also by error, ε MAE , and ε RMSE as well as efficiency, R 2 and I A,rel , SIs, as shown in Table 4.For bioreactor B1 (BioModel calibration), the calculated values of SIs are related to methane flow rate Q CH 4 .During calibration process using the ASO procedure, from the ID cal to the OD cal design, the values of ε MAE and ε RMSE decrease by approximately eightfold and sixteenfold, respectively.On the other hand, the values of R 2 and I A,rel increase by approximately fourfold and twofold, respectively.The obtained values of all error and efficiency SIs for OD cal design are acceptable.

48The validation of BioModel parameters, which were calibrated with respect to the experimental data of the AD process in bioreactor B1, is performed for the AD processes in bioreactors B2 and B3.For these two cases, the numerically obtained biogas flow rates are compared with measured data, as shown in Figure 4.The average differences in biogas flow rates are 11.5% (bioreactor B2) and 11.2% (bioreactor B3).In both cases, the biogas flow rate obtained using NS agree very well with the experimentally obtained one.This good agreement of AD performance confirms also the efficiency of the ASO procedure for calibration.Furthermore, with respect to the measured and simulated biogas flow rates in bioreactors B2 and B3 (BioModel validation), various SIs were calculated, as shown in Table 5.All obtained values of the error SIs are acceptable.

Importance of Accurate Calibration of BioModel Parameters

49In order to test the importance of the accuracy of calibration of all model parameters, an extra study was performed to include various perturbations of the calibrated values; the observed bioreactors are B2 and B3.For this purpose, the impact of random perturbations of all BioModel parameters on the AD performance was investigated.In the case of small perturbations, the values of model parameters were randomly generated based on a ± 1% perturbation of their calibrated values (ODcal ± 1%).In the case of high perturbation, the values of model parameters were randomly generated based on a ± 5% perturbation of their calibrated values (ODcal ± 5%).The comparison of the simulated AD performances with the measured data are shown in Figure 5.The values of average differences in biogas flow rates in the case of validation in bioreactor B2 increases by increasing the perturbation of calibrated values of model parameters from 11.5% (ODcal) and 12.0% (ODcal ± 1%) to 29.1% (ODcal ± 5%).In the case of validation in bioreactor B3, the obtained average difference of the biogas flow rate increases from 11.2% (ODcal) and 14.6% (ODcal ± 1%) to 34.5% (ODcal ± 5%).It is evident that using 5% random perturbation of calibrated values of model parameters, the discrepancy between simulated and experimental AD performance can increase up to threefold with respect to those obtained with ODcal.Furthermore, with respect to the measured and simulated biogas flow rates in bioreactors B2 and B3 (BioModel validation), various SIs were calculated, as shown in Table 5.All obtained values of the error SIs are acceptable.

50In order to test the importance of the accuracy of calibration of all model parameters, an extra study was performed to include various perturbations of the calibrated values; the observed bioreactors are B2 and B3.For this purpose, the impact of random perturbations of all BioModel parameters on the AD performance was investigated.In the case of small perturbations, the values of model parameters were randomly generated based on a ±1% perturbation of their calibrated values (OD cal ± 1%).In the case of high perturbation, the values of model parameters were randomly generated based on a ± 5% perturbation of their calibrated values (OD cal ± 5%).The comparison of the simulated AD performances with the measured data are shown in Figure 5.The values of average differences in biogas flow rates in the case of validation in bioreactor B2 increases by increasing the perturbation of calibrated values of model parameters from 11.5% (OD cal ) and 12.0% (OD cal ± 1%) to 29.1% (OD cal ± 5%).In the case of validation in bioreactor B3, the obtained average difference of the biogas flow rate increases from 11.2% (OD cal ) and 14.6% (OD cal ± 1%) to 34.5% (OD cal ± 5%).It is evident that using 5% random perturbation of calibrated values of model parameters, the discrepancy between simulated and experimental AD performance can increase up to threefold with respect to those obtained with OD cal .and increase, while the values of and , decrease.The results in Figure 5 and Table 6 show that accurate calibration of all model parameters is very important.

Optimized AD Process

51In order to improve AD performance, the concentrations of all considered light TMs (Ca, K, Mg, and Na) and heavy TMs (Co, Cr, Cu, Fe, Ni, Pb, and Zn) are optimized.The prescribed allowed lower and upper values of TMs concentrations, actual initial TMs concentrations in the feeding substrate of bioreactor B1, as well as the optimal values of TMs in optimization Cases A, B, and C are given in Table 7.The lower values are prescribed as 10% of the initial concentration in the feeding substrate; these TM concentration values can be achieved by removing 90% of TMs from the feeding substrate.The upper values of TM concentrations can be achieved by adding TMs to the feeding substrate.As it is evident from Table 7, only the initial value of Na concentration remains the same in all optimization cases.This result is not surprising because the Na concentration in the feeding substrate in the initial design is already in the optimal range for the growth of mesophilic hydrogenotrophic methanogens and the associated methane production [19].The comparison of biogas flow rates in Figure 5 clearly shows that the disagreement increases by increasing the perturbation of model parameters.A similar conclusion can be made also by comparing the SIs, as shown in Table 6.Increasing perturbations of the calibrated values of model parameters results in progressively degraded accuracy of simulated performances.The values of ε MAE and ε RMSE increase, while the values of R 2 and I A,rel decrease.The results in Figure 5 and Table 6 show that accurate calibration of all model parameters is very important.

52In order to improve AD performance, the concentrations of all considered light TMs (Ca, K, Mg, and Na) and heavy TMs (Co, Cr, Cu, Fe, Ni, Pb, and Zn) are optimized.The prescribed allowed lower and upper values of TMs concentrations, actual initial TMs concentrations in the feeding substrate of bioreactor B1, as well as the optimal values of TMs in optimization Cases A, B, and C are given in Table 7.The lower values are prescribed as 10% of the initial concentration in the feeding substrate; these TM concentration values can be achieved by removing 90% of TMs from the feeding substrate.The upper values of TM concentrations can be achieved by adding TMs to the feeding substrate.As it is evident from Table 7, only the initial value of Na concentration remains the same in all optimization cases.This result is not surprising because the Na concentration in the feeding substrate in the initial design is already in the optimal range for the growth of mesophilic hydrogenotrophic methanogens and the associated methane production [19].Some results of AD process optimization are shown in Figures 6-9.The optimized amounts of added/removed TMs in the optimization Cases A, B, and C with respect to the initial TM concentrations in the feeding substrate are shown in Figure 6.It is evident that in all cases, the heavy metals Cr, Ni, Pb, Cu, and Zn have to be removed from the feeding substrate before starting the AD process, while Fe and Co should be added.The light TMs should be added or removed independently of the optimization case.All light TMs should be added in all cases, with the exceptions of removing Ca in Case B as well as Mg and K in Case C.

53Using these optimized concentrations of TMs in the feeding substrate, the quality and quantity of the produced biogas are improved in all cases, as shown in Figure 7.The obtained results show that the highest biogas production is reached in Case A, where the objective of optimization is related only to the maximization of biogas volume.As expected, by including other requirements in the objective and constraint functions (Cases B and C), the improvement in biogas production becomes smaller.By comparing the obtained optimal designs with the initial design in Figure 8, the biogas production increases by 22.6%, 17.3%, and 5.4% in Cases A, B, and C, respectively.The CH 4 production with respect to the initial design increases by 29.4%, 23.6%, and 13.2% in Cases A, B, and C, respectively.

54By analyzing the results presented in Figure 7, it can be concluded that the biogas quality increases from Case A through Case B to Case C. For example, the produced biogas in Case C contains 7.4% more CH 4 , 31.9% less H 2 , 46.5% less H 2 S, and 45.4% less NH 3 with respect to the initial design, as shown in Figure 8.The highest content of CH 4 in Case C is a consequence of lower concentrations of Ca, Mg, and K in the feeding substrate.Namely, the obtained optimal Ca 2+ , Mg 2+ , and K + concentrations are important for dehydrogenase activity, cell viability, and maintenance of the morphology of microbes.Higher K + concentrations could lead to the displacement of exchangeable metal ions from exchangeable sites and consequently to the loss of micronutrients important for methanogens activity, or to cell dehydration, leading to the inhibition of methanogen activity [19].Since the methanogens are less tolerant to high Mg 2+ and Ca 2+ concentrations, the maximization of CH 4 production in Case C results in the lowest optimized Mg 2+ concentration.

55Some results of AD process optimization are shown in Figures 6-9.The optimized amounts of added/removed TMs in the optimization Cases A, B, and C with respect to the initial TM concentrations in the feeding substrate are shown in Figure 6.It is evident that in all cases, the heavy metals Cr, Ni, Pb, Cu, and Zn have to be removed from the feeding substrate before starting the AD process, while Fe and Co should be added.The light TMs should be added or removed independently of the optimization case.All light TMs should be added in all cases, with the exceptions of removing Ca in Case B as well as Mg and K in Case C. Using these optimized concentrations of TMs in the feeding substrate, the quality and quantity of the produced biogas are improved in all cases, as shown in Figure 7.The obtained results show that the highest biogas production is reached in Case A, where the objective of optimization is related only to the maximization of biogas volume.As expected, by including other requirements in the objective and constraint functions (Cases B and C), the improvement in biogas production becomes smaller.By comparing the obtained optimal designs with the initial design in Figure 8, the biogas production increases by 22.6%, 17.3%, and 5.4% in Cases A, B, and C, respectively.The CH4 production with respect to the initial design increases by 29.4%, 23.6%, and 13.2% in Cases A, B, and C, respectively.By analyzing the results presented in Figure 7, it can be concluded that the biogas quality increases from Case A through Case B to Case C. For example, the produced biogas in Case C contains 7.4% more CH4, 31.9% less H2, 46.5% less H2S, and 45.4% less NH3 with respect to the initial design, as shown in Figure 8.The highest content of CH4 in Case C is a consequence of lower concentrations of Ca, Mg, and K in the feeding substrate.

56Namely, the obtained optimal Ca 2+ , Mg 2+ , and K + concentrations are important for dehy- An analysis of the obtained results of the AD process optimization shows the following findings: (i) the amount of H2S in biogas depends not only on the availability of Fe 2+ ions but also on the formation of FeS at the initial stage of the AD process; (ii) the necessary reductions in metal concentrations in the feeding substrate, obtained during AD process optimization, require appropriate pretreatments of the feeding substrate, including adsorption of various light and heavy metals by various adsorbents (biochar, active carbon, nanomaterials, etc.) or by the addition of various substrates with lower content of metals; (iii) by maximizing the production of CH4 and minimizing the content of H2S simultaneously and by introducing the limits on the content of H2, H2S, and NH3 by the constraint functions (Case C), the optimal concentrations of TMs increased biogas and CH4 production by 5.4% and 13.5%, respectively, while H2, H2S, and NH3 decreased by 28.2%, 43.6%, and 42.5%, respectively.Furthermore, the content of CH4 increases by 7.4%, while H2, H2S, and NH3 decreases by 31.9%,46.5%, and 45.4%, respectively.An analysis of the obtained results of the AD process optimization shows the following findings: (i) the amount of H2S in biogas depends not only on the availability of Fe 2+ ions but also on the formation of FeS at the initial stage of the AD process; (ii) the necessary reductions in metal concentrations in the feeding substrate, obtained during AD process optimization, require appropriate pretreatments of the feeding substrate, including adsorption of various light and heavy metals by various adsorbents (biochar, active carbon, nanomaterials, etc.) or by the addition of various substrates with lower content of metals; (iii) by maximizing the production of CH4 and minimizing the content of H2S simultaneously and by introducing the limits on the content of H2, H2S, and NH3 by the constraint functions (Case C), the optimal concentrations of TMs increased biogas and CH4 production by 5.4% and 13.5%, respectively, while H2, H2S, and NH3 decreased by 28.2%, 43.6%, and 42.5%, respectively.Furthermore, the content of CH4 increases by 7.4%, while H2, H2S, and NH3 decreases by 31.9%,46.5%, and 45.4%, respectively.The main impact for the reduction of the content of H 2 S in biogas is due to the added amount of Fe 2+ in the feeding substrate.The Fe 2+ ions form various precipitates, such as carbonates, sulfates, and phosphates.The concentrations of various iron species during the AD process are presented in Figure 9.It is clearly evident that the formation of iron precipitates (sulfide, carbonate, and phosphate) is the fastest in the initial stage of the AD process in Case C (at optimal design) and that the amounts of FeS formed during the AD process at optimal designs in Cases A, B, and C are significantly larger than those obtained with the initial designs.Consequently, the content of H 2 S in the produced biogas is the smallest in Case C; the reduction of H 2 S with respect to initial design is 46.5%, followed by 42.5% in Case B and 38.6% in Case A, as shown in Figure 8.

57An analysis of the obtained results of the AD process optimization shows the following findings: (i) the amount of H 2 S in biogas depends not only on the availability of Fe 2+ ions but also on the formation of FeS at the initial stage of the AD process; (ii) the necessary reductions in metal concentrations in the feeding substrate, obtained during AD process optimization, require appropriate pretreatments of the feeding substrate, includ-ing adsorption of various light and heavy metals by various adsorbents (biochar, active carbon, nanomaterials, etc.) or by the addition of various substrates with lower content of metals; (iii) by maximizing the production of CH 4 and minimizing the content of H 2 S simultaneously and by introducing the limits on the content of H 2 , H 2 S, and NH 3 by the constraint functions (Case C), the optimal concentrations of TMs increased biogas and CH 4 production by 5.4% and 13.5%, respectively, while H 2 , H 2 S, and NH 3 decreased by 28.2%, 43.6%, and 42.5%, respectively.Furthermore, the content of CH 4 increases by 7.4%, while H 2 , H 2 S, and NH 3 decreases by 31.9%,46.5%, and 45.4%, respectively.

Conclusions

58This study deals with the modeling, calibration, validation, and numerical optimization of the AD process with special attention given to the role of TMs in batch anaerobic digestion.For this reason, a mechanistically inspired BioModel was enhanced by modeling TM activities in biochemical, chemical, and physicochemical processes; all 187 model parameters, including TM-related parameters, were calibrated by considering their interactions.The average differences in the observed AD performance in bioreactors B1, B2, and B3 are 11.6% ± 0.4% (calibrated model parameters, OD cal ).A relatively small increase in average differences in biogas flow rate in bioreactors B2 and B3 is obtained at low perturbation of calibrated parameters.Meanwhile, at high perturbation (OD cal ± 5%), the average differences increase up to 34.5%; a random ±5% perturbation of calibrated values of model parameters results in rather inaccurate predictions of AD performance.Finally, by optimizing TM concentrations in the feeding substrate, the quantity and quality of the produced biogas can be improved essentially; the biogas and CH 4 production increased by 5.4% and 13.5%, respectively, while H 2 , H 2 S, and NH 3 decreased by 28.2%, 43.6%, and 42.5%, respectively.In the future, further research focusing on the effects of multiple metals in bioreactors on the AD process as well as on the specific thresholds of the stimulatory and inhibitory concentrations during various stages of the AD process would be highly useful.

59concentration, c pr g L −1 35.0000Lipid concentration, c li g L −1 3.0000 Inert matter concentration, c inert g L −1 50.0000Inorganic carbon concentration, c Cio g L −1 2.5000 Inorganic nitrogen concentration, c Nio g L −1 2.0000 Inorganic phosphorous concentration, c Pio g L −1 2.6000 Inorganic sulfur (sulfide) concentration, c Sioid g L −1 0.1000 Inorganic sulfur (sulfate) concentration, c Sioat g L −1 0.5000 Nitrogen dioxide concentration, c NO 2 g L −1 0.0080 Calcium concentration, c Ca g L −1 concentration, c Pb g L −1 0.0002 Zinc concentration, c Zn g L −1 0.0500

Figure 1 .

60Figure 1.Importance factors of BioModel parameters.

61Figure 1.Importance factors of BioModel parameters.

Figure 2 .

62Figure 2. Methane flow rate during BioModel calibration using the ASO procedure.Figure 2. Methane flow rate during BioModel calibration using the ASO procedure.

63Figure 2. Methane flow rate during BioModel calibration using the ASO procedure.Figure 2. Methane flow rate during BioModel calibration using the ASO procedure.

Bioengineering 2025 ,

6412, x FOR PEER REVIEW 12 of 22

Figure 3 .

65Figure 3. Fe and Mg species during the AD process at ODcal.

66Figure 3. Fe and Mg species during the AD process at OD cal .

Bioengineering 2025 ,

6712, x FOR PEER REVIEW 13 of 22

Figure 4 .

68Figure 4. Biogas flow rates for the AD process in bioreactors B2 and B3.

69Figure 4. Biogas flow rates for the AD process in bioreactors B2 and B3.

Bioengineering 2025 , 22 Figure 5 .

70Figure 5. Biogas flow rates in B2 and B3; NS done using various perturbations of calibrated model parameter values.

Figure 5 .

71Figure 5. Biogas flow rates in B2 and B3; NS done using various perturbations of calibrated model parameter values.

Figure 6 .

72Figure 6.The concentrations of added/removed TMs in optimization Cases A, B, and C.

73Figure 6.The concentrations of added/removed TMs in optimization Cases A, B, and C.

Figure 7 .

74Figure 7.The volumes of the produced biogas, CH4, H2, H2S, and NH3 in optimization Cases A, B, and C.

75Figure 7.The volumes of the produced biogas, CH 4 , H 2 , H 2 S, and NH 3 in optimization Cases A, B, and C.

Figure 8 .

76Figure 8. Variation in cumulative volume of biogas, CH , H , H S, and NH with respect to initial design.

Figure 9 .

77Figure 9. Iron species in the initial and optimal designs in Cases A, B, and C.

Figure 8 . 22 Figure 8 .

78Figure 8. Variation in cumulative volume of biogas,CH 4 , H 2 , H 2 S, and NH 3 with respect to initial design.

Figure 9 .

79Figure 9. Iron species in the initial and optimal designs in Cases A, B, and C.

80Figure 9. Iron species in the initial and optimal designs in Cases A, B, and C.

Table 1 .

81Bioreactor data.

Table 2 .

82Input data of feedstock composition.

•

83Sixteen Monod saturation constants k M g L −1 related to various substrates and bacteria:k M,suAsu , k M,aaAaa , k M,glyAgly , k M,oaAoa , k M,proApro , k M,buAbu , k M,vaAva , k M,H 2 Mhyd , k M,acMac , k M,Sio,atSs , k M,proSpro , k M,Sio,atSpro , k M,acSac , k M,Sio,atSac , k M,H 2 Shyd , and k M,Sio,atShyd ; • Twenty-six inhibition constants K inh g L −1 related to (a) VFA inhibition of hydrolysis process K inh,VFA and (b) compound and metal ion inhibition of the growth of various bacteria K inh,H 2 ,Agly , K inh,H 2 ,Aoa , K inh,H 2 ,Apro , K inh,H 2 S,Apro , K inh,H 2 ,Abu , K inh,H 2 S,Abu , K inh,H 2 ,Ava , K inh,H 2 S,Ava , K inh,H 2 S,Mac , K inh,NH 3 ,Mac , K inh,Cu 2+ ,Abu , K inh,Zn 2+ ,Abu , K inh,Cr 2+ ,Abu , K inh,Pb 2+ ,Abu , K inh,Ni 2+ ,Abu , K inh,Cu 2+ ,Mac , K inh,Zn 2+ ,Mac , K inh,Cr 2+ ,Mac , K inh,Pb 2+ ,Mac , K inh,Ni 2+ ,Mac , K inh,H 2 S,Mhyd , K inh,H 2 S,Ss , K inh,H 2 S,Spro , K inh,H 2 S,Sac , and K inh,H 2 S,Shyd , and two limitation factors

84Twenty precipitation rate constantsk cryst day −1 : k cryst,CaCO 3 , k cryst,CoCO 3 , k cryst,CuCO 3 , k cryst,FeCO 3 , k cryst,MgCO 3 , k cryst,NiCO 3 , k cryst,PbCO 3 , k cryst,ZnCO 3 , k cryst,CoS , k cryst,CuS , k cryst,FeS , k cryst,NiS , k cryst,PbS , k cryst,ZnS , k cryst,Ca 3 (PO 4 ) 2 , k cryst,Co 3 (PO 4 ) 2 ,k cryst,Fe 3 (PO 4 ) 2 , k cryst,Ni 3 (PO 4 ) 2 , k cryst,MgNH 4 PO 4 , and k cryst,KMgPO 4 .

851, ψ 2 , ψ 3 , and ψ 4 are the weighting factors; φ H 2 S,max , φ H 2 ,max , and φ NH 3 ,max , denote maximal fractions of H 2 , H 2 S, and NH 3 in the produced biogas, respectively.The symbols V biogas (L), V CH 4 (L), V H 2 (L), V H 2 S (L), and V NH 3 (L) denote the volumes of biogas, CH 4 , H 2 , H 2 S, and NH 3 , respectively.

Table 3 .

86Active sets data related to the ASO procedure.

Table 4 .

87Statistical indicators of CH4 flow rate; bioreactor B1, BioModel calibration.

88Statistical indicators of CH 4 flow rate; bioreactor B1, BioModel calibration.

Table 5 .

89Statistical indicators of biogas flow rate; bioreactors B2 and B3, BioModel validation.

90Statistical indicators of biogas flow rate; bioreactors B2 and B3, BioModel validation.

Table 6 .

91Statistical

92indicators of biogas flow rate; perturbation of model parameters, bioreactors B2 and B3, validation period.

93Statistical indicators of biogas flow rate; perturbation of model parameters, bioreactors B2 and B3, validation period.

94MAE (L day −1 ) ε RMSE (L day −1 ) R 2 (/) I A,rel (/)

Table 7 .

95TM concentration; lower, upper, initial, and optimized values.

Table A1 .

96Cont.

참고문헌 39건

  1. Trace element and temperature effects on microbial communities and links to biogas digester performance at high ammonia levels Biotechnology for Biofuels · Springer Science+Business Media · 2015 10.1186/s13068-015-0328-6
  2. Biogas production as affected by heavy metals in the anaerobic digestion of sludge Egyptian Journal of Petroleum · Elsevier BV · 2014 10.1016/j.ejpe.2014.09.009
  3. OPTIMIZATION OF MECHANICAL SYSTEMS: ON NON-LINEAR FIRST-ORDER APPROXIMATION WITH AN ADDITIVE CONVEX TERM Communications in Numerical Methods in Engineering · Wiley · 1997 10.1002/(sici)1099-0887(199701)13:1<13::aid-cnm33>3.0.co;2-e
  4. Towards a generalized physicochemical framework Water Science & Technology · Pergamon Press · 2012 10.2166/wst.2012.300
  5. A comprehensive model of anaerobic bioconversion of complex substrates to biogas Biotechnology and Bioengineering · Wiley · 1999 10.1002/(sici)1097-0290(19990505)63:3<363::aid-bit13>3.0.co;2-z
  6. Anaerobic digestion of organic solid wastes. An overview of research achievements and perspectives Bioresource Technology · Elsevier BV · 2000 10.1016/s0960-8524(00)00023-7
  7. Inhibition of anaerobic digestion process: A review Bioresource Technology · Elsevier BV · 2007 10.1016/j.biortech.2007.01.057
  8. Dynamic simulation of cyclic batch anaerobic digestion of cattle manure Bioresource Technology · Elsevier BV · 2001 10.1016/s0960-8524(01)00071-2
  9. An efficient gradient‐based optimization algorithm for mechanical systems Communications in Numerical Methods in Engineering · Wiley · 2002 10.1002/cnm.499
  10. Trace Metal Requirements for Microbial Enzymes Involved in the Production and Consumption of Methane and Nitrous Oxide Frontiers in Microbiology · Frontiers Media · 2012 10.3389/fmicb.2012.00061
  11. Trace metal speciation and bioavailability in anaerobic digestion: A review Biotechnology Advances · Elsevier BV · 2015 10.1016/j.biotechadv.2015.12.006
  12. Effect of ferrous chloride on biogas production and enzymatic activities during anaerobic fermentation of cow dung and Phragmites straw Biodegradation · Springer Science+Business Media · 2016 10.1007/s10532-016-9756-7
  13. Modelling phosphorus (P), sulfur (S) and iron (Fe) interactions for dynamic simulations of anaerobic digestion processes Water Research · Elsevier BV · 2016 10.1016/j.watres.2016.03.012
  14. The role of additives on anaerobic digestion: A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2016 10.1016/j.rser.2015.12.094
  15. Impacts of trace element supplementation on the performance of anaerobic digestion process: A critical review Bioresource Technology · Elsevier BV · 2016 10.1016/j.biortech.2016.03.028
  16. Reappraisal of chemical interference in anaerobic digestion processes Renewable and Sustainable Energy Reviews · Elsevier BV · 2016 10.1016/j.rser.2016.11.076
  17. Generalized parameter estimation and calibration for biokinetic models using correlation and single variable optimisations: Application to sulfate reduction modelling in anaerobic digestion Water Research · Elsevier BV · 2017 10.1016/j.watres.2017.05.067
  18. ADM1 based mathematical model of trace element precipitation/dissolution in anaerobic digestion processes Bioresource Technology · Elsevier BV · 2018 10.1016/j.biortech.2018.06.099
  19. ADM1 based mathematical model of trace element complexation in anaerobic digestion processes Bioresource Technology · Elsevier BV · 2018 10.1016/j.biortech.2018.12.064
  20. The Influence of Trace Elements on Anaerobic Digestion Process Civil And Environmental Engineering Reports · De Gruyter Open · 2018 10.2478/ceer-2018-0054
  21. ADM1-based mechanistic model for the role of trace elements in anaerobic digestion processes Journal of Environmental Management · Elsevier BV · 2019 10.1016/j.jenvman.2018.11.058
  22. Additives as a Support Structure for Specific Biochemical Activity Boosts in Anaerobic Digestion: A Review Frontiers in Energy Research · Frontiers Media · 2020 10.3389/fenrg.2020.00088
  23. THE EFFECT OF BUFFALO DUNG TREATMENT WITH PAUNCH FLUID ON BIOGAS PRODUCTION Misr journal of agricultural engineering · 2015 10.21608/mjae.2015.98653
  24. Multi-objective optimization of anaerobic digestion process using a gradient-based algorithm Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.113560
  25. A general framework to model the fate of trace elements in anaerobic digestion environments Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-021-85403-2
  26. Commercial biogas plants: Review on operational parameters and guide for performance optimization Fuel · Elsevier BV · 2021 10.1016/j.fuel.2021.121282
  27. An enhanced anaerobic digestion BioModel calibrated by parameters optimization based on measured biogas plant data Fuel · Elsevier BV · 2021 10.1016/j.fuel.2021.122984
  28. Can waste management system be a Greenhouse Gas sink? Perspective from Shanghai, China Resources Conservation and Recycling · Elsevier BV · 2022 10.1016/j.resconrec.2022.106170
  29. The absolute concentration and bioavailability of trace elements: Two vital parameters affecting anaerobic digestion performance of chicken manure leachate Bioresource Technology · Elsevier BV · 2022 10.1016/j.biortech.2022.126909
  30. Impact of temperature, inoculum flow pattern, inoculum type, and their ratio on dry anaerobic digestion for biogas production Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-10025-1
  31. Consideration of biological and inorganic additives in upgraded anaerobic digestion BioModel Bioresource Technology · Elsevier BV · 2022 10.1016/j.biortech.2022.127252
  32. A critical review for the impact of anaerobic digestion on the sustainable development goals Journal of Environmental Management · Elsevier BV · 2023 10.1016/j.jenvman.2023.119458
  33. Abiotic and biotic roles of metals in the anaerobic digestion of sewage sludge: A review The Science of The Total Environment · Elsevier BV · 2023 10.1016/j.scitotenv.2023.169313
  34. New insights into inhibition of high Fe(III) content on anaerobic digestion of waste-activated sludge The Science of The Total Environment · Elsevier BV · 2024 10.1016/j.scitotenv.2024.170147
  35. Improvement of Biogas Production Utilizing a Complex Anaerobic Digestion Model and Gradient-Based Optimization Energies · Multidisciplinary Digital Publishing Institute · 2024 10.3390/en17061279
  36. Anaerobic digestion BioModel upgraded by various inhibition types Renewable Energy · Elsevier BV · 2024 10.1016/j.renene.2024.120427
  37. Modeling and forecasting biogas production from anaerobic digestion process for sustainable resource energy recovery Heliyon · Elsevier BV · 2024 10.1016/j.heliyon.2024.e38472
  38. Comparison of the short- and long-term effects of zinc ions on the anaerobic mesophilic co-digestion of food waste and waste activated sludge: Digester performance, antibiotic resistance gene reduction and the microbial community Journal of Hazardous Materials · Elsevier BV · 2024 10.1016/j.jhazmat.2024.136119
  39. Modeling and optimization of anaerobic digestion technology: Current status and future outlook Progress in Energy and Combustion Science · Elsevier BV · 2024 10.1016/j.pecs.2024.101199