Keywords

1 Introduction

Palm oil is the main outcome from the agricultural zone, mainly obtained in the tropical regions. Indonesia and Malaysia are the leading hub in producing palm oil. Palm oil is obtained from the fruit of oil palm tree scientifically known as Elaeis guineensis. Palm oil is extensively used as raw material in the various food and non-food industries like cosmetics and pharmaceutical industry. An increase in population continuously increases the demand for food production from the agricultural sector which will make it the most water-polluting sector [1]. The gradual increase in the temperature range and frequent rainfall has increased the requirement of the water by the agriculture zones to meet the demand of the growing population [2].

The obstruction that is faced by palm oil production firm is the palm oil mill effluent, which is the waste product. According to some statistics, each tonne of palm oil production generates nearly 2.5–3.0 cubic meter of POME [3]. POME is the thick brownish color colloidal suspension whose characteristics are given in Table 1. The characteristics of the effluent vary which depend on the operational process used in mill for palm oil production. It has high value of COD and BOD which are present nearly 50, 000 ppm and 25, 000 ppm, respectively [4, 5]. The use of POME as a feedstock has picked up the enthusiasm of scientists to control squander creation in agriculture division obtained from the palm oil mill industry. Complex techniques have been widely evolved to treat and to use the waste product which can be categorized into four primary sections: biological, thermochemical, physiochemical, and the mix of the techniques thereof. Some of the techniques are dealt only to solve the waste-related problems, while part of them means to recoup vitality from the treatment. Each techniques has a few favorable circumstances and burdens, which is important before implementing it. Because of the degradable organic constituent, wastewaters have the potential to be utilised, where a net positive vitality addition could be accomplished with legitimate methodology [6].

Table 1 Literature comparison of anaerobic digestion of different waste product

For palm oil mill effluent, anaerobic digestion (AD) is commonly used by industries since it is a most cost-effective and ecofriendly process [16]. It is simply defined as the series of process in which the organic component breaks down into bio-energy in the absence of oxygen. The process of generation of bio-energy from anaerobic digestion can be divided into four sections: hydrolysis, acidogenesis, acetogenesis, and methanogenesis [17]. These techniques have several advantages as follows [18]:

  • Anaerobic digestion differs from aerobic digestion in terms of availability of oxygen. Thus, the anaerobic digestion reduces the energy cost for the extensive supply of oxygen.

  • Volatile solids content reduces through this operation. As per some literature, the addition of nitrite enhances the reduction of volatile suspended solid and increases the sludge treatment efficiency [19].

  • By this operation, energy is recovered by the production of methane.

  • It kills large percentage of pathogens present in sludge.

Among different pre-treatment methodology, the most well-known and broadly executing process is thermo-alkaline pre-treatment technique. In this paper, this pre-treatment methodology is selected for solubilization and hydrolysis of macromolecule into simple monomers. The surface area and the rate of hydrolysis process increase due to the reduction of particle size which reduce the reaction time of the hydrolysis operation [20]. As per some previous study, sodium hydroxide (NaOH), calcium hydroxide (Ca(OH)2), and potassium hydroxide (KOH) are widely used as alkali in this pre-treatment process [21]. As per some study, the efficiency of sludge solution varies with the selection of alkali in a order of NaOH> KOH > \(\text {Mg(OH)}_2\) and \(\text {Ca(OH)}_2\) [8].

To increase the COD solubilization % of the effluent by thermo-alkaline pre-treatment methodology is optimized with respect to incubation time, NaOH concentration, and temperature by various soft computing techniques. It is frequently called as computational insight, covering a scope of strategies in the field of computer science, machine learning and AI. It is the collection of techniques that are dealt with the uncertain problem and provide low-cost optimum solution [22]. Soft computing techniques comprise artificial neural networks (ANN), fuzzy logic (FL) [23], adaptive neuro-fuzzy inference systems (ANFIS) [24], genetic algorithms (GAs) , data mining (DM), etc. The soft computing techniques used for the optimization the solubilization % of effluent obtain from palm oil mill by techniques like response surface methodology (RSM) [15] and fuzzy logic (FL) which is developed in this paper.

The type-1 fuzzy logic (T1FLC) is first proposed by Zadeh [25]. The most famous sort 1 fuzzy inference (T1FI) models are proposed by Mamdani and Assilian ([26]) and Sugeno (Takagi and Sugeno [27]). A sort 2 fuzzy set (T2FS) has grades of enrollment that are type-1 fuzzy [25, 28,29,30,31,32,33,34], so it very well may be known as a fuzzyfuzzyset, and in this way, IT2-FLS has the additional kind decrease measure. Therefore, the type-2 fuzzy logic controller (T2FLC) is widely used to handle uncertain and nonlinear environment more efficiently by making use of fuzzy sets [35,36,37,38,39,40]. Brief mathematical detailing is provided in Sect. 3

We have developed the following in this optimizing work:

  • Optimization of COD solubilization % by T2FLC model is done.

  • Influence of the independent parameter, time, temperature, and NaOH concentration is investigated.

  • Legitimacy of the proposed model is finished by statistical analysis.

  • The prediction efficiency of the proposed model, T2FLC, is compared with other soft computing techniques such as RSM and T1FLC.

The graphical abstract of the the proposed model is depicted in Fig. 1.

Fig. 1
figure 1

Graphical abstract of the proposed model

2 Type-2 Fuzzy Sets

A type-2 fuzzy set (T2FS) communicates by the non-deterministic truth degree having imprecision and weakness for a part that has a spot with a set [41]. A type-2 fuzzy set (T2FS) denoted by \(\tilde{\tilde{A}}\) [42] is portrayed by a type-2 membership function (T2MF) \(\mu _{\tilde{A}}(s,t)\) where \(s\in X, \forall t\in J_{s}^{t} \subseteq [0,1]\) and \(0\le \mu _{\tilde{A}}(s,t)\le 1\) are defined in equation (1)

$$\begin{aligned} \tilde{\tilde{A}}= & {} \{(s,t, \mu _{\tilde{A}}(s,t))|s\in X, \forall t\in J_{s}^{t} \subseteq [0,1]\} \end{aligned}$$
(1)

If \(\tilde{\tilde{A}}\) is fuzzy type-2 (FT2) continuous variable, it is denoted in Eq. (2)

$$\begin{aligned} \tilde{\tilde{A}}=\bigg \{\int \limits _{s\in X}\bigg [\int \limits _{t\in J_{s}^{t}}f_{s}(t)/t\bigg ]/s\bigg \} \end{aligned}$$
(2)

where \(\int \int \) denotes as the union of s and t. If A is FT2 discrete, then it is denoted by equation (3)

$$\begin{aligned} \tilde{\tilde{A}}=\bigg \{\sum \limits _{s\in X} \mu _{\tilde{\tilde{A}}}(s)/s\bigg \}= \bigg \{\sum \limits _{i=1}^{N}\bigg [\sum \limits _{k=1}^{M_i}f_{s_{i}}(t_{k})/t_{ik}\bigg ]/s_{i}\bigg \} \end{aligned}$$
(3)

where \(\sum \sum \) denotes the union of s and t. If \(f_s(t)=1, \forall t\in [\underline{J}_{s}^{t}, \overline{J}_{s}^{t}]\subseteq [0,1]\), the T2MF \(\mu _{\tilde{\tilde{A}}}(s,t)\) is expressed by one type-1 inferior membership function, \(\underline{J}_{s}^{t}=\mu _{A}(s)\) and one type-1 superior, \(\overline{J}_{s}^{t}=\mu _{A}(s)\), then it is called an interval type-2 fuzzy set (IT2FS) defined by equations (4) and (5).

$$\begin{aligned} \tilde{\tilde{A}}=\bigg \{ (s,t,1)|\forall s \in X, \forall t\in [\underline{\mu }_A(s), \overline{\mu }_A(s)]\subseteq [0,1]\bigg \} \end{aligned}$$
(4)

The union of all the primary memberships is called the footprint of uncertainty (FOU) of \(\tilde{A}\). The FOU\(\tilde{A}\) can be characterized as

$$\begin{aligned} {\text {FOU}}(\tilde{A}) = \cup _{\forall s \in X} J_s = {(s,t) : t\in J_s \subseteq [0,1]} \end{aligned}$$
(5)

The FOU of type-2 fuzzy set (\(\tilde{A}\)) has been limited by two type-1 MFs called as lower membership function (LMF) and the upper membership function (UMF). The UMF and LMF are signified as \(\overline{\mu }_{\tilde{A}}\) (s) and \(\underline{\mu }_{\tilde{A}}\) (s) , individually, and are characterized as follows:

$$\begin{aligned} \overline{\mu }_{\tilde{A}}(s) = \overline{{\text {FOU}}({\tilde{A}})} \end{aligned}$$
(6)

and,

$$\begin{aligned} \underline{\mu }_{\tilde{A}}(s) = \underline{{\text {FOU}}({\tilde{A}})} \end{aligned}$$
(7)

where \(\forall _s\in X\). Note that \(J_s\) is an interval set, i.e.,

$$\begin{aligned} J_s = {(s,t) : t \in [\underline{\mu _{\tilde{A}}}(s)],[\overline{\mu }_{\tilde{A}}(s)]} \end{aligned}$$
(8)

3 Raw Material

Palm oil factory gushing (POME) was stored up from neighborhood palm oil factory. The collected effluent was stored in very low temperature, at the range of 4–\(6^\circ C\). The reason for keeping it at a low temperature is to prevent microorganism deterioration. At the beginning of experiment, collected sample of POME was brought to room temperature. NaOH used for the experiment is of analytical grade, brought from MERCK.

3.1 Physicochemical Analyses and Experimental Method

Collected samples of POME are analyzed before anaerobic digestion, the total solid (TS), total suspended solid (TSS), volatile solids (VS), and volatile suspended solids (VSS) measured in accordance with standard methods used for the examination of water [43].

The pH of the sample POME is marked with a pH meter. The total chemical oxygen demand (TCOD) and soluble chemical oxygen demand (SCOD) were analyzed using the closed reflux colorimetric method. Characterization of the samples collected from mill is given in Table 1. The ratio of SCOD and TCOD is always used for evolution in the extent of hydrolysis reaction [44]. The COD solubilization % is calculated by Eq. (9) [8].

A series of tests is performed in this batch experiment under different criteria of the independent parameter, time, temperature, and NaOH concentration. In the experimental process, every flask contains 100 ml of the collected sample of POME, and a different quantity of NaOH added. The concentration range of NaOH used is given in Table 4. For achieving the anaerobic condition, every flask was purged with nitrogen gas and sealed with parafilm to make the system gastight. Finally, the series of samples is incubated for different time and temperature. The time and temperature range in operation is given in Table 4.

$$\begin{aligned} \text {COD Solubilization}\% = \frac{\text {Soluble Chemical oxygen demand after treatment}}{\text {Total Chemical Oxygen Demand after treatment}}\times 100 \end{aligned}$$
(9)

3.2 Experimental Design

Here, we have developed a triple-input and single-output type-2 fuzzy logic system for optimizing the solubilization of POME. The input parameters temperature, reaction time, and NaOH concentration are considered. The optimality of output from the pre-treatment of POME by the thermo-alkaline method depends on the extent of COD solubilization. Therefore, we consider this as an output parameter of the developed model. Range of all the independent parameter is considered for experimentation as well for optimization given in Table 2.

Table 2 Parametric analysis of raw POME sample
Fig. 2
figure 2

Pre-treatment process diagram of the POME

Fig. 3
figure 3

Block diagram of the proposed model

Table 3 Ranges of parameter

The structure of the Mamdani fuzzy inference system is depicted in Fig. 2. The input parameters, temperature, reaction time, NaOH concentration, and outer parameter used for the development of the model are divided into three linguistic terms, low (L), middle (M), and high (H), which is quickly processed by the type-2 fuzzy set theory lucidly. Interval type-2 fuzzy (IT2F) semantic factors are delays of mathematical factors as in they can address the state of a trait at a given interval by taking IT2F sets as their qualities. Membership function of input and output parameters is depicted in Figs. 3 and 4.

Fig. 4
figure 4

Membership function of the input variable temperature

Fig. 5
figure 5

Membership function of the input variable and COD solubilization%

3.3 Simulation of Experimental Design

In this optimization work, we have implemented 20 IF-THEN rules as depicted in Fig. 5. Evolution of the logical conjunction AND and OR has been done by using min and max operators. Min and max operators are utilized for suggestion and collection technique, individually, whose general form is If (first input parameter) is A1 AND (second input parameter) is \(A_2,\cdots \) AND (mth input parameter) is \(A_m\) THEN (output parameter) is B, where \(A_1,\cdots , A_m\) are the linguistic values of the respective input variable and B linguistic values of output variables. The last step is the defuzzifications step which is the interaction to changes over the fluffy yield of the induction motor to fresh esteem utilizing participation capacities are finished by the centroid strategy. Predicted values obtained by stimulation of the proposed model,T2FLC, T1FLC, and RSM [15] are given in Table 4 and plotted in Fig. 10.

Fig. 6
figure 6

IF-THEN linguistic rule

From the data set of output and input variable, Table 4, three dimension surface plot is developed in T2FLC environment to investigate the variation of solubilization % of POME to interactive effect of the independent variable which is in the experimental range . All the generated surface plots are depicted in Figs. 6, 7, and 8. From Figs. 6, and 7, it is observed that NaOH concentration is considered being the most important factor among the three. The solubilization % increases gradually on the increase in alkali concentration in the process. According to some writing, expansion in the convergence of antacid increments the solubilization in different interaction like saponification and balance of various acids framed from the debasement of specific materials[8]. According to Fig. 8, the effect of incubation time on solubilization % is more dominate on temperature. At lower temperatures, more incubation time is required to attain higher % of solubilization Fig. 9.

Fig. 7
figure 7

Surface contour plot of COD solubilization% on NaOH concentration and temperature

Fig. 8
figure 8

Scatter plot between predicted values from T2FLC model and actual values of COD solubilization %

Fig. 9
figure 9

Surface contour plot of COD solubilization % on incubation time and NaOH concentration

Fig. 10
figure 10

Surface contour plot of COD solubilization % on temperature and incubation time

4 Results and Discussion

For every input, the proposed model is stimulated to obtain output results. Experimentally, getting the result is termed as actual value, and data obtained by stimulating the independent data set in the T2FLC model is termed as predicted values. The expectation capacity of the created model is determined by utilizing the test information in the prepared information and looking at the real qualities and anticipated qualities. In actual various predicted data set for COD solubilization depicted in Fig. 8 and Fig. 9. From the figure, it is observed that the predicted data set is obtained from T2FLC distributed near the straight line. For the measurement of the prediction capability, the statistical parameter is used. The statistical parameters are the root mean square error (RMSE), the determination coefficient (\(R^2\)), mean absolute percentage error (MAPE), and mean absolute error(MAE). All the statistical parameters are calculated by using Eq. (10), Eq. (11), Eq. (12), and Eq. (13), respectively, where n is the quantity of information designs in the informational index, \(y_{pred_i}\) demonstrates the anticipated worth, i is specific information point, and \(y_{act_i}\) is the real worth (which is depicted in Fig. 11).

$$\begin{aligned} \text {RMSE}= & {} \sqrt{\frac{1}{n}\sum \nolimits _{i=1}^{n}(y_{\text {pred}_i}-y_{{\text {act}}_i})^{2}} \end{aligned}$$
(10)
$$\begin{aligned} R^{2}= & {} 1-\frac{\sum \nolimits _{i=1}^{n}(y_{\text {pred}_i}-y_{act_i})^{2}}{\sum \nolimits _{i=1}^{n}{y_{\text {act}_i}^{2}}} \end{aligned}$$
(11)
$$\begin{aligned} \text {MAPE}= & {} \frac{1}{n}\sum _{i=1}^{n}\frac{|(y_{\text {pred}_i}-y_{\text {act}_i})|}{y_{\text {pred}_i}} \times 100\% \end{aligned}$$
(12)
$$\begin{aligned} \text {MAE}= & {} \frac{1}{n}\sum _{i=1}^{n}|y_{\text {pred}_{i}}-y_{\text {act}_{i}}| \end{aligned}$$
(13)

The superiority of the proposed model can be predicted by analyzing the outcome of the statistical parameter. The closer the value \(R^2\) to 1 and the smaller the value of RMSE, MAPE, and MAE, the greater the accuracy of the proposed model. The prediction capability of all the intelligent computing methods like RSM, T1FLC, and T2FLC is compared in terms of this statistical parameter, \(R^2\), RSME, MAPE, and MAE. The outcome of all the parameters of all intelligent computing methods is given in Table 3 and Fig. 11.

Fig. 11
figure 11

Trajectory of actual value and predicted value evaluated from various soft computing techniques

Table 4 Statistical data analysis for T2FLC and T1FLC and RSM
Table 5 COD solubilization of POME

5 Potential Application and Challenges

As per some literature, the solubilization process is considered to be beneficial for improving the anaerobic digestion rate and production of methane [8, 45]. Higher the generation of methane, more is the production of renewable energy. The biggest obstruction faced by the palm oil mill all over the world is a continuous threat to the ecosystem. The extensive treatment system is the traditional method widely used for pre-treatment POME. There are a couple of regions that value abuse in this coordinated POME treatment approach as per Loh. et al. [46]. At first, the reduction of the leading wastewater stream obtains from the milling process in the palm oil plant. Secondly, in light of overseeing POME employing biogas catch and usage, preferential treatment of POME for the decrease of undesirable constituents, for example, hydrogen sulfur, in the biogas is delivered that will act as a corrosive agent for some machinery. Consequently, thermo-alkali-treatment could end up being a potential pre-treatment to improve anaerobic processing of POME and improve methane yield.

6 Conclusions

It is essential to minimize the pollution rate and to increase the solubilization % to stabilize the palm oil business model and too wide up the spectrum of its industrial profitable application. In this paper, Mamdani interval type-2 fuzzy logic inference approach which has three inputs and one output is used to predict the solubilization %. The influence of the independent parameters, reaction time, NaOH concentration, and temperature is investigated on the output parameter. The influence of the input parameter on output does not follow the trend which was traced by T2FLC techniques in an efficient way for developing the inferences train so that different sorts of procedure conditions could be anticipated. From the predicted data set (Table 4), third dimension surface plots are developed to study the variation of output concerning the interactive effects of inputs (Figs. 5, 6, and 7). From the graphical analysis, it is concluded that NaOH concentration is a more influencing parameter above all. For the validation of the performance efficiency of the T2FLC model, some of the statistical analyses like \(R^2\), RMSE, MAPE, and MAE are evaluated and given in Table 3. In this paper, the developed model, T2FLC, is compared with other soft computing techniques such as RSM and T1FLC. The \(R^2\) value of T2FLC is 0.991 which is the closest approach to 1 in comparison with other two, RSM and T1FLC, whose \(R^2\) is 0.923 and 0.953, respectively. It is concluded that the prediction efficiency of the T2FLC model considers being effective and accurate. If the developed mathematical model is applied in palm oil mill effluent, it will prove to be beneficial for the engineers to set the independent parameters promptly to get the desired % of solubilization. The prediction of the % of solubilization during the effluent treatment phase will help the farm to evaluate the yield of the methane Table 5.