Next Article in Journal
Greenhouse Gas Emissions and Mitigation Strategies in Universities Under ISO 14064-1: Lessons for Global Higher Education Sustainability
Previous Article in Journal
Modelling the Cyclical Variability of Nitrogen Dioxide in Urban Areas of Poland, 2001–2021
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning-Based Prediction of Root-Zone Temperature Using Bio-Based Phase-Change Material in Greenhouse

by
Hasan Kaan Kucukerdem
1,* and
Hasan Huseyin Ozturk
2
1
Department of Biosystem Engineering, Faculty of Agriculture, Iğdır University, Iğdır 76000, Türkiye
2
Department of Agricultural Machinery and Technologies Engineering, Faculty of Agriculture, Çukurova University, Adana 01330, Türkiye
*
Author to whom correspondence should be addressed.
Sustainability 2025, 17(21), 9455; https://doi.org/10.3390/su17219455 (registering DOI)
Submission received: 20 September 2025 / Revised: 9 October 2025 / Accepted: 22 October 2025 / Published: 24 October 2025

Abstract

The study focuses on the experimental investigation of the impact of using coconut oil (CO) as a phase-change material (PCM) for heat storage on the root-zone temperature within a greenhouse in Adana, Türkiye. The study examines the efficacy of PCM as latent heat-storage material and predicts root-zone temperature using three machine learning algorithms. The dataset used in the analysis consists of 2658 data at hourly resolution with six variables from February to April in 2022. A greenhouse with PCM shows a remarkable increase in both ambient (0.9–4.1 °C) and root-zone temperatures (1.1–1.6 °C) especially during the periods without sunlight compared to a conventional greenhouse. Machine learning algorithms used in this study include Multivariate Adaptive Regression Splines (MARS), Support Vector Regression (SVR), and Extreme Gradient Boosting (XGBoost). Hyperparameter tuning was performed for all three models to control model complexity, flexibility, learning rate, and regularization level, thereby preventing overfitting and underfitting. Among these algorithms, R2 values for testing data listed from largest to smallest are MARS (0.95), SVR (0.96), and XGBoost (0.97), respectively. The results emphasize the potential of machine learning approaches for applying thermal energy storage systems to agricultural greenhouses. In addition, it provides insight into a net-zero energy greenhouse approach by storing heat in a bio-based PCM, alongside its implementation and operational procedures.

1. Introduction

Greenhouses are specialized agricultural structures designed to enable continuous plant growth by mitigating the adverse effects of climatic fluctuations. These systems function by reducing thermal exchange between interior and exterior environments. However, to maintain optimal plant productivity, microclimatic parameters such as temperature, humidity, and solar radiation must be actively or passively regulated, particularly during unfavorable weather conditions.
Geographical latitude significantly affects the energy demand for greenhouse operations. While greenhouse cultivation is most economically feasible between 30° and 40° latitudes, heating requirements increase above the 40th parallel and cooling costs escalate below the 30th [1]. Among energy demands, heating constitutes the most significant share, accounting for approximately 65–85% of total energy consumption in northern climates [2], with other studies reporting ranges from 50% to 88% [3,4].
The environment inside the greenhouse is regulated using active or passive systems. While active heating systems often rely on nonrenewable fossil fuels, passive systems offer a more sustainable approach by utilizing naturally stored thermal energy. The semi-closed architecture of greenhouses makes them particularly suited for passive heating, capturing and storing solar radiation during the day for nighttime use, which is a principle aligned with the net-zero energy greenhouse concept. Consequently, enhancing energy efficiency through effective thermal storage techniques is vital not only for reducing operational costs but also for minimizing greenhouse gas emissions and promoting sustainable greenhouse agriculture [5,6,7,8].
Phase-Change Materials (PCMs) have gained increasing attention for passive thermal energy storage due to their ability to absorb and release latent heat at specific temperature ranges. Various studies demonstrate that PCM integration in greenhouses can enhance nighttime temperatures by 1–6 °C [9,10,11,12]. However, most applications focus on heating the greenhouse air volume rather than directly targeting the root zone, which is more energy-efficient and critical for crop productivity. Llorach-Massana et al. have shown that maintaining root-zone temperatures between 10 and 15 °C improves crop yield and reduces total energy usage [13]. Moreover, using PCM for root-zone heating can significantly reduce CO2 emissions up to 10.95 tons CO2/ha.year and improve net profits for growers.
Despite the promise of PCMs, paraffin-based materials derived from petroleum remain dominant, representing a sustainability concern due to their high carbon footprint [14]. Bio-based PCMs, such as vegetable oils, present a promising alternative due to their renewability, non-toxicity, thermal stability, and environmental compatibility [15,16]. Nevertheless, studies exploring bio-based PCMs for localized root-zone heating remain scarce.
Accurate modeling of greenhouse thermal behavior, particularly in systems using PCMs, is essential for optimizing energy use. Both mathematical and artificial intelligence (AI)-based models have been applied to this problem, with machine learning (ML) techniques showing high potential for managing the complex and nonlinear interactions among climatic variables [17,18,19,20]. ML algorithms can develop predictive models based on empirical input–output datasets, offering faster and often more accurate outcomes than traditional physical modeling.
The motivation of this study is to model the thermal dynamics of root-zone temperature in a greenhouse utilizing coconut oil (Cocos nucifera), a bio-based PCM through machine learning approaches. This study is among the first to address this gap, as highlighted by [21,22] and also responds to the call for the adoption of open-source platforms like RStudio (2025.09.1) over proprietary tools like MATLAB [23].
A unique aspect of this study is its focus on root-zone heating with a biologically derived PCM rather than traditional air volume heating, addressing a critical but underexplored area in greenhouse climate control. Furthermore, despite the growing literature on PCM use in greenhouses, there is a gap in the application of machine learning techniques specifically for modeling root-zone temperature in systems using latent heat storage. This study fills this gap and contributes to the broader goal of decarbonizing greenhouse agriculture by demonstrating the feasibility of replacing petroleum-based PCMs with sustainable, bio-based alternatives.

2. Materials and Methods

This section describes the experimental design, measurement system, and modeling approach adopted to investigate the thermal performance of coconut oil (CO) as a bio-based phase-change material (PCM) in greenhouse root-zone heating. Details on the greenhouse structure, environmental and thermal measurements, instrumentation accuracy, and data-acquisition procedures are presented. Furthermore, the section outlines the construction and optimization of the machine learning models MARS, SVR, and XGBoost used to predict root-zone temperature based on key climatic and internal parameters. The methodological framework aims to ensure the reproducibility, reliability, and statistical robustness of both experimental and computational analyses.

2.1. Experimental Setup

An experimental study was conducted on two similar greenhouse sections, one with and one without PCM (CO), each with an area of 60 m2, covered by a single layer of polyethylene in Adana (37°00′38″ N, 35°20′21″ E) in the south of Türkiye to explore the thermal behavior of root zone in greenhouse (Figure 1) in February, March and April 2022. Dimensions of the plastic greenhouse are 10 m (length), 6 m (width), and 3.75 m (height). The greenhouse frame is made of aluminum and steel materials, positioned in the north–south direction. A single layer of polyethylene (PE) cover with a thickness of 0.35 mm is used as the cover material in the greenhouse. The experimental study started on 4 February 2022 with cleaning of the greenhouse, preparation of stands where PCMs will be placed, setup of the plant-growing environment, and ended on 26 May 2022. As a plant-growing medium, a mixture of 50% cocopeat and 50% pumice materials was used instead of soil. These materials were filled into pots with a width of 44 cm, a height of 35 cm, and a volume of 27 L. For irrigation and fertilization, micro drippers were added to the irrigation line and positioned inside the pots. A total of 190 pots were placed in both greenhouses (95 pots each).
According to the General Directorate of Meteorology of Türkiye [24], average ambient air temperatures for the coldest months (December, January, and February) are 11.2 °C, 9.5 °C, and 10.3 °C, with the lowest average ambient temperatures for these months recorded at 7.0 °C, 5.2 °C, and 6 °C, respectively. Additionally, negative ambient temperatures can be observed in some years during winter in the province. To prevent heat transfer from greenhouse air to the soil, black plastic cover material was laid at the base of both greenhouses. Temperature changes in the indoor air, PCM, and root zones in the greenhouse were measured and logged using an Onset Computer Hobo UX120-006M (Bourne, MA, USA) with a resolution of 1 h, resulting in a total of 2658 datasets collected from the experiment (Figure 2). Outside temperature, radiation, relative humidity, and wind speed were measured by the NG Field Climate (Weiz, Austria) local meteorological station located 50 m away from the experimental greenhouse.
In the greenhouse equipped with PCM, using disposable ice packages as a macro-packaged heat-storage medium. These disposable ice packages that are readily available in markets were hung on a wire prepared near the pots. The packages were chosen in a transparent color to observe the thermal behavior of CO (Figure 3).

2.2. Uncertainty Analysis

The accuracy of measured values is very important for experimental studies. In this study, uncertainty propagation analysis was used to calculate the uncertainties of calculated results. Using the approach outlined by [25], uncertainty of calculated findings is derived by using the values Table 1 and Equation (1).
According to the method, if a result R is a given function of the independent variables x1, x2, x3, x4, …, xn. Thus,
ω R = R x 1 ω 1 2 + R x 2 ω 2 2 + R x 3 ω 3 2 + + R x n ω n 2 1 / 2  
Here R is a calculated result, x1, x2, x3, …, xn are the measured values. ω 1, ω 2, ω 3, …, ω n is the uncertainty of the values x1, x2, x3, …, measured, respectively. ω R is the absolute uncertainty of the outcome R and ω R /R is the percentage uncertainty of the outcome R. In this study, the experiments are conducted at 6.0% uncertainty.

2.3. Model Construction

Greenhouses represent highly complex and nonlinear systems that dynamically adapt to various shocks, predominantly influenced by weather-related factors. Given their ability to universally approximate, machine learning techniques are increasingly recognized as a versatile solution for addressing challenges inherent in nonlinear systems. Models were constructed by utilizing RStudio software (2025.09.1) using R programming language. During the model employed, various libraries were used, such as earth, caret, tidyverse, ggplot2, ehaGoF, phych, xgboost, corrplot, dalex. Model construction processes are illustrated in Figure 4.
Multivariate Adaptive Regression Splines (MARS), Support Vector Regression (SVR), Extreme Gradient Boosting (XGBoost), which are used and are powerful predictors in practice, were applied in this study. MARS was chosen because it contributes particularly to interpretability, thanks to its ability to capture nonlinear and interactive relationships between variables with segment-based flexible regression curves. SVR was preferred because it shows high generalization performance, especially in small- and medium-sized datasets and can model nonlinear relationships with kernel functions. XGBoost was used due to its fast computational capability, ability to cope with missing data, and success in modeling complex interactions between variables with high accuracy. These models were selected owing to their ability to deal with complex and nonlinear connection among inputs and output (Table 2).
A total of 2658 samples of root-zone temperatures were randomly selected with a proportion of 70% for training and 30% for testing datasets. To ensure an unbiased selection of data, a standard type of cross-validation (CV), namely K-fold CV, was employed [26]. Although there is no strict rule for determining the value of K, it is common practice to use 5 or 10 folds in machine learning algorithms and for this study K-fold CV was selected as 10 according to [27,28,29].
Y i = k = 1 K f k x i ,   f k   ϵ   F ,   i = 1 , , n
where Y i is the prediction of the i -th sample after iterations. K is the representation of all CART trees, f k x i is the prediction results of x i in the k-th tree, and F denotes the space of all possible CART trees.
In machine learning models, numerous parameters significantly influence model effectiveness, generalization ability, and the computational time and complexity required for training. To avoid issues such as overfitting and underfitting and to achieve robust model performance, grid search was employed during the training phase. This method involves training the model over a predefined set of hyperparameter combinations and evaluating performance using a selected methodology, typically cross-validation. The primary advantage of the grid search lies in its simplicity and ease of implementation. However, its major drawback is the high computational cost associated with large hyperparameter spaces [30]. Optimized hyperparameter values for XGBoost, SVR, and MARS are given in Table 3.
Multivariate Adaptive Regression Splines (MARS), a non-parametric regression method, is designed to be used in cubic and linear basis function developed by [31] to understand connection of datasets between predictors and responses. MARS consists of linear models that automatically recognize nonlinear situations between parameters of a problem. Recent statistical modeling studies have comparatively assessed the prediction capabilities of decision tree, artificial neural networks, random forest, and MARS algorithms over the last decade. The method can be used for linear and nonlinear modeling, and it is suitable for engineering problems based on dynamic physical systems. The MARS algorithm’s equation is represented mathematically by [32]:
y = β 0 + m = 1 M β m k = 1 K m h k m ( X v ( k , m ) )
Here, y defines output or dependent parameters, β 0 is the regression constant, β m represents coefficients of basis functions of the MARS model, h k m ( X v ( k . m ) ) are basis functions, in which v ( k , m ) is an index of the independent variable in the m t h component of the k t h product. K m is the parameter restrictive of the order of interaction.
These basis functions allow MARS to adaptively partition the input space and fit piecewise models, thereby capturing nonlinear dependencies effectively. To enhance the model performance with the MARS algorithm, the following optimized hyperparameter configuration was employed: degree set to 2, nprune to 100, penalty to 2, and thresh to 0.005.
SVM (Support Vector Machine) is known as a classification algorithm in two-dimensional space. SVR that is an extension of SVM was modified by [33] and is an important method used in solving regression-type problems by fitting various lines and curves in both linear and nonlinear cases. SVR creates a symmetrical tubular function with a minimal radius that eliminates high and low values in a dataset.
f x = w · x + b
ξ ε = f x = 0   i f   ξ ϵ ,   ξ ϵ   o t h e r w i s e ,     m i n i m i z e :   1 2 ω · ω + c i = 1 N ξ i + + ξ i +
Here, x and b are bias values, and w is the weighting of the vector. Minimizing test errors is achieved by minimizing the weight vector. This means that some deviations of size ε are acceptable, but those larger than +ε and −ε Equation (5) are ignored. The kernel type used for modeling nonlinear complex relationships is the radial basis function (RBF), with the model’s error tolerance controlled by the parameters gamma (0.186), C (set to 100), and sigma (set to 0.23).

2.4. Model Evaluation

Some evaluation criteria have been determined in the literature to measure performance of models created to predict output data. These criteria to be used specifically for this study are Root Mean Square Error (RMSE; Equation (6)), Standard Deviation Ratio (SDR; Equation (7)), Mean Absolute Percentage Error (MAPE; Equation (8)), Mean Absolute Deviation (MAD; Equation (9)), Coefficient of Determination (R2; Equation (10)). Evaluation of the algorithms depends on goodness of fit criteria that are defined as follows [34,35]:
R M S E =   1 n i = 1 n y i y i p 2
S D r a t i o = S m S d
M A P E = 1 n i = 1 n y i y i p y i × 100
M A D = 1 n i = 1 n y i y i p
R 2 = 1 i = 1 n y i y i p 2 i = 1 n y i y ¯ 2
where n is the total number of samples used for training and testing, y i is the actual value that was measured, y i p is the value that was predicted, and y ¯ is the mean of the measured values. Algorithms and performance metrics were both computed with the help of R software (2025.09.1).

3. Results

The findings are structured to evaluate the thermophysical properties and stability of coconut oil, its effectiveness as a heat-storage medium, and its influence on greenhouse root-zone temperatures under real climatic conditions. In addition, the predictive performance of the applied machine learning models is compared through statistical metrics, feature importance, and sensitivity analyses. The results collectively highlight the potential of coconut oil-based PCM systems for improving thermal management and energy efficiency in greenhouse environments.

3.1. Selection Criteria of Coconut Oil

Differential Scanning Calorimetry (DSC) is the most used method to determine the melting/freezing points, phase-change heat and specific heat capacity of PCMs. In this study, DSC measurements were carried out with a Mettler Toledo brand device located at Cukurova University Central Research Laboratory, using a 10 mg CO sample in a nitrogen atmosphere with a nitrogen flow rate of 40 mL/min and a heating–cooling rate of 1 °C/min. Each sample was heated from −10 °C to 60 °C and similarly cooled from 60 °C to −10 °C. Also, thermal conductivity of CO was measured using HotDisk2500S with capton sensor at 25 °C ambient temperature. Differential scanning calorimetry and thermal conductivity analysis of coconut oil used in the study is given in Figure 5 and Table 4. Investigation of the usability of coconut oil as a PCM, the specific enthalpy and thermal conductivity values were like other studies in the literature as expected [36,37,38,39]. CO gives back 98.95 J/g of the 117.36 J/g of energy it takes in during heating, and its storage efficiency is 84.3%. Although the thermal conductivity coefficient of the sample is low at 0.193 W/m.K, it is a product with development potential due to the abundance of CO, its natural origin, and the ability to increase the thermal conductivity coefficient with nanoparticles.
CO possesses desirable thermal properties, such as a phase-change temperature between 17 and 26 °C [36,37], a moderate latent heat of fusion of 102–103 kJ/kg [38], and a thermal conductivity ranging from 0.161–0.321 W/m·K [39], in addition to its ecofriendly bio-based nature.
The biochemical stability of coconut oil, classified under the fatty acid group in PCM classification, is reported to withstand 200 thermal cycles [40] or more than two years, making it also cost-effective. Overall, studies suggest that coconut oil is suitable for thermal applications for building as a heat-storage material [15,37,41,42,43]. Thermal stability analysis of CO was performed with different numbers of cycles (100, 200, 300, 400, and 500), and results are given in Figure 6.
Thermogravimetric analysis gives curves showing the weight loss of a substance against temperature. The weight of the CO sample remains constant until the decomposition starts. The mass loss observed afterwards is the result of the temperature increase in the boiling phase and the evaporation in the test phase. The initial temperature of the thermal decomposition of coconut oil was found to be 252 °C for this study. Majority portion of the mass loss (95%) occurred between 200 and 400 °C. When the degradation curve of CO is examined, it falls into the classification of medium volatile oil (200–600 °C). There is a two-stage thermal degradation in the curve shown in Figure 7. The reason for this is that the chain length of the fatty acids, a branch of the chain, and the degree of unsaturation are factors that affect the thermo-oxidative properties of the fatty ester [44].

3.2. Thermal Behavior and Performance of Coconut Oil as Heat-Storage Medium

The thermal performance of PCM on root-zone temperatures for tomato plants in greenhouses were examined and compared. According to the results obtained from the experimental study, it was observed that the greenhouse indoor air, PCM temperature, and root-zone temperatures started to decrease as of 15:00 local time, when the energy gain resulting from solar radiation was lower than the heat loss in the greenhouse indoor. The average of global solar radiation of the investigated months are 173.9, 252.2, and 338.5 W/m2, February, March, and April, respectively. Of hourly average ambient temperatures (Tamb) examined, the coldest month for both daytime (09:00–18:00) and nighttime (18:00–09:00) is March. The average ambient daytime–nighttime temperatures for February are 14.8 °C, and 9.9 °C, respectively. These temperatures are 13.9 °C and 8.6 °C for March and 24.2 °C, and 16.9 °C for April. Indoor air temperatures of the PCM-equipped greenhouse were 1.2 °C, 1.3 °C, and 4.5 °C higher than the control greenhouse indoor temperature during daytime for February, March, and April, respectively. These temperatures were 1.8 °C, 2.4 °C, and 0.4 °C higher than the control greenhouse in the PCM-equipped greenhouse indoor air (Figure 8). The average difference between root-zone temperatures in the greenhouse (with PCM) compared to root-zone temperatures in the control greenhouse (without PCM) are 1.76 °C, 0.91 °C, and 1.46 °C higher for February, March, and April, respectively (Figure 9). The findings obtained from the experimental study are similar [6,8].

3.3. Statistics and Machine Learning for Experiment

Machine learning has been applied to predict the root-zone temperature to determine the impacts of heat storage with PCM in a greenhouse. It is important to evaluate properly the training and test sets for machine learning applications to eliminate underfitting, overfitting, and multicollinearity. Before starting the analysis, whether there was a multicollinearity problem among the input parameters was examined. The Variance Inflation Factor (VIF) value of the parameters whose multicollinearity was controlled are Rad (3.962), Vw (1.329), Moist (2.066), Tamb (7.296), Tghot (9.787), and Tpcm (3.260), respectively. Results show that there is no multicollinearity problem when VIF is lower than 10 [45,46]; thus, there is no multicollinearity problem in this study. Descriptive statistics of the measured parameters in this experiment are presented in Table 5. The average root-zone temperature (Tphot) ranges between 3.30 °C and 44.65 °C. The average of Tpcm, which is thought to be the most effective parameter on Tphot, varies between −1.84 °C and 44.65 °C.
According to the results of the paired t-test, a statistically significant difference was observed between the soil temperatures of the heated pots (Tphot) and the unheated pots (Tpcold) (t = 18.558, df = 2657, p < 0.001). The confidence interval (95%) for the mean difference was (1.39, 1.72), indicating that the average soil temperature in the heated pots was 1.55 °C higher than in the unheated pots. This finding concludes that the application of phase-change materials (PCMs) is effective in increasing root-zone temperatures.
Linear relationship between measured parameters were determined using Pearson correlation coefficient (R), and the results are illustrated (Figure 10). As can be seen from Figure 10, Tphot has a positive and highly significant correlation (p < 0.001) with Tpcm (0.96), Tghot (0.82), Rad (0.70) and Tamb (0.67). Rad positively correlated with Tghot, Tpcm, and Tphot, with R ranging from 0.70 to 0.81, and Moist is negatively correlated with Tamb, Tghot, Tpcm, and Tphot (p < 0.001).
To determine the predictive power of a model, it needs to be evaluated with various criteria. For this reason, the evaluation results made with six different criteria are summarized in Table 6. The smallest RMSE for training is 0.59 °C in XGBoost and for testing is 1.66 °C for SVR. Ref. [47] tried to determine the RMSE values between 2.05 and 3.54 °C, and in [46] the smallest RMSE of 1.61 was found. SDR ratios in the study ranged between 0.07 and 0.23. The minimum SDR is observed in XGBoost for both training and testing datasets.
MAPE and MAD were smallest for training in XGBoost at 2.48 and 0.46. These indices were the smallest for testing in XGBoost and SVR at 6.90 and 1.26, respectively. When R2 values are examined, it is observed that all three algorithms obtain strong models (>95%). XGBoost showed better results (99%) for training datasets than others, while testing dataset’s R2 values are equal in SVR and XGBoost (96%). The results of the evaluation criteria shown in Table 6 are within the ideal limits. All three algorithms achieved strong results in modeling the root-zone temperature. While the XGBoost algorithm achieved the best results during the training of the dataset, XGBoost and SVR achieved similar results during the evaluation of the test set. Figure 11 shows the linear regression between the observed and predicted values of the models used in the study for both training and testing sets.
Heating requirements of greenhouses in the Mediterranean region are lower than in other regions. The annual average energy consumption of a greenhouse in the Mediterranean region for a 90-day heating period is approximately 150 kW. The amount of fuel oil required to meet this demand is 0.055 L/m2, and the amount of coal is 0.1 kg/m2 [48]. Ref. [49] heat storage on the soil surface can meet up to 13–19% of total daily heat requirement of a greenhouse. Ref. [50] reported that the air temperature inside the greenhouse should be 12 °C higher than the air temperature outside. With the proposed heat-storage application, both greenhouse indoor temperatures and root-zone temperatures were found to be higher than control groups. Root-zone temperatures in the greenhouse compartment where the heat-storage application was made showed better results during the night hours compared to the control group. The reason why the plant root-zone temperatures in the greenhouse with heat storage are lower before noon is that the PCM has collected and stored heat from the interior, and both the interior and root-zone temperatures have decreased. Indoor temperatures were found to be 1.8 °C, 2.4 °C, and 0.4 °C higher than the control greenhouse in February, March, and April, respectively, with a short-term (day to night) heat-storage process. Root-zone temperatures were observed to be 1.76 °C, 0.91 °C, and 1.46 °C higher than control pots for the same months, respectively.
This study clarifies the effectiveness of machine learning models (SVR, MARS, XGBoost) in analyzing factors and PCM on root-zone temperature and predicting future values. The models combine climatic factors such as temperature, humidity, solar radiation, and wind velocity and internal factors like air temperature in the greenhouse and PCM temperature. These models try to reveal nonlinear relationships between inputs and outputs. With these learning models, target output can be predicted with a very accurate percentage using existing input data.
Ref. [51] achieved a low Root Mean Square Error (RMSE) value of 3.7 °C for the test dataset in their study, employing Artificial Neural Networks (ANNs) to predict temperature fluctuations in a high tunnel greenhouse. In another study, ref. [52] utilized ANNs to estimate greenhouse temperatures, yielding R2 values of 0.959 (winter) and 0.955 (summer) within a 95% confidence interval. Ref. [53] attempted to forecast temperature and humidity levels in a Chinese greenhouse, employing various machine learning approaches. Support Vector Machine (SVM) demonstrated an RMSE of 2.78 °C and an R2 of 0.89 for temperature prediction, along with an RMSE of 4.55% and an R2 of 0.87 for humidity. Ref. [54] conducted a comparative analysis of machine learning models including Random Forest, SVM, Multiple Linear Regression (MLP), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU) for predicting minimum greenhouse temperatures. The random forest model exhibited the highest R2 (0.87) with the lowest RMSE (4.43 °C), while SVM yielded an R2 of 0.87 and an RMSE of 4.52 °C. SVM has been utilized for understanding greenhouse indoor temperatures and the energy-storage performance of phase-change materials in solar collectors. Ref. [22] utilized the Nonlinear Autoregressive Networks with Exogenous Input (NARX) algorithm to model indoor air temperatures in greenhouses with and without Phase-Change Materials (PCMs). Ref. [55] applied NARX and Recurrent Neural Network (RNN) algorithms to model indoor temperatures, achieving R2 values of 0.9986 and 0.9893, respectively. These findings underscore the efficacy of machine learning techniques in developing heat-storage systems. Ref. [56] compared ANN and Multivariate Adaptive Regression Splines (MARS) methods for estimating indoor temperatures in greenhouses, noting MARS’s provision of more detailed results. MARS data-mining algorithm has been utilized across various domains, including agricultural studies [32,57,58].
Determining which variables are significant and assessing their impact on model performance is of paramount importance in machine learning. To this end, feature importance analysis was conducted for each model, and the results are presented in Table 7. Additionally, sensitivity analysis which evaluates how variations in each variable affect model performance, provides critical insights into model accuracy, robustness, and hyperparameter tuning. The sensitivity metrics are also included in Table 7.
Upon examination of Table 7, it was observed that in the XGBoost and SVR models, all six input variables contributed to model performance, whereas in the MARS model, Vw was found to be ineffective and was thus excluded. Across all three models, Tpcm was identified as the most influential factor affecting Tphot. The increase in temperature of the phase-change material (coconut oil) led to a corresponding rise in root-zone temperatures.
Feature importance analysis was employed to evaluate the impact of input variables on the output variable by calculating their gain values. The sum of all variable gains equals one. The influence of Tpcm on Tphot was determined to be 68.8% in XGBoost, 47.5% in SVR, and 43.5% in MARS. While XGBoost and MARS models identified Rad (18.4%) as the second-most significant parameter after Tpcm, the SVR model indicated Tamb (19.6%) as the secondary influential factor.
According to the sensitivity analysis results, which demonstrate the effect of variations in each variable on model performance, the Moist and Vw variables influence the model output, albeit with relatively lower importance scores in all algorithms except MARS. Mean dropout loss values indicate that even minor changes in Tpcm would lead to significant differences in model performance across all three algorithms.

4. Discussion

The experimental and modeling results of this study demonstrate that coconut oil (CO), as a bio-based phase-change material (PCM), effectively stabilizes the root-zone temperature (RZT) in greenhouse conditions and reduces nocturnal cooling fluctuations. The PCM-integrated greenhouse achieved a 1.1–1.6 °C increase in RZT and a 0.9–4.1 °C rise in indoor air temperature compared to the control greenhouse, particularly during non-solar hours. These findings align with previous reports in arid regions such as the 1–10 °C temperature gains obtained using PCM systems in Ghardaia and Borj Cedria [11,12] but diverge from the more modest results observed in temperate climates like Barcelona, where PCM alone could not supply sufficient night-time heat due to limited stored energy [13]. The results therefore confirm that the effectiveness of latent-heat-based root-zone heating depends strongly on climatic context, with the continental Mediterranean setting of Adana favoring the passive utilization of CO-based PCM.
Compared to paraffin-based phase-change materials, coconut oil (CO) exhibits distinct thermophysical, environmental, and economic characteristics. While paraffin (C16-C18) provides a higher latent heat capacity of approximately 150–160 J g−1, coconut oil stores around 72–120 J g−1, making it slightly less efficient in terms of heat storage [38,40]. Both materials share similar melting temperature ranges (18–27 °C for paraffin and 24 °C for CO), suitable for low-temperature thermal applications such as greenhouse heating. However, the embodied carbon emissions of coconut oil (1.54 kg CO2 eq kg−1) are nearly 50% lower than those of paraffin (3.02 kg CO2 eq kg−1), reflecting its renewable and bio-based origin. Economically, coconut oil is about half the cost of paraffin (USD 4.18 kg−1 vs. USD 8.8–11.6 kg−1), which enhances its feasibility in large-scale or low-cost applications [41]. Although paraffin achieves slightly better heating and cooling load reductions due to its higher energy density, coconut oil presents a more sustainable alternative with a smaller environmental footprint. Life-cycle assessments indicate that, despite lower thermal efficiency, CO’s renewable sourcing and reduced carbon emissions make it a promising eco-friendly substitute for paraffin-based PCMs, especially in low-enthalpy systems such as agricultural greenhouses. Life-cycle assessments further indicate that despite its lower thermal efficiency, CO’s renewable origin and biodegradability make it a more sustainable alternative for low-enthalpy agricultural heating compared with petroleum-derived PCMs [14,15].
Thermal reliability remains a key consideration. Refs. [59,60] observed that organic PCMs can maintain latent heat variation within ±3% after 2000–10,000 thermal cycles, with only minor shifts in melting temperature (−0.37 °C) and latent heat (−7.6%). In the current experiment, CO maintained stable phase-transition behavior after 500 cycles, confirming its durability under cyclic heating and cooling. The oxidative degradation of fatty acid-based PCMs, often evidenced by FTIR-detected hydroperoxide and aldehyde formation [61,62], is mitigated in CO due to its high saturated fatty acid fraction, providing greater stability than palm or rapeseed oils. Palm oil (33–39 °C) and its derivatives (30–60 °C), particularly hydrogenated palm stearin, typically exhibit higher melting points, rendering them more suitable for medium-to-high temperature thermal storage applications rather than low-enthalpy greenhouse heating. Nevertheless, palm oil is abundant and inexpensive as an agro-industrial byproduct, offering economic advantages in large-scale systems. Rapeseed oil, while widely available and low-cost, contains a higher proportion of unsaturated fatty acids, which leads to greater susceptibility to oxidation and degradation, thereby necessitating encapsulation or chemical modification to enhance stability. From a practical standpoint, coconut oil offers a favorable balance between thermal properties and sustainability, making it an effective bio-based alternative to paraffin for low-temperature thermal energy storage in greenhouse applications, whereas palm and rapeseed oils may require additional processing or system-specific adjustments to achieve similar performance [63,64,65,66,67]. However, encapsulation or packaging remains essential to ensure long-term reliability.
PCM placement configuration significantly affects heat-transfer performance. In this study, CO packages positioned near plant pots directly influenced root-zone heat transfer. Comparable enhancements were reported for macro-encapsulated PCMs beneath the substrate [12], north wall PCM tubes [68], and PCM-integrated coatings and bricks [69]. Nasimi et al. [70] confirm that near the root zone or wall-integrated PCMs provide superior thermal regulation by minimizing convective losses. Future applications should therefore evaluate multiple integration strategies including substrate embedding, wall incorporation, and cascading PCMs with varying melting points to maximize both heat-storage range and operational practicality.
The machine learning (ML) results reinforce the experimental observations. Among the three algorithms, XGBoost achieved the best predictive accuracy (R2 = 0.971, RMSE = 1.70 °C), while SVR (R2 = 0.961) and MARS (R2 = 0.955) also yielded robust results, indicating that RZT dynamics are moderately nonlinear and can be effectively modeled with both ensemble and regression spline approaches. Although XGBoost achieved the highest accuracy among the three algorithms, the comparable performance of MARS and SVR (all R2 values above 0.95) indicates that the relationships among environmental variables and root-zone temperature were relatively well defined and moderately nonlinear. This suggests that greenhouse thermal dynamics can be effectively modeled using simpler and more interpretable algorithms without a significant loss of accuracy. Therefore, while XGBoost demonstrates the capability of ensemble-based methods to capture complex interactions, MARS and SVR provide practical alternatives for predictive modeling in greenhouse systems where computational efficiency and interpretability are equally important.
Feature importance analysis revealed that Tpcm (PCM temperature) was the dominant predictor, contributing 68.8% (XGBoost), 47.5% (SVR), and 43.5% (MARS) to model performance, followed by solar radiation (Rad) and greenhouse air temperature (Tghot). Sensitivity analysis confirmed that small perturbations in Tpcm caused the largest changes in model accuracy (mean dropout loss > 9), highlighting the strong thermal coupling between PCM and the root zone. These outcomes are consistent with [22,46], who reported that ensemble models capture complex nonlinear interactions among climatic variables in PCM-assisted greenhouses. Moreover, MARS’s interpretable basis functions identified breakpoints near 22–24 °C, closely matching CO’s melting interval, thereby offering a valuable tool for operational control.
Economically, the observed heating energy reduction of 25–30% corresponds well with previously reported energy saving ranges of 20–60% for PCM-integrated systems [71]. Reported payback periods for paraffin-based PCM walls span 3–23 years depending on climate [41], but CO’s lower cost and renewable origin could substantially shorten this timeframe, improving feasibility for small-scale or low-budget greenhouses. Nevertheless, further full-scale validation is needed, since scaling up from a 60 m2 pilot compartment may introduce non-uniform heat distribution, increased encapsulation costs, and maintenance complexity [72,73].
Collectively, these findings indicate that bio-based PCMs such as coconut oil, when combined with data driven predictive control, can substantially improve the energy efficiency and thermal stability of greenhouse systems, particularly in climates with strong diurnal temperature gradients. The hybrid use of latent and sensible heat storage and incorporation of real-time ML models trained on historical datasets [5,6] could further enhance system reliability and move greenhouse agriculture toward the net-zero-energy and low-carbon objectives of sustainable food production.

5. Conclusions

The study aims to apply three machine learning approach to estimate the root-zone temperature of PCM placed in a greenhouse environment with some climatic parameters such as radiation, relative humidity, wind speed, and greenhouse indoor temperature in a plastic greenhouse located in the Mediterranean region. Training and test sets were used at 70–30%; it was concluded that the XGBoost model was quite successful in predicting root-zone temperatures compared to the MARS and SVR. In addition, the results obtained bring to light that those models provide optimal energy management conditions in greenhouses. The following conclusions can be drawn from the study:
  • Integration of bio-based coconut oil as a heat-storage material into Mediterranean greenhouses is proposed.
  • Experimental results show that coconut oil can increase the indoor temperature of a greenhouse between 0.86 and 4.09 °C. Root-zone temperatures were higher compared to the pots in the control greenhouse at 1.25 °C, 1.61 °C and 1.46 °C for February, March, and April, respectively.
  • While the effects of Vw and Moist on Tghot, Tpcm, and Tphot are statistically insignificant, Rad is significant on these parameters between 70 and 96%.
  • Using CO for greenhouses with large-scale production may cause some difficulties due to the high cost. However, the integration of CO with active greenhouse heating systems can provide benefits in terms of operating and installation costs.
  • To reduce root-zone heat losses at night-time, it would be appropriate to change mixture ratios of materials placed in the pot as the growing medium and different materials that have a high heat capacity should be added.
  • In addition to the disadvantages of CO compared to other PCMs, such as its low latent heat of fusion and its use as human food, it also has some advantages for low-enthalpy applications due to its biological origin and abundance.

Limitations and Future Perspectives

Despite the promising results, several limitations should be noted. First, the current experimental duration covered only one cultivation season, and long-term degradation phenomena such as oxidation of coconut oil or leakage from encapsulation materials were not quantified. Future studies should evaluate multi-year thermal cycling and investigate protective encapsulation methods to ensure phase stability. Second, while the ML models achieved high predictive performance, their generalizability to different climates, crop species, and growing medium remains to be validated. Coupling these models with process-based simulations or multi-location datasets could enhance their robustness.
Additionally, integrating real-time sensor data with predictive algorithms can enable adaptive PCM management, allowing dynamic control of air circulation or irrigation systems based on predicted temperature trajectories. From a sustainability perspective, a full life-cycle assessment (LCA) and life-cycle cost (LCC) evaluation should be conducted to quantify the net environmental and economic gains. Earlier analyses have shown that PCM integration can reduce CO2 emissions by up to 6–8 tons per year and cut total greenhouse operation costs by as much as 50–60%, which indicates significant potential if implemented on a commercial scale.

Author Contributions

Conceptualization, H.K.K.; methodology, H.K.K. and H.H.O.; software, H.K.K.; investigation H.K.K.; writing—original draft preparation, H.K.K.; writing—review and editing, H.H.O.; visualization, H.K.K.; supervision, H.H.O.; project administration, H.H.O.; funding acquisition, H.H.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Cukurova University Scientific Research Projects Coordination Office, grant number fdk-2019-12156.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

This study is produced from the Ph.D. Thesis of Hasan Kaan Kucukerdem and authors are grateful to Halime Ömür Paksoy and Sedat Emir for providing access to their laboratory facilities. The study is devoted to our friend Ecevit EYDURAN, who departed his life at a young age.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yuksel, A.N. Greenhouse Construction Technique, 1st ed.; Hasad Publication: Istanbul, Turkey, 2004. [Google Scholar]
  2. Firfiris, V.K.; Fragos, V.P.; Kotsopoulos, T.A.; Nikita-Martzopoulou, C. Energy and environmental analysis of an innova-tive greenhouse structure towards frost prevention and heating needs conservation. Sustain. Energy Technol. Assess 2020, 40, 100750. [Google Scholar]
  3. Iddio, E.; Wang, L.; Thomas, Y.; McMorrow, G.; Denzer, A. Energy efficient operation and modeling for greenhouses: A literature review. Renew. Sustain. Energy Rev. 2020, 117, 109480. [Google Scholar] [CrossRef]
  4. Lindberg, N.; Magnusson, C. Improving Building Heating Efficiency Using Machine Learning: An Experimental Study. Master’s Thesis, Blekinge Institute of Technology, Karlskrona, Sweden, 2021. Available online: https://www.diva-portal.org/smash/get/diva2:1601694/FULLTEXT02.pdf (accessed on 10 December 2024).
  5. Guan, Y.; Chen, Y.; Zhou, L.; Wei, Z.; Hu, W.; Yang, Y. The Thermal Properties of an Active–Passive Heat Storage Wall System Incorporating Phase Change Materials in a Chinese Solar Greenhouse. Sustainability 2024, 16, 2624. [Google Scholar] [CrossRef]
  6. Adesanya, M.A.; Rabiu, A.; Ogunlowo, Q.O.; Kim, M.H.; Akpenpuun, T.D.; Na, W.H.; Grewal, K.S.; Lee, H.W. Experimental evaluation of hybrid renewable and thermal energy storage systems for a net-zero energy greenhouse: A case study of Yeoju-Si. Energies 2025, 18, 2635. [Google Scholar] [CrossRef]
  7. Beyhan, B.; Paksoy, H.Ö.; Daşgan, Y. Root zone temperature control with thermal energy storage in phase change materials for soilless greenhouse applications. Energy Convers. Manag. 2013, 74, 446–453. [Google Scholar] [CrossRef]
  8. Thaler, S.M.; Zwatz, J.; Nicolay, P.; Hauser, R.; Lackner, R. An Innovative Heating Solution for Sustainable Agriculture: A Feasibility Study on the Integration of Phase Change Materials as Passive Heating Elements. Appl. Sci. 2024, 14, 7419. [Google Scholar] [CrossRef]
  9. Zhang, M.; Yan, T.; Wang, W.; Jia, X.; Wang, J.; Klemeš, J.J. Energy-saving design and control strategy towards modern sustainable greenhouse: A review. Renew. Sustain. Energy Rev. 2022, 164, 112602. [Google Scholar] [CrossRef]
  10. Han, F.; Chen, C.; Hu, Q.; He, Y.; Wei, S.; Li, C. Modeling method of an active–passive ventilation wall with latent heat storage for evaluating its thermal properties in the solar greenhouse. Energy Build. 2021, 238, 110840. [Google Scholar] [CrossRef]
  11. Baddadi, S.; Bouadila, S.; Guizani, A. Beneficial use of two packed beds of latent storage energy for the heating of a hydroponic greenhouse. Energy Procedia 2019, 162, 156–163. [Google Scholar] [CrossRef]
  12. Llorach-Massana, P.; Peña, J.; Rieradevall, J.; Montero, J.I. Analysis of the technical, environmental and economic potential of phase change materials (PCM) for root zone heating in Mediterranean greenhouses. Renew. Energy 2017, 103, 570–581. [Google Scholar] [CrossRef]
  13. Llorach-Massana, P.; Peña, J.; Rieradevall, J.; Montero, J.I. LCA & LCCA of a PCM application to control root zone temperatures of hydroponic crops in comparison with conventional root zone heating systems. Renew. Energy 2016, 85, 1079–1089. [Google Scholar] [CrossRef]
  14. Jia, F.R.; Jing, W.T.; Liu, G.X.; Yue, Q.; Wang, H.M.; Shi, L. Paraffin-based crude oil refining process unit-level energy consumption and CO2 emissions in China. J. Clean. Prod. 2020, 255, 120347. [Google Scholar] [CrossRef]
  15. Ustaoğlu, A.; Menbari, S.; Gencel, O.; Aydoğmuş, E.; Sarı, A.; Yeşilata, B.; Ozbakkaloglu, T.; Uzun, O. Development and characterization of coconut oil-based phase change material integrated flexible polyurethane biocomposites for thermal energy storage applications. Sol. Energy Mater. Sol. Cells 2025, 293, 113875. [Google Scholar] [CrossRef]
  16. Mehrizi, A.A.; Karimi-Maleh, H.; Naddafi, M.; Karimi, F. Application of bio-based phase change materials for effective heat management. J. Energy Storage 2023, 61, 106859. [Google Scholar] [CrossRef]
  17. Taki, M.; Ajabshirchi, Y.; Ranjbar, S.F.; Rohani, A.; Matloobi, M. Heat transfer and MLP neural network models to predict inside environment variables and energy lost in a semi-solar greenhouse. Energy Build. 2016, 110, 314–329. [Google Scholar] [CrossRef]
  18. Kanwal, H.H.; Ahmad, I.; Ahmad, A.; Li, Y. Yield forecasting and assessment of interannual wheat yield variability using machine learning approach in semiarid environment. Pak. J. Agric. Sci. 2021, 58, 461–470. [Google Scholar]
  19. Sohail, R.; Nawaz, Q.; Hamid, I.; Amin, H.; Chauhdary, J.N.; Gilani, S.M.M.; Mumtaz, I. A novel machine learning based algorithm to detect weeds in soybean crop. Pak. J. Agric. Sci. 2021, 58, 1007–1015. [Google Scholar]
  20. Ozden, C.; Karadogan, N. Wheat yield prediction for Turkey using statistical machine learning and deep learning methods. Pak. J. Agric. Sci. 2024, 61, 429–435. [Google Scholar]
  21. Mu, M.; Zhang, S.; Yang, S.; Wang, Y. Phase change materials applied in agricultural greenhouses. J. Energy Storage 2022, 49, 104100. [Google Scholar] [CrossRef]
  22. Badji, A.; Benseddik, A.; Bensaha, H.; Boukhelifa, A.; Bouhoun, S.; Nettari, C.; Lalmi, D. Experimental assessment of a greenhouse with and without PCM thermal storage energy and prediction of their thermal behavior using machine learning algorithms. J. Energy Storage 2023, 71, 108133. [Google Scholar] [CrossRef]
  23. Balakrishnan, V.K.V.; Kumaresan, K. Thermal analysis of PCM magnesium chloride hexahydrate using various machine learning and deep learning models. Eng. Appl. Artif. Intell. 2023, 126, 107159. [Google Scholar] [CrossRef]
  24. MGM. Database of General Directorate of Meteorology of Türkiye. 2023. Available online: https://mgm.gov.tr/ (accessed on 12 December 2023).
  25. Holman, J.P. Experimental Methods for Engineers, 8th ed.; McGraw-Hill Book Co.: New York, NY, USA, 2021. [Google Scholar]
  26. Koya, B.P.; Aneja, S.; Gupta, R.; Valeo, C. Comparative analysis of different machine learning algorithms to predict mechanical properties of concrete. Mech. Adv. Mater. Struct. 2022, 29, 4032–4043. [Google Scholar] [CrossRef]
  27. Allgaier, J.; Pryss, R. Cross-validation visualized: A narrative guide to advanced methods. Mach. Learn. Knowl. Extr. 2024, 6, 1378–1388. [Google Scholar] [CrossRef]
  28. Wilimitis, D.; Walsh, C.G. Practical Considerations and Applied Examples of Cross-Validation for Model Development and Evaluation in Health Care: Tutorial. JMIR AI 2023, 2, e49023. [Google Scholar] [CrossRef] [PubMed]
  29. Abed, M.S.; Kadhim, F.J.; Almusawi, J.K.; Imran, H.; Bernardo, L.F.A.; Henedy, S.N. Utilizing multivariate adaptive regression splines (MARS) for precise estimation of soil compaction parameters. Appl. Sci. 2023, 13, 11634. [Google Scholar] [CrossRef]
  30. Sudhakaran, P.; Baitalik, S. XGBoost Optimized by Adaptive Tree Parzen Estimators for Credit Risk Analysis. In Proceedings of the 2022 IEEE 2nd Mysore Sub Section International Conference (Mysuru Con), Mysuru, India, 16–17 October 2022; pp. 1–6. [Google Scholar]
  31. Friedman, J.H. Multivariate adaptive regression splines. Ann. Stat. 1991, 19, 1–67. [Google Scholar] [CrossRef]
  32. Faraz, A.; Tırınk, C.; Önder, H.; Şen, U.; Ishaq, H.M.; Tauqir, N.A.; Nabeel, M.S. Usage of the XGBoost and MARS algorithms for predicting body weight in Kajli sheep breed. Trop. Anim. Health Prod. 2023, 55, 276. [Google Scholar] [CrossRef]
  33. Vapnik, V.N. Statistical Learning Theory, 2nd ed.; Springer: New York, NY, USA, 1998. [Google Scholar]
  34. Ajani, O.S.; Usigbe, M.J.; Aboyeji, E.; Uyeh, D.D.; Ha, Y.; Park, T.; Mallipeddi, R. Greenhouse micro-climate prediction based on fixed sensor placements: A machine learning approach. Mathematics 2023, 11, 3052. [Google Scholar] [CrossRef]
  35. Garcia-Vazquez, F.; Ponce-Gonzalez, J.R.; Guerrero-Osuna, H.A.; Carrasco-Navarro, R.; Luque-Vega, L.F.; Mata-Romero, M.E.; Martinez-Blanco, M.D.; Castaneda-Miranda, C.L.; Diaz-Florez, G. Prediction of internal temperature in greenhouses using the supervised learning techniques: Linear and support vector regressions. Appl. Sci. 2023, 13, 8531. [Google Scholar] [CrossRef]
  36. Saleel, C.A.; Mujeebu, M.A.; Algarni, S. Coconut oil as phase change material to maintain thermal comfort in passenger vehicles: An experimental analysis. J. Therm. Anal. Calorim. 2019, 136, 629–636. [Google Scholar] [CrossRef]
  37. Alqahtani, T.; Mellouli, S.; Bamasag, A.; Askri, F.; Phelan, P.E. Experimental and numerical assessment of using coconut oil as a phase-change material for unconditioned buildings. Int. J. Energy Res. 2020, 44, 5177–5196. [Google Scholar] [CrossRef]
  38. Faraj, K.; Khaled, M.; Faraj, J.; Hachem, F.; Castelain, C. Experimental study on the use of enhanced coconut oil and paraffin wax phase change material in active heating using advanced modular prototype. J. Energy Storage 2021, 41, 102815. [Google Scholar] [CrossRef]
  39. Safira, L.; Putra, N.; Trisnadewi, T.; Kusrini, E.; Mahlia, T.M.I. Thermal properties of sonicated graphene in coconut oil as a phase change material for energy storage in building applications. Int. J. Low-Carbon Technol. 2020, 15, 629–636. [Google Scholar] [CrossRef]
  40. Kahwaji, S.; White, M.A. Edible oils as practical phase change materials for thermal energy storage. Appl. Sci. 2019, 9, 1627. [Google Scholar] [CrossRef]
  41. Baylis, C.; Cruickshank, C.A. Economics and lifecycle carbon assessment of coconut oil as an alternative to paraffin phase change materials in North America. Energy Build. 2023, 294, 113268. [Google Scholar] [CrossRef]
  42. Laatiri, Y.; Zghal, S.; Sammouda, H.; Aloulou, F. Microencapsulated coconut oil-based Bio-PCM with a calcium carbonate shell for building thermal energy storage. J. Therm. Anal. Calorim. 2025, 1–15. [Google Scholar] [CrossRef]
  43. Eller, C.; Rida, M.; Boudier, K.; Otoni, C.; Celani, G.; Labaki, L.; Hoffmann, S. Climate-based analysis for the potential use of coconut oil as phase change material in buildings. Sustainability 2021, 13, 10731. [Google Scholar] [CrossRef]
  44. Borugadda, V.B.; Goud, V.V. Thermal, oxidative and low temperature properties of methyl esters prepared from oils of different fatty acids composition: A comparative study. Thermochim. Acta 2014, 577, 33–40. [Google Scholar] [CrossRef]
  45. Gómez, R.S.; Sánchez, A.R.; García, C.G.; Pérez, J.G. The VIF and MSE in raise regression. Quant. Methods Econ. Financ. 2021, 8, 605. [Google Scholar]
  46. Huang, L.; Deng, L.; Li, A.; Gao, R.; Zhang, L.; Lei, W. A novel approach for solar greenhouse air temperature and heating load prediction based on Laplace transform. J. Build. Eng. 2021, 44, 102682. [Google Scholar] [CrossRef]
  47. Rodríguez, M.R.; Fernández, M.D.; Maseda, F.; Velo, R. Influence of depth and spacing of an electric cable heating system in a sand substrate. Appl. Eng. Agric. 2006, 22, 443–450. [Google Scholar] [CrossRef]
  48. Turgut, B.; Dasgan, H.Y.; Abak, K.; Paksoy, H.; Evliya, H.; Bozdag, S. Aquifer thermal energy storage application in greenhouse climatization. In Proceedings of the International Symposium on Strategies Towards Sustainability of Protected Cultivation in Mild Winter Climate, Antalya, Turkey, 7–10 April 2008; pp. 143–148. [Google Scholar]
  49. Joudi, K.A.; Farhan, A.A. Greenhouse heating by solar air heaters on the roof. Renew. Energy 2014, 72, 406–414. [Google Scholar] [CrossRef]
  50. Xu, J.; Li, Y.; Wang, R.Z.; Liu, W. Performance investigation of a solar heating system with underground seasonal energy storage for greenhouse application. Energy 2014, 67, 63–73. [Google Scholar] [CrossRef]
  51. Francik, S.; Kurpaska, S. The use of artificial neural networks for forecasting of air temperature inside a heated foil tunnel. Sensors 2020, 20, 652. [Google Scholar] [CrossRef]
  52. Castañeda-Miranda, A.; Castaño, V.M. Smart frost control in greenhouses by neural networks models. Comput. Electron. Agric. 2017, 137, 102–114. [Google Scholar] [CrossRef]
  53. Zou, W.; Yao, F.; Zhang, B.; He, C.; Guan, Z. Verification and predicting temperature and humidity in a solar greenhouse based on convex bidirectional extreme learning machine algorithm. Neurocomputing 2017, 249, 72–85. [Google Scholar] [CrossRef]
  54. He, Z.; Jiang, T.; Jiang, Y.; Luo, Q.; Chen, S.; Gong, K.; He, J. Gated recurrent unit models outperform other machine learning models in prediction of minimum temperature in greenhouse based on local weather data. Comput. Electron. Agric. 2022, 202, 107416. [Google Scholar] [CrossRef]
  55. Badji, A.; Benseddik, A.; Boukhelifa, A.; Bensaha, H.; Erregani, R.M.; Bendriss, A.; Lalmi, D. Solar air heater with underground latent heat storage system for greenhouse heating: Performance analysis and machine learning prediction. J. Energy Storage 2023, 74, 109548. [Google Scholar] [CrossRef]
  56. Kucukonder, H. Modelling of greenhouse climate parameters with artificial neural network and multivariate adaptive regression splines approach. Fresenius Environ. Bull. 2019, 28, 6186–6194. [Google Scholar]
  57. Demirel, F.; Eren, B.; Yilmaz, A.; Türkoğlu, A.; Haliloğlu, K.; Niedbała, G.; Bujak, H.; Nowosad, K. Prediction of Grain Yield in Wheat by CHAID and MARS Algorithms Analyses. Agronomy 2023, 13, 1438. [Google Scholar] [CrossRef]
  58. Gökmen, F.; Uygur, V.; Sukuşu, E. Extreme Gradient Boosting Regression Model for Soil Available Boron. Eurasian Soil Sci. 2023, 56, 738–746. [Google Scholar] [CrossRef]
  59. Dheep, G.R.; Sreekumar, A. Thermal reliability and corrosion characteristics of an organic phase change materials for solar space heating applications. J. Energy Storage 2019, 23, 98–105. [Google Scholar] [CrossRef]
  60. Yang, L.; Cao, X.; Zhang, N.; Xiang, B.; Zhang, Z.; Qian, B. Thermal reliability of typical fatty acids as phase change materials based on 10,000 accelerated thermal cycles. Sustain. Cities Soc. 2019, 46, 101380. [Google Scholar] [CrossRef]
  61. Majó, M.; Sánchez, R.; Barcelona, P.; García, J.; Fernández, A.I.; Barreneche, C. Degradation of fatty acid phase-change materials (PCM): New approach for its characterization. Molecules 2021, 26, 982. [Google Scholar] [CrossRef]
  62. Li, J.; Liu, J.; Sun, X.; Liu, Y. The mathematical prediction model for the oxidative stability of vegetable oils by the main fatty acids composition and thermogravimetric analysis. LWT 2018, 96, 51–57. [Google Scholar] [CrossRef]
  63. Perera, D.N.; Hewavitharana, G.G.; Navaratne, S.B. Determination of physicochemical and functional properties of coconut oil by incorporating bioactive compounds in selected spices. J. Lipids 2020, 2020, 8853940. [Google Scholar] [CrossRef]
  64. Chandran, J.; Nayana, N.; Roshini, N.; Nisha, P. Oxidative stability, thermal stability and acceptability of coconut oil flavored with essential oils from black pepper and ginger. J. Food Sci. Technol. 2017, 54, 144–152. [Google Scholar] [CrossRef]
  65. Sharanke, K.; Sivakanthan, S. Comparative study on stability of coconut oil, sunflower oil and palm oil during continuous deep frying. Ceylon J. Sci. 2022, 51, 359–368. [Google Scholar] [CrossRef]
  66. Lizcano-González, V.A.; Kafarov, V.; Mahkamov, K. Thermal Performance of Hydrogenated Palm Stearin as a Phase Change Material in a Pilot Solar Thermal Energy Storage System. Chem. Eng. Trans. 2024, 109, 643–648. [Google Scholar]
  67. Dzindziora, A.; Dzienniak, D.; Rokita, T.; Wojciechowski, J.; Sułowski, M.; Nurkusheva, S.; Bembenek, M. A Study of the Relationship between the Dynamic Viscosity and Thermodynamic Properties of Palm Oil, Hydrogenated Palm Oil, Paraffin, and Their Mixtures Enhanced with Copper and Iron Fines. Materials 2024, 17, 1538. [Google Scholar] [CrossRef]
  68. Meng, F.; Chu, Q. Heat storage and release performance experiment of externally hung phase change solar greenhouse in severe cold regions of Northeast China-Taking Fuxin City as an example. J. Energy Storage 2023, 58, 106411. [Google Scholar] [CrossRef]
  69. Huang, K.; Mi, T.; Zheng, C.; Wang, L.; Yi, X. Development of a novel composite phase change material based on paints and brick for energy storage applications in agricultural greenhouses. J. Energy Storage 2024, 89, 111734. [Google Scholar] [CrossRef]
  70. Nasimi, S.; Fakhroleslam, M.; Zarei, G.; Sadrameli, S.M. Passive energy-efficiency optimization in greenhouses using phase change materials; a comprehensive review. J. Energy Storage 2024, 90, 111762. [Google Scholar] [CrossRef]
  71. Rashid, F.L.; Al-Obaidi, M.A.; Alsebeei, M.M.; Alkhekany, Z.A.K.; Ameen, A.; Ahmad, S.; Chibani, A.; Kezzar, M.; Agyekum, E.B.; Alshammari, A. Enhancing solar greenhouse efficiency through the integration of phase change materials: Thermal regulation and sustainable crop growth. Energy Build. 2025, 337, 115667. [Google Scholar] [CrossRef]
  72. Zhu, J.; Zhang, X.; Hua, W.; Ji, J.; Lv, X. Current status and development of research on phase change materials in agricultural greenhouses: A review. J. Energy Storage 2023, 66, 107104. [Google Scholar] [CrossRef]
  73. Mousavi Ajarostaghi, S.S.; Amiri, L.; Poncet, S. Application of Thermal Batteries in Greenhouses. Appl. Sci. 2024, 14, 8640. [Google Scholar] [CrossRef]
Figure 1. Location of experimental greenhouse.
Figure 1. Location of experimental greenhouse.
Sustainability 17 09455 g001
Figure 2. Measurement system configuration of side view of greenhouse compartments.
Figure 2. Measurement system configuration of side view of greenhouse compartments.
Sustainability 17 09455 g002
Figure 3. Solid and liquid coconut oil and physical dimensions of packages.
Figure 3. Solid and liquid coconut oil and physical dimensions of packages.
Sustainability 17 09455 g003
Figure 4. Flow diagram of the experiment and machine learning process.
Figure 4. Flow diagram of the experiment and machine learning process.
Sustainability 17 09455 g004
Figure 5. Thermal behavior of coconut oil during melting and solidification phase measured by DSC. The red curve represents melting behavior of coconut oil, and the blue curve represents its behavior during solidification. Coconut oil releases back 84.3% (98.95 J/g) of the heat it stores (117.36 J/g).
Figure 5. Thermal behavior of coconut oil during melting and solidification phase measured by DSC. The red curve represents melting behavior of coconut oil, and the blue curve represents its behavior during solidification. Coconut oil releases back 84.3% (98.95 J/g) of the heat it stores (117.36 J/g).
Sustainability 17 09455 g005
Figure 6. Thermal stability curves of coconut oil after different (100, 200, 300, 400, 500) melting and solidifying cycles. Coconut oil can still store and release heat stably after 500 thermal cycles.
Figure 6. Thermal stability curves of coconut oil after different (100, 200, 300, 400, 500) melting and solidifying cycles. Coconut oil can still store and release heat stably after 500 thermal cycles.
Sustainability 17 09455 g006
Figure 7. Thermogravimetric curve of coconut oil. Coconut oil starts to lose its mass at 200 °C, and it loses 95% of its mass at 400 °C.
Figure 7. Thermogravimetric curve of coconut oil. Coconut oil starts to lose its mass at 200 °C, and it loses 95% of its mass at 400 °C.
Sustainability 17 09455 g007
Figure 8. Greenhouse air temperatures in both sections with and without PCM and solar radiation during experimental period. Indoor temperature of greenhouse compartment where heat is stored with CO is higher than the control greenhouse compartment at night.
Figure 8. Greenhouse air temperatures in both sections with and without PCM and solar radiation during experimental period. Indoor temperature of greenhouse compartment where heat is stored with CO is higher than the control greenhouse compartment at night.
Sustainability 17 09455 g008
Figure 9. Hourly averages of pots and PCM temperatures during experimental period. Root-zone temperatures are higher in the greenhouse equipped with CO at night.
Figure 9. Hourly averages of pots and PCM temperatures during experimental period. Root-zone temperatures are higher in the greenhouse equipped with CO at night.
Sustainability 17 09455 g009
Figure 10. Pearson correlation coefficient of experimental data between inputs and output.
Figure 10. Pearson correlation coefficient of experimental data between inputs and output.
Sustainability 17 09455 g010
Figure 11. Relationship between actual and predicted data both training (a) and testing (b) datasets.
Figure 11. Relationship between actual and predicted data both training (a) and testing (b) datasets.
Sustainability 17 09455 g011
Table 1. Uncertainty for each equipment of measurement system.
Table 1. Uncertainty for each equipment of measurement system.
Device/MaterialMeasurement Range/Accuracy
Temperature measurement −20 + 80 °C, ±0.5 °C
Moisture measurement 10–90%, ±3%
Pyranometer400–1100 W/m2, ±10 W/m2
Anemometer0–50 m/s, ±0.25 m/s
Mettler Toledo (Differential Scanning Calorimetry 3+)−170 + 700 °C, ±0.2 °C
HotDisk TPS 2500S (Thermal Conductivity)0.005–1800 W/m/K, 5%
Table 2. Input and output parameters used in study.
Table 2. Input and output parameters used in study.
ParametersVariablesDefinitions
InputsRadRadiation (W/m2): Global solar radiation on horizontal surface
WvWind velocity (m/s): Wind velocity is necessary for calculation of the greenhouse heat loss.
MoistAir moisture (%): It is important to grow healthy plants in a greenhouse and is also proportional to the heat that the air inside the greenhouse can absorb.
TambAmbient temperature (°C): Outdoor air temperature
TghotGreenhouse air temperature (°C): Indoor temperature of greenhouse equipped with PCM
TpcmPCM temperature (°C): Temperature of phase-change material (CO)
OutputTpotRoot-zone temperature (°C): It is taken from 3 different points in the pot, and these 3 measurements were averaged.
Table 3. Optimized hyperparameter results for XGBoost.
Table 3. Optimized hyperparameter results for XGBoost.
XGBoost
nroundsmax_depthetagammamin_child_weightcolsample_bytree
75150.5321.354100.533
SVR
gammacepsilon
0.1861000.23
MARS
degreenprunepenaltythreshnk
210020.0056
Table 4. Thermophysical properties of coconut oil.
Table 4. Thermophysical properties of coconut oil.
PropertiesHeatingCooling
Peak temperature (°C)22.678.62
Onset temperature (°C)10.9113.8
Endset temperature (°C)23.97−0.24
Heat of fusion (J/g)117.3698.95
Thermal conductivity (W/m·K)0.193
Thermal diffusivity (mm2/s)0.159
Table 5. Descriptive statistics of experimental data.
Table 5. Descriptive statistics of experimental data.
VariablesnMean ± Standard ErrorsdMinMaxSkewnessKurtosis
Rad2658187.26 ± 5.41279.12010511.360.50
Vw0.44 ± 0.010.4802.61.261.10
Moist61.33 ± 0.5427.918.51100.0−0.07−1.36
Tamb16.01 ± 0.136.70−1.7034.40.24−0.45
Tghot18.98 ± 0.189.21−1.7742.690.29−0.78
Tpcm18.62 ± 0.189.51−1.8444.650.33−0.51
Tphot21.84 ± 0.178.593.3044.650.23−0.70
Table 6. Goodness-of-fit results of training and test sets for each model used in the study.
Table 6. Goodness-of-fit results of training and test sets for each model used in the study.
Evaluation MatrixMARSSVRXGBoost
TrainTestTrainTestTrainTest
Root mean square error (RMSE)1.932.021.501.660.591.70
Standard deviation ratio (SDR)0.230.230.180.190.070.18
Mean absolute percentage error (MAPE)8.018.356.357.152.486.90
Mean absolute deviation (MAD)1.521.551.151.260.461.28
Coefficient of determination (R2)0.9580.9550.9710.9610.9950.971
Table 7. Feature importance and sensitivity results for ML models.
Table 7. Feature importance and sensitivity results for ML models.
XGBoost
Importance LevelSensitivity LevelFeaturesGainMean Dropout Loss
11Tpcm0.6889.245
22Rad0.1841.984
33Tghot0.0851.728
44Tamb0.0221.629
55Moist0.0151.406
66Wv0.0060.849
SVR
Importance LevelSensitivity LevelFeaturesGainMean Dropout Loss
11Tpcm0.47510.808
22Tamb0.1965.347
33Tghot0.1273.935
44Rad0.1183.766
55Moist0.0562.598
66Wv0.0271.992
MARS
Importance LevelSensitivity LevelFeaturesGainMean Dropout Loss
11Tpcm0.43510.074
33Rad0.1844.256
22Tghot0.1854.265
55Moist0.0892.057
44Tamb0.1072.500
6NAWv-unused0NA
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

Kucukerdem, H.K.; Ozturk, H.H. Machine Learning-Based Prediction of Root-Zone Temperature Using Bio-Based Phase-Change Material in Greenhouse. Sustainability 2025, 17, 9455. https://doi.org/10.3390/su17219455

AMA Style

Kucukerdem HK, Ozturk HH. Machine Learning-Based Prediction of Root-Zone Temperature Using Bio-Based Phase-Change Material in Greenhouse. Sustainability. 2025; 17(21):9455. https://doi.org/10.3390/su17219455

Chicago/Turabian Style

Kucukerdem, Hasan Kaan, and Hasan Huseyin Ozturk. 2025. "Machine Learning-Based Prediction of Root-Zone Temperature Using Bio-Based Phase-Change Material in Greenhouse" Sustainability 17, no. 21: 9455. https://doi.org/10.3390/su17219455

APA Style

Kucukerdem, H. K., & Ozturk, H. H. (2025). Machine Learning-Based Prediction of Root-Zone Temperature Using Bio-Based Phase-Change Material in Greenhouse. Sustainability, 17(21), 9455. https://doi.org/10.3390/su17219455

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