Next Article in Journal
Treatment of Winter Wheat (Triticum aestivum L.) Seeds with Electromagnetic Field Influences Germination and Phytohormone Balance Depending on Seed Size
Next Article in Special Issue
Economic Assessment of Irrigation with Desalinated Seawater in Greenhouse Tomato Production in SE Spain
Previous Article in Journal
Dynamics of Drying Turmeric Rhizomes (Curcuma longa L.) with Respect to Its Moisture, Color, Texture and Quality
Previous Article in Special Issue
The Sustainability of Irrigation Strategies in Traditional Olive Orchards
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Water Stress Episodes in Fruit Trees Based on Soil and Weather Time Series Data

by
Juan D. González-Teruel
1,*,
Maria Carmen Ruiz-Abellon
2,
Víctor Blanco
3,
Pedro José Blaya-Ros
3,
Rafael Domingo
3 and
Roque Torres-Sánchez
1
1
Department of Automatics, Electrical Engineering and Electronic Technology, Technical University of Cartagena, 30202 Cartagena, Spain
2
Department of Applied Mathematics and Statistics, Technical University of Cartagena, 30202 Cartagena, Spain
3
Department of Agronomic Engineering, Technical University of Cartagena, 30202 Cartagena, Spain
*
Author to whom correspondence should be addressed.
Agronomy 2022, 12(6), 1422; https://doi.org/10.3390/agronomy12061422
Submission received: 12 May 2022 / Revised: 9 June 2022 / Accepted: 11 June 2022 / Published: 13 June 2022
(This article belongs to the Special Issue Selected Papers from 38th National Irrigation Congress)

Abstract

:
Water is a limited resource in arid and semi-arid regions, as is the case in the Mediterranean Basin, where demographic and climatic conditions make it ideal for growing fruits and vegetables, but a greater volume of water is required. Deficit irrigation strategies have proven to be successful in optimizing available water without pernicious impact on yield and harvest quality, but it is essential to control the water stress of the crop. The direct measurement of crop water status is currently performed using midday stem water potential, which is costly in terms of time and labor; therefore, indirect methods are needed for automatic monitoring of crop water stress. In this study, we present a novel approach to indirectly estimate the water stress of 15-year-old mature sweet cherry trees from a time series of soil water status and meteorological variables by using Machine Learning methods (Random Forest and Support Vector Machine). Time information was accounted for by integrating soil and meteorological measurements within arbitrary periods of 3, 6 and 10 days. Supervised binary classification and regression approaches were applied. The binary classification approach allowed for the definition of a model that alerts the farmer when a dangerous crop water stress episode is about to happen a day in advance. Performance metrics F2 and recall of up to 0.735 and 0.769, respectively, were obtained. With the regression approach a R2 of up to 0.817 was achieved.

1. Introduction

Water scarcity is a generalized issue that becomes particularly acute under arid and semi-arid climate conditions. The FAO (Food and Agriculture Organization of the United Nations) report “Climate Smart Agriculture Sourcebook” [1] estimates a world population increase of 30% (an increase of two billion people) by 2050, which will require a 60% increase in agricultural production to meet the growing demand for food and to establish certain food security. This increase in agricultural food production will be significantly affected by adverse effects of climate change that may worsen the situation, such as increased temperature and reduced precipitation and available water resources [2]. In much of the Mediterranean Basin, a region characterized by a semi-arid climate, the agricultural sector is the main water-demanding sector and has to cope with water scarcity [3], often facing significant reductions in available water allocations for irrigation. Specifically, the Segura Basin faces an average annual water deficit of 400 hm3 that affects 3865 km2 of irrigated agricultural land, according to 2021 horizon estimations [4].
These water imbalances have led to the search for new solutions that maintain and even increase the efficiency of water use and yields with the modernization of irrigation systems. Consequently, it is globally assumed that solutions must promote a more efficient use of water and energy, for which deficit irrigation strategies have proved to be a very useful tool [5], together with precision irrigation based on monitoring the soil–plant–atmosphere continuum with sensors [6].
In order to reduce water consumption and use water more efficiently, efforts should focus on maximizing water productivity rather than increasing production [7], as it is not possible to meet the maximum water requirements of crops in most cases. In fact, many Spanish farmers’ communities have an irrigation endowment for the whole season that is far below the theoretical requirements. Under these conditions, irrigation scheduling throughout the crop cycle must be carried out in such a way that it is effective in alleviating stress during the most sensitive phenological stages [8,9]. This is the objective of Regulated Deficit Irrigation (RDI) strategies, which consist of providing a volume of water lower than the full crop water requirements and reducing irrigation only in periods of the crop cycle where the effect on yield and quality of the harvest is minimal or even null (non-critical periods). In this regard, it is essential to know the level of water stress to which the crop is subjected and that which it can withstand in each phenological stage. Blaya-Ros et al. [10] studied the main adaptive mechanisms developed by sweet cherry to cope with drought. The authors emphasized that the knowledge of these mechanisms is of great interest to the design of regulated deficit irrigation strategies in sweet cherry trees. Independently of this, several works studied the influence of crop water stress on productivity and yield quality in fruit trees under RDI, demonstrating that it is a feasible practice [11,12,13]. In early cherry trees, it is considered that pre-harvest and a short period after harvest, during which floral differentiation takes place, are very sensitive to water deficits. For this reason, water stress should not be imposed during flowering, during any of the fruit growth stages (I, II and III), or 15−20 days after harvest [14]. In “Prime Giant” under our growing conditions, flowering takes place in early April and harvesting is completed in early-mid June.
The most widely accepted method for determining the water status of crops is the measurement of the midday stem water potential, Ψstem, with a pressure chamber [15]. However, this method is destructive and costly in terms of time and associated labor, as well as non-automatable for irrigation purposes. Alternatively, several authors tried to find indirect estimations of Ψstem from other agro-climatic variables whose measurement is easily automatable. The relationships of air temperature, solar radiation, Vapor Pressure Deficit (VDP) and reference evapotranspiration (ETo) with Ψstem was studied in [16,17], obtaining a limited correlation. Intrigliolo and Castel [16] also investigated a relationship between Ψstem and soil matric potential, Ψm, measured with Watermark sensors (Irrometer Company, Inc., Riverside, CA, USA), finding some correlation between the two variables, but with high scatter, especially for Ψm > −45 kPa. The soil matric potential represents the force with which water is attracted to the surface of solid soil particles, as well as the force of attraction between the water molecules themselves. The use of ML (Machine Learning) techniques to predict irrigation need based on soil and climate parameters with decision support systems was introduced over the last decade in the field of irrigation management [18], making comparisons among different backward modeling methodologies for better performance [19]. However, the use of these techniques to estimate the value of Ψstem opens new perspectives on the application of RDI in crops through an automatic procedure. Martí et al. [20] used MLR (Multiple Linear Regression) and ANN (Artificial Neural Networks) to estimate the value of Ψstem from meteorological variables and soil water content. However, the data set only covered 15 months, making use of 46 examples, thus compromising the robustness of the model. Using the same variables, Valdés-Vela et al. [21] established a different approach by applying fuzzy rules, which allowed for discretizing the input variables of the system into qualitative classes, making their interpretation more accessible.
All the approaches found in the literature to estimate Ψstem make use of one-time predictor variables, either measured at the same time as the Ψstem, or just a daily average [22]. In this study, we propose two different approaches to predict water stress episodes in sweet cherry trees from temporal data of soil and climate variables in order to define an alarm system that prevents farmers from meeting these water stress conditions in their crops. Using temporal data from periods previous to the day of estimation, we provide models with much more relevant information than can be supplied with one-time single measurements, considering that the plants’ interaction with soil and the atmosphere, as well as the proper dynamics of these interactions, is not immediate. In addition, the dataset we used encompasses a total of three years of measurements under a wide variety of irrigation treatments, providing the models with a fair diversity of water status condition examples. In a first approach, we categorized crop water stress into two classes: ‘no stress’ and ‘warning stress’, based on the empirically measured Ψstem and the harvest period, and defined a ML model to perform a binary classification based on temporal soil and weather data. In a second approach, we defined a ML regression model to estimate Ψstem from temporal soil and weather data, additionally evaluating its discriminatory capability between ‘no stress’ and ‘warning stress’ conditions through ROC (Receiver Operating Characteristic) curves.
We also explored other aspects of interest, such as the influence that the time period considered for temporal soil and weather data could have on crop water status estimates, the effect of omitting soil moisture sensors from the analysis if soil matric potential sensors are available and vice versa, or if the VDP could stand in for the rest of the climate variables as a crop water stress estimator.

2. Materials and Methods

2.1. Experimental Site and Irrigation Treatments

The experiment was conducted on a 0.5 ha commercial orchard located in Jumilla, Murcia, Spain (38°8′ N; 1°22′ W, altitude 670 m) during growing seasons from May 2015 to August 2018. The crop under study was 15-year-old mature cherry trees (P. avium L. cv Prime Giant), grafted on SL64 rootstock and with the varieties ‘Early Lory’ and ‘Brooks’ as pollinators. For further information regarding the experimental site, the reader is referred to [22].
Drip irrigation was applied, with one dripline per tree row and three pressure-compensated emitters of 4 L h−1 per tree. Irrigation treatments started each season in March, before flowering at the beginning of the dry period, and interrupted at the end of November, the end of the dry period [22]. Five different irrigation treatments were applied, with two replications each: (i) the control treatment (CTL), irrigated to meet the maximum crop evapotranspiration (ETc) and ensure non-limiting soil water conditions throughout the growing season (110% ETc); (ii) sustained deficit treatment (DS), irrigated at 85% of ETc during pre-harvest and post-harvest, except for 15–20 days after the first harvest (flower differentiation), where irrigation corresponded to 100% of ETc; (iii, iv) two regulated deficit irrigation treatments: RDC-1 and RDC-2 irrigated at 90 and 100% during pre-harvest, 100% at flower differentiation and 65 and 55% of ETc during post-harvest, respectively; and (v) farmer treatment (FMR), irrigated according to the normal practice of the local farmers, which consisted of irrigating above the crop’s water requirements during pre-harvest and applying a water deficit based on each farmer’s own experience during post-harvest.
Crop water requirements were calculated using the following equation: ETc = ET0 × Kc × Kr, where ET0 is the average reference evapotranspiration during the 3–5 days prior to applying a new irrigation schedulr and was calculated according to the Penman-Monteith equation [23]; Kc is a crop-specific coefficient whose monthly average values were 0.30, 0.50, 0.90, 0.96, 0.96, 0.91, 0.69, 0.36 and 0.30 from March to November, respectively [14]; and Kr is a location factor [24] related to the percentage of ground covered by the crop, whose value was set to Kr = 0.90.
During the period 2015–2018, the mean yield at harvest was 22.7 t ha−1 and there was no significant effect of irrigation treatment on tree yield and quality. Thus, a water reduction of 39% with RDC did not penalize total fruit yield or quality. DS treatment saved 28% of supplied water in comparison with CTL treatment, providing similar yields. However, DS trees tended to produce smaller fruits [12,25].

2.2. Crop Water Status Measurement

Crop water status was measured approximately every 10–15 days at 12:00–13:30 h (solar time) by determining midday Ψstem with a Scholander pressure chamber (Model 3000, Soil Moisture Equipment, Santa Barbara, CA, USA), according to the methodology proposed by McCutchan and Shackel [26] on six trees per treatment, as described in [22]. To measure Ψstem, healthy mature leaves close to the trunk were chosen from the north quadrant in order to avoid solar exposure. The leaves were covered with aluminum foil and wrapped into small black polyethylene bags at least 2 h prior to measurement.

2.3. Soil Water and Meteorological Variables Measurement

The soil of the study site was moderately stony and had a sandy loam texture, with a particle size distribution of 67.5% sand, 17.5% silt and 15% clay, high organic matter content (6.3%) in the surface layer (5–35 cm depth), and acceptable active limestone (2.7%), high assimilable phosphorus (108.67 mg kg−1) and adequate exchangeable potassium (0.32 meq 100 g−1) contents. The irrigation water came from a well and presented an average EC (Electrical Conductivity) of 0.8 dS m−1 at 25 °C.
Soil volumetric water content, θV, was determined with Enviroscan (Sentek Pty. Ltd., Adelaide, Australia) capacitance-based profile sensors at 20 and 40 cm depths. One Enviroscan access tube was installed for each replicate, located 0.23 m from the irrigation emitter and 1.5 m from the tree trunk. Soil matric potential, Ψm, was also measured at 25 and 50 cm depths using Decagon MPS6 granular matrix sensors (Decagon Devices Inc., Pullman, WA, USA) per depth and replicate, likewise located 0.23 m from the irrigation emitter. Both, θv and Ψm, were recorded with a Campbell Scientific CR1000 datalogger (Campbell Scientific Inc., Logan, UT, USA), programmed to measure every 30 s and provide the mean value every 10 min.
Meteorological data on air RH (Relative Humidity), cumulative rainfall, solar radiation, air temperature and wind speed were provided hourly by a weather station close to the experimental site owned by the integral consulting service in agriculture SIAR (Sistema de Información Agroclimático para Regadío) [27]. In the case of solar radiation, wind speed, air RH and air temperature, we used hourly mean values, whereas the rainfall was the total accumulated every hour. From air temperature and RH data, we computed VPD according to [23].

2.4. Dataset Arrangement

The dataset used to train and test the crop water stress prediction models was built from the soil, plant and weather variables described above and recorded throughout 2015–2018 for the different irrigation treatments. The input variables were: soil water content at 20 (θv20) and 40 cm depth (θv40); soil matric potential at 25 (Ψm25) and 50 cm depth (Ψm50); air RH (air_RH); solar radiation (ϕ); air temperature (air_Temp); wind speed (WS); VPD; rainfall; DOY (Day Of the Year) and harvest period. The output variable was crop water stress, either expressed as a numerical pressure Ψstem value in MPa, or as categorical stress levels defined on the basis of the Ψstem value and the phenological stage, depending on the modeling approach used. For the classification approach, we defined a binary problem with two crop water stress classes: ‘no stress’ and ‘warning stress’. The categorization was based on the Ψstem value and the phenological stage according to the rule defined in Table 1.
The sampling frequency of soil and weather variables and Ψstem was uneven due to the limitations associated with the measurement of the latter, as described above. Thus, while soil variables were recorded every 10 min, weather variables were obtained every hour and Ψstem was measured, approximately, every 10–15 days. Taking into account that the dynamics of the soil–plant–atmosphere continuum involve dilated transient times and that a time series of soil and meteorological data is available before every measurement of Ψstem, we considered whether the time evolution of the physical input variables of the system, and more specifically the energy stored by these variables over a period of time, could be a relevant indicator for determination of the crop water stress. To compute the energy stored by the physical variables, the area under the curve described by these variables over a period of time, T, was calculated using a discrete integration method based on the calculation of trapezoidal areas, implemented in Matlab (version 2018a, MathWorks, Natick, MA, USA) with the trapz function. Thus, the disparity of the sampling frequency was also removed.
Intuitively, the time period considered in the integration of the input variables was a factor to take into account, since a priori the influence that these variables might have on Ψstem in the short and long term was unknown. We set days as the time unit. Considering D as the day for which an estimation of the tree water status was desired, we arbitrarily defined three time periods immediately prior to that day D: T = 3, 6 and 10 days. We defined the inputs of the models as the daily integrals of each soil and weather variable for each T (one variable per day), hereinafter called daily dynamics, and also added their cumulative values over the entire T period, hereinafter called accumulated dynamics. Therefore, three different datasets were defined. Therefore, for instance, for the dataset associated with T = 3 days, the model input variables defined from θv20 were θv20_D1, θv20_D2, θv20_D3 and θv20_ACCUM (T = 3), which refer to the integral of θv20 over the day before D, the second-to-last day before D, the third-to-last day before D and the cumulative value of these, respectively.
Due to occasional sensor failure and breakdowns in the data acquisition system, several periods of soil data were lost unevenly among the different irrigation treatments, making the Ψstem data obtained throughout these periods unusable for the purpose of this study. In addition, no data were available for one of the replications of the FMR treatment. In summary, the number of Ψstem measurements used in this study and, consequently, the number of examples in the datasets for either value of T, was 389. A summary of the different models’ inputs considered in the study is presented in Table 2.

2.5. Modeling Approaches

In order to estimate tree water status from soil, weather and calendar data, analysis was carried out using two different approaches.

2.5.1. Binary Supervised Classification of Tree Water Status

From an agronomic point of view, it is of interest to determine whether a tree undergoes strong variations in its water status and reaches extreme stress conditions that can have transformative effects on the harvest in the current year or even the following year, especially when it is subjected to deficit irrigation. That is to say, the interest lies in creating an alarm system to determine whether the tree will reach a severe state of water stress than can endanger the eventual integrity of the crop, without giving importance to the magnitude of the stress. A priori, a binary classification approach can be considered to be less stringent than a precise estimation of the value of Ψstem per se. Therefore, we considered it appropriate to assess predictive binary classification models and defined the two classes as ‘no stress’ and ‘warning stress’ water stress states.
Within this approach, it should be noted that the available data give rise to an imbalanced binary classification problem, since only 26 out of the 389 total examples correspond to the ‘warning stress’ class, whereas the rest correspond to the ‘no stress’ class. In order to tackle this, the analysis was carried out in two different scenarios:
  • By directly applying a ML classification technique, i.e., without taking into account the problem of imbalanced classes.
  • By previously applying an oversampling technique to compensate for the sample size of both classes. Specifically, we applied MWMOTE (Majority Weighted Minority Oversampling Technique for imbalance dataset learning) [28], which is included in the R ‘imbalance’ package [29]. MWMOTE is a modification of the SMOTE technique [30], which overcomes some of its limitations when there are noisy instances, in which case SMOTE would generate additional noisy instances from them.
In turn, we applied two ML classification algorithms whose effectiveness is well-known [31,32,33,34]: RF (Random Forest) and SVM (Support Vector Machine). RF was implemented with R packages caret [35] and random Forest [36], whereas for SVM, we used R packages caret and kernlab [37]. We applied 10-fold CV (Cross Validation) throughout the whole dataset with 389 examples, obtaining the average of three repetitions, for the tuning of the hyperparameters mtry in RF and C (Cost) in SVM, applying Radial Basis Kernel in the latter. The hyperparameters were optimized to maximize the accuracy of the models, as set by default in the R packages used. In order to test the models, once the optimized hyperparameter was set, we applied LOO (Leave One Out) and computed the following performance metrics:
A c c u r a c y = T P + T N T P + F P + T N + F N
R e c a l l   ( s e n s i t i v i t y ) = T P T P + F N
S p e c i f i c i t y = T N T N + F P
P r e c i s i o n = T P T P + F P
F 1   s c o r e = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l
F 2   s c o r e = 5 × P r e c i s i o n × R e c a l l 4 × P r e c i s i o n + R e c a l l
where TP, FP, TN and FN are True Positives, False Positives, True Negatives and False Negatives, respectively.
It should be noted that in this context of imbalanced classes, the accuracy metric is not sufficiently representative of the actual performance of the models, as its own value is biased towards the majority class. Therefore, when having imbalanced classes, with the minority class being the one of greatest agronomic interest in this case, it is essential to give special attention to metrics such as recall and F2 score. Recall is a metric that provides relevant information when there is a high cost associated with FN [38], as in the case of this study. Therefore, considering that the objective of the model is to detect ‘warning stress’ episodes, ‘warning stress’ would be the positive class and ‘no stress’ the negative class. Thus, FN would imply that a ‘warning stress’ episode would be classified as ‘no stress’. Precision is also a metric that focuses on the minority class, but should be preferred when FP are critical [38]. In the case of this study, having FP to a moderate extent should not be an issue, since the model would err on the side of security. F1 provides a balance between recall and precision, whereas F2 acts similarly, but putting more attention on minimizing FN [39], which is more relevant for the case of the study.

2.5.2. Ψstem Estimation with Regression Techniques

Alternatively, the water status of the tree can be assessed from its Ψstem, which is a continuous variable. The estimation of Ψstem using a regression problem, although more informative, may be more difficult to achieve. This approach, if successful, allows for estimation of the tree’s water condition, as well as the magnitude of water stress and its evolution over time. For this reason, it is opportune to assess predictive regression models.
In this case, we applied the same two ML techniques (RF and SVM), but for regression problems, optimizing the hyperparameters to minimize the RMSE. We evaluated the models using the following performance metrics:
M E ( M e a n   E r r o r ) = 1 N i = 1 N ( Ψ ^ s t e m , i Ψ s t e m , i )
R M S E ( R o o t   M e a n   S q u a r e   E r r o r ) = 1 N i = 1 N ( Ψ ^ s t e m , i Ψ s t e m , i ) 2
R 2 = i = 1 N ( Ψ ^ s t e m , i Ψ ¯ s t e m ) 2 i = 1 N ( Ψ s t e m , i Ψ ¯ s t e m ) 2
M A P E ( M e a n   A b s o l u t e   P e r c e n t a g e   E r r o r ) = 100 N i = 1 N | Ψ ^ s t e m , i Ψ s t e m , i Ψ s t e m , i |
where Ψ s t e m , i and Ψ ^ s t e m , i are the measured and estimated Ψstem values of the ith example, respectively, Ψ ¯ s t e m is the mean value of Ψstem in the dataset and N is the number of examples in the dataset, i.e., N = 389.
Additionally, we explored the discriminatory ability of the models obtained with the regression approach to distinguish between ‘no stress’ and ‘warning stress’ classes by establishing specific thresholds. We evaluated this ability using ROC curves and the AUC (Area Under the Curve). From estimations of the stem water potential with the regression models, we defined several threshold values of stem water potential, such that below the threshold we considered the class to be ‘warning stress’ and above the threshold ‘no stress’. Thus, we performed a binary classification based on the estimated stem water potential (Ψstem) values obtained with the regression models. By sweeping the values of the threshold, we computed the classification metrics recall and specificity based on the estimated and actual crop water stress classes. The ROC curves were then obtained from the pairs of recall and specificity values.

2.6. Summary of Data Configurations Analyzed in the Study

In order to explore the influence that some of the input variables and the temporal format they are presented in can have on the estimation capabilities of the models, we defined several configurations. The study of these configurations allowed us to evaluate whether we could dispense with using either only soil moisture sensors or only soil matric potential sensors to account for relevant information regarding soil water; how determinant it would be to take into account both the daily and accumulated dynamics for the input variables; or if the VPD was representative of the other weather variables. The different configurations studied are presented in Table 3 and the inputs referred to are those in Table 2.

3. Results and Discussion

3.1. Binary Supervised Classification Approach

In Table 4 and Table 5, we present a selection of the classification metrics of the RF model obtained with the imbalanced and MWMOTE-oversampling-balanced datasets, respectively. The different input configurations specified in Table 3, as well as the three time integration periods defined in Section 2.4, were evaluated. In order to provide a graphical overview of the metrics presented in Table 4 and Table 5 and to facilitate easier comparison among the different input configurations, input time integration periods and balanced and imbalanced datasets, in Figure 1 we graphically present the value of the most relevant metrics for the case of this study.
In all cases, except for Configuration 1 and T = 6 days, it is shown that the models trained with oversampled datasets resulted in a clear improvement in recall compared to the imbalanced-dataset-based models, at the cost of a very small loss of accuracy. This suggests that the oversampling method employed allowed the imbalanced binary classification problem to be solved. In Figure 1 it is also shown that, generally, the models trained with oversampled datasets improved over those trained with imbalanced ones on F1 and F2 metrics, especially the latter. Furthermore, the models trained with oversampled datasets showed less variability in F1 and F2, with T = 10 days being the most stable case for all input configurations.
For the RF model trained on the oversampled dataset for T = 10 days, we obtained an accuracy of 95% and recall of approximately 70% for several configurations. Even though the highest recall was obtained for T = 3 days in Configurations 3 and 8, T = 10 days performed better on average considering all configurations. In general, with the oversampled dataset, the difference in classification metrics between simpler models that include only accumulated dynamics and their corresponding complex versions, which also include daily dynamics, was not significant, especially for T = 10 days.
When weather variables were omitted, the use of the matric potential and DPV dynamics (configurations 7 and 8) yielded classification metrics that were among the highest, in many cases even higher than those of configurations that did include all weather variables.

3.1.1. Influence of Soil Matric Potential and Soil Water Content on the Performance of the Models

Input Configurations 3 through 10 allowed us to evaluate the influence of using either soil moisture or soil matric potential sensors for tree water stress estimation. There is a wide variety of commercial and experimental soil moisture sensors and several measurement techniques, whereas only a few models of soil matric potential sensors can be found, the vast majority of them having limited pressure ranges. Generally, soil moisture sensors are available at a lower cost, yet soil matric potential offers a range of measurement of the water in soil that is available for the plant, which is a priori more relevant when studying soil–plant water interaction, as is the case here.
As shown in Table 4 and Table 5 and Figure 1, better classification metrics were found for configurations including Ψm instead of θv, even though the differences were dramatically reduced for T = 10 days. This suggests that the measured θv provides misleading information to the model in the short term in comparison with Ψm. Several factors, or even a combination of them, could be contributing to this, such as the proper heterogeneity of the soil, magnified by its stony nature; the way the Enviroscan sensor was installed in the soil, inside an access tube, which could produce considerable soil disturbance around the tube wall, altering the hydraulic conductivity of the soil; or a mismatch between the Enviroscan’s default calibration and the actual relationship between the dielectric properties of the soil and its water content, which is proven to be very dependent on soil texture, electromagnetic frequency and soil EC [40,41,42] and is not linear.

3.1.2. Comparison between RF and SVM Models

In Table 6, we present a representative example of the classification metrics for the SVM model with the MWMOTE-balanced dataset and T = 10 days, and in Figure 2 the most descriptive metrics are compared to those obtained with the RF model under the same conditions. The accuracy was similar with both models for every input configuration. Likewise, recall, F1 and F2 were similar for both models with most of the input configurations, with marked differences shown only for Configurations 6, 8 and 9, for which RF proved to be a better option. In this regard, it should be noted that SVM was applied with radial kernel, a technique which involves non-trivial tuning of several hyperparamaters with a high influence on the results obtained.

3.2. Regression Approach

For the regression approach, a higher performance was again observed with RF against SVM models. In Table 7, the regression performance metrics are summarized for RF with the different input configurations and T = 3, 6 and 10 days. In this regression approach, no oversampling was applied. The best goodness of fit was obtained for Configurations 1, 2, 3 and 4 for all T values, which again evidences the relevance of the information provided by the soil matric potential sensors together with the rest of the weather variables in the model, to the detriment of the less accurate information provided by the soil moisture sensors. The regression metrics obtained for T = 10 days were higher than those obtained with the rest of the integration periods, which suggests that the soil and meteorological states of up to at least 10 previous days have influence on the tree’s water status. As shown in Figure 3, generally, the use of both daily and accumulated dynamics provided slightly higher performance than using only the accumulated dynamics.
A coefficient of determination (R2) of up to 0.817 was obtained with Configuration 1 and T = 10 days. Intrigliolo and Castel [16] obtained an R2 of 0.62 when correlating Ψm and Ψstem in plum trees, but no other soil or weather variables were considered in the model and the operating range of the Ψm sensors used was considerably more reduced than that of the ones used in the present study. Martí et al. [20] obtained higher R2 of up to 0.926 in ‘Navelina’ citrus trees by using soil volumetric water content and weather data, but the dataset was limited to only 46 examples and only one RDI strategy was applied, thus demonstrating an outstanding performance in a specific reduced case, but more generalized models are expected when broadening the experimental conditions, as in the case of this study. Valdés-Vela et al. [21] evaluated the approach proposed by Martí et al. [20], in addition to a novel fuzzy rule based approach, on data from five different irrigation treatments with four replications each during five growing seasons, obtaining a RMSE of 0.141 in the best case, whereas with Configuration 1 and T = 10 days we managed to considerably reduce it to 0.114.
To evaluate the capability for discrimination between ‘no stress’ and ‘warning stress’ states by applying a threshold from estimations of Ψstem obtained with RF regression models, we obtained the ROC curves for T = 3, 6 and 10 days and the different input configurations. In Figure 4, the ROC curves for T = 10 days are presented as a representative example. Generally, from the ROC curves, the objective is to maximize the AUC. In Table 8, the AUCs for T = 3, 6 and 10 days and the different input configurations are presented. For all T values, Configurations 1, 2 and 3 were the ones providing the highest discriminatory ability, i.e., the greatest AUCs. However, these differences in discriminatory ability were not statistically significant, as indicated by the confidence intervals for the AUC presented in Table 8, i.e., for the same T value, since the intersection of all input configurations asymptotic confidence intervals is not an empty set, it could not be affirmed that there were differences between the AUCs of the different input configurations.
As an example application of this combined regression classification approach, from the ROC curve corresponding to T = 10 days and Configuration 2, two interesting thresholds could be found in terms of obtaining convenient recall and specificity. If the threshold was set at Ψstem = −1.102 MPa, so that an estimated Ψstem lower than that would be considered ‘warning stress’ and a higher one ‘no stress’, a recall of 88.5% and a specificity of 96.1% would be obtained. In this case, the specificity would indicate the likeliness of correctly predicting a ‘no stress’ case. Both recall and specificity were substantially high, but considering that avoiding ‘warning stress’ episodes is critical, a more conservative threshold, set at Ψstem = −0.845 MPa, would lead to a recall of 100% and a specificity of 82.9%. Therefore, this would avoid the risk of subjecting the tree to extreme stress by detecting all cases of potentially harmful stress, but at the same time it would generate an alert on a larger number of cases that were not really threatening, thus being on the side of safety. This would lead to the application of a slightly higher irrigation amount than needed by the crop in these cases in exchange for reducing the risk of unsafe water conditions for the tree.

3.3. Classification Model Test

To assess classification model performance in predicting the water stress status of the crop during an arbitrary time period, we selected the RF model trained with the oversampled dataset and Configuration 2 for T = 10 days. The models were tested and their performance metrics obtained by means of the LOO method in Section 3.1. Here, we graphically evaluated the predictions of the model for days for which no Ψstem measurements were obtained, i.e., days from which the model was not trained. Thus, even though no objective metrics could be derived from this analysis, it did allow for observation of the consistency of predictions over time. In Figure 5, we present ‘no stress’ and ‘warning stress’ estimations (pink scatters) together with a reference four-level categorical stress defined by an agronomist (blue scatters) for irrigation treatments FMR (Figure 5a) and RDC-2 (Figure 5b) during 2015, as an example. These four categories of crop water stress were defined by an expert agronomist in a previous work [43] based on Ψstem measurements, harvest period and soil and weather time series data observations from the same dataset used in this study. These four stress categories corresponded to: 0, absence of stress; 1, light stress; 2, moderate stress; and 3, severe stress. In this study, we unified the stress categories 0, 1 and 2 into ‘no stress’, whereas stress category 3 corresponded to ‘warning stress’. Showing the reference stress divided into four categories in Figure 5 instead of the binary reference values provides information regarding how the crop water stress level evolves during the transition between ‘no stress’ and ‘warning stress’. The binary predictions were generally consistent with the reference data. The model kept the estimation at ‘no stress’ while the reference crop water stress level defined by the expert was 0 or 1. The model ‘alerted’ of ‘warning stress’ in the transition from expert-defined levels 1 to 2 and slightly fluctuated between ‘no stress’ and ‘warning stress’ during August, when the reference stress level was mainly 2 with a single case of level 3. However, in both cases presented, the model predicted ‘warning stress’ several days before level 3 was reached.

3.4. Regression Model Test

A similar approach to that in the previous section was adopted with the regression model. Likewise, we selected the RF model trained with Configuration 2 and T = 10 days as the best model and predicted Ψstem for those days that it had not been empirically measured. In Figure 6, the estimated and measured Ψstem are presented for the same irrigation treatments and times as in Figure 5. It can be noted that the predictions on the days when there were no Ψstem measurements follow the patterns and trends of the measured Ψstem fairly. At the lower and upper bounds of the Ψstem range presented in Figure 6a for the FMR irrigation treatment, i.e., when water was barely and highly available for the crop, respectively, the regression model tended to slightly underestimate the measured Ψstem values. Even though this behavior is not shown in the example presented for RDC-2 in Figure 6b, it was generally observed across the dataset. This means that the model would often predict slightly worse conditions than in the worst-case scenario for the crop water status, thus remaining on the side of security to manage crop health and productivity.

4. Conclusions

In this study we evaluated the performance of ML techniques to estimate the crop water stress of fruit trees, focusing the analysis on 15-year-old sweet cherry trees. We posed a novel model input format consisting of integrating the curve described by the input physical variables for a time period immediately before the day the estimation was going to be made. Two modeling approaches were tested: (i) a binary classification approach to determine whether the crop was subjected to tolerable (‘no stress’) or severe (‘warning stress’) water stress conditions and (ii) a regression approach to predict the numerical value of the tree stem water potential. As an alternative, this second approach was turned into a binary classification approach by defining a stem water potential threshold. The ML algorithms used were RF and SVM. We generally obtained higher performance with the former.
Modeling the crop water stress with the classification approach was challenging when using the original dataset due to its imbalanced condition, which provided limited examples of the minority class. The use of the MWMOTE oversampling method was critical to enhancing the performance of the model, increasing the recall and F1 and F2 scores and giving rise to more homogenous performance metrics among the different input configurations tested. The importance of the input configuration selected for the classification model was reduced as the inputs integration time increased, so that for T = 10 days, the performance of the model was leveled for all input configurations. This meant that the longer the input integration time, the lower the number of input variables needed to reach a similar classification performance. For the classification approach, the RF model trained with the oversampled dataset and Configuration 3 for T = 3 days and Configuration 2 for T = 10 days were the options which showed the highest performance in terms of accuracy, recall, and F1 and F2 scores. Generally, avoidance of soil water matric potential as an input to the classification model resulted in worse classification metrics, especially for reduced integration times (T = 3 and 6 days), and this was even more pronounced when the model was trained with the imbalanced dataset. Thus, soil matric potential sensors proved more accurate than soil moisture sensors in the estimation of crop water stress in the short term. Nevertheless, there is no evidence to confirm this in a generalized way. Further research is required with other sensors with different probe geometries and ways of installation, as well as with soil-specific calibration.
In the case of the regression approach, the input configurations including all soil and weather variables and those not including the soil moisture variables were the ones showing the best goodness of fit, revealing again the limited information provided by the soil moisture sensors used. It was also demonstrated that the longer the model input integration time, the better the model fit, at least up to 10 days, obtaining a R2 of up to 0.817 with input Configuration 1; and that considering both daily and accumulated dynamics for the model inputs resulted in better estimations than using only accumulated dynamics. We also evidenced that from the crop stem water potential predicted with the regression model, an alarm system based on a Ψstem threshold could be set to inform the farmer of a potential crop water stress risk. Setting the threshold at Ψstem = −0.845 MPa for the RF regression model, with input Configuration 2 and T = 10 days, would detect every potential severe crop water stress episode.
Once the crop water stress estimation models developed in this study prove successful for preventive deficit irrigation management in sweet cherry trees, future work should be focused on extending this method and these models to other crops. Hypothetically, different crops and different soil conditions would change the parameters of the models. Additionally, the use of different soil moisture sensors would allow for clarification of the actual importance of this variable in the models.

Author Contributions

Conceptualization, J.D.G.-T. and R.T.-S.; Data curation, V.B., P.J.B.-R. and R.T.-S.; Formal analysis, J.D.G.-T. and M.C.R.-A.; Funding acquisition, J.D.G.-T., R.D. and R.T.-S.; Investigation, J.D.G.-T., V.B. and P.J.B.-R.; Methodology, J.D.G.-T., M.C.R.-A., V.B. and R.D.; Project administration, R.T.-S.; Resources, R.D. and R.T.-S.; Software, J.D.G.-T. and M.C.R.-A.; Supervision, R.D. and R.T.-S.; Validation, V.B. and P.J.B.-R.; Visualization, J.D.G.-T. and M.C.R.-A.; Writing—original draft, J.D.G.-T.; Writing—review and editing, M.C.R.-A., V.B., P.J.B.-R., R.D. and R.T.-S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Agencia Estatal de Investigación (AEI), project numbers: AGL2016-77282-C3-3-R, PID2019-106226-C22, AEI/https://doi.org/10.13039/501100011033; Ministerio de Educación y Formación Profesional, grant number: FPU17/05155; and Ministerio de Economía y Competitividad (MINECO), project number: AGL2013-49047-C2-1-R.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Faurès, J.M.; Bartley, D.; Bazza, M.; Burke, J.; Hoogeveen, J.; Soto, D.; Steduto, P. Climate-Smart Agriculture Sourcebook; FAO: Rome, Italy, 2013; ISBN 978-92-5-107720-7. [Google Scholar]
  2. IPCC. Climate Change and Water Technical Paper of the Intergovernmental Panel on Climate Change; IPCC: Geneva, Switzerland, 2008. [Google Scholar]
  3. Santos Pereira, L.; Cordery, I.; Iacovides, I. Coping with Water Scarcity: Addressing the Challenges; Springer: Dordrecht, The Netherlands, 2009; ISBN 9781402095788. [Google Scholar]
  4. Confederación Hidrográfica del Segura. Plan Hidrológico de la Demarcación del Segura 2015/2021; Ministerio de Agricultura, Alimentación y Medio Ambiente, 2015. Available online: https://www.chsegura.es/export/descargas/planificacionydma/planificacion15-21/docsdescarga/DIE_PHC_2015-21.pdf (accessed on 12 April 2022).
  5. Ruiz-Sanchez, M.C.; Domingo, R.; Castel, J.R. Deficit irrigation in fruit trees and vines in Spain. Span. J. Agric. Res. 2010, 8, 5–20. [Google Scholar] [CrossRef] [Green Version]
  6. Vera, J.; Abrisqueta, I.; Conejero, W.; Ruiz-Sánchez, M.C. Precise sustainable irrigation: A review of soil-plant-atmosphere monitoring. Acta Hortic. 2017, 1150, 195–202. [Google Scholar] [CrossRef]
  7. Fereres, E.; Soriano, M.A. Deficit irrigation for reducing agricultural water use. J. Exp. Bot. 2007, 58, 147–159. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Katerji, N.; Mastrorilli, M.; Rana, G. Water use efficiency of crops cultivated in the Mediterranean region: Review and analysis. Eur. J. Agron. 2008, 28, 493–507. [Google Scholar] [CrossRef]
  9. Evans, R.G.; Sadler, E.J. Methods and technologies to improve efficiency of water use. Water Resour. Res. 2008, 44. [Google Scholar] [CrossRef]
  10. Blaya-Ros, P.J.; Blanco, V.; Torres-Sánchez, R.; Domingo, R. Drought-Adaptive Mechanisms of Young Sweet Cherry Trees in Response to Withholding and Resuming Irrigation Cycles. Agronomy 2021, 11, 1812. [Google Scholar] [CrossRef]
  11. Blanco, V.; Martínez-Hernández, G.B.; Artés-Hernández, F.; Blaya-Ros, P.J.; Torres-Sánchez, R.; Domingo, R. Water relations and quality changes throughout fruit development and shelf life of sweet cherry grown under regulated deficit irrigation. Agric. Water Manag. 2019, 217, 243–254. [Google Scholar] [CrossRef]
  12. Blanco, V.; Torres-Sánchez, R.; Blaya-Ros, P.J.; Pérez-Pastor, A.; Domingo, R. Vegetative and reproductive response of ‘Prime Giant’ sweet cherry trees to regulated deficit irrigation. Sci. Hortic. 2019, 249, 478–489. [Google Scholar] [CrossRef]
  13. Blanco, V.; Blaya-Ros, P.J.; Torres-Sánchez, R.; Domingo, R. Influence of Regulated Deficit Irrigation and Environmental Conditions on Reproductive Response of Sweet Cherry Trees. Plants 2020, 9, 94. [Google Scholar] [CrossRef] [Green Version]
  14. Marsal, J. FAO irrigation and drainage paper 66. In Crop Yield Response Water. Sweet Cherry; FAO: Rome, Italy, 2012; pp. 449–457. [Google Scholar]
  15. Shackel, K.A.; Ahmadi, H.; Biasi, W.; Buchner, R.; Goldhamer, D.; Gurusinghe, S.; Hasey, J.; Kester, D.; Krueger, B.; Lampinen, B.; et al. Plant water status as an index of irrigation need in deciduous fruit trees. Horttechnology 1997, 7, 23–29. [Google Scholar] [CrossRef] [Green Version]
  16. Intrigliolo, D.S.; Castel, J.R. Continuous measurement of plant and soil water status for irrigation scheduling in plum. Irrig. Sci. 2004, 23, 93–102. [Google Scholar] [CrossRef]
  17. Ortuño, M.F.; García-Orellana, Y.; Conejero, W.; Ruiz-Sánchez, M.C.; Mounzer, O.; Alarcón, J.J.; Torrecillas, A. Relationships between climatic variables and sap flow, stem water potential and maximum daily trunk shrinkage in lemon trees. Plant Soil 2006, 279, 229–242. [Google Scholar] [CrossRef]
  18. Navarro-Hellín, H.; Martínez-del-Rincon, J.; Domingo-Miguel, R.; Soto-Valles, F.; Torres-Sánchez, R. A decision support system for managing irrigation in agriculture. Comput. Electron. Agric. 2016, 124, 121–131. [Google Scholar] [CrossRef] [Green Version]
  19. Torres-Sanchez, R.; Navarro-Hellin, H.; Guillamon-Frutos, A.; San-Segundo, R.; Ruiz-Abellón, M.C.; Domingo-Miguel, R. A Decision Support System for Irrigation Management: Analysis and Implementation of Different Learning Techniques. Water 2020, 12, 548. [Google Scholar] [CrossRef] [Green Version]
  20. Martí, P.; Gasque, M.; González-Altozano, P. An artificial neural network approach to the estimation of stem water potential from frequency domain reflectometry soil moisture measurements and meteorological data. Comput. Electron. Agric. 2013, 91, 75–86. [Google Scholar] [CrossRef]
  21. Valdés-Vela, M.; Abrisqueta, I.; Conejero, W.; Vera, J.; Ruiz-Sánchez, M.C. Soft computing applied to stem water potential estimation: A fuzzy rule based approach. Comput. Electron. Agric. 2015, 115, 150–160. [Google Scholar] [CrossRef]
  22. Blanco, V.; Domingo, R.; Pérez-Pastor, A.; Blaya-Ros, P.J.; Torres-Sánchez, R. Soil and plant water indicators for deficit irrigation management of field-grown sweet cherry trees. Agric. Water Manag. 2018, 208, 83–94. [Google Scholar] [CrossRef]
  23. Allen, R.G.; Pereira, L.S.; Raes, D.; Smith, M. Crop evapotranspiration—Guidelines for computing crop water requirements. In FAO Irrigation and Drainage Paper 56; Food and Agriculture Organization: Rome, Italy, 1998; ISBN 92-5-104219-5. [Google Scholar]
  24. Fereres, E.; Martinich, D.A.; Aldrich, T.M.; Castel, J.R.; Holzapfel, E.; Schulbach, H. Drip irrigation saves money in young almond orchards. Calif. Agric. 1982, 36, 12–13. [Google Scholar]
  25. Blanco, V.; Blaya-Ros, P.J.; Castillo, C.; Soto-Vallés, F.; Torres-Sánchez, R.; Domingo, R. Potential of UAS-Based Remote Sensing for Estimating Tree Water Status and Yield in Sweet Cherry Trees. Remote Sens. 2020, 12, 2359. [Google Scholar] [CrossRef]
  26. McCutchan, H.; Shackel, K.A. Stem-water Potential as a Sensitive Indicator of Water Stress in Prune Trees (Prunus domestica L. cv. French). J. Am. Soc. Hortic. Sci. 1992, 117, 607–611. [Google Scholar] [CrossRef] [Green Version]
  27. SIAR. SIAR—Servicio Integral de Asesoramiento al Regante de Castilla-La Mancha. Available online: https://crea.uclm.es/siar/datosMeteorologicos (accessed on 23 February 2022).
  28. Barua, S.; Islam, M.M.; Yao, X.; Murase, K. MWMOTE—Majority weighted minority oversampling technique for imbalanced data set learning. IEEE Trans. Knowl. Data Eng. 2014, 26, 405–425. [Google Scholar] [CrossRef]
  29. Cordón, I.; García, S.; Fernández, A.; Herrera, F. Preprocessing Algorithms for Imbalanced Datasets Version 1.0.2.1; Institute for Statistics and Mathematics of WU (Wirtschaftsuniversität Wien): Vienna, Austria, 2020. [Google Scholar]
  30. Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority Over-sampling Technique. J. Artif. Intell. Res. 2011, 16, 321–357. [Google Scholar] [CrossRef]
  31. Giménez-Gallego, J.; González-Teruel, J.D.; Jiménez-Buendía, M.; Toledo-Moreo, A.B.; Soto-Valles, F.; Torres-Sánchez, R. Segmentation of Multiple Tree Leaves Pictures with Natural Backgrounds using Deep Learning for Image-Based Agriculture Applications. Appl. Sci. 2019, 10, 202. [Google Scholar] [CrossRef] [Green Version]
  32. Oates, M.J.; González-Teruel, J.D.; Ruiz-Abellon, M.C.; Guillamon-Frutos, A.; Ramos, J.; Torres-Sánchez, R. Using a low-cost Components e-nose for Basic Detection of Different Foodstuffs. IEEE Sens. J. 2022, accepted (unpublished). [Google Scholar]
  33. Cutler, A.; Cutler, D.R.; Stevens, J.R. Random Forests. In Ensemble Machine Learning; Zhang, C., Ma, Y., Eds.; Springer: Boston, MA, USA, 2012; pp. 157–175. ISBN 978-1-4419-9326-7. [Google Scholar]
  34. Pisner, D.A.; Schnyer, D.M. Chapter 6—Support vector machine. In Machine Learning: Methods and Applications to Brain Disorders; Academic Press: Cambridge, MA, USA, 2020; pp. 101–121. ISBN 9780128157398. [Google Scholar]
  35. Kuhn, M.; Wing, J.; Weston, S.; Williams, A.; Keefer, C.; Engelhardt, A.; Cooper, T.; Mayer, Z.; Kenkel, B.; R Core Team; et al. caret: Classification and Regression Training. R Package Version 6.0-86; Institute for Statistics and Mathematics of WU (Wirtschaftsuniversität Wien): Vienna, Austria, 2020. [Google Scholar]
  36. Liaw, A.; Wiener, M. randomForest: Breiman and Cutler’s Random Forests for Classification and Regression. R Package Version 4.6-14. Available online: https://www.stat.berkeley.edu/~breiman/RandomForests/ (accessed on 1 February 2022).
  37. Karatzoglou, A.; Smola, A.; Hornik, K.; National ICT Australia (NICTA); Maniscalco, M.A.; Teo, C.H. kernlab: Kernel-Based Machine Learning Lab version 0.9-29; Institute for Statistics and Mathematics of WU (Wirtschaftsuniversität Wien): Vienna, Austria, 2019.
  38. Shung, K.P. Accuracy, Precision, Recall or F1? Available online: https://towardsdatascience.com/accuracy-precision-recall-or-f1-331fb37c5cb9 (accessed on 3 March 2022).
  39. Brownlee, J. A Gentle Introduction to the Fbeta-Measure for Machine Learning. Available online: https://machinelearningmastery.com/fbeta-measure-for-machine-learning/ (accessed on 3 March 2022).
  40. González-Teruel, J.D.; Jones, S.B.; Soto-Valles, F.; Torres-Sánchez, R.; Lebron, I.; Friedman, S.P.; Robinson, D.A. Dielectric Spectroscopy and Application of Mixing Models Describing Dielectric Dispersion in Clay Minerals and Clayey Soils. Sensors 2020, 20, 6678. [Google Scholar] [CrossRef] [PubMed]
  41. González-Teruel, J.D.; Robinson, D.A.; Jones, S.B.; Skierucha, W.; Szyplowska, A. Impact of Effective Electromagnetic Frequency on Soil Moisture Sensor Calibration. In Proceedings of the ASA-CSSA-SSSA 2019 International Annual Meeting, San Antonio, TX, USA, 10–13 November 2019. [Google Scholar]
  42. González-Teruel, J.D.; Torres-Sánchez, R.; Blaya-Ros, P.J.; Toledo-Moreo, A.B.; Jiménez-Buendía, M.; Soto-Valles, F. Design and Calibration of a Low-Cost SDI-12 Soil Moisture Sensor. Sensors 2019, 19, 491. [Google Scholar] [CrossRef] [Green Version]
  43. González-Teruel, J.D.; Blanco, V.; Blaya-Ros, P.J.; Domingo, R.; Soto-Valles, F.; Torres-Sánchez, R. Estimación del Nivel de Estrés Hídrico en Frutales Mediante Técnicas Machine Learning para Aplicación en Sistemas de Riego Inteligentes. In Proceedings of the XLII Jornadas de Automática, Castellón de la Plana, Spain, 1–3 September 2021; Alonso Muñoz, A., Cabrera Santana, P.J., Chaos García, D., Déniz Suárez, Ó., Estévez Estévez, E., Guzmán Sánchez, J.L., Marín Prades, R., Muñoz de la Peña Sequedo, D., Peñarrocha Alós, I., Pitarch Pérez, J.L., et al., Eds.; Servizo de Publicacións da Universidade da Coruña: A Coruña, Spain; Comité Español de Automática: Barcelona, Spain; Universitat Jaume I: Castellón, Spain, 2021; pp. 477–484. [Google Scholar]
Figure 1. Comparison of RF model performance metrics for the different input configurations and the imbalanced and oversampling-based balanced datasets for T = 3 days (a), T = 6 days (b) and T = 10 days (c).
Figure 1. Comparison of RF model performance metrics for the different input configurations and the imbalanced and oversampling-based balanced datasets for T = 3 days (a), T = 6 days (b) and T = 10 days (c).
Agronomy 12 01422 g001aAgronomy 12 01422 g001b
Figure 2. Comparison of SVM and RF models’ performance metrics with different input configurations for the oversampling-based balanced datasets and T = 10 days.
Figure 2. Comparison of SVM and RF models’ performance metrics with different input configurations for the oversampling-based balanced datasets and T = 10 days.
Agronomy 12 01422 g002
Figure 3. MAPE (a) and R2 (b) regression metrics obtained with RF with the different input configurations for T = 3, 6 and 10 days.
Figure 3. MAPE (a) and R2 (b) regression metrics obtained with RF with the different input configurations for T = 3, 6 and 10 days.
Agronomy 12 01422 g003
Figure 4. ROC curves for threshold-based binary classification from regression-estimated Ψstem for all input configurations and T = 10 days.
Figure 4. ROC curves for threshold-based binary classification from regression-estimated Ψstem for all input configurations and T = 10 days.
Agronomy 12 01422 g004
Figure 5. Comparison of crop water stress level estimated with the classification RF model trained with Configuration 2 and T = 10 days and the reference crop water stress level defined by an expert agronomist in [43] for FMR (a) and RDC-2 (b) irrigation treatments during 2015.
Figure 5. Comparison of crop water stress level estimated with the classification RF model trained with Configuration 2 and T = 10 days and the reference crop water stress level defined by an expert agronomist in [43] for FMR (a) and RDC-2 (b) irrigation treatments during 2015.
Agronomy 12 01422 g005
Figure 6. Predictions of Ψstem obtained with the RF regression model trained with Configuration 2 and T = 10 days and measured Ψstem in FMR (a) and RDC-2 (b) irrigation treatments during 2015.
Figure 6. Predictions of Ψstem obtained with the RF regression model trained with Configuration 2 and T = 10 days and measured Ψstem in FMR (a) and RDC-2 (b) irrigation treatments during 2015.
Agronomy 12 01422 g006
Table 1. Defined rule for binary categorization of crop water stress.
Table 1. Defined rule for binary categorization of crop water stress.
Harvest PeriodRuleCategory
Pre-harvestΨstem > −0.9 MPa‘no stress’
Ψstem < −0.9 MPa‘warning stress’
Post-harvestΨstem > −1.2 MPa‘no stress’
Ψstem < −1.2 MPa‘warning stress’
Table 2. List of models’ inputs considered in the study.
Table 2. List of models’ inputs considered in the study.
Soil VariablesWeather VariablesCalendar Variables
θv20_Di, i = 1, …, Tair_RHDi, i = 1, …, T DOY
θv20_ACCUM(T)air_RHACCUM(T)
θv40_Di, i = 1, …, TϕDi, i = 1, …, T Harvest period
θv40_ACCUM(T)ϕACCUM(T)
Ψm25_Di, i = 1, …, Tair_TempDi, i = 1, …, T
Ψm25_ACCUM(T)air_TempACCUM(T)
Ψm50_Di, i = 1, …, TWSDi, i = 1, …, T
Ψm50_ACCUM(T)WSACCUM(T)
VPDDi, i = 1, …, T
VPDACCUM(T)
rainfallDi, i = 1, …, T
rainfallACCUM(T)
T = 3, 6 or 10 days.
Table 3. Model input configurations analyzed.
Table 3. Model input configurations analyzed.
ConfigurationInput VariablesN. of Inputs
1All the inputs22
2All inputs but the daily dynamics12
3All inputs but θv dynamics18
4All inputs but the daily dynamics and θv dynamics10
5All inputs but Ψm dynamics18
6All inputs but the daily dynamics and Ψm dynamics10
7DOY, harvest period and Ψm and VPD dynamics8
8DOY, harvest period and Ψm and VPD accumulated dynamics5
9DOY, harvest period and θv and VPD dynamics8
10DOY, harvest period and θv and VPD accumulated dynamics5
Table 4. RF model classification performance metrics with the imbalanced dataset.
Table 4. RF model classification performance metrics with the imbalanced dataset.
TMetricInput Configuration
12345678910
3 daysAccuracy0.9540.9560.9590.9560.9410.9380.9590.9610.9380.936
Precision0.7500.8000.7270.6960.6000.6250.7270.7200.5710.538
Recall0.4620.4620.6150.6150.3460.1920.6150.6920.3080.269
Specificity0.9890.9920.9830.9810.9830.9920.9830.9810.9830.983
F10.5710.5850.6670.6530.4390.2940.6670.7060.4000.359
F20.5000.5040.6350.6300.3780.2230.6350.6980.3390.299
TP1212161695161887
FP4367636766
TN359360357356357360357356357357
FN1414101017211081819
6 daysAccuracy0.9590.9590.9560.9460.9380.9490.9610.9540.9310.943
Precision0.7780.8570.7370.6470.6250.6500.7890.7220.4000.643
Recall0.5380.4620.5380.4230.1920.5000.5770.5000.0770.346
Specificity0.9890.9940.9860.9830.9920.9810.9890.9860.9920.986
F10.6360.6000.6220.5120.2940.5650.6670.5910.1290.450
F20.5740.5080.5690.4550.2230.5240.6100.5330.0920.381
TP14121411513151329
FP4256374535
TN359361358357360356359358360358
FN12141215211311132417
10 daysAccuracy0.9610.9590.9540.9540.9490.9460.9560.9560.9430.936
Precision0.7890.7780.7000.6820.7500.6470.7370.6960.7000.529
Recall0.5770.5380.5380.5770.3460.4230.5380.6150.2690.346
Specificity0.9890.9890.9830.9810.9920.9830.9860.9810.9920.978
F10.6670.6360.6090.6250.4740.5120.6220.6530.3890.419
F20.6100.5740.5650.5950.3880.4550.5690.6300.3070.372
TP15141415911141679
FP4467365738
TN359359357356360357358356360355
FN11121211171512101917
Table 5. RF model classification performance metrics with the MWMOTE-balanced dataset.
Table 5. RF model classification performance metrics with the MWMOTE-balanced dataset.
TMetricInput Configuration
12345678910
3 daysAccuracy0.9380.9410.9540.9310.9230.9280.9310.9200.9000.907
Precision0.5310.5520.6250.4860.4330.4670.4860.4440.3030.368
Recall0.6540.6150.7690.6540.5000.5380.6920.7690.3850.538
Specificity0.9590.9640.9670.9500.9530.9560.9480.9310.9370.934
F10.5860.5820.6900.5570.4640.5000.5710.5630.3390.438
F20.6250.6020.7350.6120.4850.5220.6380.6710.3650.493
TP17162017131418201014
FP15131218171619252324
TN348350351345346347344338340339
FN910691312861612
6 daysAccuracy0.9310.9510.9490.9460.9200.9330.9410.9180.9150.918
Precision0.4800.6210.6150.5810.4070.5000.5520.4170.3940.406
Recall0.4620.6920.6150.6920.4230.5380.6150.5770.5000.500
Specificity0.9640.9700.9720.9640.9560.9610.9640.9420.9450.948
F10.4710.6550.6150.6320.4150.5190.5820.4840.4410.448
F20.4650.6770.6150.6670.4200.5300.6020.5360.4740.478
TP12181618111416151313
FP13111013161413212019
TN350352353350347349350342343344
FN148108151210111313
10 daysAccuracy0.9490.9490.9540.9410.9380.9430.9510.9200.9460.936
Precision0.6000.6000.6670.5520.5360.5710.6300.4420.5810.515
Recall0.6920.6920.6150.6150.5770.6150.6540.7310.6920.654
Specificity0.9670.9670.9780.9640.9640.9670.9720.9340.9640.956
F10.6430.6430.6400.5820.5560.5930.6420.5510.6320.576
F20.6720.6720.6250.6020.5680.6060.6490.6460.6670.620
TP18181616151617191817
FP1212813131210241316
TN351351355350350351353339350347
FN88101011109789
Table 6. SVM model performance metrics with the MWMOTE-balanced dataset.
Table 6. SVM model performance metrics with the MWMOTE-balanced dataset.
TMetricInput Configuration
12345678910
10 daysAccuracy0.9690.9460.9510.9430.9310.9200.9510.9050.9230.925
Precision0.8180.6000.6300.5630.4810.4140.6400.3510.4300.459
Recall0.6920.5800.610.6540.6920.4620.6150.5000.4620.654
Specificity0.9890.9720.9720.9610.9610.9530.9750.9340.9560.945
F10.7500.5880.6420.6210.4910.4360.6270.4130.4440.540
F20.7140.5810.6490.6620.4960.4510.6200.4610.4550.603
Table 7. RF model regression performance metrics.
Table 7. RF model regression performance metrics.
TMetricInput Configuration
12345678910
3 daysME−0.004−0.002−0.004−0.002−0.002−0.001−0.005−0.002−0.002−0.002
RMSE0.1220.1200.1230.1220.1310.1310.1300.1320.1370.139
R20.7910.7990.7900.7920.7600.7620.7650.7560.7380.731
MAPE12.45812.08012.26511.92813.05212.80812.74512.87613.31713.683
6 daysME−0.004−0.002−0.003−0.001−0.001−0.002−0.003−0.002−0.001−0.002
RMSE0.1180.1210.1190.1200.1270.1300.1260.1310.1380.135
R20.8040.7970.8010.7980.7730.7630.7800.7610.7360.745
MAPE12.22312.00512.15911.88312.86512.84312.55412.70513.53313.493
10 daysME−0.003−0.001−0.003−0.002−0.0020.000−0.006−0.002−0.001−0.001
RMSE0.1140.1180.1150.1190.1230.1280.1220.1250.1310.136
R20.8170.8050.8160.8020.7880.7710.7920.7820.7610.742
MAPE11.69111.91411.60011.76812.50712.72212.10512.28713.22213.454
Table 8. AUC metrics for ROC curves obtained from binary classification applied using thresholds on the regression-estimated Ψstem.
Table 8. AUC metrics for ROC curves obtained from binary classification applied using thresholds on the regression-estimated Ψstem.
TMetricInput Configuration
12345678910
3 daysAUC0.9740.9710.9700.9660.9520.9510.9640.9580.9380.937
Deviation error 10.0080.0090.0090.0100.0120.0130.0100.0110.0140.013
Asymptotic signification 20.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
95%
asymptotic confidence
interval
Lower bound0.9580.9540.9520.9470.9280.9260.9440.9360.9100.910
Upper bound0.9900.9880.9880.9850.9760.9760.9850.9800.9650.963
6 daysAUC0.9720.9650.9700.9600.9550.9520.9640.9540.9360.945
Deviation error 10.0090.0100.0090.0100.0120.0120.0110.0120.0140.013
Asymptotic signification 20.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
95%
asymptotic confidence
interval
Lower bound0.9540.9440.9530.9400.9320.9280.9430.9310.9080.918
Upper bound0.9900.9850.9880.9810.9780.9760.9850.9780.9640.971
10 daysAUC0.9740.9680.9720.9600.9620.9560.9660.9510.9630.944
Deviation error 10.0090.0110.0090.0100.0100.0110.0100.0120.0100.013
Asymptotic signification 20.0000.0000.0000.0000.0000.0000.0000.0000.0000.000
95%
asymptotic confidence
interval
Lower bound0.9570.9470.9550.9400.9410.9340.9460.9270.9430.918
Upper bound0.9920.9890.9890.9810.9830.9780.9850.9750.9840.970
1 Under the non-parametric assumption. 2 Null hypothesis: true area = 0.5.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

González-Teruel, J.D.; Ruiz-Abellon, M.C.; Blanco, V.; Blaya-Ros, P.J.; Domingo, R.; Torres-Sánchez, R. Prediction of Water Stress Episodes in Fruit Trees Based on Soil and Weather Time Series Data. Agronomy 2022, 12, 1422. https://doi.org/10.3390/agronomy12061422

AMA Style

González-Teruel JD, Ruiz-Abellon MC, Blanco V, Blaya-Ros PJ, Domingo R, Torres-Sánchez R. Prediction of Water Stress Episodes in Fruit Trees Based on Soil and Weather Time Series Data. Agronomy. 2022; 12(6):1422. https://doi.org/10.3390/agronomy12061422

Chicago/Turabian Style

González-Teruel, Juan D., Maria Carmen Ruiz-Abellon, Víctor Blanco, Pedro José Blaya-Ros, Rafael Domingo, and Roque Torres-Sánchez. 2022. "Prediction of Water Stress Episodes in Fruit Trees Based on Soil and Weather Time Series Data" Agronomy 12, no. 6: 1422. https://doi.org/10.3390/agronomy12061422

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