1 Introduction 

Sewage sludge (SS) is a by-product of wastewater treatment plants (WWTPs) that comprises primary and secondary sludge. Primary sludge originates from WWTP’s primary treatment, where a primary clarifier or settling tank is used to remove the settleable solids from sewage. These removed settled solids produced from primary treatment are known as primary sludge. After primary treatment, the wastewater still includes high biodegradable organic matters that must be removed to prevent pollution from receiving waterbody. Hence, the activated sludge process is used to reduce biodegradable organic matters of wastewater. The process mixes wastewater with biomass to assimilate the organic matter present in sewage, thus reducing the oxygen demand. The process produces an excess growth of biomass, known as waste-activated sludge or secondary sludge. (Muhammad Yogi [1]. SS can be divided into two categories, which include municipal sludge and industrial sludge. Municipal sludge consists of a high fraction of organic matter and water. In contrast, industrial sludge consists of a higher fraction of inorganic contaminants such as heavy metals [2].

In Malaysia, approximately 500,000 metric tons of mixed SS were produced in 2013, and the amount is expected to increase to 7 million metric tons by 2020 [3]. The ultimate disposal point of SS for most developing countries, including Malaysia, is landfilling. SS is classified as industrial waste and can only be disposed to specified landfill sites in compliance with legislation (Bradley, 2004). However, stricter landfill legislation and high landfill costs impel the plant stakeholders to look for alternative ways to valorize sludge. Besides, the requirement of enormous landfill space and the presence of hazardous or toxic constituents in SS (i.e. grit and sand, organic and inorganic substances, pathogen microbes, heavy metals) that might leach out from landfills and pollute the groundwater network further hinder the application of SS landfilling [4].

It is reported that almost 50% of the sewerage sludge systems in Malaysia used mechanized plants, whereas others still use communal septic tanks, Imhoff tanks, and oxidation ponds [5]. A sewage sludge treatment plant (SSTP) is usually located next to or inside a WWTP to treat the SS before disposing it to a landfill site immediately. In most mechanized plants, SS is first dewatered, followed by the sludge thickening and drying processes, and lastly sent to the landfill site [6]. While SS is often viewed as a waste to be disposed of, it contains a significant amount of organic and nutrient resources that can be recovered and beneficially utilized [7]. The commonly practiced sustainable sludge valorization techniques (SVTs) in Malaysia are anaerobic digestion (AD) and incineration. AD uses anaerobic archaea to break down volatile organic solid in the SS to produce biogas and stabilize SS [5, 89, 10]. Biogas generated from AD can either be used for in-plant heat energy supply or electrical energy generation. Incineration is usually applied for industrial sludge or mixed sewage sludge (a mix of municipal sewage sludge and industrial sludge) to reduce the SS mass and volume by 70 to 90% due to the presence of toxicants and heavy metals [11]. However, the residue remained after incineration, and air pollutants emitted into the atmosphere in gaseous form can be a significant source of ecological degradation [12].

Although various studies have been conducted based on the individual SVT, the research on the process integration between SVTs is relatively scarce. Chai et al. [13] presented a study to estimate and compare the carbon footprint emission of different wastewater treatment technologies and SVTs. The carbon footprints of each technology were calculated based on direct emissions of carbon dioxide (CO2) and nitrogen oxide (N2O) as well as indirect emissions of electricity use. Garrido-Baserba et al. [14] used simulation software to evaluate the economic and global warming potential (GWP) of mesophilic anaerobic digestion (MAD), thermophilic anaerobic digestion (TAD), incineration, gasification, and supercritical water oxidation. Multi-objective optimization was used to assign economic assessment priorities and GWP assessments to identify the most optimum SVT pathway. Supercritical water oxidation was the most suitable option if both criteria were considered equally important. Bianchini et al. [15] evaluated a waste-to-energy plant’s economic viability using process integration to recover waste heat energy for SS drying. The study concluded that SS’s incineration is only economically feasible if industrial waste heats were used for sludge drying. Song et al. [16] conducted a techno-economic analysis of SSTP by considering four pre-defined process pathways which are: (i high concentration AD, followed by dewatering and drying; (ii thermal hydrolysis, followed by high concentration AD, dewatering, and drying; (iii low concentration AD, followed by dewatering and drying, and (iv drying followed by incineration. The investigation results indicated that thermal hydrolysis followed by AD, dewatering, and drying has the optimal energy integration efficiency without natural gas’s external input. Zhou et al. [6] used a multi-criterion decision-making method by considering the environmental, economic, and social aspects as evaluation criteria to determine the optimal SVT pathway. The study evaluated six pre-defined SVTs: lime stabilization, incineration, cement kiln, hydrothermal-pyrolysis, AD followed by composting, and brick manufacturing. It was concluded that AD followed by composting is the ideal solution for sustainable sludge treatment. These studies benefit the industrial stakeholders in assessing the economic and environmental impacts of different SVTs.

In consideration of the rise in global SS production and the heightened environmental awareness in the community, the development of an economically and environmentally sustainable SS treatment becomes progressively critical. Nevertheless, some limitations are found in the existing research, including the absence of in-depth research on the process integration between different mature SVTs and the development of an end-to-end SS valorization process, i.e., from receiving raw SS to the final disposal of SS. Therefore, this study aims to fill the research gap by proposing a single objective optimization approach that allows process integration between different SVTs to identify the most optimal end-to-end SS valorization process route in terms of economic and environmental metrics. A case study involving the usage of domestic SS and mixed SS (a mixture of domestic SS and industrial sludge) as the feed is presented to evaluate the sustainability performance of the SVT pathway, which is developed using a mixed-integer linear programming (MILP) optimization model with the objective function of total annualized cost (TAC). Note that the SVTs considered in this study comprised different sludge stabilization, phosphorus removal, and sludge disposal methods. Carbon pricing is included in the calculation of TAC to take the GWP of SVTs into account. The superstructure of the optimized SVTs using different SS feeds is presented, and their performance in comparison with the conventional SVT is discussed in this paper. Finally, a sensitivity analysis is conducted to assess the effect of population equivalent (PE) and carbon tax price on the selection of SVTs.

2 Problem statement

Previous research work from Zhou et al. [6] has evaluated various SVT pathways based on their economic, environmental, and social sustainability performances using a multi-criteria decision-making approach. The study, however, was constrained to six pre-defined SVT process pathways, as shown in Fig. 1. This study limitation rendered multiple SVT process pathways to be disregarded, which can potentially establish a more feasible and environmentally friendlier SS valorization route. Hence, this work tends to improve the flexibility of the proposed superstructure from Zhou et al. by allowing the interconnection between SVTs, as presented in Fig. 2. A single objective function of minimizing TAC is implemented in the optimization model of this study, which constitutes total capital cost (CAPEX), operating cost (OPEX), global warming potential related cost (GWPEX), and revenue gained. The calculating equation for TAC is represented by Eq. (1). The incorporation of GWPEX in the form of carbon taxes or credits into the TAC calculation is essential for taking the GWP of the SVT into the consideration. The charging of carbon taxes indicates that the unit operation would contribute to the carbon emission. Meanwhile, a carbon credit can be claimed if the technology involved removes more carbon than it emits. In Eq. (1), the GWPEX would be a positive value if the payment of carbon taxes is required, but the opposite for carbon credit since it reduces the TAC incurred. The revenue is obtained by selling valuable products from SSTP, such as electricity generated from the CHP system through biogas utilization, where biogas is produced from AD.

Fig. 1
figure 1

adapted from Zhou et al. [6]

Pre-defined SVT process pathway

Fig. 2
figure 2

Generic superstructure for SSTP Case study

$$TAC=CAPEX+OPEX+GWPEX-\mathrm{Revenue}$$
(1)

Figure 2 shows the end-to-end SS valorization process of the SSTP, where the received raw SS \(r\in R\)(e.g., domestic SS and mixed sludge) will undergo several treatment units before disposing of the sludge. The SS sources from WWTP will first be fed to the SS thickening unit \(l\in L\). The thickened sludge will then be sent to the sludge stabilization unit \(k\in K\), and/or nutrient removal unit \(j\in J,\) and/or dewatering unit \(g\in G\). Further treatment \(n\in N\) is required for SS so that it can be finally disposed of through several possible disposal methods \(o\in O\). Note that material and energy recovery technology \(y\in Y\) is included in the SSTP to valorize the energy and by-products generated from sludge stabilization and nutrient removal units. The wastewater from thickening and dewatering units will be directed back to WWTP.

A case study is synthesized and solved in the following sections to demonstrate the developed optimization approach. The case study is modeled based on the WWTP in Jelutong, Penang, which is one of the largest WWTP in Malaysia that serves the wastewater produced by PE of 800,000 [5]. The baseline scenario is simulated to represent the current Malaysian SS valorization method, where the SS will undergo thickening, dewatering, sludge drying, and landfilling. To illustrate the applicability of the proposed optimization framework in addressing a variety of feedstock compositions, two case scenarios are developed in this study. Case 1 uses domestic SS as the feedstock, whereas the SSTP in Case 2 is fed in with a mixed sludge (i.e., a mixture of domestic SS and industrial sludge). It is a common practice to treat both industrial and municipal sewage by mixing them in Malaysia. The only difference between both cases is the composition of sludge feed, whereby SS in Case 2 has higher heavy metal content than Case 1 due to the mixing of industrial sludge. It is assumed that the industrial sludge will constitute 25–50 wt% of the total SS in Case 2. Figure 3 shows the superstructure of the proposed SSTP with the interconnections between multiple SVTs.

Fig. 3
figure 3

Proposed SSTP superstructure

The raw sewage sludge with a mass flow rate of \({m}^{RF}\) firstly sent to the thickener to reduce its water content to 94 vol%. Subsequently, the thickened sludge can be sent to either the sludge stabilization or dewatering unit. For sludge stabilization, the thickened sludge can be treated through mesophilic anaerobic digestion (MAD) or thermophilic anaerobic digestion (TAD) [17]. The biogas produced from the anaerobic digestion (AD) processes is primarily consisting of methane and carbon dioxide [18, 19]. Hence, the biogas can be utilized in a combined heat and power (CHP) system to generate electricity for selling purposes. The anaerobically digested sludge can then be treated in the AIRPREX system or directly sent to the dewatering unit. AIRPREX process is designed as a complete biosolids optimization and phosphorus recovery system that is installed after AD to enhance biological phosphate elimination [20].

In the phosphorus removal process, magnesium salt (MgCl) is added to precipitate the phosphorus present in stabilized sludge to produce struvite [21]. Struvite that is rich in phosphorus can be sold as fertilizer [22]. Note that the treated sludge from the AIRPREX system still needs to be transferred to the dewatering unit. In the dewatering process, the polymer is added to improve the dewaterability of SS. The water removed from SS during thickening and dewatering processes will be directed back to the wastewater treatment plant for secondary treatment. Finally, the dewatered sludge can be sent to the landfill site, incineration unit, or utilized for land application [23]. The drying process is needed before incineration to further reduce SS moisture content to 30 wt%, as the requirement for self-incineration of SS to take place. The incinerated sludge can be used as a feedstock for building materials such as cement manufacturing.

Several assumptions are made to simplify the problem addressed. First, the maintenance costs, piping cost, electricity grid construction of SSTP, transportation cost of sewage sludge, and labor cost are excluded. Besides, the heat integration between the selected SVTs is not considered in this study. For instance, the heat generated from CHP will not be used to heat the anaerobic reactor. It is also assumed that the energy losses along the electrical transmission lines from CHP to the electrical substation are negligible. Although the variation in SS feedstock flow rate and composition is usual in real cases, a steady-state condition is assumed in this study whereby the SS flow rate and composition remain constant. The conversion rate of Euro to RM is assumed to be 1:4.69. The SSTP is assumed to have an operating life of 20 years, with 7920 operating hours per annum.

3 Research methodology

The research methodology is divided into three sections. In the first and second sections, the mass and energy balances of the sewage sludge are formulated. The third section includes the formulation of the variables present in the objective function Eq. (1), i.e., CAPEX, OPEX, revenue, and GWPEX.

3.1 Composition of raw sludge feed and mass balances for SVTs

Raw sludge (RS) feed in Malaysia has a dry solid content of 0.05 by weight [24]. The PE of RS is scaled to 800,000, whereby the average SS produced per capita in the conventional activated sludge process is estimated to be 40 g dry solids/inhabitant/day, with a dry solid concentration of 3 wt% [25]. Hence, the daily SS production is equivalent to 32,000 kg dry solids/day or 1,066,667 kg SS/day. The SS compositions for domestic and mixed sludge are provided in Tables 1 and 2. Note that the domestic sludge may contain a minor amount of heavy metals as shown in Table 2, which can be originated from urban run-off or galvanized pipes in the WWTP. However, it is within the national waste treatment and disposal guideline limits in Malaysia. By contrast, the heavy metal content of mixed SS (e.g., Cd and Zn) exceeds the guideline limits, which can impact human health and would cause various types of cancer [26].

Table 1 Composition of domestic and mixed SS (dry basis) [27]
Table 2 Heavy metal contents of domestic and mixed SS [27]

The mass balance calculations for all SVT units, i.e., thickening, sludge stabilization, nutrient removal, dewatering, further treatment, SS disposal, and material and energy recovery technologies are summarized in Supplementary Materials Section A.

3.2 CAPEX, OPEX, revenue and GWPEX

This section discusses the computation of CAPEX and OPEX of individual unit operations as well as the revenue gained from the operation of SSTP. Besides, the GWPEX of the unit operations is estimated to determine the carbon taxes charged or carbon credits given for SSTP operation. The lifetime of SSTP is assumed to be 20 years, and the total annualized cost is calculated by using an annualizing factor (AF) of 0.1598/year. Note that for GWPEX the carbon tax is charged with the price of 7 Euro/ ton of CO2 or RM 0.03283/ kg of CO2 as a penalty for contributing to global warming. A similar price of carbon credit (7 Euro/ton of CO2 reduced) is given, if the SVT units exhibit negative carbon emissions.

3.2.1 Sludge thickening

Since the wastewater generated from the sludge thickening process will be directed to WWTP, the GWP of the thickening unit is negligible. The OPEX of thickening is assumed to be 5% of its CAPEX. The CAPEX of the thickening unit can be calculated using Eq. (2) [29].

$$CAPE{X}^{TH}=1340\times \frac{{V}^{RF}}{24}+9762.5$$
(2)
$$RE{V}^{TH}=GWPE{X}^{TH}=0$$
(3)
$$OPE{X}^{TH}=0.05\times CAPE{X}^{TH}$$
(4)

3.2.2 Sludge stabilization

The formulation of both sludge stabilization technology options, i.e., MAD and TAD, is presented in this section. Note that the CAPEX estimated is based on the cost prices reported in 2016. Hence, the result obtained is adjusted using the ratio of the price index. The price index in 2016 and 2019 are \({PI}_{2016}\) = 499.6 and \({P}_{2019}\) = 607.5, respectively. Since there is fugitive emission of biogas from AD, carbon taxes will be charged accordingly. Likewise, the OPEX of the sludge stabilization unit is assumed to be 5% of its CAPEX.

Given that the MAD process involves two anaerobic digesters, the total CAPEX of MAD can be calculated as:

$$CAPE{X}^{MAD,s1} ={\dot{V}}^{TH,S}\times R{T}^{MAD,s1}\times s.f. \times 1080$$
(5)
$$CAPE{X}^{MAD,s2}={\dot{V}}^{TH,S}\times R{T}^{MAD,s2}\times s.f. \times 1080$$
(6)
$$CAPE{X}^{MAD}=\left(CAPE{X}^{MAD,s1}+CAPE{X}^{MAD,s2}\right)\times \frac{P{I}_{2019}}{P{I}_{2016}}$$
(7)

As TAD only requires one anaerobic digester, the total CAPEX of TAD can be estimated as:

$$CAPE{X}^{TAD} ={\dot{V}}^{TH,S}\times R{T}^{TAD}\times s.f. \times 1080\times \frac{P{I}_{2019}}{P{I}_{2016}}$$
(8)

where, RT is retention time, \(s.f.\) is the safety factor (1.1).

$${REV}_{k}^{AD}=0$$
(9)

The GWP of both AD can be represented by:

$$GW{PEX}_{k}^{AD}={\dot{m}}_{k}^{BG, leak}\times GW{P}^{BG}\times {U}^{{\mathrm{CO}}_{2}}$$
(10)
$${m}_{k}^{BG, leak}= {\dot{m}}_{k}^{AD,BG}\times {BG}^{FG}$$
(11)

where, \(GW{P}^{BG}\) is GWP of biogas equivalent to CO2 (25 kg CO2/ kg biogas).

3.2.3 Energy and material recovery

The electricity generated through energy recovered from CHP system is the main profit source in SSTP. It is assumed that a feed-in-tariff \((FiT)\) of RM 0.3184/kWh will be provided by the Sustainable Energy Development Authority (SEDA) Malaysia. The annual operating hour \(\left({Y}^{h}\right)\) of WWTP is assumed to be 7920 h or 330 days. It is assumed that the electricity generation in the CHP system will contribute to a GWP reduction \(\left(GW{P}_{ele}\right)\) of 0.9 \(\mathrm{kg} {\mathrm{CO}}_{2}/\mathrm{kWh}\). The unit cost of \({U}^{CHP}\) is RM 12,374.8/kW. Similarly, the CAPEX obtained is adjusted using the ratio of the price index, where the price index in 2013 and 2019 are given as 567 and 608, respectively.

$$RE{V}^{CHP}=E{G}^{CHP}\times {Y}^{h}\times FiT$$
(12)
$$CAPE{X}^{CHP}= {EG}^{CHP}\times {U}^{CHP}\times \frac{{\mathrm{PI}}_{2019}}{{\mathrm{PI}}_{2013}}$$
(13)
$${OPEX}^{CHP}=0.05\times CAPE{X}^{CHP}$$
(14)
$${GWPEX}^{CHP}= GW{P}_{ele}\times E{G}^{CHP}\times {{U}^{{\mathrm{CO}}_{2}}\times Y}_{d}$$
(15)

The struvite produced from the phosphorus recovery unit is sold at the price \(\left({U}^{AP}\right)\) of RM 258/ton. The phosphorus recovery process requires MgCl to form struvite at a dosing rate of 1828 kg MgCl for 418,000 tons of SS, where the unit price of MgCl \(({U}^{MgCl})\) is RM 352/ tons. Since struvite sold can be used to substitute manufactured fertilizer, it is assumed that the GWP of the phosphorus recovery unit is negative, as it contributes to carbon reduction. Given that Eq. (16) is a non-linear equation, a piecewise linearization is performed to linearize Eq. (16) as shown in Supplementary Material Figure B.1.

$$RE{V}^{AP}={\dot{m}}^{AP,Ph}\times {U}^{AP}/1000$$
(16)
$$CAPE{X}^{AP}={\left(\frac{{\dot{m}}_{k}^{AD,S}}{1000}\times \left(\frac{365}{Li{t}^{cap}}\right)\right)}^{0.65}\times Li{t}^{AP,Eq}$$
(17)
$$OPE{X}^{AP}=\frac{{\dot{m}}_{k}^{AD,S} (365)}{1000 (Li{t}^{cap})}{U}^{MgCl}$$
(18)
$$GW{PEX}^{AP}= -1.4\times \frac{PE}{365}\times {U}^{{\mathrm{CO}}_{2}}$$
(19)

where, \(Li{t}^{AP,Eq}\) is the literature capital cost of phosphorus recovery unit \((RM \mathrm{6,097,000})\).

3.2.4 Dewatering

The dewatering process consumes polymer at a rate of 1.5 tons based on the literature capacity \(\left(Li{t}^{DW,Poly}\right)\). The unit price of polymer \({U}^{poly}\) is RM 18,760/ton. Since the dewatering process only generates wastewater that is directed back to WWTP, the GWP of the dewatering process can be assumed to be negligible. Note that there is no revenue generated in the dewatering unit. Since the dewatering unit can receive the influent stream from either thickening, AD, or phosphorus recovery, the cost calculation for the dewatering unit can be expressed as follows [30]:

$$CAPE{X}^{DW}= 3811.9\times \left(\frac{{\dot{V}}^{TH,S}+ {\dot{V}}^{AD,S}+{\dot{V}}^{AP,S} }{24}\right)+\mathrm{12,563}$$
(20)
$$OPE{X}^{DW}={U}^{poly}\times \frac{{\dot{m}}^{TH,S}+ {\dot{m}}^{AD,S}+ {\dot{m}}^{AP,S}}{1000}\times \frac{{Y}^{d}}{Li{t}^{cap}}\times Li{t}^{DW,Poly}$$
(21)
$$OPE{X}^{DW}={U}^{poly}\times \frac{{\dot{m}}^{AP,S}}{1000}\times \frac{{Y}^{d}}{Li{t}^{cap}}\times Li{t}^{DW,Poly}$$
(22)
$$GW{PEX}^{DW}=RE{V}^{DW}=0$$
(23)

3.2.5 Landfilling

For landfilling option, since the transportation costs are not considered in this study, hence the calculation will only include the GWP of landfilling \((GW{P}^{LF})\). Note that the GWP of non-digested sludge landfilling is obtained from Liu et al. [31] as \(1898 \mathrm{kg C}{\mathrm{O}}_{2}/\mathrm{ton}\) and the GWP of digested sludge landfilling is from Hobson and Martinsen, [32] as \(474 \mathrm{kg C}{\mathrm{O}}_{2}/\mathrm{ton}\). The high GWP value from landfilling of non-digested sludge is due to the fugitive emissions of CH4 produced from anaerobic decomposition of sludge in the underground, especially when the sludge is not stabilized and contains a high concentration of pathogens [33].

$$GW{PEX}^{LF}= {\dot{m}}^{DW,S}\times GWP{}^{LF}\times {U}^{{\mathrm{CO}}_{2}}$$
(24)
$$CAPE{X}^{LF}=OPE{X}^{LF}=RE{V}^{LF}=0$$
(25)

3.2.6 Land application

SS quality is an important decision factor for land application as the dewatered sludge will be used as a fertilizer to provide nutrients to agricultural land. Land applications using dewatered sludge are cost-effective as the transportation costs are excluded [34]. In this study, two constraints are applied to the land application pathway. First, the RS needs to be domestic and cannot be mixed with any industrial sludge due to the presence of heavy metals. Second, the sludge must undergo AD to reduce its pathogen content to the acceptable limit [35]. Note that the GWP of land application SS is obtained from Liu et al. [31], i.e., \(73\mathrm{ kg C}{\mathrm{O}}_{2}/\mathrm{ton}\).

$$GW{PEX}^{LA}= {\dot{m}}^{DW,S}\times GWP{}^{LA}\times {U}^{{\mathrm{CO}}_{2}}$$
(26)
$$CAPE{X}^{LA}=OPE{X}^{LA}=RE{V}^{LA}=0$$
(27)

3.2.7 Drying

It is assumed that the sludge drying takes place by evaporating the SS through natural convection, hence no carbon emissions are released from the sludge drying process. The CAPEX of the sludge drying process is estimated using Eq. (28) [36]. As Eq. (28) is a non-linear equation, a piecewise linearization approach is used to linearize Eq. (28), as shown in Supplementary Material Eq. (B.2) and (B.3).

$$CAPE{X}^{DR}={\left(\frac{{\dot{m}}^{DW,S}}{1000\times 100}\right)}^{0.65}\times \mathrm{341,600}$$
(28)
$$RE{V}^{DR}=GW{PEX}^{DR}=0$$
(29)

3.2.8 Incineration

The CAPEX and OPEX of the incineration unit as shown in Eq. (30) and (31) are derived from Ashwekar et al. [37]. The carbon emissions released from digested and non-digested sludge during incineration (\(GW{P}^{INC}\)) are assumed to be \(898 \mathrm{kg C}{\mathrm{O}}_{2}/\mathrm{ton}\) and \(499.4 \mathrm{kg C}{\mathrm{O}}_{2}/\mathrm{ton}\), respectively [31].

$$CAPE{X}^{INC}=\left[\left(0.61\times \frac{{\dot{m}}^{DR,S}{\times Y}^{d}}{\mathrm{1,000,000}}+7.887\right)+7.887\right]\times {10}^{6}$$
(30)
$$OPE{X}^{INC}=\left[\left(0.0283\times \frac{{\dot{m}}^{DR,S}{\times Y}^{d}}{\mathrm{1,000,000}}+7.887\right)+7.887\right]\times {10}^{6}3$$
(31)
$$GW{PEX}^{INC}= GW{P}^{INC}\times {\dot{m}}^{DR,S}\times {U}^{{\mathrm{CO}}_{2}}$$
(32)

3.2.9 Ash disposal

The incinerator bottom ash can either be landfilled or used as a raw material for the manufacturing of bricks. Note that landfilling of ash has negligible GWP. On the other hand, the utilization of ash for brick manufacturing shows negative GWP, where = \(GW{P}^{BM}-3.7 \mathrm{kg C}{\mathrm{O}}_{2}/\mathrm{ton}\).

$$GW{PEX}^{BM}=GW{P}^{BM}\times {\dot{m}}^{INC,S}\times {U}^{{\mathrm{CO}}_{2}}$$
(33)

3.2.10 Total annualized cost

TAC is determined based on the CAPEX, OPEX, revenue gained, and carbon taxes charged. There are two revenue sources in the SSTP, which are the sales of electricity generated and the sales of struvite as the fertilizer. The latter is applicable only if the phosphorus recovery pathway is selected. The net electricity and heat generation from the SSTP are expressed as Eqs. (34) and (35). The total revenue, CAPEX, OPEX, and GWP of the SSTP are calculated using Eqs. (36)–(39).

Binary term b indicates the selection of SVT for the SS treatment pathway. SVTs are represented by variable z, where \(z \in Z\) can be computed as: \(z=\left\{\mathrm{1,2}, \dots 11\right\}\), corresponding to superscripts {TH, MAD, TAD, CHP, AP, DW, LF, LA, DR, INC, BM} (the definition of the superscripts can refer to Nomenclature). Since the product of a binary term and a continuous variable is a non-linear equation, the equation linearization is performed as shown in Supplementary Materials Section D.

$${E}^{T}=\sum_{z}^{Z}{ b}_{z}\times E{G}^{z}$$
(34)
$${H}^{T}=\sum_{z}^{Z}{ b}_{z}\times \left(H{G}^{z}-H{C}^{z}\right)$$
(35)
$${REV}^{T}=\sum_{z}^{Z}{ b}_{z}\times {REV}^{z}$$
(36)
$${CAPEX}^{T}=AF\times \sum_{z}^{Z}{ b}_{z}\times {CAPEX}^{z}$$
(37)
$${OPEX}^{T}=\sum_{z}^{Z}{ b}_{z}\times {OPEX}^{z}$$
(38)
$${GWPEX}^{T}=\sum_{z}^{Z}{ b}_{z}\times {GWPEX}^{z}$$
(39)

Finally, the objective function of minimizing the TAC of SSTP is set for synthesizing an optimal SVT process pathway through the proposed optimization framework. The objective function used is shown in Eq. (40).

$$Min TAC=CAPE{X}^{T}+OPE{X}^{T}+GWPE{X}^{T}-RE{V}^{T}$$
(40)

4 Results and discussion

In this section, the optimization results of SSTP are firstly discussed for both case scenarios: (1) domestic and (2) mixed SS. A sensitivity analysis is then performed to study the effect of carbon tax price and PE on the selection of SVTs.

4.1 Optimization results and analysis

The proposed SSTP is formulated as a mixed-integer linear programming (MILP) model and solved using the LINGO v18.0 global solver. The modeling equations used to present the optimization results are shown in Sect. 4. Note that some of the equations contain bilinear terms. Hence, a piecewise linear approximation technique is applied to linearize these bilinear terms for model solving. The constraints for the linearization of bilinear terms are shown in Supplementary Materials Section C. The model has 264 variables and 99 integers and is solved using 8 GB RAM, 64-bits Operating System Windows 10 within 0.49 s. The baseline scenario that simulates the conventional SS treatment practice in Malaysia is illustrated in Fig. 4a, whereby the raw SS will undergo thickening, dewatering, and landfilling. The simulation results for Cases 1 and 2 are presented in Figs. 4b and c. By comparing the SSTP model between the baseline scenario and Cases 1 and 2, it is noticed that an additional sludge stabilization unit is included in the SSTP of Cases 1 and 2. The sludge stabilization method selected in both cases is TAD, and the biogas produced from TAD is sent to the CHP system for energy recovery and generation. TAD is preferred over MAD as it exhibits a higher biogas yield and organic loading rate as well as lower hydraulic time, which ultimately reduces TAD reactor volume, and a lower CAPEX can be attained [39].

Fig. 4
figure 4

Optimized SSTP for (a) baseline scenario, (b) Case 1 and (c) Case 2

From Figs. 4b and c, it is noticeable that only the AD process is selected for sludge valorization but not other SVT technologies such as the AIRPREX system and incineration, regardless of the type of SS feed. Considering the limited phosphorus content of SS as shown in Table 1, the revenue gained from selling struvite products is not sufficient to defray the expenses for installing and operating the AIRPREX system, thus rendering it to be economically infeasible. Hence, a direct land application using the dewatered phosphorus-containing SS would be a more viable option compared to the implementation of the phosphorus recovery process. SS incineration is also not preferred in this case due to the high moisture content of SS even after dewatering. While the installation of an additional drying unit can solve the problem; however, it is not ideal from an economic perspective. Ashwekar et al. [37] reported that incineration would contribute to significant carbon emissions, hence requiring sophisticated air emission control equipment to mitigate the environmental impact of the incineration process. This further hinders the application of the incineration process to eliminate the sludge and for brick manufacturing using ashes.

Though both Cases 1 and 2 show similar sludge valorization approaches, the SS disposal methods selected are completely different. Case 2 chooses the same disposal approach as the baseline scenario, i.e., landfilling. However, in Case 1, the dewatered sludge is sent for land application. The selection of final disposal methods is highly dependent on the sludge quality, especially its heavy metal contents. Therefore, landfilling is a more appropriate option for Case 2 due to the high concentration of heavy metals in the mixed sludge that exceeds the Malaysian guideline limits for land application [28].

For domestic SS feed, the selected SVT pathway from this study coincides with the research findings from Zhou et al. [6], where the AD followed by land application is considered the most optimal sludge valorization and disposal pathway from both economic and environmental perspectives. Zhou et al. solved this multi-attribute decision-making problem using a combination of the analytic hierarchy process (AHP) and Vlsekriterijumska Optimizacija I Kompromisno Resenje (VIKOR) method, which assesses the ranking of the different pre-defined SVT pathways to evaluate the compromise solution. On the other hand, this study modified the problem by allowing the development of other feasible pathways and analyzed it using a unique single-objective mathematical optimization framework. The agreement between the result of both studies that utilize different optimization approaches indicate that the implementation of AD technology and proper land application is the most important among all SVTs to realize sustainable sludge management. This outcome also reveals the feasibility of the proposed framework to solve the complicated multi-criteria decision-making problem by simplifying it into a single-objective optimization problem, which can be more time effective without compromising the solution validity.

The calculated TAC for each case scenario is tabulated in Table 3. The TAC for the baseline scenario is estimated to be RM 691,072, which is mainly contributed by the charging of carbon taxes (96% of TAC, or equivalent to RM 661,948) due to SS landfilling. It is reported that the landfilling of non-digested sludge would result in a high amount of greenhouse gas (GHG) emissions as a consequence of organic matter decomposition in SS [31]. The TAC for Case 1 and Case 2 are RM 323,774/year and RM 461,444/year, respectively. Compared to the baseline scenario, the implementation of the proposed SVT pathway for Cases 1 and 2 saves about 53% and 33% of TAC, respectively. Despite the high CAPEX for the optimized SSTP (RM 4,945,638/year) due to the installation of TAD and CHP systems, the selling of electricity generated from the CHP system (RM 4,388,630/year of revenue) in the optimized SSTP can offset the expensive CAPEX requirement. Besides, it is worth mentioning that the proposed SVT pathway has negative GWP regardless of SS feed type. The negative GWP indicates that the optimized SS treatment processes do not generate extra GHG; instead, they minimize the GHG emissions as a result of biogas utilization to displace fossil fuels for electricity generation. The results obtained are in agreement with the study conducted by Daniel-Gromke et al. [40] where negative GWP (\(-49 \mathrm{kg C}{\mathrm{O}}_{2}\) equivalent per ton of bio-waste) can be achieved if AD is implemented. Owing to the negative GWP, carbon credits are provided to the proposed SSTP operation instead of being charged with a substantial amount of carbon tax. This explains the better economic feasibility of the proposed SSTP compared to conventional SS treatment processes.

Table 3 TAC of optimized SSTP

The difference in TAC between Cases 1 and 2 is due to the selection of the final disposal method. As previously stated, landfilling is selected in Case 2 instead of land application owing to the high heavy metal concentration of the mixed sludge. Methane, the most efficient gas to greenhouse emissions, is produced when the landfilled SS is left to decay anaerobically. On the other hand, the dewatered SS in Case 1 is utilized as a fertilizer or soil improver, where organic matters in SS are absorbed by plants rather than being decomposed anaerobically [31]. Hence, higher carbon credits are provided for the SSTP operation of Case 1 compared to Case 2. The result indicates that despite the optimized SSTP can treat both domestic and mixed SS efficiently with the same amount of revenue obtained, an additional cost is required when treating mixed SS due to the less ideal SS disposal approach taken with consideration of the environmental conservation and ecosystem balance. Nevertheless, it can be deduced that the proposed SVT pathway is more sustainable than the conventional SS treatment route based on economic and environmental perspectives.

The relative sizes of the selected SVT unit operation CAPEX and OPEX for Cases 1 and 2 are shown in Fig. 5. The installation of the CHP system for heat and electricity generation contributes the most CAPEX and OPEX to SSTP operation, i.e., 60.87% of CAPEX and 59.54% of OPEX. The second highest CAPEX and OPEX contributor is the TAD unit as the anaerobic digesters are expensive and high utility costs are required to control the heat-sensitive AD process. Note that the CAPEX and OPEX of thickening and dewatering units are negligible compared to other unit operations based on the cost breakdown from Fig. 5.

Fig. 5
figure 5

Distribution of (a) CAPEX and (b) OPEX (TH: thickener, DW: dewatering)

Although the AD unit constitutes a great proportion of CAPEX and OPEX, the application of AD systems with biogas capture and utilization technologies is necessary for the development of a sustainable SS treatment process38. Without the installation of the AD systems, the landfilling or land application of SS that consists of fermentable organic matters would result in GHG emissions due to anaerobic decomposition in the underground. During the AD process, the biogas produced with methane as its primary gas constituent needs to be captured to prevent it from escaping to the atmosphere. As elucidated in this study, the collected biogas can be valorized to substitute fossil fuel for electricity generation, which is an important revenue operation for SSTP operation and also further diminishes the GHG emissions to the environment. In light of the importance of AD in addressing climate change issues and potentially generating additional incomes, it is recommended to install an AD system before the dewatering unit instead of directly sending the SS for dewatering as conventionally practiced in the SSTPs in Malaysia.

4.2 Sensitivity analysis

The sensitivity analysis is conducted based on Case 1 to study the effect of PE and the carbon pricing on the selection of the SVT process pathway.

4.2.1 Population equivalent

Note that the amount of SS in this study is quantified in the form of population equivalent (PE). Since the population size is expected to continuously rise in the future, it is imperative to evaluate the impact of SS feed quantity on the economic feasibility of the selected SVT pathway through the proposed optimization framework. The effect of PE on the TAC for the selection of the SVT process route is studied through the alteration of PE by − 50%, − 20%, + 20%, and + 50%. As displayed in Fig. 6a, the TAC of optimized SSTP increases linearly with increasing PE. It is because higher CAPEX and OPEX are required for the installation of larger equipment for SVTs’ unit operation to accommodate the greater amount of SS feed. Despite increasing the PE up to 50%, the SVT pathway selected remains the same, i.e., thickening, TAD, dewatering, and land application. This indicates the importance of the TAD unit in optimizing the economic feasibility of the SSTP, as it helps to reduce the TAC by creating profit through biogas production for generating electricity and minimizing the GWP of the SS treatment process.

Fig. 6
figure 6

Sensitivity analyses on (a) PE and (b) carbon price

4.2.2 Carbon pricing

Carbon pricing policies have been imposed in most developing countries such as the European Union as an approach to tackle climate change. Although Malaysia does not implement a carbon pricing policy at the current state, the Malaysian government announced that it will be introduced soon to attain carbon neutrality in the future. Therefore, it is of interest to analyze the effect of carbon pricing policy on the selection of optimal SVT pathways based on TAC. Likewise, the GWPEX are varied by − 100%, − 50%, + 50%, and + 100% to conduct the sensitivity analysis. Based on Fig. 6b, the TAC rises with the increasing carbon prices, until it reaches its maximum at − 62% change in the carbon prices. Note that the further increasing carbon prices would result in the substitution of the SVT pathway, as the TAC starts to drop significantly after reaching the maximum point. When there is no or low carbon pricing imposed, the selected SVT pathway for Case 1 is similar to the baseline scenario, i.e., sludge thickening, followed by dewatering and landfilling. By contrast, TAD is included in the optimized SVT pathway and land application is chosen as the final disposal method when the carbon prices increase from − 62%.

In the case where carbon prices are adjusted from − 100% to \(-\) 62%, the TAC increases with carbon prices due to the higher carbon taxes incurred for landfilling. The TAD process is not selected under this circumstance because the carbon credit provided from electricity generation using biogas produced through the TAD process is less appealing, since it could not counterbalance the high CAPEX and OPEX for TAD operation. However, the installation of the TAD process, as well as the implementation of land application, become promising at a higher carbon pricing, as more carbon credit can be obtained to reduce the TAC incurred.

5 Conclusion

The SVT pathway is optimized using a MILP model with the objective function to minimize TAC incurred, where the TAC is constituted by CAPEX, OPEX, revenue as well as GWPEX for SSTP operation. A case study based on three different scenarios is performed, whereby the baseline scenario represents the conventional sludge treatment and disposal practices in Malaysia. Cases 1 and 2 demonstrate the optimized SVT pathway via the proposed optimization framework using domestic SS and mixed SS (a mixture of domestic and industrial sludge) as the feedstock, respectively. The results from the optimization framework suggest the implementation of TAD for both Cases 1 and 2, where the biogas produced is utilized for electricity generation to maximize revenue gained and reduce GHG emissions. However, landfilling is selected over the land application in Case 2 due to the high concentration of heavy metals in mixed SS, which is not suitable for land application in concern of environmental conservation. The sensitivity analysis is conducted to study the effect of PE and carbon prices on the SVT pathway selection. The results from sensitivity analysis indicate that the carbon pricing would affect the optimized SVT pathway selection, where TAD is preferred at a higher carbon pricing owing to high carbon credits that minimize the TAC. The outcomes of this study could provide valuable insights into the development of a flexible SVT process route that considers both economic and environmental aspects. However, the current optimization model only takes account of GWP, where other environmental performance criteria such as fossil depletion and freshwater eutrophication are not included in the study. Therefore, future work can consider the application of the life cycle assessment on the different SVT options to obtain further insights into the environmental aspects connected to each optimized solution.