Next Article in Journal
High-Accuracy Photovoltaic Power Prediction under Varying Meteorological Conditions: Enhanced and Improved Beluga Whale Optimization Extreme Learning Machine
Next Article in Special Issue
Performance Evaluation of Air-Based Photovoltaic Thermal Collector Integrated with Dual Duct and Semicircular Turbulator in Actual Climate Conditions
Previous Article in Journal
Bridging Geo-Data and Natural Gas Pipeline Design Standards: A Systematic Review of BIM-GIS Integration for Natural Gas Pipeline Asset Management
Previous Article in Special Issue
Experimental Characterization of Commercial Scroll Expander for Micro-Scale Solar ORC Application: Part 1
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimizing Nanofluid Hybrid Solar Collectors through Artificial Intelligence Models

1
Laboratory of Renewable Energy, Embedded System and Information Processing, National School of Applied Sciences, Mohammed First University, Oujda 60000, Morocco
2
Department of Electrical, Electronic and Computer Engineering, University of Catania, Viale Andrea Doria 6, 95125 Catania, Italy
*
Author to whom correspondence should be addressed.
Energies 2024, 17(10), 2307; https://doi.org/10.3390/en17102307
Submission received: 20 March 2024 / Revised: 30 April 2024 / Accepted: 30 April 2024 / Published: 10 May 2024
(This article belongs to the Special Issue Advanced Solar Technologies and Thermal Energy Storage)

Abstract

:
This study systematically explores and compares the performance of various artificial-intelligence (AI)-based models to predict the electrical and thermal efficiency of photovoltaic–thermal systems (PVTs) cooled by nanofluids. Employing extreme gradient boosting (XGB), extra tree regression (ETR), and k-nearest-neighbor (KNN) regression models, their accuracy is quantitatively evaluated, and their effectiveness measured. The results demonstrate that both XGB and ETR models consistently outperform KNN in accurately predicting both electrical and thermal efficiency. Specifically, the XGB model achieves remarkable correlation coefficient (R2) values of approximately 0.99999, signifying its superior predictive capabilities. Notably, the XGB model exhibits a slightly superior performance compared to ETR in estimating electrical efficiency. Furthermore, when predicting thermal efficiency, both XGB and ETR models demonstrate excellence, with the XGB model showing a slight edge based on R2 values. Validation against new data points reveals outstanding predictive performance, with the XGB model attaining R2 values of 0.99997 for electrical efficiency and 0.99995 for thermal efficiency. These quantitative findings underscore the accuracy and reliability of the XGB and ETR models in predicting the electrical and thermal efficiency of PVT systems when cooled by nanofluids. The study’s implications are significant for PVT system designers and industry professionals, as the incorporation of AI-based models offers improved accuracy, faster prediction times, and the ability to handle large datasets. The models presented in this study contribute to system optimization, performance evaluation, and decision-making in the field. Additionally, robust validation against new data enhances the credibility of these models, advancing the overall understanding and applicability of AI in PVT systems.

1. Introduction

The rapid expansion of the global economy significantly influences various social, economic, and environmental aspects, resulting in a profound impact. This has compelled policymakers to establish goals and develop economic policies that align with sustainability objectives. The United Nations has introduced a framework called Sustainable Development Goals (SDGs) to address these challenges and promote sustainable development [1]. The United Nations General Assembly devised seventeen global goals, known as Sustainable Development Goals (SDGs), aimed at fostering a sustainable future for everyone. These goals, established in 2015, are anticipated to be implemented on a global scale by the year 2030 [2]. In relation to the SDGs, renewable energy development allows achieving energy security for transportation, environment, construction, economy, mechanical work, and industry [3]. Renewable energies generated from solar [4,5] wind [6], hydro [7], tidal [8], geothermal [9,10], and biomass [11] Renewable energy contributes to meeting the global energy demand while facilitating community development and protecting the environment on a worldwide scale. In recent decades, renewable energy has emerged as a powerful and effective solution to address the energy crisis [5,12] offering the added benefit of mitigating adverse climate and nature-related consequences. Photovoltaic (PV) systems have emerged as a formidable solution to the global energy crisis, offering significant potential to address the increasing energy demand. While mitigating adverse climate and nature-related consequences. The integration of PV technology aligns with the Sustainable Development Goals (SDGs) proposed by the United Nations, which aims to ensure access to affordable and clean energy for all. By utilizing solar power, PV systems contribute to reducing greenhouse gas emissions and combating climate change [13]. PV systems harness sunlight to directly convert it into electricity, providing a clean and renewable energy source [14,15]. However, one challenge associated with PV systems is their relatively low efficiency, on average, only around 15–20% of the incoming solar irradiation is converted into electricity [16,17,18]. To further enhance the capabilities of PV systems, researchers and engineers have developed photovoltaic thermal PVT systems, which combines a cooling system and a PV panel, has emerged as a promising solution for simultaneously providing electricity and hot water, in order to enhancing the energy efficiency and improved space utilization. The electrical and thermal behavior of PVT collectors is forecasted through numerous research works. Furthermore, different PVT classifications are proposed according to several factors such as geometry, heat extraction mode, and cooling fluids; Common base fluids used in the PVT systems are water, ethylene glycol and oil [19] in the quest to enhance the performance of PVT systems, recent studies have specifically explored the potential of nanofluids to improve the cooling process of PV cells. In a previous study by [20], the electrical energy performance of a PVT panel was examined through both numerical (Num) simulations and experimental (Exp) investigations. The study focused on online monitoring and control of the PVT system to assess its effectiveness. [21] A nanofluid (NF) is defined as an engineered colloidal suspension of nanoparticles (e.g., a metallic oxide, a carbide, or carbon materials) in a base fluid. Common base fluids used in the PVT systems are water, ethylene glycol and oil [22]. The inclusion of nanoparticles in a base-fluid as a colloidal suspension result in a notable enhancement of the thermophysical properties of the base-fluid. These enhanced properties include improvements in density, dynamic viscosity, specific heat capacity, and thermal conductivity [23]. Consequently, these improvements in thermophysical properties lead to an overall enhancement in the performance of the entire fluid system.
In a study conducted by [24], the performance of a water-based PVT system with a rectangular tube absorber was experimentally evaluated using various types of nanofluids (SiO2, TiO2, and SiC) mixed with water. The findings of the study revealed that the PVT collector utilizing the SiC/water nanofluid exhibited the highest combined efficiency of 81.73% and an electrical efficiency of 13.52%. In [25], the impact of using a SiC/water nanofluid, with a concentration of 3wt%, in a PV/T system was evaluated to assess the improvements in electrical and thermal efficiencies. The findings revealed that incorporating the 3wt% SiC/water nanofluid resulted in a significant increase in electrical efficiency (ɳele), up to 24.1%, compared to the PV system operating with water alone. Additionally, the thermal efficiency (ɳth) showed a remarkable enhancement, up to 100.19%, when using the SiC/water nanofluid for cooling instead of water. In this study, an Al2O3/water nanofluid was utilized as the cooling fluid. The results also indicated that the total efficiency of the system increased with a higher Reynolds number, fin length, and volume fraction of the nanoparticles. In [22], a study was conducted to experimentally investigate the impact of different nanoparticles on PV/T systems. Specifically, Al2O3, CuO, and multiwall carbon nanotube (MWCNT) were dispersed in water at varying volume fractions (0%, 0.5%, 1%, 2.5%, and 5%), using the ultrasonication procedure. The results demonstrated significant improvements in electrical efficiency when using MWCNT, Al2O3, and CuO nanofluids, with respective increases of 60%, 55%, and 52% compared to a traditional PV panel. Notably, the MWCNT nanofluid was identified as the most effective coolant for the PVT panel. One study [26] was conducted to examine the impact of incorporating different nanoparticles, namely, Al2O3, CuO, and SiC, at varying volume fractions (0.5%, 1%, 2%, 3%, and 4%), into a PVT system. The findings indicated that the utilization of SiC/water nanofluid is particularly advantageous in enhancing the output of the PVT system. Up to this point, the evaluation of the electrical and thermal outputs of PVT systems has been conducted through a combination of experimental studies and the development of various numerical models. In recent years, researchers have increasingly utilized artificial intelligence (AI) techniques in various fields [27,28]. These AI-based methods offer the advantage of efficiently establishing relationships between inputs and outputs [29]. However, when it comes to calculating the thermal efficiency of PVT systems using conventional solution methods, the process can be time-consuming due to solving complex mathematical differential equations. To overcome this challenge, the use of machine learning methods has been considered [30]. Despite the potential benefits, it is worth noting that only a limited number of studies have applied these techniques to predict the performances of PVT systems [31].
Si et al. (2023) [32] utilized the random forest (RF) machine learning approach to develop a predictive model for thermal and electrical efficiency and exergy in terms of Re and nanoparticle concentrations. The results demonstrated that R2 = 0.9856 and RMSE = 0.718 in terms of electrical efficiency and R2 = 0.989 and RMSE = 0.001 in terms of thermal efficiency.
In the investigation by Shakibi et al. (2023), [33] they designed and assessed an advanced solar photovoltaic–thermal (PVT) unit. The incorporation of multi-walled carbon nanotube (MWCNT) nanoparticles into the phase-change material (PCM) was employed to establish a homogeneous cooling medium. The researchers developed a 3D computational fluid dynamic (CFD) model to assess the overall performance of the system. Utilizing CFD simulations, a dataset was generated and subsequently employed for machine learning optimization. A substantial dataset was compiled and applied to an artificial-neural-network (ANN)-based deep learning approach, employing four distinct networks: long short-term memory (LSTM), extreme learning machine (ELM), radial basis function (RBF), and multilayer perceptron (MLP). The optimization process involved multiple aspects and employed a variety of algorithms and decision-making methods. For the training model, the R2 values for MLP, RBF, ELM, and LSTM were found to be 0.976775, 0.990863, 0.999593, and 0.999856, respectively. These R2 values serve as indicators of the models’ effectiveness in capturing and representing the variability present in the dataset during the training phase.
MLP-ANN, ANFIS, and LSSVM soft computational techniques were applied for forecasting the efficiency of a PV/T collector. [30] The input variables for training and testing the machine learning models included sun heat, flow rate, inlet temperature, and solar radiation, while the output variable studied was the electrical efficiency yield. The results indicate that the proposed LSSVM model outperformed the other models. The R2 (coefficient of determination) and MSE (mean squared error) values for the four models were as follows: 0.986 and 0.007 (MLP-ANN), 0.94 and 0.037 (ANFIS), 0.922 and 0.011 (LSSVM), and 0.987 and 0.004 (unspecified fourth model), respectively.
In the study of [31] various artificial intelligence (AI) models, including ANFIS, MLP, CFF, RBF, GR neural networks, and LS SVR, were employed to model the electrical efficiency of a photovoltaic–thermal (PVT) system cooled by nanofluids. The study involved conducting trial-and-error scenarios and statistical analyses. The findings highlighted that ANFIS, trained with a subtractive clustering membership function using a hybrid algorithm, stood out as the most accurate predictor for the given task. The reported R2 values for the different models were LS-SVR: R2 = 0.9368, ANFIS: R2 = 0.9534, CFF: R2 = 0.9597, MLP: R2 = 0.9511, GR: R2 = 0.9535, RBF: R2 = 0.9044, and MLP (second instance): R2 = 0.97. These R2 values serve as metrics indicating the accuracy of each model in capturing the variability in the electrical efficiency of the PVT system. Notably, the research underscores that ANFIS, with its specific training methodology, provides the most precise predictions for the specified task.
In the study of Barthwal and Rakshit (2021) [34], an artificial neural network (ANN) was trained to forecast the annual energy and exergy output of a modeled system. The ANN incorporates six input parameters, encompassing design, operational, and application factors. To ascertain the optimal parameter combinations, a multi-criterion decision-making (MCDM) approach was applied, considering system outputs and efficiencies. The trained neural network exhibited remarkable accuracy, achieving an R2 value surpassing 0.97. This high R2 value signifies the effectiveness of the ANN in accurately predicting the annual energy and exergy output of the modeled system.
In this study [35], experimental datasets for photovoltaic–thermal (PVT) systems are generated, and electrical efficiency values are calculated based on these datasets. Subsequently, two modeling techniques, Elastic.net regression and an artificial neural network (ANN), are employed to predict the efficiency values of PVT using the available datasets. Elastic.net regression is utilized to generate mathematical equations for calculating the electrical efficiency of PVT. The results obtained from the Elastic.net regression and ANN models are compared with the experimental results, revealing a strong agreement between the models and the experimental data, indicating that their effectiveness in predicting PVT electrical efficiency was about 0.997 and 0.912 of R2 for ANN and Elastic.net, respectively.
In [36], a novel approach is introduced to model a photovoltaic–thermal (PVT) nanofluid-based collector system. The researchers utilized a radial basis function artificial neural network (RBFANN), multilayer perceptron artificial neural network (MLPANN), and adaptive neuro-fuzzy inference system (ANFIS) to capture the complex non-linear relationship between the input and output parameters of the PVT system. The crucial output parameters chosen for analysis were the fluid outlet temperature of the collector and the electrical efficiency of the photovoltaic unit (PV). The results of the three models were compared and validated against measurements, revealing their reasonable capability in estimating the performance of the PVT system. The reported R2 values for MLPANN, RBFANN, and ANFIS are approximately 0.9363, 0.9906, and 0.9896, respectively. These R2 values indicate the models’ ability to capture and represent the variability in the PVT system’s performance, with higher values suggesting better predictive accuracy.
In [37], the solar electrical efficiency of photovoltaic–thermal (PVT) systems based on nanofluid is modeled using the artificial neural network (ANN) technique. Three ANN methods—multilayer perceptron (MLP), self-organizing feature map (SOFM), and support vector machine (SVM)—were implemented based on experimental results. The findings indicate that the network output aligns well with both the experimental results and previously published works, demonstrating the effectiveness of the ANN approach in predicting the solar energy production of PVT systems. The reported R2 values for MLP, SOFM, and SVM are approximately 0.54186, 0.90064, and 0.99109, respectively. These R2 values serve as indicators of the models’ ability to capture and represent the variability in the solar electrical efficiency of PVT systems, with higher values suggesting better predictive accuracy.
In the context of recent studies exploring the performance of photovoltaic–thermal (PVT) systems cooled by nanofluids, it is crucial to acknowledge existing gaps in the literature. While advancements have been made in understanding the impact of various nanofluids on the electrical and thermal efficiency of PVT systems, there remains a notable knowledge gap regarding the application of artificial intelligence (AI) techniques for predictive modeling in this specific domain. Recognizing this gap, the current study aims to bridge the existing knowledge deficit by leveraging three prominent soft computing approaches, XGBoost (XGB), extra tree regressor (ETR), and k-nearest neighbors (KNNs), to develop accurate and efficient predictive models for estimating the electrical and thermal efficiency of PVT systems cooled by nanofluids. This novel approach not only contributes to the growing body of research on renewable energy systems but also pioneers the application of AI methodologies in predicting the intricate dynamics of PVT systems. The unique amalgamation of AI and nanofluid-enhanced PVT systems positions this study at the forefront of innovative research, offering valuable insights and paving the way for future advancements in sustainable energy technologies.
In addition, the study aims to predict new data that have not been utilized in the training phase and validate them against a previous experimental study. In summary, the results demonstrate the robust performance of the XGB and ETR models in accurately predicting both electrical and thermal efficiency. The XGB model consistently exhibits the highest R2 values of about 0.99999, indicating its superior predictive capabilities.

2. Materials and Methods

In this section, the machine learning techniques that were examined and employed to simulate the electrical and thermal efficiency of PVT collectors are described.

2.1. Extreme Gradient Boosting (XGB)

XGB is a prominent implementation of gradient-boosting machines (GBM), widely recognized as constituting one of the most powerful algorithms used in supervised learning. It excels in both regression and classification tasks, making it a versatile tool for various predictive problems [38]. XGB operates in the following manner: if we have, for example, a dataset that has m features and n number of examples datasets { x i , y i : i = 1 n , x i ϵ R m , y i ϵ R } . Let y ^ be the predicted output of an ensemble tree model generated from the following equation [37]:
Å . i = ø x i = k = 1 k f k x i , f k ϵ F
In the XGB model, the variable k denotes the number of trees included in the model. Each tree is denoted as f k , representing the k-th tree in the ensemble. To solve the equation mentioned above, the goal is to find the optimal set of functions by minimizing the objective composed of the loss function and regularization terms. This optimization process aims to strike a balance between reducing the training error (loss) and preventing overfitting through regularization [39].
L ø = i l y i , Å . i + k Ω ( f k )
In the XGB model, the loss function “l” quantifies the difference between the predicted output y i and the actual output y i . The regularization term (represented as Ω) is a measure of the model’s complexity and helps to prevent overfitting. It is calculated using the following equation:
Ω f k = ɣ T + 1 2 λ W 2
T represents the number of leaves of the tree; W is the weight of each leaf.
Boosting is utilized in the training of XGB models to minimize the objective function in decision trees. This process involves adding a new function, represented by a tree, during each iteration of the training process [37]. Thus, in the t-th iteration, a new function (tree) is added, as follows:
L ( t ) = i = 1 n l y i , Å . i t 1 + f t x i + Ω ( f t )
Table 1 summarizes the main results of literature studies based on machine learning applied to PVT-system-based nanofluids.
Table 1. Literature review regarding machine learning utilized in PVT-system-based nanofluids.
Table 1. Literature review regarding machine learning utilized in PVT-system-based nanofluids.
Data TypeData Points FluidModelRMSEMSER2Remarks
ExpNumɳeleɳthɳeleɳthɳeleɳthɳeleɳth
[32] --NFRF0.0010.718--0.9890.9856Random forest (RF) machine learning predicted thermal, electrical, and exergy efficiency based on Re and nanoparticle concentrations. The results showed acceptable accuracy, with superior overall energy and exergy efficiency precision compared to other targets.
[38] --NFANN 0.1104-0.01220.99810.9998An advanced solar PVT unit was designed, incorporating MWCNT nanoparticles into the PCM for uniform cooling. A 3D computational fluid dynamic model was created to assess performance, generating data for machine learning optimization. Multi-aspect optimization employed diverse algorithms and decision-making techniques.
[39] 98-WLS-SVM0.055 0.003 0.991-MLP-ANN, ANFIS, and LSSVM techniques forecasted PV/T collector efficiency using sun heat, flow rate, inlet temperature, and solar radiation as input variables. The LSSVM model outperformed others, with R2 and MSE of 0.987 and 0.004, respectively, surpassing MLP-ANN and ANFIS models, which scored 0.986 and 0.007 and 0.94 and 0.037, respectively.
ANFIS0.164-0.027 0.918-
ANFIS0.089-0.008 0.976-
RBF-ANN0.143-0.020 0.937-
[40] 200-NFLS-SVR1.85-3.417-0.9368-Various AI models, such as ANFIS, MLP, CFF, RBF, GR neural networks, and LS SVR, were used to simulate the electrical efficiency of a PVT system cooled by nanofluids. Research found that ANFIS, trained with a hybrid algorithm and the subtractive clustering membership function, offered the most accurate predictions.
ANFIS1.60-2.548-0.9534-
CFF1.48-2.191-0.9597-
MLP16.08-2.645-0.9511-
GR4.37-2.542-0.9535-
RBF21.04-5.037-0.9044-
[33] 69 120-WMLP---->0.97An ANN predicted the annual energy and exergy production of a modeled system using six input parameters, including various design, operational, and application factors. An MCDM approach was employed to select the best parameter combinations based on the system’s results and efficiencies. The trained neural network demonstrated high accuracy, with an R2 exceeding 0.97.
[41] 200-airANN----0.997-Experimental data for PVT systems were used to calculate electrical efficiency. Two modeling techniques, Elastic.net regression and ANN, predicted PVT efficiency using these data. Elastic.net regression generated equations to calculate PVT electrical efficiency. Comparisons with experimental results showed strong agreement, indicating the effectiveness of both models in predicting PVT efficiency.
Elastic.net----0.912-
[34] 130-NFMLPANN0.362---0.9363-A novel method modelled a PVT system using RBFANN, MLPANN, and ANFIS to capture complex non-linear relationships. The fluid outlet temperature and electrical efficiency of the PV unit were key output parameters. Comparing the three models against measurements validated their reasonable performance in estimating PVT system performance.
RBFANN0.256---0.9906-
ANFIS0.267---0.9896-
[42] --NFMLP0.710---0.5418-This study employed ANN techniques to model the solar electrical efficiency of PVT systems with nanofluid. Three ANN methods—MLP, SOFM, and SVM—were applied using experimental data. Results show good alignment between network output, experimental data, and previous works, indicating the effectiveness of ANN in predicting solar energy production in PVT systems.
SOFM0.190---0.9006-
SVM0.333---0.9910-
Present work 1006370NFXGB0.2910.17720.0850.06990.98940.99969This work compared AI models to predict PVT system efficiency with nanofluid cooling. XGB and ETR models demonstrated strong performance with R2 values near 0.99999.
ETR0.2910.08100.0871.69210.98940.99984
KNN0.3981.94130.16227.5840.98020.93711
L s p l i t = 1 2   ( i ϵ I L g i ) 2 i ϵ I L h i + λ   + ( i ϵ I R g i ) 2 i ϵ I R h i + λ   ( i ϵ l g i ) 2 i ϵ I h i + λ     ɣ
g i = ə Å . t 1 2 l y i , Å . t 1 h i = ə Å . t 1 2 l y i , Å . t 1
ə likely represents the predicted value or output of the model at a certain iteration or step each step denoted by Å.(t−1).

2.2. Extra Tree Regression (ETR)

The extra tree regression (ETR) approach is a variant of the random forest (RF) model, which was initially proposed by [40]. In the conventional top–down technique, the extra tree regression (ETR) algorithm builds a collection of unpruned decision or regression trees ([40], p. 20). To conduct regression, the random forest (RF) model employs two steps: bootstrapping and bagging. In the bootstrapping step, each individual tree is grown using a random sample from the training dataset, resulting in a set of decision trees. The bagging step further divides the decision tree nodes in the ensemble by selecting random subsets of the training data. The decision-making process involves selecting the best subset and its corresponding value [41,42], defining the random forest (RF) model as a collection of decision trees, denoted as G x , θ r , where G represents the G-th predicting tree and θ is a uniform independent distribution vector assigned prior to tree growth. The ensemble of trees, forming the forest, is combined and averaged according to Breiman’s equation [42] to obtain the final prediction G x .
G x , θ 1 ,     θ r = 1 R   r = 1 R G ( x , θ r )
The extra tree regression (ETR) algorithm differs from the random forest (RF) model in two main features. Firstly, the ETR utilizes all cutting points and randomly selects from these points to divide nodes. In contrast, the RF system typically considers a subset of cutting points. Secondly, the ETR uses the entire learning samples to grow the trees, aiming to minimize bias. This contrasts with RF, which often uses bootstrapped samples. These distinctions highlight the unique characteristics of the ETR approach [40].
The splitting process in the extra tree regression (ETR) approach is governed by two important parameters: k and nmin. The parameter k determines the number of features randomly selected at each node for potential splits, while the nmin parameter defines the minimum sample size required to split a node further. These parameters play a crucial role in controlling the strength of attribute selection and noise reduction in the ETR model. By appropriately setting the values of k and nmin, the ETR model can enhance precision and mitigate the risk of overfitting [43].

2.3. k-Nearest Neighbor (K-NN)

When using KNN regression, the object’s attribute value is simply set to be the average of that of its K closest neighbors. The neighbors’ contributions can be weighted so that the closer neighbors make a greater average contribution than the farther neighbors because of the KNN’s effectiveness, simplicity, and capacity to function effectively with enormous numbers of training data [44].
The distance metric KNN forecasts outcomes based on the K-neighbors that are nearest to the location. Thus, it must design a measure for gauging the distance between instances from the example samples and the query point when using KNN to make predictions. Euclidean geometry is among the most widely used methods for measuring this distance. Cityblock:
Euclidian
D x , y = x y 2
Euclidian squared
D x , y = x y 2
Cityblock
D x , y = | x y |
Chebyshev
D x , y = M a x ( | x y | )
where x and y are, respectively, the topic of the inquiry and a case from the example sample.
Using k-nearest-neighbor predictions after selecting the K value, it is possible to create predictions using the KNN examples. In regression problems, the KNN prediction is the average of the K-nearest-neighbor output:
y = 1 k   i = 1 k y i
Although the XGBoost (XGB), extra tree regressor (ETR), and k-nearest-neighbor (KNN) models represent powerful tools for predictive modelling, they come with their own set of limitations that can impact the accuracy of the results. The main limits that can be mentioned are the following:
Overfitting Risk: All three models are prone to overfitting, where they may capture noise or abnormalities in the training data, leading to poor generalization of unseen data. Proper regularization techniques and hyperparameter tuning are crucial in mitigating overfitting and reducing the overfitting risk.
Model Complexity: XGB, ETR, and KNN have different complexity, XGB and ETR being ensemble learning methods based on decision trees and KNN being a non-parametric algorithm based on similarity measures. While ensemble methods like XGB and ETR can capture complex relationships in the data, they may require more computational resources and longer training times compared to the simpler KNN.
Hyperparameter Sensitivity: The performance of these models heavily relies on hyperparameter settings, and finding the optimal combination can be challenging and time-consuming. Inadequate hyperparameter tuning can lead to suboptimal model performance and reduced accuracy.
Data Preprocessing Impact: The quality of data preprocessing, including feature scaling, handling missing values, and feature engineering, significantly affects the performance of these models. Proper preprocessing techniques are essential for improving model accuracy.
Outlier Sensitivity: Outliers in the data can distort decision boundaries and influence predictions, particularly for proximity-based methods like ETR and KNN. Robust preprocessing methods and outlier detection techniques are necessary to mitigate the impact of outliers on model performance.
Curse of Dimensionality: KNN is sensitive to the curse of dimensionality, where the algorithm’s performance deteriorates as the number of features increases. High-dimensional spaces can lead to sparsity and adversely affect distance calculations, reducing the effectiveness of KNN.
Assumption of Linearity: While KNN makes no assumptions about data distribution, XGB and ETR assume some degree of non-linearity in the data. If the relationship between features and the target variable is highly non-linear, then KNN may outperform XGB and ETR.

2.4. Processed Experimental Dataset from the Literature

In this study, machine learning approaches were utilized to analyze the electrical efficiency and thermal efficiency of a photovoltaic–thermal system cooled down by nanofluids starting from experimental data derived from various research articles to train the machine learning models. Python was utilized as the programming language to implement and execute these analyses. The algorithms are implemented using popular machine learning libraries in Python, such as scikit-learn and TensorFlow. These libraries provide a wide range of tools and functionalities for building, training, and evaluating machine learning models efficiently, using the libraries listed in Figure 1 (which include pandas, numpy, matplotlib, etc.) for various data manipulation and visualization tasks.
The dataset used for electrical efficiency consisted of 1006 experimental datasets, reported in 13 different research articles: [22,24,25,27,45,46,47,48,49,50,51]. and 370 experimental datasets for thermal efficiency, reported in seven different research articles: [22,23,24,25,45,48,49,51,52,53].
These datasets are divided into thirteen features as inputs to obtain the electrical or thermal efficiency as the output. Based on the article information, data used in this study are classified into two groups: features related to the PVT system and features related to the climate. Additionally, features specifically related to the nanofluid properties are considered.
  • Features related to the PVT system: PVT surface, time.
  • Features related to the weather data (i.e., solar radiation, ambient temperature, and wind speed). Figure 2 and Table 2 illustrate the countries and the climate type where the analyzed researches were carried out
  • Features related to nanofluid properties: nanoparticle size, volume fraction, mass flow rate, inlet temperature, thermal conductivity, specific heat, density.
The procedure involved finding the best model among XGB, ETR, and KNN regression techniques. Thus, the predictive performances of these three regression models were compared to identify which one of them provided the most accurate predictions for this specific problem.
Figure 2. The geographic areas where the analyses were carried out.
Figure 2. The geographic areas where the analyses were carried out.
Energies 17 02307 g002
Various statistical criteria, such as R-squared, root-mean-square error (RMSE), and mean squared error (MSE), were used to assess the confidence, reliability, and accuracy of the models [54]. These criteria provided valuable insights into the performance of the models and helped in determining their effectiveness in capturing the underlying patterns and making accurate predictions.
Root-mean-squared error (RMSE)
1 N i = 1 N ( y i e x p y i p r e d ) ²
Mean squared error (MSE)
1 N i = 1 N ( y i e x p y i p r e d ) 2
Correlation coefficient (R2)
1 1 N i = 1 N ( y i e x p y i p r e d ) ² 1 N i = 1 N ( y i e x p y e x p ¯ ) ²
Once the best machine learning (ML) technique was identified, it was employed to predict a new dataset that had not been used before. The selected ML approach would be validated by comparing its predictions with the experimental datasets from the study conducted in [24]. Figure 3 shows this comparison.
Figure 4 depicts the PVT collector studied, which constituted a silicon monocrystalline glass–glass panel, a wooden frame for insulation, a copper plate used as the absorber, and copper pipes with 0.0085 kg/s of water with a 2% volume fraction of nanofluid flowing. The collector’s surface measures around 0.616 m2, and a peak power of approximately 90.424 W is indicated. Further details on parameters such as electrical efficiency, thermal efficiency, optical efficiency, and loss coefficients would enhance comprehensive performance evaluation.
Figure 5 illustrates the flowchart of the algorithm employed, which encompasses essential steps developed through libraries and modules for efficient data processing and analysis. The process begins with the uploading of the dataset, followed by preparations for the input and output variables. Subsequently, the input features undergo normalization to ensure uniform scaling across the dataset. Next, the model studies commence, involving the definition and training of regression models. The core of the evaluation process lies in performing k-fold cross-validation, which systematically validates the model’s performance across multiple subsets of the dataset. Once trained, the models are deployed to make predictions on new data instances. Finally, the R2 score is computed to quantitatively reckon the model’s predictive capability. This comprehensive approach ensures robust model development and evaluation, ultimately leading to reliable results.

3. Results and Discussion

The analysis carried out entailed two parts: firstly, machine learning approaches (XGB, ETR, and KNN) were applied to analyze the electrical and thermal efficiency of a PVT system. To train the machine learning models, experimental data from various research articles were utilized. In the second part, the XGB, ETR, and KNN models were validated using new data, derived from the experimental results obtained in [55]. This validation process aimed to evaluate the performance and generalization capability of the models on unseen data.

3.1. The Dataset Split

The k-fold cross-validation method was chosen to evaluate the performance of the three models [56]. By dividing the data into k subsets or folds, this method aided in evaluating the generalization and robustness of the models. Figure 6 presents the correlation coefficient in the k-fold function for electrical and thermal efficiency.
These analyses suggest that the value of 30 can be used as the k-fold cross-validation value both for electrical and thermal efficiency. This means that the dataset is divided into 30 folds and the models are trained and tested on different combinations of these folds.
Figure 7 illustrates an extract of the first five splits for both the training and testing data in the k-fold cross-validation process for both electrical and thermal efficiency.
The data shown in Figure 7 represent the partitioning of the dataset into training and testing subsets for the initial phase of k-fold cross-validation. This meticulous process is tailored to assess the performance of models concerning both electrical and thermal efficiency. The k-fold methodology involves systematically dividing the data into ‘k’ segments, allowing the model to undergo a series of training and validation cycles. By showcasing the initial splits, this visualization provides a glimpse into the iterative nature of this procedure, effectively portraying how the model’s competence is rigorously evaluated across diverse subsets of the data. In essence, this illustration underscores the significance of k-fold cross-validation in ensuring a robust assessment of models’ aptitude in predicting both electrical and thermal efficiency outcomes.

3.2. Assessment of Machine Learning Model Accuracy

Table 3 and Table 4 provide the errors shown by the three presented intelligent models in the evaluation of electrical and thermal efficiency.
Two types of plots are generated: the regression plot of efficiency (experimental vs. estimated) and the relative deviations of efficiency (experimental vs. predicted).
Figure 8 shows the regression plot of electrical efficiency, which compares the experimental values of efficiency with the corresponding estimated values obtained from the models. It gives a picture of how effectively the models are able to predict the efficiency values. Typically, the plot is made up of scatter points for the experimental efficiency values and a line for the estimated efficiency values. The scatter points’ alignment along the line indicates how well the scatter points’ predictions match the actual experimental data.
It is evident that a significant number of data points from the training and testing datasets closely align with the diagonal line, indicating a strong agreement between the model predictions and the experimental data. This alignment suggests that the models are effective in estimating the electrical efficiency of the PVT system. The R2 values further support this observation, with the XGB model achieving the perfect R2 of 0.99998 for training data and the high R2 of 0.99855 for testing data. Similarly, the ETR model demonstrates excellent performance with an R2 of 0.99999 for training data and an impressive R2 of 0.99927 for testing data. However, the KNN model exhibits the slightly lower R2 values of 0.92259 for training data and 0.99522 for testing data.
Figure 9 shows the thermal efficiency regression plot, which compares experimental data against estimated data from three different models for both training and testing set.
Once again, a substantial number of data points from the training and testing datasets closely align with the diagonal line, indicating a strong agreement between the model predictions and the experimental data for the thermal analysis. The R2 values further support the effectiveness of the models, indeed the XGB model, achieving the perfect R2 of 0.99998 for training data and the high R2 of 0.99855 for testing data. Similarly, the ETR model demonstrates excellent performance, with an R2 of 0.99999 for training data and an impressive R2 of 0.99927 for testing data. However, the KNN model exhibits the slightly lower R2 values of 0.92259 for training data and 0.99522 for testing data.
These results indicate that the XGB and ETR models excelled in estimating the thermal efficiency, with the XGB model displaying a slightly better performance based on the R2 values. The close alignment of the data points to the diagonal line in the regression plot further confirms the accuracy and reliability of the model predictions.
The relative deviations of efficiency is another index used to assess ML models. It shows the percentage differences or deviations between the experimental and predicted efficiency values. The plot typically consists of bars or scatter points that represent the relative deviations for each data point. A smaller deviation indicates a better agreement between the predicted and experimental efficiency values.
Figure 10 illustrates the values of observed relative deviation for the collected electrical experimental data points.
The mean relative deviation values for the training data are 0.00451, 0.00125, and 0.00999 for the XGB, ETR, and KNN models, respectively. These values represent the average deviations between the predicted and experimental electrical efficiency for the training data. On the other hand, the mean relative deviation values for the testing data are 0.39336, 0.40823, and 0.56770 for the XGB, ETR, and KNN models, respectively. These values represent the average deviations between the predicted and experimental electrical efficiency for the testing data. As previously mentioned, lower mean relative deviation values indicate a better agreement between the predicted and experimental electrical efficiency values. In this case, the XGB model performs the best with the lowest mean relative deviation for both training and testing data. The ETR model also shows good performance, particularly in the training data, while the KNN model exhibits relatively higher average deviations in both training and testing.
Figure 11 represents the mean relative deviation values, which offer insights into the agreement between the predicted and experimental values for each model for thermal efficiency.
On the training data, the XGB model demonstrated a mean relative deviation of 0.00002, indicating a relatively small average deviation between the predicted and experimental values. This suggests a good level of agreement and accuracy in capturing thermal efficiency trends. The ETR model exhibits an even lower mean relative deviation of 0.01676, indicating an even smaller average deviation between the predicted and experimental values. This signifies a higher level of agreement between the predicted and experimental values for the ETR model. On the other hand, the KNN model shows a mean relative deviation of 0.32539, suggesting a slightly larger average deviation between the predicted and experimental values compared to the XGB and ETR models. For the testing data, the relative deviation for the XGB, ETR, and KNN are 3.48655, 2.79772, and 5.93964, respectively. In summary, based on the given relative deviation values for the testing data, the ETR model performed the best in terms of agreement with the experimental electrical efficiency values, followed by the XGB model, while the KNN model showed the highest average deviation.
Table 5 summarizes the main results derived from the previous analyses.

3.3. Model Validation

In this part, the XGB, ETR, and KNN models were validated by introducing new data derived from the experimental results of [55]. This validation process aimed to assess the performance and generalization capability of the models on unseen data.
Figure 12 shows the comparison among the experimental and predicted electrical efficiency of the three models.
The results represented in Figure 12 indicated that the XGB model achieved a high level of accuracy with an R2 value of 0.99997, while the ETR model also performed exceptionally well, with an R2 value of 0.99999. The KNN model exhibited a slightly lower accuracy, with an R2 value of 0.92682.
Figure 13 shows a comparison among the experimental and predicted thermal efficiency values from the three models.
In Figure 13, the data points represent the thermal efficiency values predicted by the XGBoost (XGB), extra tree regressor (ETR), and k-nearest-neighbor (KNN) models. XGB and ETR show exceptionally high R2 values (0.99995 and 0.99999), indicating strong agreement with the actual values. KNN, with an R2 of 0.94726, also performed well. The ‘data index’ likely signifies individual data points. Overall, Figure 13 confirms the accuracy and reliability of XGB, ETR, and KNN in predicting the thermal efficiency of the photovoltaic–thermal (PVT) system.
Table 6 and Table 7 summarize the main results derived from the previous analyses.
Figure 14 depicts the comparison between the experimental electrical and thermal efficiencies over time, as observed in the study conducted by Aberoumand et al. [55], under conditions of 2% volume fraction and a mass flow rate of 0.0085 kg/s. This comparison is made against the predicted values obtained using the XGBoost (XGB), extra tree regression (ETR), and K-nearest-neighbor (KNN) models.
As regards electrical efficiency, the XGB model exhibits an R2 value of 0.99999, indicating the highly accurate prediction of the electrical efficiency over time. The ETR model also shows a strong performance, with an R2 value of 0.99997, closely following the XGB model. The KNN model, while still providing reasonable results, has a slightly lower R2 value of 0.92682, suggesting a relatively lower accuracy in predicting electrical efficiency compared to the other models.
Turning to thermal efficiency, all three models show excellent predictive capabilities. The XGB model achieves an outstanding R2 value of 0.99999, indicating a close agreement between the predicted and actual thermal efficiency values. The ETR model follows closely with an R2 value of 0.99995, demonstrating high accuracy, as well. The KNN model performs relatively slightly lower with an R2 value of 0.94726, indicating a still-satisfactory estimation of the thermal efficiency.
Overall, these figures highlight the strong performance of the XGB and ETR models in predicting both electrical and thermal efficiency, with the XGB model often achieving the highest R2 values. While the KNN model shows slightly lower accuracy, it still provides reasonable estimations for both efficiency metrics.
Table 8 summarizes the main results derived from the previous analyses.

4. Conclusions

This study systematically assessed the predictive performance of XGBoost (XGB), extra tree regressor (ETR), and k-nearest-neighbor (KNN) models for estimating the electrical and thermal efficiency of PVT systems. The evaluation, conducted through regression plots, relative deviations, and R2 values, revealed compelling insights.
Notably, the XGB model exhibited outstanding accuracy in estimating electrical efficiency, yielding the high R2 values of 0.98872 (training) and 0.99223 (testing). The ETR and KNN models also demonstrated commendable performances, achieving R2 values ranging from 0.98282 to 0.99090. In thermal efficiency predictions, both the XGB and ETR models excelled, attaining impressive R2 values, from 0.99855 to 0.99998.
Validation using additional data from Aberoumand et al. (2018) further substantiated the reliability of these models. The study’s findings underscore the transformative impact of advanced machine learning techniques on PVT system predictions, minimizing errors and deviations.
Importantly, our research highlights practical advantages. Employing sophisticated algorithms such as XGB, ETR, and KNN enhances prediction accuracy, facilitating informed decision-making and optimized PVT system designs. The emphasis on error minimization contributes to the precision of estimations, ensuring robust performance assessments.
Looking forward, this study serves as a foundation for future advancements. The potential exploration of more intricate algorithms and hybrid models, coupled with real-time data integration and advanced control strategies, holds promise for further improving predictive capabilities under diverse conditions.
In summary, the robust performance of XGB, ETR, and KNN models in predicting PVT system efficiency underscores the efficacy of advanced machine learning techniques. This study not only emphasizes the immediate benefits of enhanced prediction accuracy but also sets the stage for ongoing research and development in this dynamic field.

Author Contributions

Conceptualization, S.M. and B.H.; methodology, S.M. and B.H.; software, S.M.; validation, A.G., B.H., S.A. and G.M.T.; formal analysis, A.G. and G.M.T.; investigation, S.M. and S.A.; resources, B.H.; data curation, S.M.; writing—original draft preparation, S.M.; writing—review and editing, S.M. and A.G.; supervision, B.H. and A.G.; project administration, B.H. and A.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research did not receive any funding.

Data Availability Statement

The data supporting the results presented in this paper, as well as additional findings from this study, are accessible from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

NomenclatureGreek symbol
ETR extra tree regression Ωregularization term
f k k-th tree əpredicted value or output
G x final prediction θuniform independent distribution vector assigned prior to tree growth
knumber of features
KNNs k-nearest neighbors
lloss function
nminminimum sample size required to split a node further
Tleaves of the tree numbers
yactual output
y ^ predicted output
XGB extreme gradient boosting

References

  1. Obaideen, K.; Nooman AlMallahi, M.; Alami, A.H.; Ramadan, M.; Abdelkareem, M.A.; Shehata, N.; Olabi, A.G. On the contribution of solar energy to sustainable developments goals: Case study on Mohammed bin Rashid Al Maktoum Solar Park. Int. J. Thermofluids 2021, 12, 100123. [Google Scholar] [CrossRef]
  2. Hák, T.; Janoušková, S.; Moldan, B. Sustainable Development Goals: A need for relevant indicators. Ecol. Indic. 2016, 60, 565–573. [Google Scholar] [CrossRef]
  3. Salvarli, M.S.; Salvarli, H.; Salvarli, M.S.; Salvarli, H. For Sustainable Development: Future Trends in Renewable Energy and Enabling Technologies. In Renewable Energy—Resources, Challenges and Applications; IntechOpen: London, UK, 2020; ISBN 978-1-78984-284-5. [Google Scholar]
  4. Ahmad, L.; Khordehgah, N.; Malinauskaite, J.; Jouhara, H. Recent advances and applications of solar photovoltaics and thermal technologies. Energy 2020, 207, 118254. [Google Scholar] [CrossRef]
  5. Salameh, T.; Abdelkareem, M.A.; Olabi, A.G.; Sayed, E.T.; Al-Chaderchi, M.; Rezk, H. Integrated standalone hybrid solar PV, fuel cell and diesel generator power system for battery or supercapacitor storage systems in Khorfakkan, United Arab Emirates. Int. J. Hydrogen Energy 2021, 46, 6014–6027. [Google Scholar] [CrossRef]
  6. Olabi, A.G.; Wilberforce, T.; Elsaid, K.; Salameh, T.; Sayed, E.T.; Husain, K.S.; Abdelkareem, M.A. Selection Guidelines for Wind Energy Technologies. Energies 2021, 14, 3244. [Google Scholar] [CrossRef]
  7. Şahin, U. Projections of Turkey’s electricity generation and installed capacity from total renewable and hydro energy using fractional nonlinear grey Bernoulli model and its reduced forms. Sustain. Prod. Consum. 2020, 23, 52–62. [Google Scholar] [CrossRef]
  8. Chowdhury, M.S.; Rahman, K.S.; Selvanathan, V.; Nuthammachot, N.; Suklueng, M.; Mostafaeipour, A.; Habib, A.; Akhtaruzzaman, M.D.; Amin, N.; Techato, K. Current trends and prospects of tidal energy technology. Environ. Dev. Sustain. 2021, 23, 8179–8194. [Google Scholar] [CrossRef]
  9. Mahmoud, M.; Ramadan, M.; Pullen, K.; Abdelkareem, M.A.; Wilberforce, T.; Olabi, A.-G.; Naher, S. A review of grout materials in geothermal energy applications. Int. J. Thermofluids 2021, 10, 100070. [Google Scholar] [CrossRef]
  10. Mahmoud, M.; Ramadan, M.; Naher, S.; Pullen, K.; Ali Abdelkareem, M.; Olabi, A.-G. A review of geothermal energy-driven hydrogen production systems. Therm. Sci. Eng. Prog. 2021, 22, 100854. [Google Scholar] [CrossRef]
  11. Czajczyńska, D.; Czajka, K.; Krzyżyńska, R.; Jouhara, H. Waste tyre pyrolysis—Impact of the process and its products on the environment. Therm. Sci. Eng. Prog. 2020, 20, 100690. [Google Scholar] [CrossRef]
  12. Jonynas, R.; Puida, E.; Poškas, R.; Paukštaitis, L.; Jouhara, H.; Gudzinskas, J.; Miliauskas, G.; Lukoševičius, V. Renewables for district heating: The case of Lithuania. Energy 2020, 211, 119064. [Google Scholar] [CrossRef]
  13. Good, C.; Andresen, I.; Hestnes, A.G. Solar energy for net zero energy buildings—A comparison between solar thermal, PV and photovoltaic–thermal (PV/T) systems. Sol. Energy 2015, 122, 986–996. [Google Scholar] [CrossRef]
  14. Akel, S.; Sharif, M.A.; Al-Esseili, R.; Al-Wahish, M.A.; Hodali, H.A.; Müller-Buschbaum, P.; Schmidt-Mende, L.; Al-Hussein, M. Photovoltaic cells based on ternary P3HT:PCBM: Ruthenium(II) complex bearing 8-(diphenylphosphino)quinoline active layer. Colloids Surf. Physicochem. Eng. Asp. 2021, 622, 126685. [Google Scholar] [CrossRef]
  15. Mehdi, M.; Ammari, N.; Alami Merrouni, A.; Benazzouz, A.; Dahmani, M. Experimental investigation on the effect of wind as a natural cooling agent for photovoltaic power plants in desert locations. Case Stud. Therm. Eng. 2023, 47, 103038. [Google Scholar] [CrossRef]
  16. Li, H.; He, Y.; Wang, C.; Wang, X.; Hu, Y. Tunable thermal and electricity generation enabled by spectrally selective absorption nanoparticles for photovoltaic/thermal applications. Appl. Energy 2019, 236, 117–126. [Google Scholar] [CrossRef]
  17. Rediske, G.; Siluk, J.C.M.; Gastaldo, N.G.; Rigo, P.D.; Rosa, C.B. Determinant factors in site selection for photovoltaic projects: A systematic review. Int. J. Energy Res. 2019, 43, 1689–1701. [Google Scholar] [CrossRef]
  18. You, T.; Wu, W.; Yang, H.; Liu, J.; Li, X. Hybrid photovoltaic/thermal and ground source heat pump: Review and perspective. Renew. Sustain. Energy Rev. 2021, 151, 111569. [Google Scholar] [CrossRef]
  19. Margoum, S.; El Fouas, C.; Hajji, B.; Aneli, S.; Tina, M.G.; Gagliano, A. Modelling and performances assessment of a nanofluids-based PV/T hybrid collector. Energy Sources Part Recovery Util. Environ. Eff. 2023, 45, 3070–3086. [Google Scholar] [CrossRef]
  20. Ventura, C.; Tina, G.M.; Gagliano, A.; Aneli, S. Enhanced models for the evaluation of electrical efficiency of PV/T modules. Sol. Energy 2021, 224, 531–544. [Google Scholar] [CrossRef]
  21. Margoum, S.; El Fouas, C.; Bekkay, H.; Aneli, S.; Gagliano, A.; Mannino, G.; Tina, G.M. Study Effect of Nanofluids on the Performance Enhancement of PV/T Collector. In Proceedings of the 3rd International Conference on Electronic Engineering and Renewable Energy Systems, Saidia, Morocco, 20–22 May 2022; Bekkay, H., Mellit, A., Gagliano, A., Rabhi, A., Amine Koulali, M., Eds.; Springer Nature: Singapore, 2023; pp. 905–916. [Google Scholar]
  22. Sangeetha, M.; Manigandan, S.; Chaichan, M.T.; Kumar, V. Progress of MWCNT, Al2O3, and CuO with water in enhancing the photovoltaic thermal system. Int. J. Energy Res. 2020, 44, 821–832. [Google Scholar] [CrossRef]
  23. Awais, M.; Bhuiyan, A.A.; Salehin, S.; Ehsan, M.M.; Khan, B.; Rahman, M.D.H. Synthesis, heat transport mechanisms and thermophysical properties of nanofluids: A critical overview. Int. J. Thermofluids 2021, 10, 100086. [Google Scholar] [CrossRef]
  24. Al-Shamani, A.N.; Sopian, K.; Mat, S.; Hasan, H.A.; Abed, A.M.; Ruslan, M.H. Experimental studies of rectangular tube absorber photovoltaic thermal collector with various types of nanofluids under the tropical climate conditions. Energy Convers. Manag. 2016, 124, 528–542. [Google Scholar] [CrossRef]
  25. Al-Waeli, A.H.A.; Sopian, K.; Chaichan, M.T.; Kazem, H.A.; Hasan, H.A.; Al-Shamani, A.N. An experimental investigation of SiC nanofluid as a base-fluid for a photovoltaic thermal PV/T system. Energy Convers. Manag. 2017, 142, 547–558. [Google Scholar] [CrossRef]
  26. Al-Waeli, A.H.A.; Sopian, K.; Kazem, H.A.; Chaichan, M.T. Evaluation of the electrical performance of a photovoltaic thermal system using nano-enhanced paraffin and nanofluids. Case Stud. Therm. Eng. 2020, 21, 100678. [Google Scholar] [CrossRef]
  27. Khandakar, A.; Chowdhury, M.E.H.; Ibne Reaz, M.B.; Md Ali, S.H.; Hasan, M.A.; Kiranyaz, S.; Rahman, T.; Alfkey, R.; Bakar, A.A.A.; Malik, R.A. A machine learning model for early detection of diabetic foot using thermogram images. Comput. Biol. Med. 2021, 137, 104838. [Google Scholar] [CrossRef] [PubMed]
  28. Khandakar, A.; Chowdhury, M.E.H.; Khoda Kazi, M.; Benhmed, K.; Touati, F.; Al-Hitmi, M.; Gonzales, A.S.P., Jr. Machine Learning Based Photovoltaics (PV) Power Prediction Using Different Environmental Parameters of Qatar. Energies 2019, 12, 2782. [Google Scholar] [CrossRef]
  29. Wang, H.; Zhang, G.; Hu, W.; Cao, D.; Li, J.; Xu, S.; Xu, D.; Chen, Z. Artificial intelligence based approach to improve the frequency control in hybrid power system. Energy Rep. 2020, 6, 174–181. [Google Scholar] [CrossRef]
  30. Ahmadi, M.H.; Baghban, A.; Sadeghzadeh, M.; Zamen, M.; Mosavi, A.; Shamshirband, S.; Kumar, R.; Mohammadi-Khanaposhtani, M. Evaluation of electrical efficiency of photovoltaic thermal solar collector. Eng. Appl. Comput. Fluid Mech. 2020, 14, 545–565. [Google Scholar] [CrossRef]
  31. Cao, Y.; Kamrani, E.; Mirzaei, S.; Khandakar, A.; Vaferi, B. Electrical efficiency of the photovoltaic/thermal collectors cooled by nanofluids: Machine learning simulation and optimization by evolutionary algorithm. Energy Rep. 2022, 8, 24–36. [Google Scholar] [CrossRef]
  32. Si, Y.; Brumercik, F.; Yang, C.; Glowacz, A.; Ma, Z.; Siarry, P.; Sulowicz, M.; Gupta, M.K.; Li, Z. Prediction and evaluation of energy and exergy efficiencies of a nanofluid-based photovoltaic-thermal system with a needle finned serpentine channel using random forest machine learning approach. Eng. Anal. Bound. Elem. 2023, 151, 328–343. [Google Scholar] [CrossRef]
  33. Shakibi, H.; Shokri, A.; Sobhani, B.; Yari, M. Numerical analysis and optimization of a novel photovoltaic thermal solar unit improved by Nano-PCM as an energy storage media and finned collector. Renew. Sustain. Energy Rev. 2023, 179, 113230. [Google Scholar] [CrossRef]
  34. Barthwal, M.; Rakshit, D. Artificial neural network coupled building-integrated photovoltaic thermal system for indian. montane climate. Energy Convers. Manag. 2021, 244, 114488. [Google Scholar] [CrossRef]
  35. Arslan, E. Applying regression techniques to determine mathematical equations of exergy, electricity, and energy values of photovoltaic thermal collector. Sol. Energy 2023, 255, 369–380. [Google Scholar] [CrossRef]
  36. Kalani, H.; Sardarabadi, M.; Passandideh-Fard, M. Using artificial neural network models and particle swarm optimization for manner prediction of a photovoltaic thermal nanofluid based collector. Appl. Therm. Eng. 2017, 113, 1170–1177. [Google Scholar] [CrossRef]
  37. Al-Waeli, A.H.A.; Sopian, K.; Kazem, H.A.; Yousif, J.H.; Chaichan, M.T.; Ibrahim, A.; Mat, S.; Ruslan, M.H. Comparison of prediction methods of PV/T nanofluid and nano-PCM system using a measured dataset and artificial neural network. Sol. Energy 2018, 162, 378–396. [Google Scholar] [CrossRef]
  38. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
  39. Ibrahem Ahmed Osman, A.; Najah Ahmed, A.; Chow, M.F.; Feng Huang, Y.; El-Shafie, A. Extreme gradient boosting (Xgboost) model to predict the groundwater levels in Selangor Malaysia. Ain Shams Eng. J. 2021, 12, 1545–1556. [Google Scholar] [CrossRef]
  40. Geurts, P.; Ernst, D.; Wehenkel, L. Extremely randomized trees. Mach. Learn. 2006, 63, 3–42. [Google Scholar] [CrossRef]
  41. Sharafati, A.; Asadollah, S.B.H.S.; Hosseinzadeh, M. The potential of new ensemble machine learning models for effluent quality parameters prediction and related uncertainty. Process Saf. Environ. Prot. 2020, 140, 68–78. [Google Scholar] [CrossRef]
  42. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  43. Mishra, A.; Marr, D. Apprentice: Using Knowledge Distillation Techniques To Improve Low-Precision Network Accuracy. ICLR 2018. Available online: https://doi.org/10.48550/arXiv.1711.05852 (accessed on 15 November 2017).
  44. Margoum, S.; Hajji, B.; El Fouas, C.; El Manssouri, O.; Aneli, S.; Gagliano, A.; Mannino, G.; Tina, G.M. Prediction of Electrical Power of Ag/Water-Based PVT System Using K-NN Machine Learning Technique. In Proceedings of the 2023 International Conference on Digital Technologies and Applications, Fez, Morocco, 27–28 January 2023; Motahhir, S., Bossoufi, B., Eds.; Springer Nature: Cham, Switzerland, 2023; pp. 125–132. [Google Scholar]
  45. Sardarabadi, M.; Passandideh-Fard, M.; Zeinali Heris, S. Experimental investigation of the effects of silica/water nanofluid on PV/T (photovoltaic thermal units). Energy 2014, 66, 264–272. [Google Scholar] [CrossRef]
  46. Sardarabadi, M.; Passandideh-Fard, M. Experimental and numerical study of metal-oxides/water nanofluids as coolant in photovoltaic thermal systems (PVT). Sol. Energy Mater. Sol. Cells 2016, 157, 533–542. [Google Scholar] [CrossRef]
  47. Sardarabadi, M.; Hosseinzadeh, M.; Kazemian, A.; Passandideh-Fard, M. Experimental investigation of the effects of using metal-oxides/water nanofluids on a photovoltaic thermal system (PVT) from energy and exergy viewpoints. Energy 2017, 138, 682–695. [Google Scholar] [CrossRef]
  48. Nasrin, R.; Rahim, N.A.; Fayaz, H.; Hasanuzzaman, M. Water/MWCNT nanofluid based cooling system of PVT: Experimental and numerical research. Renew. Energy 2018, 121, 286–300. [Google Scholar] [CrossRef]
  49. Hosseinzadeh, M.; Salari, A.; Sardarabadi, M.; Passandideh-Fard, M. Optimization and parametric analysis of a nanofluid based photovoltaic thermal system: 3D numerical model with experimental validation. Energy Convers. Manag. 2018, 160, 93–108. [Google Scholar] [CrossRef]
  50. Abdallah, S.R.; Saidani-Scott, H.; Abdellatif, O.E. Performance analysis for hybrid PV/T system using low concentration MWCNT (water-based) nanofluid. Sol. Energy 2019, 181, 108–115. [Google Scholar] [CrossRef]
  51. Alwan Sywan Alshaheen, A.; Kianifar, A.; Baradaran Rahimi, A. Experimental study of using nano-(GNP, MWCNT, and SWCNT)/water to investigate the performance of a PVT module. J. Therm. Anal. Calorim. 2020, 139, 3549–3561. [Google Scholar] [CrossRef]
  52. Michael, J.J.; Iniyan, S. Performance analysis of a copper sheet laminated photovoltaic thermal collector using copper oxide–water nanofluid. Sol. Energy 2015, 119, 439–451. [Google Scholar] [CrossRef]
  53. Hasan, H.A.; Sopian, K.; Jaaz, A.H.; Al-Shamani, A.N. Experimental investigation of jet array nanofluids impingement in photovoltaic/thermal collector. Sol. Energy 2017, 144, 321–334. [Google Scholar] [CrossRef]
  54. Assouline, D.; Mohajeri, N.; Scartezzini, J.-L. Quantifying rooftop photovoltaic solar energy potential: A machine learning approach. Sol. Energy 2017, 141, 278–296. [Google Scholar] [CrossRef]
  55. Aberoumand, S.; Ghamari, S.; Shabani, B. Energy and exergy analysis of a photovoltaic thermal (PV/T) system using nanofluids: An experimental study. Sol. Energy 2018, 165, 167–177. [Google Scholar] [CrossRef]
  56. Mellit, A.; Pavan, A.M. A 24-h forecast of solar irradiance using artificial neural network: Application for performance prediction of a grid-connected PV plant at Trieste, Italy. Sol. Energy 2010, 84, 807–821. [Google Scholar] [CrossRef]
Figure 1. Python libraries used for data analysis and machine learning in photovoltaic–thermal system efficiency study.
Figure 1. Python libraries used for data analysis and machine learning in photovoltaic–thermal system efficiency study.
Energies 17 02307 g001
Figure 3. Electrical efficiency and thermal efficiency, respectively, of PVT with (2% of volume fraction) and in the case of laminar flow (0.0085 Kg/s of mass flow rate) in [55].
Figure 3. Electrical efficiency and thermal efficiency, respectively, of PVT with (2% of volume fraction) and in the case of laminar flow (0.0085 Kg/s of mass flow rate) in [55].
Energies 17 02307 g003
Figure 4. Design of integrated PVT system.
Figure 4. Design of integrated PVT system.
Energies 17 02307 g004
Figure 5. Flowchart: performance estimation and prediction in photovoltaic–thermal (PVT) systems.
Figure 5. Flowchart: performance estimation and prediction in photovoltaic–thermal (PVT) systems.
Energies 17 02307 g005
Figure 6. Correlation coefficient in k-fold function for electrical (left) and thermal efficiency (right).
Figure 6. Correlation coefficient in k-fold function for electrical (left) and thermal efficiency (right).
Energies 17 02307 g006
Figure 7. An extract from the first five splits for training and testing for (a) electrical efficiency and (b) thermal efficiency.
Figure 7. An extract from the first five splits for training and testing for (a) electrical efficiency and (b) thermal efficiency.
Energies 17 02307 g007
Figure 8. Electrical efficiency regression plot: experimental vs. estimated data from the three models.
Figure 8. Electrical efficiency regression plot: experimental vs. estimated data from the three models.
Energies 17 02307 g008
Figure 9. Thermal efficiency regression plot: experimental vs. estimated data from the three models.
Figure 9. Thermal efficiency regression plot: experimental vs. estimated data from the three models.
Energies 17 02307 g009
Figure 10. Relative deviations of electrical efficiency: experimental vs. predicted by the three models.
Figure 10. Relative deviations of electrical efficiency: experimental vs. predicted by the three models.
Energies 17 02307 g010
Figure 11. Relative deviations of electrical efficiency: experimental vs. predicted by the three models.
Figure 11. Relative deviations of electrical efficiency: experimental vs. predicted by the three models.
Energies 17 02307 g011
Figure 12. Experimental vs. predicted electrical efficiency for the three models.
Figure 12. Experimental vs. predicted electrical efficiency for the three models.
Energies 17 02307 g012
Figure 13. Experimental vs. predicted thermal efficiency values from the three models.
Figure 13. Experimental vs. predicted thermal efficiency values from the three models.
Energies 17 02307 g013
Figure 14. Comparison of the predicted electrical (left) and thermal efficiency (right) with the experimental values (derived from [55]).
Figure 14. Comparison of the predicted electrical (left) and thermal efficiency (right) with the experimental values (derived from [55]).
Energies 17 02307 g014
Table 2. Classification of articles according to their country and the type of climate.
Table 2. Classification of articles according to their country and the type of climate.
ArticleLocationClimate Type
[45,46,47,49,51]Mashhad, Iransemi-arid climate
[24,53]Bangi, Malaysiatropical
[25]Selangor, Malaysiatropical rainforest
[48]Kuala Lumpur, Malaysiahot, oppressive, and overcast
[50]Banha, Egypthot, humid, and arid (summer)
[22,52]Chennai, Indiatropical wet and dry
Table 3. Evaluation of errors using various criteria (electrical efficiency).
Table 3. Evaluation of errors using various criteria (electrical efficiency).
Model/Electrical MSE (%)RMSE (%)R2nMSEnRMSE
XGBTrain0.089390.298980.988720.009540.09769
Test0.069070.262810.992230.015290.12366
ETRTrain0.072120.268560.990900.017170.13106
Test0.147330.383840.983430.030030.17329
KNNTrain0.136180.369030.982820.009090.09538
Test0.267190.516910.969960.124370.12437
Table 4. Evaluation of errors using various criteria (thermal efficiency).
Table 4. Evaluation of errors using various criteria (thermal efficiency).
Model/Thermal MSE
(%)
RMSE
(%)
R2nMSEnRMSE
XGBTrain0.006250.079060.999981.260800.00355
Test0.324950.570050.998550.000600.02451
ETRTrain2.074480.000450.999991.290753.59271
Test0.162620.403260.999270.000720.02692
KNNTrain34.24805.852180.922590.077400.27822
Test0.928610.963640.995220.004770.06909
Table 5. Mean relative deviation evaluation for both electrical and thermal efficiency.
Table 5. Mean relative deviation evaluation for both electrical and thermal efficiency.
Model/Mean Relative Deviation Electrical Efficiency Thermal Efficiency
XGBTrain0.004510.00002
Test0.393363.48655
ETRTrain0.001250.01676
Test0.408232.79772
KNNTrain0.009990.32539
Test0.56775.93964
Table 6. R2 evaluation of experimental vs. predicted values for electrical and thermal efficiency.
Table 6. R2 evaluation of experimental vs. predicted values for electrical and thermal efficiency.
ModelElectrical EfficiencyThermal Efficiency
XGB0.999970.99995
ETR0.999990.99999
KNN0.92682.0.94726
Table 7. nMSE and nRMSE of experimental vs. predicted values for electrical and thermal efficiency.
Table 7. nMSE and nRMSE of experimental vs. predicted values for electrical and thermal efficiency.
Model/Mean Relative Deviation Electrical Efficiency Thermal Efficiency
XGBnMSE0.007520.00132
nRMSE0.086760.03643
ETRnMSE0.014970.00080
nRMSE0.122390.02838
KNNnMSE0.029120.00308
nRMSE0.170650.05554
Table 8. R2 evaluation for the validation set for electrical and thermal efficiency.
Table 8. R2 evaluation for the validation set for electrical and thermal efficiency.
Model/R2Electrical Efficiency Thermal Efficiency
XGB0.999970.99995
ETR0.999990.99999
KNN0.926820.94726
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

Margoum, S.; Hajji, B.; Aneli, S.; Tina, G.M.; Gagliano, A. Optimizing Nanofluid Hybrid Solar Collectors through Artificial Intelligence Models. Energies 2024, 17, 2307. https://doi.org/10.3390/en17102307

AMA Style

Margoum S, Hajji B, Aneli S, Tina GM, Gagliano A. Optimizing Nanofluid Hybrid Solar Collectors through Artificial Intelligence Models. Energies. 2024; 17(10):2307. https://doi.org/10.3390/en17102307

Chicago/Turabian Style

Margoum, Safae, Bekkay Hajji, Stefano Aneli, Giuseppe Marco Tina, and Antonio Gagliano. 2024. "Optimizing Nanofluid Hybrid Solar Collectors through Artificial Intelligence Models" Energies 17, no. 10: 2307. https://doi.org/10.3390/en17102307

APA Style

Margoum, S., Hajji, B., Aneli, S., Tina, G. M., & Gagliano, A. (2024). Optimizing Nanofluid Hybrid Solar Collectors through Artificial Intelligence Models. Energies, 17(10), 2307. https://doi.org/10.3390/en17102307

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