Next Article in Journal
Deformation and Failure Laws of Surrounding Rocks of Coal Roadways under High Dynamic Load and Intelligent Prediction
Next Article in Special Issue
Sustainable Health Care Provision Worldwide: Is There a Necessary Trade-Off between Cost and Quality?
Previous Article in Journal
Digital Platforms and the Improvement of Learning Outcomes: Evidence Extracted from Meta-Analysis
Previous Article in Special Issue
Systematic Mapping of the Production Chain of “Bacuri” (Platonia insignis Mart.) in Brazil
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A New Approach for Improving Microbial Fuel Cell Performance Using Artificial Intelligence

1
Petroleum Engineering Department, Amirkabir University of Technology, Tehran 158754413, Iran
2
Department of Chemical Engineering, University of Qom, Qom 3716146611, Iran
3
Chemical Engineering Section, Faculty of Engineering, Sohar University, Sohar 311, Oman
*
Author to whom correspondence should be addressed.
Sustainability 2023, 15(2), 1312; https://doi.org/10.3390/su15021312
Submission received: 11 November 2022 / Revised: 11 December 2022 / Accepted: 13 December 2022 / Published: 10 January 2023

Abstract

:
Microbial fuel cells have recently received considerable attention as a potential source of renewable energy. Due to its complex and hybrid nature, it has significant nonlinear features and substantial hysteresis behavior, making it hard to optimize and control its power generation directly. This study modeled power density and COD removal using random forest regression and gradient boost regression trees. System inputs are three key parameters that affect performance and commercialization. There is a range of 0.1–0.5 mg/cm2 of Pt, a degree of sulfonation of sulfonated polyether-etherketone varying from 20% to 80%, and a cathode aeration rate of 10–150 mL/min. Based on the model’s accuracies, gradient boost regression was selected for power density prediction and random forest for COD removal prediction. Particle swarm optimization was used as the optimization algorithm after selecting the best models to maximize COD removal and power density. It was found that DS was the most critical parameter for COD removal, and Pt was the most critical parameter for power density. There is a different optimal input value for each model. In order to maximize power density, DS (%) must be 67.7087, Pt (mg/cm2) must be 0.3943, and Aeration (mL/min) must be 117.7192. To maximize COD removal, the DS (%) must be 75.8816, the Pt (mg/cm2) must be 0.3322, and the Aeration (mL/min) must be 75.1933.

1. Introduction

Many countries worldwide have turned their attention to renewable energy options such as wind, solar, and water as a solution to the energy crisis [1]. A fuel cell (FC) is an alternative energy source that uses high-value metal catalysts (in the traditional version) to generate energy. FC has several advantages over other energy generator types, such as no emissions of environmentally harmful gases (such as NOx, SOx, CO, and CO2), higher efficiency, no mobile devices, and no sonic pollution [2]. A disadvantage of these new energy sources is their high cost and mass production [3]. There are different types of fuel cells such as direct methanol fuel cells (DMFCs), proton exchange membrane fuel cells (PEMFCs), and so on. The main difference between the fuel cells is the working style and output of the fuel cells. For example, DMFCs utilize methanol and convert the chemical energy to electricity. There are various means by which a fuel cell can convert a pollutant fuel to green energy [1,2,3].
Microbial fuel cells (MFCs) have recently received substantial interest as a new renewable energy technology. Direct bio-electrochemical reactors, such as MFCs, convert the chemical energy of microorganisms into electricity, use the organism as a substrate, and generate electricity directly from the redox reactions of microbes [4,5]. In MFCs, microorganisms oxidize the substrate to generate energy. Microorganism growth rate, pH, operating temperature, external load, and substrate concentration affect MFC performance. MFCs can be divided into indirect MFCs (mediator-based) and direct MFCs (conduction-based) based on how electrons are supplied to the anode [6,7].
The proton exchange membrane (PEM) distinguishes two-chamber MFCs from single-chamber MFCs [8]. Using wastewater as the substrate and simultaneously generating electrical power, MFCs have the potential to replace traditional fossil fuels while reducing the impact on the environment.
Furthermore, wastewater can be used as the substrate for generating electricity power simultaneously [9]. It is challenging to optimize and control the power generation of MFCs directly due to their complex and hybrid nature, which involves several coupling reactions. This results in robust nonlinear performance and substantial hysteresis behavior [10]. Bacterial inoculation and performance measurement via experiments are inefficient and time-consuming [11].
Artificial intelligence (AI) algorithms have become increasingly popular in MFC applications as predictive models, as they are reliable and efficient tools for modeling MFC problems. Using an ANFIS model, Ghasemi et al. [12] predicted COD removal and power density, then optimized both these parameters using single-object optimization and multi-object optimization. ANN models were used to predict the voltage of MFCs and compared with experimental results by Ahmed et al. [13]. A correlation coefficient of 0.999 was obtained for the constructed ANN model. Lesnik and Liu [14] modeled 33 MFCs using ANN, including eight substrates and three wastewaters. Based on these values, the mean percent prediction error values were 1.77 ± 0.57%, 16.01 ± 4.35%, and 4.07 ± 1.06% for coulombic efficiency, PD, and COD removal, respectively. Tsompanas et al. [15] used ANN to simulate the polarization curves with various membrane materials and electrode configurations.
During the experimental procedure for obtaining the dataset used to construct the ANN model, two membrane types with two unique electrode structures were examined. The model correlation coefficient was 0.996. Esfandyari et al. [16] used both ANFIS and ANN. The medium nitrogen concentration, ionic strength, temperature, and pH were input parameters, and columbic efficiency and PD were output parameters. Both ANFIS and ANN models achieved suitable correlation coefficients greater than 0.99. Ismail et al. [17] trained an ANN to determine the effectiveness of MFCs based on an experimental dataset. The investigation considered different particle sizes and concentrations of giant reed. MFC PD was defined as the neural network’s output, whereas the duration, concentration of giant reed, and particle size were utilized as input parameters. Based on the results, the optimal result was achieved at 12 hidden layers and the coefficient of determination was 0.9993.
MFC performance was assessed by Islam et al. [18] using RSM to control co-culture composition, substrate concentration, time, and pH. Optimal results occurred at 1:1, 15.50 days, 7.21, and 26.690 mg/L for inoculum composition, time, pH, and initial COD, respectively. To optimize the cell’s PD and COD, Sedighi et al. [19] utilized RSM. A value of 58.19 mW/m2 was optimal for PD and 94.8% for COD removal. To optimize the effectiveness of MFC using RSM, Muaz et al. [20] utilized three input parameters: moisture content (% vol/wt), electrode distance (cm), and temperature (°C). MFC reached a maximum output voltage of 927.7 mV, while COD removal increased to 170.8 mg/L.
In regression and classification tasks, a random forest algorithm (RF) has been extensively applied by combining aggregation and bootstrapping techniques to build numerous regression and classification trees (CARTs) [21,22]. In regression problems using RF, output variables are fitted by using samples of input variables. At each divided point, the sum of square error (SSE) is determined for predicted and actual values for each input variable. The minimum SSE value is then determined for this node. Furthermore, the variable importance can be determined by rearranging all the input variables and comparing their prediction accuracy in the out-of-bag samples [23].
Gradient boosting is an optimization algorithm based on error functions. The gradient boosting technique is a machine learning technology applied to identify classification and regression problems. Weak prediction models, such as decision trees, generate a strong prediction model. Friedman developed the GBRT algorithm later [24]. A basic model performs each calculation, and the next calculation is undertaken to reduce the residual, creating a new basic model in the gradient direction with reduced residuals [25]. Therefore, it is possible to minimize and optimize the loss function by constantly adjusting the weights of weak learners.
The main objective of this research is to determine the best magnitudes for input parameters that maximize power density and COD removal. This study used MFC datasets to make models that use DS, Pt, and Aeration as inputs and power density or COD removal as outputs. To build the microbial FC machine learning model for power density and COD removal prediction, random forest regression and gradient boost regression tree algorithms were utilized. Using particle swarm optimization as a single object optimizer, we found the optimal input parameters that maximized the power density or COD removal after preparing the models with high accuracy.

2. Materials and Methods

In many cases, all the experiments to cover all the control parameters cannot be conducted. It is impossible to experiment with many operating parameters in such cases because it is either expensive or takes a long time. In the absence of certain operating point data, one of these statistical methods can be used to build an acceptable model. Several AI techniques, including random forest regression and gradient boost regression, have been proven to be efficient and accurate modeling tools. After the accurate model has been established, the spatial layout for determining the input–output relationship can also be determined. Maximal/minimal parameters can be predicted using well-established optimization approaches.

2.1. Dataset

In this study, MFC data were utilized. A real dataset consists of 226 examples of data (80% training, 20% testing) with 5 attributes (3 inputs, 2 outputs); the inputs are Pt, Aeration, and DS, and the outputs are power density or COD removal. In Table 1, the mean value (mean), maximum (max.), minimum (min.), standard deviation (std.), sample numbers (count), median (50%), first quartile (25%), and third quartile (75%) are listed.

2.2. Random Forest Regression (RFR)

Random forest (RF) is a robust multi-class learning algorithm based on classification and regression trees. Ho [26] developed the first random decision forest algorithm, and Breiman [22] extended it. Both classification and regression have demonstrated satisfactory performance in many aspects. RF models a decision tree for each bootstrap sample and then averages the predictions of all the decision trees as a statistical learning theory. By putting back samples and randomly changing predictor combinations in different tree evolutions, the model increases the diversity of decision trees.
The most important step in this investigation is the determination of the regression. Therefore, only regression trees (RT) are discussed. At each branching of RT, the sample mean and mean square error (MSE) were calculated between samples. Regression trees will stop growing when there are no more features available or when the overall MSE is optimal when following the minimum leaf MSE as a branching condition. The regression tree number (N estimators) and the number of random variables of nodes (Max depth) are two important custom parameters [27,28]. Optimization of these parameters can reduce data processing errors. Bootstrap sampling in the RF algorithm extracts training sets from the original dataset for N estimators. There are about two-thirds as many training sets as the original datasets. Each bootstrap sample will exclude about one-third of the data during training. Out-of-bag data refer to this part of the data. Each bootstrap training set is analyzed using a regression tree. A “forest” is formed by combining regression trees of N estimators, but they are not pruned. In every tree, the optimal attribute is not necessarily chosen as the internal node. A random selection of Max depth attributes is used to select the optimal attribute. An RF algorithm improves extrapolation prediction by increasing the difference between regression models by various training sets. As a result of n-time model training, a regression sequence t 1 ( x ) , t 2 ( x ) , , t k ( x ) is achieved, which is then utilized to build a multi-regression model (forest). To calculate the value of the new sample, we take the prediction results from the N estimators’ regression tree and use a straightforward standard approach. As a result of the regression, the following formula is used:
f r f K ( x ) = 1 K k = 1 K t i ( x )
The combined regression model is represented by f r f K ( x ) , the decision tree regression model by t i , and the number of regression trees (N estimators) by K. Figure 1 illustrates the random forest algorithm modeling process.

2.3. Gradient Boost Regression Tree (GBRT)

Friedman [29] introduced the gradient-boosting machine learning model. To increase the precision and robustness of the final model, gradient boosting utilizes multiple weak learners. Gradient boosting models are built by using a single leaf and constructing regression trees. Regression trees are decision trees that estimate continuous real-valued functions instead of classifiers. The regression tree is constructed in an iterative process by splitting the data into smaller groups or nodes. Initially, all observations are grouped. The data are then divided into two partitions based on every available predictor. The predictor that splits the tree is the one that separates the observations most clearly and minimizes residual errors, which are measured by the Friedman MSE [29]. Gradient boosting creates new trees based on the error in the previous tree, and it makes more trees until the fit or number cannot be enhanced any further. Gradient boosting scales the new tree’s contribution based on a learning rate to avoid overfitting. For the input data, s, and a differentiable loss function, L ( y i , F ( x ) ) , which in this study is a squared regression, Friedman’s gradient boosting algorithm takes the following steps.
Step 1: Set the model with a constant value:
F 0 ( x ) = arg max γ i = 1 n L ( y i , γ )
γ is a predicted value, F 0 ( x ) is the average of the observed values, and y i is an observed value.
Step 2: For m = 1 to M:
(A)
Calculate
γ i m = L ( y i , F ( x i ) ) F ( x i ) F ( x ) = F m 1 ( x ) f o r   i = 1 , ,   n
Fit a regression tree to the γ i m values and create terminal regions R j m for j = 1 … j m .
(B)
For j = 1 … j m , determine
γ j m = arg max γ x i R i j L ( y i , F m 1 ( x i ) + γ )
Update
F m ( x ) = F m 1 ( x ) + υ j = 1 j m γ m I ( x R j m )
ν is the learning rate. It is possible to customize the loss functions by changing the learning rate. This feature enhances flexibility and minimizes the overfitting problem through slower iterations [30].
Step 3: Output:
F ^ ( x ) = F M ( x )

2.4. Particle Swarm Optimization Algorithm

Particle swarm optimization is an algorithm that simulates the behavior of a flock of birds [31]. For applications involving real decision variables, PSO emerged as a widely used optimization tool [32]. A particle moves in a multidimensional search space to find a possible response to a problem. Each particle alters its position depending on its experience and neighbors. The ith particle in n-dimensional search space is presented as follows [33]:
X i = ( x i 1 , x i 2 , , x i N )
The best among all the particles in the population ( P g ) , the best previous location of each particle ( P i ) , the velocity ( V i ) , and the maximum velocity ( V max i ) of each particle are expressed as [33]
P i = ( p i 1 , p i 2 , , p i N )
P g = ( p g 1 , p g 2 , , p g N )
V i = ( v i 1 , v i 2 , , v i N )
V max i = ( v max i 1 , v max i 2 , , v max i N )
Particles are limited by the maximum velocity set by the user. A maximum velocity encourages global exploration, while a low maximum velocity encourages local exploration [32]. An appropriate value must be specified to achieve a balance between these two states. The following relations [33] can be utilized to determine the new particle’s velocity and position:
v i , n = w . v i , n + c 1 . r 1 . ( p i , n x i , n ) + c 2 . r 2 . ( p g , n x g , n )
x i , n = x i , n + v i , n
Acceleration constants c1 and c2 are used in the above relations. Particles are driven toward their best positions based on these values. Furthermore, r1 and r2 are uniformly generated random numbers between 0 and 1 [33]. Current velocity is influenced by previous velocity history through the inertia weight [34]. A constriction parameter is defined in some problems to enhance PSO performance and its ability to control particle velocity [33,35]:
K = 2 2 φ φ 2 4 φ
Therefore,
φ = φ 1 + φ 2 ( φ > 4 )

2.5. Regression Evaluation Metrics

Regression algorithms are typically evaluated using RMSE, MAE, and R-squared [36]. Three metrics are determined as follows:
R M S E = 1 m i = 1 m ( y i y ^ i ) 2
M A E = 1 m i = 1 m y i y ^ i
Generally, the lower the MAE and RMSE values, the better the fit. An important index to verify the accuracy of a regression algorithm is the R-squared, which has a range between 0 and 1. R-squared is defined as follows:
R s q u a r e d = 1 i = 1 m ( y i y ^ i ) 2 i = 1 m ( y i y ¯ i ) 2
y ¯ i denotes the mean value of the actual value   y i . An R-squared value of 1 represents a regression model that gives accurate predictions. Generally, the higher the R-squared value, the better the fit.

3. Results

This section simulates and validates the proposed prediction models for COD removal and power density. To visualize the interrelationship between inputs and outputs, it is better to have a 3D form of the spatial figure before describing the modeling results. In a 3D figure, the output is shown responding to input changes. Figure 2 shows the plot of MFC outputs versus inputs for every two inputs. Since the input–output relationship is nonlinear, the AI modeling technique was a suitable option because it can analyze such a variety of data efficiently.

3.1. Correlation Analysis

Visualizing the correlation coefficient of multi-source data in a heat map is generally possible, since all parameters can be connected logically and clearly. To compute correlations between each pairwise variable, Spearman’s rank correlation coefficient (rs) was assigned to the data distribution, followed by generating a heat map containing all correlation coefficients. According to Figure 3, Pt is strongly correlated with power density, whereas power density is moderately correlated with COD removal, while Aeration is almost independent of COD removal.

3.2. Making a Machine Learning Model

Cross-plots of experimental and predicted/estimated COD removal and power density by RFR and GBRT models are shown in Figure 4 and Figure 5, respectively, illustrating the comparison between RFR and GBRT algorithm models on the training and testing dataset using three performance indicators: RMSE, MAE, and R-squared. During both the training and testing phases, precision and efficiency are ensured. According to Figure 6 and Figure 7, the GBRT algorithm model achieves the best performance indicators for power density prediction, while the RFR algorithm model is the best for power COD removal prediction (Table 2 and Table 3).
As shown, the GBRT prediction model for the power density parameter has higher precision (R-squared = 0.9997, RMSE = 0.1962, and MAE = 0.1287; for testing data, R-squared = 0.9540, RMSE = 2.2696, and MAE = 1.6544) than the RFR prediction model (R-squared = 0.9958, RMSE= 0.7514, and MAE = 0.5693; for testing data, R-squared = 0.9570, RMSE = 2.5745, and MAE = 1.9209) on a few training and testing data. Figure 7 also presents precision values obtained for the COD removal parameter, demonstrating that GBRT prediction models perform worse than RFR prediction models (for training data, R-squared = 0.9997, RMSE = 0.2631, MAE = 0.1761; for testing data, R-squared = 0.9695, RMSE = 3.0143, and MAE = 2.2944) (for training data, R-squared = 0.9936, RMSE = 1.3309, and MAE = 0.9736; for testing data, R-squared = 0.9813, RMSE = 2.3046, and MAE = 1.5957).

3.3. Optimization

Power density and COD removal models have been selected as the best models. These models are used to optimize input parameters. Particle swarm optimization (PSO) was used as a meta-heuristic algorithm for its efficiency and simplicity. Despite its many variants, PSO can still be applied to address a diverse range of optimization problems. By considering lower and upper bounds for input parameters (DS, Pt, and Aeration), PSO was used for optimizing the mentioned parameters to find the maximum value for COD removal and power density. Based on trial and error, the number of iterations and particles are set to 1000 and 10, respectively. Self and overall information constants, c1, c2, and w, are set to 0.5, 0.3, and 0.9, respectively.
L o w e r B o u n d = D s ( % ) = 20 , P t ( mg / cm 2 ) = 0.1 , A e r a t i o n ( mL / min ) = 10
U p p e r B o u n d = D s ( % ) = 80 , P t ( mg / cm 2 ) = 0.5 , A e r a t i o n ( mL / min ) = 150
Figure 8 shows the convergence history of the PSO algorithm.
Table 4 summarizes the PSO algorithm’s optimized values. Each model has a different optimal input value. To maximize power density, DS (%) must be 67.7087, Pt (mg/cm2) must be 0.3943, and Aeration (mL/min) must be 117.7192. Additionally, to maximize COD removal, DS (%) must be 75.8816, the Pt (mg/cm2) must be 0.3322, and Aeration (mL/min) must be 75.1933. Based on the results, the optimization method can enhance the performance of MFCs and achieve economic benefits. Table 5 compares the results of this study with those of other recent studies. While most studies have used artificial neural networks (ANN) to model MFC, this study used RFRs and GBRTs to estimate power density and COD removal, and then used the models to optimize the objective functions.

4. Conclusions

A wide range of input data, including DS, Pt, and Aeration, were used to model COD removal and power density using machine learning algorithms, after which the machine learning models were utilized as objective functions. Using the particle swam optimization algorithm, the input parameters were optimized to maximize power density and COD removal, with the following main results:
  • All the developed models for MFC prediction of COD removal and power density produced accurate results for both the training and testing stages. According to their accuracy, the proposed techniques can be sorted as follows: power density prediction, GBRT > RFR; COD removal prediction, RFR > GBRT.
  • The PSO optimization algorithm can converge in a few iterations, resulting in optimum states.
  • In regression problems with low data, RFR and GBRT are accurate algorithms.
  • The most important parameter affecting COD removal is DS, while Pt is the most important parameter affecting power density.

Author Contributions

Conceptualization, Y.A.; methodology, M.S.; software, M.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Alaswad, A.; Omran, A.; Sodre, J.R.; Wilberforce, T.; Pignatelli, G.; Dassisti, M.; Baroutaji, A.; Olabi, A.G. Technical and commercial challenges of proton-exchange membrane (PEM) fuel cells. Energies 2020, 14, 144. [Google Scholar] [CrossRef]
  2. Gajda, I.; Greenman, J.; Ieropoulos, I.A. Recent advancements in real-world microbial fuel cell applications. Curr. Opin. Electrochem. 2018, 11, 78–83. [Google Scholar] [CrossRef]
  3. Gul, H.; Raza, W.; Lee, J.; Azam, M.; Ashraf, M.; Kim, K.-H. Progress in microbial fuel cell technology for wastewater treatment and energy harvesting. Chemosphere 2021, 281, 130828. [Google Scholar] [CrossRef] [PubMed]
  4. Kim, B.H.; Chang, I.S.; Gadd, G.M. Challenges in microbial fuel cell development and operation. Appl. Microbiol. Biotechnol. 2007, 76, 485–494. [Google Scholar] [CrossRef]
  5. Shabani, M.; Younesi, H.; Pontié, M.; Rahimpour, A.; Rahimnejad, M.; Zinatizadeh, A.A. A critical review on recent proton exchange membranes applied in microbial fuel cells for renewable energy recovery. J. Clean. Prod. 2020, 264, 121446. [Google Scholar] [CrossRef]
  6. Ghasemi, M.; Sedighi, M.; Tan, Y.H. Carbon Nanotube/Pt Cathode Nanocomposite Electrode in Microbial Fuel Cells for Wastewater Treatment and Bioenergy Production. Sustainability 2021, 13, 8057. [Google Scholar] [CrossRef]
  7. Jafary, T.; Daud, W.R.W.; Ghasemi, M.; Bakar, M.H.A.; Sedighi, M.; Kim, B.H.; Carmona-Martínez, A.A.; Jahim, J.M.; Ismail, M. Clean hydrogen production in a full biological microbial electrolysis cell. Int. J. Hydrogen Energy 2019, 44, 30524–30531. [Google Scholar] [CrossRef]
  8. Ortiz-Martínez, V.; Salar-García, M.; De Los Ríos, A.; Hernández-Fernández, F.; Egea, J.; Lozano, L. Developments in microbial fuel cell modeling. Chem. Eng. J. 2015, 271, 50–60. [Google Scholar] [CrossRef]
  9. Logan, B.E.; Wallack, M.J.; Kim, K.-Y.; He, W.; Feng, Y.; Saikaly, P.E. Assessment of microbial fuel cell configurations and power densities. Environ. Sci. Technol. Lett. 2015, 2, 206–214. [Google Scholar] [CrossRef] [Green Version]
  10. Yewale, A.; Methekar, R.; Agrawal, S. Multiple model-based control of multi variable continuous microbial fuel cell (CMFC) using machine learning approaches. Comput. Chem. Eng. 2020, 140, 106884. [Google Scholar] [CrossRef]
  11. Shabani, F.; Philamore, H.; Matsuno, F. An Energy-Autonomous Chemical Oxygen Demand Sensor Using a Microbial Fuel Cell and Embedded Machine Learning. IEEE Access 2021, 9, 108689–108701. [Google Scholar] [CrossRef]
  12. Ghasemi, M.; Nassef, A.M.; Al-Dhaifallah, M.; Rezk, H. Performance improvement of microbial fuel cell through artificial intelligence. Int. J. Energy Res. 2021, 45, 342–354. [Google Scholar] [CrossRef]
  13. Ali, A.; Al-Mussawy, H.; Hussein, M.; Hamadi, N. Experimental and theoretical study on the ability of microbial fuel cell for electricity generation. Pollution 2018, 4, 359–368. [Google Scholar]
  14. Lesnik, K.L.; Liu, H. Predicting microbial fuel cell biofilm communities and bioreactor performance using artificial neural networks. Environ. Sci. Technol. 2017, 51, 10881–10892. [Google Scholar] [CrossRef]
  15. Tsompanas, M.-A.; You, J.; Wallis, L.; Greenman, J.; Ieropoulos, I. Artificial neural network simulating microbial fuel cells with different membrane materials and electrode configurations. J. Power Sources 2019, 436, 226832. [Google Scholar] [CrossRef]
  16. Esfandyari, M.; Fanaei, M.A.; Gheshlaghi, R.; Mahdavi, M.A. Neural network and neuro-fuzzy modeling to investigate the power density and Columbic efficiency of microbial fuel cell. J. Taiwan Inst. Chem. Eng. 2016, 58, 84–91. [Google Scholar] [CrossRef]
  17. Ismail, Z.Z.; Al-wared, A.I.; Jaeel, A.J. Recourse recovery of bioenergy from cellulosic material in a microbial fuel cell fed with giant reed-loaded wastewater. Biofuels 2017, 10, 737–745. [Google Scholar] [CrossRef]
  18. Islam, M.A.; Ong, H.R.; Ethiraj, B.; Cheng, C.K.; Khan, M.M.R. Optimization of co-culture inoculated microbial fuel cell performance using response surface methodology. J. Environ. Manag. 2018, 225, 242–251. [Google Scholar] [CrossRef]
  19. Sedighi, M.; Aljlil, S.A.; Alsubei, M.D.; Ghasemi, M.; Mohammadi, M. Performance optimisation of microbial fuel cell for wastewater treatment and sustainable clean energy generation using response surface methodology. Alex. Eng. J. 2018, 57, 4243–4253. [Google Scholar] [CrossRef]
  20. Muaz, M.; Abdul, R.; Vadivelu, V. Recovery of energy and simultaneous treatment of dewatered sludge using membrane-less microbial fuel cell. Environ. Prog. Sustain. Energy 2019, 38, 208–219. [Google Scholar] [CrossRef] [Green Version]
  21. Liaw, A.; Wiener, M. Classification and regression by randomForest. R News 2002, 2, 18–22. [Google Scholar]
  22. Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  23. Janitza, S.; Tutz, G.; Boulesteix, A.-L. Random forest for ordinal responses: Prediction and variable selection. Comput. Stat. Data Anal. 2016, 96, 57–73. [Google Scholar] [CrossRef]
  24. Friedman, J.; Hastie, T.; Tibshirani, R. Additive logistic regression: A statistical view of boosting (with discussion and a rejoinder by the authors). Ann. Stat. 2000, 28, 337–407. [Google Scholar] [CrossRef]
  25. Zheng, C.; Kasprowicz, C.G.; Saunders, C. Customized Routing Optimization Based on Gradient Boost Regressor Model. arXiv 2017, arXiv:1710.11118. [Google Scholar]
  26. Ho, T.K. Random decision forests. In Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, Canada, 14–16 August 1995; pp. 278–282. [Google Scholar]
  27. Zhang, W.; Zhang, R.; Wu, C.; Goh, A.T.C.; Lacasse, S.; Liu, Z.; Liu, H. State-of-the-art review of soft computing applications in underground excavations. Geosci. Front. 2020, 11, 1095–1106. [Google Scholar] [CrossRef]
  28. Zhang, W.; Zhang, R.; Wu, C.; Goh, A.T.; Wang, L. Assessment of basal heave stability for braced excavations in anisotropic clay using extreme gradient boosting and random forest regression. Undergr. Space 2022, 7, 233–241. [Google Scholar] [CrossRef]
  29. Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
  30. Hastie, T.; Tibshirani, R.; Friedman, J.H.; Friedman, J.H. The Elements of Statistical Learning: Data Mining, Inference, and Prediction; Springer: Berlin/Heidelberg, Germany, 2009; Volume 2. [Google Scholar]
  31. Kennedy, J. Particle Swarm Optimization. Encyclopedia of Machine Learning; Springer: Berlin/Heidelberg, Germany, 2011; Volume 760, p. 766. [Google Scholar]
  32. Engelbrecht, A.P. Computational swarm intelligence. Comput. Intell. Introd. 2007, 2, 285–412. [Google Scholar]
  33. Thangaraj, R.; Pant, M.; Abraham, A.; Bouvry, P. Particle swarm optimization: Hybridization perspectives and experimental illustrations. Appl. Math. Comput. 2011, 217, 5208–5226. [Google Scholar] [CrossRef]
  34. Mahmoodabadi, M.J.; Safaie, A.A.; Bagheri, A.; Nariman-Zadeh, N. A novel combination of Particle Swarm Optimization and Genetic Algorithm for Pareto optimal design of a five-degree of freedom vehicle vibration model. Appl. Soft Comput. 2013, 13, 2577–2591. [Google Scholar] [CrossRef]
  35. Clerc, M.; Kennedy, J. The particle swarm-explosion, stability, and convergence in a multidimensional complex space. IEEE Trans. Evol. Comput. 2002, 6, 58–73. [Google Scholar] [CrossRef] [Green Version]
  36. Willmott, C.J. Some comments on the evaluation of model performance. Bull. Am. Meteorol. Soc. 1982, 63, 1309–1313. [Google Scholar] [CrossRef]
Figure 1. Random forest flowchart.
Figure 1. Random forest flowchart.
Sustainability 15 01312 g001
Figure 2. A 3D representation of the MFC’s inputs and outputs: (left) power density; (right) COD removal; (left) [power density vs. Pt, and DS], [power density vs. DS, and Aeration], and [power density vs. Aeration, and Pt]; (right) [COD removal vs. Pt, and DS], [COD removal vs. DS, and Aeration], and [COD removal vs. Aeration, and Pt].
Figure 2. A 3D representation of the MFC’s inputs and outputs: (left) power density; (right) COD removal; (left) [power density vs. Pt, and DS], [power density vs. DS, and Aeration], and [power density vs. Aeration, and Pt]; (right) [COD removal vs. Pt, and DS], [COD removal vs. DS, and Aeration], and [COD removal vs. Aeration, and Pt].
Sustainability 15 01312 g002aSustainability 15 01312 g002b
Figure 3. Correlation coefficient matrix between inputs and outputs (−1,1: the highest correlation, 0: the lowest correlation).
Figure 3. Correlation coefficient matrix between inputs and outputs (−1,1: the highest correlation, 0: the lowest correlation).
Sustainability 15 01312 g003
Figure 4. Cross-plots of the experimental versus predicted values of the power density by random forest regression (upper) and gradient boost regression tree (lower).
Figure 4. Cross-plots of the experimental versus predicted values of the power density by random forest regression (upper) and gradient boost regression tree (lower).
Sustainability 15 01312 g004
Figure 5. Cross-plots of the experimental versus predicted/estimated magnitudes of the COD removal by random forest regression (upper) and gradient boost regression tree (lower).
Figure 5. Cross-plots of the experimental versus predicted/estimated magnitudes of the COD removal by random forest regression (upper) and gradient boost regression tree (lower).
Sustainability 15 01312 g005
Figure 6. Precision obtained by RFR and GBRT models for power density prediction.
Figure 6. Precision obtained by RFR and GBRT models for power density prediction.
Sustainability 15 01312 g006
Figure 7. Precision obtained by RFR and GBRT models for COD removal prediction.
Figure 7. Precision obtained by RFR and GBRT models for COD removal prediction.
Sustainability 15 01312 g007
Figure 8. The convergence history of PSO for power density and COD removal optimization.
Figure 8. The convergence history of PSO for power density and COD removal optimization.
Sustainability 15 01312 g008
Table 1. Data summary.
Table 1. Data summary.
Inputs Outputs
DS (%)Pt (mg/cm2)Aeration (mL/min)Power Density (mW/m2)COD Removal (%)
mean49.8230.29273.63740.64661.957
Std.19.8654270.14106339.79627311.62461616.819326
Min.200.11012.5410.68
25%300.24031.97553.2575
50%500.372.543.3763.475
75%700.4104.550.7473.475
Max.800.515056.9590.56
Table 2. The model’s precision obtained for power density prediction.
Table 2. The model’s precision obtained for power density prediction.
AccuracyRandom Forest RegressionGradient Boost Regression Tree
Training Data
R-squared0.99580.9997
RMSE0.75140.1962
MAE0.56930.1287
AccuracyRandom Forest RegressionGradient Boost Regression Tree
Testing Data
R-squared0.94700.9540
RMSE2.57452.2696
MAE1.92091.6544
Table 3. The model’s precision obtained for COD removal prediction.
Table 3. The model’s precision obtained for COD removal prediction.
AccuracyRandom Forest RegressionGradient Boost Regression Tree
Training Data
R-squared0.99360.9997
RMSE1.33090.2631
MAE0.97360.1761
AccuracyRandom Forest RegressionGradient Boost Regression Tree
Testing Data
R-squared0.98130.9695
RMSE2.30463.0143
MAE1.59572.2944
Table 4. Optimized power density and COD removal values.
Table 4. Optimized power density and COD removal values.
ParametersDS (%)Pt (mg/cm2)Aeration (mL/min)Best Cost
The optimum value for power density67.70870.3943117.719255.9069
The optimum value for COD removal75.88160.332275.193390.6
Table 5. Comparing obtained results with those of recent MFC studies.
Table 5. Comparing obtained results with those of recent MFC studies.
ItemDescriptionRef.
1With an ANFIS model, COD removal and power density were predicted, and then optimized using single-object optimization and multi-object optimization.[12]
2The voltage of MFCs was predicted using ANN models and compared with experimental results.[13]
3ANN was used to model 33 MFCs, including 8 substrates and 3 wastewaters.[14]
4ANN was used to simulate polarization curves with various membrane materials and electrode configurations.[15]
5The power density and COD removal were modeled using random forest regression and gradient boost regression trees, and the modeled parameters were optimized using particle swarm optimization.This study
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Abdollahfard, Y.; Sedighi, M.; Ghasemi, M. A New Approach for Improving Microbial Fuel Cell Performance Using Artificial Intelligence. Sustainability 2023, 15, 1312. https://doi.org/10.3390/su15021312

AMA Style

Abdollahfard Y, Sedighi M, Ghasemi M. A New Approach for Improving Microbial Fuel Cell Performance Using Artificial Intelligence. Sustainability. 2023; 15(2):1312. https://doi.org/10.3390/su15021312

Chicago/Turabian Style

Abdollahfard, Yaser, Mehdi Sedighi, and Mostafa Ghasemi. 2023. "A New Approach for Improving Microbial Fuel Cell Performance Using Artificial Intelligence" Sustainability 15, no. 2: 1312. https://doi.org/10.3390/su15021312

APA Style

Abdollahfard, Y., Sedighi, M., & Ghasemi, M. (2023). A New Approach for Improving Microbial Fuel Cell Performance Using Artificial Intelligence. Sustainability, 15(2), 1312. https://doi.org/10.3390/su15021312

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop