Skip to main content
Open Research Europe logoLink to Open Research Europe
. 2022 May 19;2:62. [Version 1] doi: 10.12688/openreseurope.14737.1

Modelling and mathematical optimisation of wastewater treatment in food industries

Santiago Rodriguez-Perez 1, Alvaro Cabeza Sanchez 1, María Lopez-Abelairas 1,a
PMCID: PMC10446076  PMID: 37645304

Abstract

The current paper describes the work carried out in the Horizon 2020 AFTERLIFE project –  "Advanced Filtration TEchnologies for the Recovery and Later conversIon of relevant Fractions from wastEwater" – (Grant Agreement no. 745737) which focuses on bioprocess modelling and optimisation using computational tools.

The project addresses the development of a flexible, cost- and resource-efficient process framed in the zero-waste and circular economy approach for the recovery and valorisation of the relevant fractions from wastewater. The first step of such a process is an initial step consisting of a cascade of membrane filtration units to separate the total solids in sewage. Then, the concentrates recovered in each unit will be treated to obtain high-pure extracts and metabolites or to be converted into value-added biopolymers (polyhydroxyalkanoates). Moreover, the outflow of the process is an ultra-pure water stream that can be directly reused. Following a holistic approach, the design and optimisation of the AFTERLIFE process will improve performance and reduce the costs associated with wastewater treatment by maximising the value recovery.

The paper focuses on the work done developing and implementing computational tools to model and optimise the design of the process. A framework for modelling-based optimisation has been developed. The applied optimisation approach is not computationally demanding and can be systematically applied to different processes.

Finally, a use case establishing a scenario for testing the developed framework is described. The defined process model and optimisation methodology were applied to simulate the treatment of wastewater from the fish processing industry. The performance of the optimisation tool is analysed considering the simulation results.

Keywords: Bioprocess modelling, multi-objective optimisation, wastewater reuse, polyhydroxyalkanoates

Plain language summary

The AFTERLIFE framework is a flexible tool for modelling and optimising processing schemes consisting of combinations of processes and/or bioprocesses. The optimisation methodology follows a multi-objective approach by combining economic and environmental criteria. It provides an optimised design of the process and indicators about its financial performance and environmental impact. Specifically, in the AFTERLIFE project, the framework has been used to simulate and optimise a wastewater treatment process consisting of an innovative scheme that allows water recovery and, simultaneously, the valorisation of the present organic matter in the production of value-added bioproducts. On the other hand, the users can easily extend the framework to simulate and optimise alternative process schemes. In this publication, a use case was described for the treatment of wastewater from a fish processing industry. The characteristics of the wastewater have been used as the input stream to the framework, and the results before and after optimisation are described. The framework is openly accessible under the Creative Commons Attribution 4.0 International License.

Introduction

The intrinsic complexity of biological systems makes monitoring, optimisation and control challenging tasks to design a bioprocess successfully. Bioprocesses optimisation today is, in many cases, still empirical and involves either an arduous design of experiment (DoE) or availability of representative data along with data-driven methods (e.g., Artificial Neural Networks) ( Abt et al., 2018). This fact makes process development time consuming and costly. Moreover, the scale-up of bioreactors and biotechnological processes is critical in industrial biotechnology. At the present stage, process development and parameters optimisation are often made at low scales, which leads to discrepant results and poorer performance in the upscaled operations. Moreover, optimisation is not addressed from a holistic perspective but at the unit level, leading to poor integration and overall performance loss.

Including mathematical models and optimisation in the workflow is a powerful tool to accelerate the optimised development and scale-up of bioprocesses, reducing the required time and resources for such tasks. Thus, efforts should be made to implement modelling-based approaches that can be broadly applicable, flexible, and robust to develop methodologies and technologies for industrial biotechnology ( Noll & Henkel, 2020). In the last decades, meaningful development and advancement of modelling techniques and a simultaneous improvement of hardware resources have occurred. Such models have been applied in different fields, including scale-up, design, optimisation, control, economic evaluation, and quality control. The modelling work in process optimisation has mainly focused on model-assisted DoE combining the inherent process knowledge of mathematical models with statistical DoE to reduce the number of required experiments and include the process dynamics ( Liang et al., 2020; Luna & Martinez, 2017). Alternatively, a systematic model-based framework has been proposed by Morales-Rodriguez et al. (2012). Such a framework is based on stochastic programming, considering the sources of uncertainties identified through sensitivity analysis. The framework had process costs as the single optimisation objective and was developed in the commercial software Matlab. Stochastic and deterministic approaches show different advantages and drawbacks. The implementation of stochastic alternatives is typically simpler, and, in the case of optimisation algorithms, a global sampling is made, avoiding the entrapping in a local minimum. On the other hand, deterministic alternatives allow a higher control of the optimisation process. It should also be noted that the performance of the Monte-Carlo technique used for this stochastic optimisation is strongly dependent on the size of the used sample, which is often significant to reach good performance. A size of 15.000 elements was used by Morales-Rodriguez et al. (2012), which implies the same number of process simulations.

The current work described a novel and alternative framework for modelling-based optimisation and its application in a multistep biotechnological process. The applied optimisation approach is deterministic and not computationally demanding, and the framework can be systematically applied to different processes. It consists of using coupled mathematical process models in combination with multi-objective optimisation functions and set constraints. Open-source instruments ( OpenModelica, Python) are used for modelling and optimisation, avoiding the implication of private and costly software. Moreover, the multi-objective function allows the incorporation of different aspects (i.e., economic and environmental) in the optimisation. On the other hand, the selected process, a new treatment for the valorisation of wastewater from the food industry developed in the AFTERLIFE project, includes several operations of high interest for many bio-based industries combined in an innovative and flexible scheme. Unified mathematical models of the treatment solution have been developed through coupling the interdependent units. Such a process model was the basis for developing the optimal design by means of an optimisation problem composed of a multi-objective function and a set of related physical, environmental, and economic constraints. The model outputs and objective function before and after optimisation are compared and discussed.

Methods

Process scheme

The food processing industry is one of the main water demanding sectors in Europe, and, at the same time, it is one of the main wastewater producers. On the other hand, the generated wastewaters often contain compounds of interest (nutrients, organic matter) that could be valorised. Thus, applying a circular approach would be highly beneficial for the industries in this sector. The combination of physic and biotechnological processes has been recently proposed. The collaborative research project AFTERLIFE has developed the scheme depicted in Figure 1 for treating and valorising wastewater from food industries.

Figure 1. Scheme of AFTERLIFE process for the wastewater treatment.

Figure 1.

AFTERLIFE proposes a flexible, cost- and resource-efficient process framed in the zero-waste and circular economy approach to recover and valorise the relevant fractions from wastewater. The first step of such a process consists of a cascade of membrane filtration units to separate the total solids in wastewater. The low added value organic matter goes to acidogenic fermentation to produce a VFA-rich stream that will be the feedstock for plastic biopolymers (polyhydroxyalkanoates or PHA) production by bacteria. The bacterial cells already containing PHA suffer a process for the recovery and purification of the polymer that is converted into end products. After polymer recovery, the remaining organic matter will be subjected to anaerobic digestion to produce biogas to generate energy for its use in-situ and fertilisers.

Mathematical unit models

The equations and assumptions applied to model the unitary operations that compose the process are described below.

A combination of microfiltration (MF), ultrafiltration (UF), and reverse osmosis (RO) has been designed in a cascade configuration. This step has been configured to separate the suspended and dissolved solids (targeted compounds of interest). The equations and assumptions used at the model level are described below ( Corbatón Báguena et al., 2018; Dutta & Nath, 2018; Vinther et al., 2014).

  • 1)

    Arrhenius model for calculating the viscosity of mixed solutions ( Gao & Li, 2012):

lnμ=Xilnμi[1]
  • where,

  • µ: viscosity of the mixed solution (Pa·s)

  • X i: molar fraction

  • µ i: viscosity of component i (Pa·s)

  • 2)

    Material balance for suspended solids and solute

JS=CPDJV[2]
  • where,

  • J S: suspended solids/solute flux through membrane (mg/h·m 2)

  • C P: suspended solids/solute concentration (mg/L)

  • J V: wastewater flux through the membrane (L/h·m 2)

  • D: solids’ diffusivity coefficient

  • 3)

    Wastewater flux through the membrane (Resistance model)

JV=ΔPTRmη[3]
  • where,

  • J V: wastewater flux through the membrane (L/h·m 2)

  • ΔP T: Transmembrane pressure (Pa)

  • R m: membrane resistance (m -1)

  • ƞ: viscosity (Pa·s)

  • 4)

    Constant-rate filtration

tV=RmηΔPTAm+αV2CPη2ΔPTAm2[4]
  • where,

  • t: time (s)

  • V: Filtered volume (L)

  • R m: membrane resistance (m -1)

  • ƞ: viscosity (Pa·s)

  • ΔP T: Transmembrane pressure (Pa)

  • A m: Membrane area (m 2)

  • α: specific resistance (m/kg)

  • C P: Suspended solids concentration (mg/L)

  • 5)

    Carman-Kozeny relationship – Specific resistance

α=180(1ε)ρd2ε3[5]
  • where,

  • α: specific resistance (m/kg)

  • ρ: density (kg/m 3)

  • ε: Fractional pore area

  • d: solute particle diameter (m)

  • 6)

    Fractional pore area

ε=N(π4)d2[6]
  • where,

  • ε: fractional pore area

  • N: number of pores/m 2

  • d: solute particle diameter (m)

In order to obtain a simple model based on a mass balance, the following assumptions were considered:

  • -

    The filtration processes were set up at constant transmembrane pressure (ΔP T).

  • -

    The filtration processes were set up at the environmental temperature (T).

  • -

    The total resistance in the filtration processes was the membrane resistance (R m).

  • -

    The diffusivity coefficients of suspended and dissolved solids were fixed independently of temperature (D).

The purpose of the anaerobic fermentation process implemented in AFTERLIFE is the production of volatile fatty acids (VFAs) from the organic matter separated in the steps of filtration and the recovery of value-added compounds.

The model of this unitary operation is based on the ADM1 model ( Batstone & Vavilin, 2002) ( Figure 2).

Figure 2. Scheme of processes for the anaerobic fermentation.

Figure 2.

Using the ADM1 model as a base, the following equations have been considered to define the anaerobic fermentation process:

  • 1)

    The disintegration of particulate biomass:

dXcdt=qinVliq(Xc,inXc)ρc,dis+iρi[7]
  • where,

  • X c: concentration of particulate biomass (g DQO· L -1)

  • q in: input flow (L· h -1)

  • V liq: liquid volume in the reactor (L)

  • ρ c, dis: disintegration rate (g DQO· L -1· h -1)

  • Σρi: the sum of particulate biomass production rate from the cellular decay (g DQO· L -1· h -1)

  • 2)

    Hydrolytic phase: hydrolysis of carbohydrates, proteins and fats

dXAdt=qinVliq(XA,inXA)+fA,xcρc,disρA[8]
  • where,

  • X A: concentration of cells able to degrade polysaccharides/lipids/proteins (g DQO· L -1)

  • q in: input flow (L· d -1)

  • V liq: liquid volume in the reactor (L)

  • f A, Xc: compound per unit of particulate biomass (g DQO (A) · g DQO -1(Xc))

  • ρ c,dis: disintegration rate (g DQO · L -1· h -1)

  • ρ A: hydrolysis rate of the compound (g DQO· L -1· h -1)

  • 3)

    Acidogenic phase: acidogenesis of monosaccharides and aminoacids

  • Particulate biomass:

dXBdt=qinVliq(XB,inXB)+YBρB,gρB,dec[9]
  • where,

  • X B: concentration of cells able to degrade monosaccharides/aminoacids (g DQO· L -1)

  • Y B: cellular production per unit of the consumed substrate (g DQO (X)· g DQO -1(X B))

  • ρ B,g: cellular substrate consumption rate (g DQO · L -1· h -1)

  • ρ B,dec: cellular decay rate (g DQO · L -1· h -1)

  • 4)

    Soluble biomass:

dSBdt=qinVliq(SB,inSB)+fB,AρAρB,g[10]
  • where,

  • S B: monomer concentration (monosaccharides, amino acids, fatty acids)

  • f B, A: monomer production per unit of compound (g DQO (X)· g DQO -1(X B))

  • ρ A: hydrolysis rate (g DQO· L -1· h -1)

  • ρ B,g: cellular substrate consumption rate (g DQO · L -1· h -1)

The anaerobic digestion converts the organic matter into carbon dioxide and methane, which can be used as a source of energy for the process. For the anaerobic digestion ( Figure 3), together with the processes in the anaerobic fermentation, the following phases are considered:

Figure 3. Scheme of processes for the anaerobic digestion.

Figure 3.

  • 1)

    Acetogenic phase: acetogenesis of long-chain fatty acids (LCFA), propionate, butyrate and valerate:

  • Particulate biomass:

dXCdt=qinVliq(XC,inXC)+YCρC,gρC,dec[11]
  • where,

  • X C: concentration of cells able to degrade LCFA / propionate / butyrate / valerate

  • Y C: cellular production per unit of the consumed substrate (g DQO (X)· g DQO -1(X C))

  • ρ C,g: : cellular substrate consumption rate (g DQO · L -1· h -1)

  • ρ C, dec: cellular decay rate (g DQO· L -1· h -1)

  • Soluble biomass:

dSCdt=qinVliq(SC,inSC)+(1YB)fC,BρB,prodρC,g[12]
  • where,

  • S C: substrate concentration (LCFA, propionate, butyrate, valerate)

  • f C, B: monomer production per unit of compound (g DQO (X)· g DQO -1(X B))

  • Y B: cellular production per unit of the consumed substrate (g DQO (X)· g DQO -1(X B))

  • ρ B,g: substrate consumption rate (g DQO · L -1· h -1)

  • ρ C,g: cellular substrate consumption rate (g DQO · L -1· h -1)

  • 2)

    Methanogenic phase: acetoclastic and hydrogenotrophic methanogenesis

dSch4dt=qinVliq(Sch4,inSch4)+(1Yac)ρac,g+(1Yh2)ρh2,g[13]
  • where,

  • S Ch4: methane concentration

  • Y ac: cellular production per unit of consumed acetate (g DQO (X). g DQO -1(X ac))

  • ρ ac,g: acetate consumption rate (g DQO · L -1· h -1)

  • Y h2: cellular production per unit of consumed hydrogen (g DQO (X). g DQO -1(X h2))

  • ρ h2, g: hydrogen consumption rate (g DQO· L -1· h -1)

The production of the PHA biopolymer uses the VFAs produced during the anaerobic fermentation process as substrate. For this, a feast-famine strategy is applied, that is, the enrichment of the inoculum through cycles of periods of feast and famine. Such a strategy allows for selecting the PHA producing bacteria since the accumulated PHA is a carbon source during the scarcity periods.

For feast and famine periods, the following equations have been considered:

  • 1)

    Substrate consumption: it is assumed that the consumption of fatty acids follows a Monod kinetics. The mass balance equation will be the following:

dSdt=qinVliq(SinS)kmaxSS+KsX[14]
  • where,

  • S: substrate concentration (fatty acid) (g· L -1)

  • k max: maximum substrate consumption rate (g· g (X) -1· h -1)

  • K s: saturation constant (g· L -1)

  • X: biomass concentration (g· L -1)

  • 2)

    PHA production: the PHA production depends on the concentration of polymer in the cells and the maximum concentration that could be reached ( Pardelha et al., 2014)

ρprod=(1(fPHAfPHAmax)a)kmaxSS+KsX[15]
  • where,

  • ρ prod: polymer production rate (g· L -1· h -1)

  • f PHA: polymer concentration in cells (g· g (X) -1)

  • f PHAmax: maximum polymer concentration in cells (g· g (X) -1)

  • a: inhibition factor

  • 3)

    PHA consumption: the consumption of polymer depends on its concentration in cells and the k constant, which is a function of the feast-famine cycles and of the operation time

ρcons=k(XoX)1/3fPHA2/3X[16]
  • where,

  • ρ cons: polymer consumption rate (g· L -1· h -1)

  • X 0: biomass concentration at the beginning of the cycle (g· L -1· h -1)

  • k: is defined as follows

k=2.5CL((SRTCL)1)1/3[17]
  • where,

  • C L: length of the feast-famine cycle (d -1)

  • SRT: solids retention time (d -1)

  • Thus, the material balance for PHA would be:

dPHAdt=qinVliq(PHAinPHA)+ρprodρcons[18]
  • 4)

    Cellular growth: according to Tamis et al. (2014), cellular growth is considered the result of the substrate consumption minus the PHA production and that destined for the cellular catabolism

A scheme of the proposed process to produce PHA is shown in Figure 4.

Figure 4. Scheme of processes for the production of PHA.

Figure 4.

After culture selection, the polymer is accumulated in a second step where the equations of substrate consumption, cellular growth and PHA production are applicable. Once produced, the polymer should be separated from the cellular biomass. Different strategies are developed during the project for polymer recovery. In this case, the parameters of recovery (percentage of initial polymer recovery after extraction) and purity (percentage of PHA in the recovered solid) are used for modelling the extraction process.

Implementation

Process model

The model of the unitary operations has been implemented and coupled in the OpenModelica environment. OpenModelica is an open-source Modelica-based modelling and simulation environment. Modelica is a non-proprietary, object-oriented, equation-based language to conveniently model complex systems.

The coupling of the models in OpenModelica implies the definition of "interfaces" to communicate the information between subsystems. Therefore, the interfaces have been defined considering the variables presented in the different unitary processes.

The implemented system has been exported as an image and is shown in Figure 5. Together with the aforementioned models for the unitary operations and the communication interfaces, additional elements have been considered in the implementation. A control system was implemented simulating the air input to the reactor where the PHA production is performed. The air supply to the reactor is controlled to maintain the oxygen concentration at an optimal level for the growth of the microorganisms and the accumulation of PHA.

Figure 5. Scheme of processes in OpenModelica (diagram view).

Figure 5.

Optimisation of process parameters

The following methodology is based on compiling a .MO (Modelica) file to produce an FMU (Functional Mock-up Unit) file where the dynamic solution of the model is included. Once an initial set of parameters computes this dynamic simulation, the value of a certain objective function is obtained and compared with the optimisation requirement. If this requirement is not achieved, a new set of parameters is iteratively calculated by an optimisation method up to the objective function value that agrees with the optimisation requirement (see Figure 6).

Figure 6. Optimisation methodology.

Figure 6.

For the optimisation, the Python module scipy was used. This module includes several optimisation options, like the Nelder-Mead-Simplex or the Powell methods. However, since the considered model is quite complex, the desired method is the Nelder-Mead-Simplex to ensure that an optimum will be found. However, the provided algorithm by Python does not allow the definition of boundaries for the Nelder-Mead-Simplex method. This fact makes sense since it was developed to evaluate the whole solutions space to find an optimum. Thus, in principle, this method could not be used for our problem since the optimised parameters must be inside a range that ensures the physical sense of the simulation. The routine defined in the file opt2.py was put forward to solve this problem. The idea was that, even when the optimisation method provides values outside the ranges, the evaluated function just considers the limits specified. This correction is done by local variables (a and b) defined inside the function ros. These variables ensure that the model does not use any value out of the fixed bounds. In principle, this solution works, although a certain amount of time will be lost when the solver tries to find an optimum in the discarded ranges.

Concerning optimisation, the objective function must follow some economic and environmental aspects. Net Present Value (NPV) is adopted as an indicator to evaluate the economic performance of the AFTERLIFE process ( Turton et al., 2009). As formulated in [ 19], NPV is determined by capital expenditure (CAPEX), operational expenditure (OPEX), benefits from saleable products (SALE) and discount rate (i). OPEX costs are determined according to chemicals, reagents, and energy costs associated with each year's pilot plant's operation. Additionally, SALES is calculated considering the production yields of value-added products such as PHAs and their average value in the current market. The expected NPV present value minimising decision maker's problem for the AFTERLIFE process is:

minNPV=CAPEXt=1TSALEOPEX(1+r)t[19]

s.t.E (NPV i) ≥ 0

SALES = f(x 1,y 1)

CAPEX = f(x 1,y 1)

OPEX = f(x 1,y 1)

where CAPEX, OPEX and SALE denote capital cost, operational cost and the value of the saleable product, respectively, r refers to the discount rate, equal to 8%; t represents time in years.

The greenhouse gas index (GGI) has been proposed as an indicator concerning environmental aspects. It took information from several sources of GHG emissions from the pilot plant, and CH 4 emissions were converted into CO 2-equivalents by calculating a global warming potential (GWP) ( Mannina et al., 2016; Renewables Now, 2017; World Nuclear Association). As formulated in [ 20], it was assumed that part of CH 4 produced from the anaerobic reactors would be captured for energy recovery or would be flared, and as a result, there would be a small fraction of uncontrollable CH 4 leaks or inadvertent CH 4 venting in the system. In the case of CH 4 capture, CH 4 was converted into CO 2 by a chemical CO 2/CH 4 equivalent rather than GWP and then classified as a biogenic CO 2 emission. For this study, the methane capture rate was set to a default factor of 90% according to the IPPC guidelines ( Jigar et al., 2014). The expected greenhouse gas index (GGI) value minimising decision maker's problem for the AFTERLIFE process is:

minGGI=t=1T[(GiGWP)i+(ECiEF)][20]

s.t.GGI > 0

G i = f(X 2,Y 2)

EC i = f(X 2,Y 2)

where G i is the mass of CO 2eq, GWP is the global warming potential of CO 2, N 2O, and CH 4, EC i is the energy consumption, and EF is the GHG emission factor. GGI is influenced by CO 2eq production from the operation unit G i and Electricity consumption EC i

In order to combine both indicators (NPV and GGI), a new NPV corrected with GGI (NPV*) was defined and used for the optimisation:

minNPV*=NPV+GGIPCO2[21]

where P co2 is the allowance price per ton of emitted CO 2 ( European Commission, 2022).

Operation

The AFTERLIFE framework ( maloab, 2022) runs using open-source tools ( OpenModelica and Python), ensuring availability and traceability, enabling interactions with other frameworks, and implementing new process models. It is distributed as a free and open-source tool under Creative Commons Attribution 4.0 International License. Simulations can be performed with Windows and Linux. The minor degree of development of OpenModelica for Mac system limits running simulations in it.

Simulations running

First, it is necessary to set the process parameters that can be modified to optimise the overall feasibility of the process. Once selected, they are defined as variables in the python routines. Then, they are linked to the variables in the process model in OpenModelica ( Figure 7).

Figure 7. The interface of OpenModelica for identifying the optimisation variables.

Figure 7.

The first step is to connect python with the OpenModelica solver (omc.exe). So, a session must be opened using the code in the file Client.py.

Once the session has been defined, an object that contains the considered model is defined. The file model.py does this step. In such a file, the working directory (os.chdir) is changed by the route to a local folder. This modification is required to store make-up files generated during the compilation of the .mo file.

At this point, a session with the omc.exe has been done and also, the model has been stored as a ModelicaSystem object. Thus, the following step is to perform a simulation using both. The file simu.py was defined to do so.

This last file has several aspects that should be highlighted. The first one is defining a new value for a parameter in the model. This is done by the sentence: mod.setParameters(Parameter=Value). It should also be noted that this command does not allow the use of phrases (such as Microfilter.Am=0.01). For this reason, every module inside the .mo file must be defined with an input. The following consideration is how to define the simulation conditions. It is done by mod.setSimulationOptions(solver="dassl", startTime=0.0, stepSize=10, stopTime=5000, tolerance=1e-6). Note that, in this case, the provided parameter is the step size and not the number of simulated points. Finally, the simulation is carried out by mod.simulate(). It is also worth highlighting that any number of simulations can be done without a new definition of the ModelicaSystem object.

The selected algorithm was the Nelder-Mead SIMPLEX to enhance the possibilities of finding an optimum (a modification was required, see the following sub-section for details). The tool was defined in the file opt2.py. It should be noted that the program developed is based on the definition of a function (ros) where the OpenModelica model is evaluated for each value of the optimised parameters provided by the solver.

Since a session and an object are required, this file can only be used if the files Client.py and model.py have been run previously.

Simulations output

The results from the optimisation can be obtained using the file data.py. The output information is the value of NPV*, the set of optimised process variables and the number of iterations to attempt the optimisation successfully.

Use case

The process model has been implemented in OpenModelica, and simulations have been run considering input wastewater from the fish canning industry. The fish and seafood processing industry generate large quantities of wastewater. The treatment of fish canning wastewater is particularly challenging due to the content of organic matter and salt and the characteristics of the companies, which are widely dispersed and with high seasonal activity. The total soluble and suspended chemical oxygen demand varies meaningfully among factories and fish types. An average characterisation of several wastewaters has been considered and is reflected in Table 1.

Table 1. Fish canning effluent characteristics.

Parameter Units Mean Parameter Units Mean
BOD mg O 2/L 1546 Conductivity µS/cm 4.7
COD mg O 2/L 1967 Dry residue (105ºC) mg/L -
Total Phosphorus mg/L 31 Sugars g/100 g -
Total Kjeldahl Nitrogen mg/L 211 Amino acids mg/L
N-NH 3 mg/L 3.2 Total -
N-NO 3 mg/L - Other compounds mg/L
pH 6.9 Fat 409
Suspended solids mg/L 324 Proteins 308.8

The main environmental problems of fishery industries are high water consumption and high organic matter, oil and grease and salt content in their wastewaters. Up to now, the research work has focused on the treatment of these wastewaters to reduce the content in these elements through, e.g., physic-chemical processes (coagulation-flocculation) combined with aerobic biological processes. However, filtration techniques (i.e., reverse osmosis (RO)) have only been tested as polishing steps ( Cristóvão et al., 2012; Cristóvão et al., 2015). The cascade of filtration steps will be an innovative approach that will bring new advantages, such as avoiding the significant production of biological sludges. Moreover, its biodegradability and the content of fat and proteins are interesting to produce VFA.

In a simplified approach, the diffusion coefficients of the simple compounds through the membranes have been set considering the previous knowledge about the typical behaviour of filtration operations. For instance, according to literature ( Hakami et al., 2020; Koyuncu et al., 2015), microfiltration rejects settable and suspended particles larger than 0.1 microns. Thus, the diffusion coefficient was set as zero in the microfiltration step for this fraction. In another case, the diffusion rate has been established as equal to the component concentration in the input stream. On the other hand, the kinetic parameters for VFA, biogas and PHA production have been taken from the existing literature ( Batstone & Vavilin, 2002; Pardelha et al., 2014; Tamis et al., 2014). The parameters in the ADM1 model used for VFA and biogas production were those described by Batstone & Vavilin (2002) and Siegrist et al. (2002). Such parameters are considered suitable for wastewater treatment processes in general. Concerning PHA production, the kinetic parameters were taken from Pardelha et al. (2014), which proposed a mixed culture process for the conversion of VFA. In this latter model, it should be noted that the culture selection step was not considered since it is expected to make a low contribution from its side to the overall process costs and impacts. Finally, the recovery and purity of PHA in the output of the purification step were set as 100%.

In the current model, the main variables that affect the process are gathered in Table 2. Note that some design variables, like the decanters volume, were not included since they are just related to the processing capacity, but they do not directly affect the performance ( Gawlik, 2018; Renewables Now, 2017 https://renewablesnow.com/news/renewables-produce-337-of-spains-power-in-2017-596136/).

Table 2. Main process variables for optimisation.

AFTERLIFE process. Design variables
ID Unit Parameter Measure
X AMF Microfilter Membrane Area m 2
X AUF Ultrafilter Membrane Area m 2
X ARO Reverse Osmosis Membrane Area m 2
X VAF Anaerobic Fermenter Volume m 3
X VAD Anaerobic Digester Volume m 3
X VAR Aerobic Fermenter Volume m 3

The composition of the wastewater was used as input in the process model through the variable "var" ( Figure 8).

Figure 8. Variable of OpenModelica to introduce wastewater composition.

Figure 8.

Simulation at initial conditions

The selection of design variables to optimise the process is determined by the objective functions described above. Implementing the process to treat the fish processing wastewater with the production of PHA by mixed bacterial culture shows the following variables as non-coupled variables with strong influence in calculating the NPV and GGI values. Table 3 shows the selected variables to optimise, the initial value and the constraint range. These constraint ranges have been determined according to guides on the extensive wastewater treatment processes ( European Commission, 1991). The flow rates of the filtration units have been determined according to the characteristics of the membranes, which determined constraint ranges. The work volume of the reactors has been determined according to the Hydraulic Retention Time (HRT) shown in usual biochemical processes in wastewater treatment plants ( European Commission, 1991) according to the kind of culture and their metabolic routes.

Table 3. Initial values and constraint ranges for the selected variables.

Unit Parameter Units Initial capacity Constraint Range
Microfilter Membrane Area m 2 0.0014 [0.0009 – 0.002]
Ultrafilter Membrane Area m 2 0.005 [0.001 – 0.009]
Reverse Osmosis Membrane Area m 2 0.005 [0.002 – 0.009]
Anaerobic fermenter Volume m 3 9 [5 – 13]
Anaerobic digester Volume m 3 20 [10 – 30]
PHA fermenter Volume m 3 7.5 [4 – 9]

The outcomes of the model are depicted in Table 4, including the final production of PHA, biogas and water and the obtained NPV* and GGI. It was found that the NPV* is positive (that is, the process is profitable with the initial design parameters and the considering inputs and outputs prices). This is mainly possible due to the high PHA price considered (5 €/kg).

Table 4. Outputs from the model with the initial parameters.

Model output Units Value
Corrected Net Present Value (NPV*) 229,865
Greenhouse gasses index (GGI) 12.56
PHA production g/m 3 903.57
Biomethane production g/m 3 428.60
Pure water production m 3/day 9.55

Simulation at optimised conditions

The model has been optimised by applying the optimisation tool already described in the Method section. The optimised design variables change the operational conditions of the process. Different membrane areas in the filtration units or different work volumes in the reactors suppose changes in the hydraulic retention time (HRT) of the operational units of the process. Table 5 shows the optimal operational conditions. The microfilter, ultrafilter, and reverse osmosis areas keep almost the same in the filtration section. On the other hand, the HRT of the anaerobic digester increases, which means higher production of biogas. The anaerobic and aerobic fermenters show an HRT lower than initial operational conditions decreasing the PHA production of the process.

Table 5. Process parameters before and after optimising.

Unit Parameter Units Initial capacity Optimised capacity
Microfilter Membrane Area m 2 0.0014 0.00135
Ultrafilter Membrane Area m 2 0.005 0.0049
Reverse Osmosis Membrane Area m 2 0.003 0.003
Anaerobic fermenter Volume m 3 9 7.6
Anaerobic digester Volume m 3 20 26.5
PHA fermenter Volume m 3 7.5 6.15

The model outputs ( Table 6) show that the optimisation favours the production of biomethane in relation to PHA. This way, the NPV would increase, as well as the GGI. This latter is motivated by the increase in biogas production (with 60% of CO 2) that increases the direct emissions. According to these results, it is possible to reduce the cost of PHA production and, thus, its price in relation to the initial design and increase its competitiveness.

Table 6. Outputs from the model with the optimised parameters.

Model output Units Value
Corrected Net Present Value (NPV*) 236,939
Greenhouse gasses index (GGI) 16.27
PHA production g/m 3 876.25
Biomethane production g/m 3 571.43
Pure water production m 3/day 9.55

The number of iterations required to attain the optimised set of values has been evaluated and represented in Figure 9. It can be observed that even at a number as low as 50 iterations, the result is similar to that with a much larger iterations number.

Figure 9. Number of iterations versus NPV (each point is the average of 3 runs).

Figure 9.

Discussion and conclusions

The current work presents the AFTERLIFE simulation and optimisation framework and the results of its application for the treatment of food processing wastewater as well as a set of optimised design parameters to consider in the plant design. In the application of multi-objective optimisation, the membrane's area of the filtration step and work volume of the main equipment of the process, i.e., anaerobic digester, anaerobic fermenter and the reactor for PHA production, have been included in the resolution. This way, optimised values for those design parameters have been obtained. Simulations and optimisations trials show positive NPV values, and the set of the optimised design parameters improves this indicator. In the current scenario, the optimisation tool mainly improves the biogas production to reduce the operation cost since the PHA value in the market is low compared to the biogas yield. However, the market scenario is continuously changing, and the current trends show interest in PHA production which could change the market prices. Moreover, the final yields for PHA could be further improved with new bacterial producer strains. This way, the AFTERLIFE process is taking an advantaged position in future market scenarios with a flexible process that treats a reducing cost waste and obtains PHA together with value-added compounds. Additionally, the AFTERLIFE tool allows simulating the performance of the current process scheme for fluctuations in PHA prices, CO 2 emission allowances, operational conditions and a wide range of industrial wastewater, favouring a wide adoption of the technology.

Three runs have been performed and the results have been averaged to determine each simulation point in Figure 9. The deviation among simulations at the same input conditions was lower than 1% for all of them (Underlying Data AFTERLIFE Model). Thus, the reproducibility of the results can be claimed as high.

Even though experimental works do not verify the present results at lab or pilot scales, knowledge from biochemical processes and process engineering agreed with the findings of this optimisation study. The optimisation can also be repurposed for the parametrisation of the models with real experimental data. The main adaptation is that the objective function should be replaced by a quadratic difference between the experimental and the simulated values.

Although the application of the current framework requires reliable mathematical models for the different process steps, it can be affirmed that such models are broadly available in the literature. ADM1 or PHA production models are a probe of this. Moreover, plenty of studies go from simple unstructured models to more rigour metabolic network models.

Besides, as the framework is generic, it can be applied to evaluate other processing schemes by including new units or modifying the current ones. Moreover, it was found that a low number of iterations is required to attempt a good optimisation performance, which reduces the time and computational demand of the framework. Finally, the comparison of the same process with alternative optimisation frameworks based on stochastic techniques will be extremely interesting to assess the performance of both approaches jointly.

Data availability

Underlying data

Zenodo: Underlying data AFTERLIFE model. https://doi.org/10.5281/zenodo.6543225 ( Lopez, 2022)

This project contains the following extended data:

  • -

    Extended data AFTERLIFE model.xlsx [Set of simulation results using AFTERLIFE framework at different number of iterations]

Data are available under the terms of the Creative Commons Attribution 4.0 International license (CC-BY 4.0).

Software availability

Source code available from: https://github.com/maloab/AFTERLIFE-H2020-project

Archived source code at time of publication: https://www.doi.org/10.5281/zenodo.6424235 ( maloab, 2022)

License: Creative Commons Attribution 4.0 International License

Funding Statement

The AFTERLIFE project receives funding from the Bio-based Industries Joint Undertaking (JU) under the European Union’s Horizon 2020 research and innovation programme under grant agreement No 745737. The JU receives support from the European Union’s Horizon 2020 research and innovation programme and the Bio-based Industries Consortium. The sole responsibility for the content of this publication lies with the authors. It does not necessarily reflect the opinion of Bio Based Industries Joint Undertaking. The Bio Based Industries Joint Undertaking is not responsible for any use that may be made of the information contained therein.

The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

[version 1; peer review: 2 approved]

References

  1. Abt V, Barz T, Cruz-Bournazou MN, et al. : Model-based tools for optimal experiments in bioprocess engineering. Curr Opin Chem Eng. 2018;22:244–52. 10.1016/j.coche.2018.11.007 [DOI] [Google Scholar]
  2. Batstone DJ, Vavilin V: Anaerobic digestion model No 1 (ADM1). Water Sci Technol. 2002;45(10):65–73. [PubMed] [Google Scholar]
  3. Corbatón-Báguena MJ, Álvarez-Blanco S, Vicent-Vela MC: Evaluation of fouling resistances during the ultrafiltration of whey model solutions. J Clean Prod. 2018;172(5):358–367. Reference Source [Google Scholar]
  4. Cristóvão R, Botelho C, Martins R, et al. : Chemical and Biological Treatment of Fish Canning Wastewaters. Int J Biosci Biochem Bioinforma. 2012;2(4):237–242. 10.7763/IJBBB.2012.V2.108 [DOI] [Google Scholar]
  5. Cristóvão RO, Gonçalves C, Botelho CM, et al. : Fish canning wastewater treatment by activated sludge: Application of factorial design optimization: Biological treatment by activated sludge of fish canning wastewater. Water Resour Ind. 2015;10:29–38. 10.1016/j.wri.2015.03.001 [DOI] [Google Scholar]
  6. Dutta S, Nath K: Feasibility of forward osmosis using ultra low pressure RO membrane and Glauber salt as draw solute for wastewater treatment. J Environ Chem Eng. 2018;6(4):5635–5644. 10.1016/j.jece.2018.08.037 [DOI] [Google Scholar]
  7. European Commission: Extensive wastewater treatment processes.Luxembourg: Office of official publications of the European Community, 1991. [Google Scholar]
  8. European Commission. 2022. Reference Source [Google Scholar]
  9. Gao Y, Li K: New models for calculating the viscosity of mixed oil. Fuel. 2012;95:431–437. 10.1016/j.fuel.2011.12.043 [DOI] [Google Scholar]
  10. Gawlik L: The Polish power industry in energy transformation process. Miner Econ. 2018;31:229–237. 10.1007/s13563-017-0128-5 [DOI] [Google Scholar]
  11. Hakami MW, Alkhudhiri A, Al-Batty S, et al. : Ceramic Microfiltration Membranes in Wastewater Treatment: Filtration Behavior, Fouling and Prevention. Membranes (Basel). 2020;10(9):248. 10.3390/membranes10090248 [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Jigar E, Bairu A, Gesessew A: Application of IPCC model for estimation of methane from municipal solid waste landfill. J Environ Sci Water Resources. 2014;3(4):052–058. Reference Source [Google Scholar]
  13. Koyuncu I, Sengur R, Turken T, et al. : Advances in water treatment by microfiltration, ultrafiltration, and nanofiltration. Advances in Membrane Technologies for Water Treatment. 2015;83–128. 10.1016/B978-1-78242-121-4.00003-4 [DOI] [Google Scholar]
  14. Liang Y, Yang C, Sun B: Model-based experimental design for nonlinear dynamical systems with unknown state delay and continuous state inequalities. Chem Eng Res Des. 2020;153:635–56. 10.1016/j.cherd.2019.09.001 [DOI] [Google Scholar]
  15. Lopez M: Underlying Data AFTERLIFE Model. Zenodo. 2022. 10.5281/zenodo.6543225 [DOI] [Google Scholar]
  16. Luna MF, Martínez EC: Iterative modeling and optimization of biomass production using experimental feedback. Comput Chem Eng. 2017;104:151–63. 10.1016/j.compchemeng.2017.04.020 [DOI] [Google Scholar]
  17. maloab: Maloab/afterlife-h2020-project:. (v.0.1). [Software]. Zenodo. 2022. 10.5281/zenodo.6424235 [DOI] [Google Scholar]
  18. Mannina G, Ekama G, Caniani D, et al. : Greenhouse gases from wastewater treatment - A review of modelling tools. Sci Total Environ. 2016;551–552:254–270. 10.1016/j.scitotenv.2016.01.163 [DOI] [PubMed] [Google Scholar]
  19. Morales-Rodriguez R, Meyer AS, Gernaey KV, et al. : A framework for model-based optimization of bioprocesses under uncertainty: Lignocellulosic ethanol production case. Comput Chem Eng. 2012;42:115–29. 10.1016/j.compchemeng.2011.12.004 [DOI] [Google Scholar]
  20. Noll P, Henkel M: History and Evolution of Modeling in Biotechnology: Modeling & Simulation, Application and Hardware Performance. Comput Struct Biotechnol J. 2020;18:3309–3323. 10.1016/j.csbj.2020.10.018 [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Pardelha F, Albuquerque MG, Reis MA, et al. : Dynamic metabolic modelling of volatile fatty acids conversion to polyhydroxyalkanoates by a mixed microbial culture. N Biotechnol. 2014;31(4):335–344. 10.1016/j.nbt.2013.06.008 [DOI] [PubMed] [Google Scholar]
  22. Renewables Now.2017. Reference Source [Google Scholar]
  23. Siegrist H, Vogt D, Garcia-Heras JL, et al. : Mathematical model for meso- and thermophilic anaerobic sewage sludge digestion. Environ Sci Technol. 2002;36(5):1113–1123. 10.1021/es010139p [DOI] [PubMed] [Google Scholar]
  24. Tamis J, Marang L, Jiang Y, et al. : Modeling PHA-producing microbial enrichment cultures--towards a generalized model with predictive power. N Biotechnol. 2014;31(4):324–334. 10.1016/j.nbt.2013.11.007 [DOI] [PubMed] [Google Scholar]
  25. Turton R, Shaeiwitz JA, Bhattacharyya D, et al. : Analysis, synthesis, and design of chemical processes.Third Edition. Prentice Hall, New Jersey,2009. [Google Scholar]
  26. Vinther F, Pinelo M, Brøns M, et al. : Mathematical modelling of dextran filtration through hollow fibre membranes. Sep Purif Technol. 2014;125:21–36. 10.1016/j.seppur.2014.01.034 [DOI] [Google Scholar]
  27. World Nuclear Association: How can nuclear combat climate change?Nuclear Essentials. Reference Source [Google Scholar]
Open Res Eur. 2023 May 22. doi: 10.21956/openreseurope.15919.r31378

Reviewer response for version 1

Serkan Eker 1

The paper presents the work conducted within the AFTERLIFE project, which emphasizes bioprocess modeling and optimization through computational tools. The project's goal is to create a flexible, cost-effective, and resource-efficient process for recovering and valorizing significant fractions from wastewater, adopting a zero-waste and circular economy approach. The paper highlights the development and implementation of computational tools for modeling and optimizing the process design.

The process model and optimization methodology were employed to simulate wastewater treatment from the fish processing industry. The development and implementation of computational tools for process design modeling and optimization are detailed in the paper. A modeling-based optimization framework has been established, and the applied optimization approach is computationally efficient and systematically applicable to processes.  The optimization tool's performance is assessed based on the simulation results, providing sufficient information to understand the expected output datasets and any results generated using the tool.

Since no distinct software programs are utilized, it may be easily adapted to other projects. (But you'll need the assistance of knowledgeable end-users for this.) The article is suitable for the target audience of researchers and professionals in the fields of wastewater treatment and bioprocess optimization.

Small changes are needed:

  • high-pure extracts- high-purity extracts

  • physic-chemical processes - physico-*chemical processes

  • biological sludges- biological sludge

  • In Fig 5. Process diagram view. It is quite difficult to read the name of the units in the diagram (ppt). I checked to this diagram from the OpenModelica. 

Is the rationale for developing the new software tool clearly explained?

Yes

Is the description of the software tool technically sound?

Yes

Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?

Yes

Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?

Yes

Reviewer Expertise:

Environmental engineering, biological treatment: modeling and optimization, wastewater treatment systems; bioconversion of waste, renewable energy, biofuel production

I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.

References

  • 1. : Modeling and optimization of wastewater treatment processes.2021; 10.1016/B978-0-12-821009-3.00006-3 373-396 10.1016/B978-0-12-821009-3.00006-3 [DOI] [Google Scholar]
  • 2. : Modeling the impact of food wastes on wastewater treatment plants. J Environ Manage .2019;237: 10.1016/j.jenvman.2019.02.065 344-358 10.1016/j.jenvman.2019.02.065 [DOI] [PubMed] [Google Scholar]
Open Res Eur. 2022 Oct 21. doi: 10.21956/openreseurope.15919.r30099

Reviewer response for version 1

Carmen Zaharia 1

The manuscript subject is challenging, actual, and important in developing flexible, cost-efficient processes as well as good practices for waste recovery and valorization, especially in the food industry but in a controlled, or computer-assisted manner in which the modelling and mathematical optimization of bioprocesses have a significant role. It is a study that considered the wastewater treatment in the fish processing industry and after treatment and valorization of some separated fractions by adequate bioprocesses as value-added products, thus minimizing the waste quantity and also recovery of useful compounds as it is recommended by the circular economy.

I carefully read the manuscript and I like it, being clear, logical, and well-written. Moreover, the treated subject is a recognized concern of mankind which prioritizes the progress and developing requirements, i.e. low-cost and facile way of separating different fractions from industrial wastewaters (filtrated solids with numerous organics, nutrients such as N, P, metal microelements, etc.) by efficient membrane processes, and after their treatment by bioprocesses as well as wet processes, such as digestion/fermentation for useful products obtaining/preparation (e.g., extracts, metabolites, etc.). Therefore, the total separation of solids in sewage was proposed to be achieved through a cascade of membrane filtration units and after the concentrates were treated to obtain high pure extracts and metabolites or converted into value-added biopolymers (polyhydroxyalkanoates). The final filtration outflow is an ultra-pure water stream that can be recycled. This complex technological treatment system was discussed and named the AFTERLIFE process and was designed and optimized to always get an adequate performance and reduced costs in connection with maximizing recoveries from the wastewater treatment systems. In this case, there were utilized efficient and corresponding computational tools to design and optimize a wastewater treatment process from the fish processing industry. The performance of simulation, modelling, and mathematical optimization tools was evaluated and validated and their beneficial effects were underlined.

Regarding the question, " Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?", for non-specialized readers, the answer is 'Partly', as the understanding of statistics and model interpretation is not an easy one to process. But for specialized readers, the answer is 'Yes' as there are enough data which can be processed by them to see if the same results are obtained, and thus to understand that some approaches were considered for data appreciation, interpretation, and validation.

I like this manuscript and I consider that, after a few minor corrections, this manuscript can be accepted for indexing.

Minor corrections required:

  1. A few English grammar and spelling corrections are required.

  2. In Figure 3, page 7, correction of the term as ‘hydrolysis’.

  3. I recommend using the terminology of ‘physical-chemical’ instead of ’physic-chemical’, page 12, line 5, second column.

  4. In Table 1, page 12 must be inserted the measurement units for two elements (as mg/L).

These are some of the minor corrections required for the improvement of the manuscript quality.

Is the rationale for developing the new software tool clearly explained?

Yes

Is the description of the software tool technically sound?

Yes

Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?

Yes

Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?

Yes

Reviewer Expertise:

Environmental engineering and management; chemical engineering; simulation, modelling and optimization of water/wastewater treatment technological processes; energy and environment; waste treatment and valorization, environmental chemistry, among others.

I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Data Availability Statement

    Underlying data

    Zenodo: Underlying data AFTERLIFE model. https://doi.org/10.5281/zenodo.6543225 ( Lopez, 2022)

    This project contains the following extended data:

    • -

      Extended data AFTERLIFE model.xlsx [Set of simulation results using AFTERLIFE framework at different number of iterations]

    Data are available under the terms of the Creative Commons Attribution 4.0 International license (CC-BY 4.0).


    Articles from Open Research Europe are provided here courtesy of European Commission, Directorate General for Research and Innovation

    RESOURCES