Persistent Homology to Study Cold Hardiness of Grape Cultivars
Abstract
Persistent homology is a branch of computational algebraic topology that studies shapes and extracts features over multiple scales. In this paper, we present an unsupervised approach that uses persistent homology to study divergent behavior in agricultural point cloud data. More specifically, we build persistence diagrams from multidimensional point clouds, and use those diagrams as the basis to compare and contrast different subgroups of the population. We apply the framework to study the cold hardiness behavior of 5 leading grape cultivars, with real data from over 20 growing seasons. Our results demonstrate that persistent homology is able to effectively elucidate divergent behavior among the different cultivars; identify cultivars that exhibit variable behavior across seasons; and identify seasonal correlations.
1 Introduction
Multidimensional point cloud data sets are becoming pervasive in numerous agricultural applications. Advances in phenotyping technologies that measure various crop attributes, coupled with an increased adoption of field sensing for environmental monitoring (e.g., temperature, humidity, soil moisture) have led to increased availability of multidimensional data sets in agriculture. While most of these variables are temporal, some variables may also encode static attributes that describe spatial locators or the crop varieties (cultivars) grown at those locations.
Given such a complex spatiotemporal data set, we are interested in understanding how different cultivars (with different genotypes G) respond to different environmental factors (E) to affect their phenotypes (P) (Tardieu et al. 2017). This question of decoding the GE P interaction is at the center of modern-day phenomics. However, prior to understanding this complex interaction, historical data sets offer a more immediate opportunity to understand how different genotypes relate to one another by their phenotypic behavior. For instance, extracting different patterns of phenotypic behavior—be it conserved or divergent—among various subgroups of cultivars could help classify cultivars into behavioral groups. Class information could help in subsequent prediction tasks associated with those cultivars. However, in agricultural data sets, such a classification may not be trivially observable from data, particularly for temporally changing phenotypes. Given the complex nature of traits, a subset of cultivars that show similar phenotypic behavior during one part of the season may possibly diverge at other times. Secondly, even within a single cultivar, there could be variability observed across the different seasons, as phenotypic plasticity is a well-established phenomenon in plants (Schlichting 1986). Consequently, it is important for any downstream machine learning workflow to incorporate these complex structural relationships among cultivars in order to improve the efficacy of the prediction tasks.
In this paper, we model the problems of extracting cross-cultivar relationships and intra-cultivar variability patterns as one of a structure discovery process. More specifically, given a multi-dimensional point cloud, where each point represents a phenotypic observation of a cultivar in time, we model the problem of identifying structural patterns in data using topological data analysis. In particular, we explore the use of persistent homology (Edelsbrunner 2013), an active research area within the field of applied algebraic topology. This is a branch of mathematics that studies shapes of data and spaces using algebraic techniques. Topology works with coordinate-free representation of shapes (simplicial complexes) (Munkres 2018), which are also more robust to small changes in data or to missing data (Lum et al. 2013).
There are two major classes of techniques within applied topology—mapper (Singh, Memoli, and Carlsson 2007) and persistent homology (Edelsbrunner 2013). Here, we explore persistent homology to study point clouds as it is better equipped to elucidate topological features that persist over multiple scales (including temporal scales). Although persistent homology has been widely used in a number of other application domains, it is yet to be explored in any serious depth for agricultural data sets. To the best of our knowledge, it has only been applied to decode plant leaf shapes (Zhang et al. 2021). However, the focus of this paper is different; we aim to identify patterns between cultivars and within cultivars based on phenotypic behavior.
As a concrete application case study, we study the cold hardiness of multiple grape cultivars. Cold hardiness is a trait that measures how resilient a variety is to cold temperatures. Specialty crops such as grapes and apples can incur a significant loss when the air temperature drops below certain cold hardiness thresholds (Mills, Ferguson, and Keller 2006). However, these thresholds are not fixed, change by the time of the season, and vary by the cultivars. Furthermore, due to a large number of cultivars and their divergent behavior across different growing conditions, it becomes important to study: a) the relationships between different cultivars by their cold hardiness trait, and b) any trait level variability as seen in the same cultivar across different seasons. Elucidating these relationships will help field scientists devise better frost/cold mitigation protocols customized and effective when applied to different cultivars. They could also help us improve the precision of current state-of-the-art cold hardiness prediction models (e.g., (Ferguson et al. 2014)).
2 Cold Hardiness Data
This study used the cold hardiness of endo–and ecodormant primary buds from about 30 diverse field-grown grapevine cultivars measured since 1988 at the WSU Irrigated Agriculture Research and Extension Center (IAREC). Locations include the vineyards at IAREC, Prosser, WA (46.29°N lat., -119.74°W long.), the WSU-Roza Research Farm, Prosser, WA (46.25°N lat., -119.73°W long.), and the Ste. Michelle Wine Estates, Paterson, WA (45.96°N lat.; -119.61°W long.). Cane samples containing dormant buds were collected daily, weekly, or at 2-week intervals from leaf fall in October to bud swell in April—i.e., dormant season. The collected samples were analyzed using differential thermal analysis (DTA) (Mills, Ferguson, and Keller 2006). DTA requires putting the samples in a thermoelectric module that senses low-temperature exotherms (LTEs) resulting from the freezing events of individual buds. The module is placed in a controlled chamber, where LTEs are monitored and registered as the temperature decreases. The result is a measurement of the lethal temperatures at which 10%, 50%, and 90% of the bud population die, denoted by , , and , respectively. Additionally, daily environmental data (e.g., max and min air temperature) from the closest on-site weather station to each vineyard was obtained using the API provided by AgWeatherNet (WSU 2022).
Thus, for each cultivar, there is a temporal dataset with a varying number of seasons containing daily weather data along with cold hardiness LTE values for the days that samples were collected. For the purpose of this study, a season is said to span from September 7th to May 15th—a conservative interval containing the full dormancy period (Ferguson et al. 2011, 2014).
Data Summary.
Table 1 shows a summary of the number of years of data collected for the five different grape cultivars that have been selected for this study based on their market importance ( samples). Each cultivar dataset contains a row for each day of data collection. The key (selected) temporal fields include:
-
•
DATE: The date of observation.
-
•
SEASON_JDAY: Julian day is an integer that represents the count of the number of days since the beginning of the year. For the dormant season, the JDAY continues at the new year—i.e., starts on JDAY 250 (Sep 7th) and ends with JDAY 500 (May 15th).
Cultivar LTE Data Seasons Years of LTE Data LTE Total Samples Cabernet Sauvignon (CS) 1988-2022 34 829 Chardonnay (CH) 1996-2022 26 783 Concord (CD) 1988-’90,’92-’93,’97-’98,’99-2022 27 484 Merlot (MR) 1996-2022 26 897 Riesling (WR) 1988-2022 34 636 Table 1: Summary of LTE data for selected grape cultivars. -
•
LTE values at , , and : in ∘C.
-
•
MIN_AT, AVG_AT, MAX_AT: Minimum, average, and maximum air temperatures respectively, as observed at 1.5 meters above the ground (in degrees Celsius).
3 Methods
3.1 Persistent Homology
The input to the persistent homology (PH) pipeline (Edelsbrunner 2013) is a high dimensional point cloud of points in dimensions with a distance specified for any pair . In short, PH characterizes the structure of by identifying features in each dimension that persist across multiple scales of values. It tracks a simplicial complex built on as a function of distance values for . At any given cutoff , an edge when . Similarly, a triangle when every pairwise for points is , and so on. PH then tracks the evolution of algebraic objects (groups) defined on as increases. It creates a persistence diagram (PD) in dimension that represents each -dimensional feature by a point in the 2D plane with coordinates birth,death corresponding to the values of at which the feature starts and one at which it stops existing. In particular, captures the evolution of connected components, while captures the evolution of holes in . In this work, we concentrate on PDs as holes in can be used to capture branching behavior (see Section 3.2).
Furthermore, the PH pipeline provides a natural way to compare pairs of data sets and based on their branching behavior. We first generate the corresponding PDs and . Considering these PDs as histograms (or probability measures), we compute the Wasserstein distance between them (also known as the Earth mover’s distance). We then use the WD values to directly compare the data sets and .

3.2 Building Persistence Diagrams for Analyzing Cold Hardiness Behavior
In the case of cold hardiness, each point in the point cloud is a 4-tuple , where is the cultivar label, is the season/year, is a JDAY of the season, and is the cold hardiness value (i.e., the phenotype) observed that day for that cultivar, which is one of , , or .
Using this input point cloud , we construct different types of persistence diagrams (Section 3.1) to answer different kinds of queries as described below.
Task 1. Computing Inter-cultivar and Intra-cultivar relationships.
Consider two cultivars and that exhibit similar LTE values during most of the season except for an interval when they diverge in their values. It is also possible that such divergent behavior may be observable at multiple time scales—e.g., two cultivars could diverge for days, while another two cultivars could diverge for weeks to months.
Furthermore, it is possible the LTE behavior exhibited by a single cultivar across two different seasons is divergent. For instance, a cultivar may exhibit a higher range of LTE values during one season and a lower range in another season, both during the same JDAY time interval.
In what follows, we present an approach using persistence diagrams to detect these distinct kinds of divergent behavior.
-
S1)
For each cultivar , construct a point cloud with all points of the form taken from all points in corresponding to cultivar .
-
S2)
Next, for each cultivar and using , build a persistence diagram containing (connected components) and (holes) as described in Section 3.1. We denote those diagrams for cultivar as and , respectively.
-
S3)
We then compare each pair of cultivars by computing the pairwise Wasserstein distance (described in Section 3.1) between their respective diagrams. More specifically, for a cultivar pair and , we compute .
The outputs of step S2 can be used to infer intra-cultivar variability, and the outputs of step S3 to infer inter-cultivar relationships. Consider a hole detected as part of a , and let that hole span from day to day along the JDAY dimension of the point cloud. This is indicative of a branching event that starts around day and ends around day . If the two branching paths are comprised of points from two different seasons and (to be expected), then we infer that the cultivar shows variable LTE behavior between these two seasons for the JDAY interval .
Note that different can be used for step S2 to compute the persistence diagrams. In this paper, we first used two different scaling functions for the two dimensions of the point cloud (JDAY, LTE50), and then used the L2 (Euclidean) distance as the function on the scaled points to construct the persistence diagrams.
For JDAY, we used a simple normalization to scale all points in the range of [0,1].
For LTE, instead of using their values directly, we modeled the phenotype value by taking the difference between the observed LTE value and the minimum air temperature recorded on that day (we denote this difference on day of season with LTE ). Intuitively, this difference is a strong indicator of the degree of risk that the cultivar faces on that day—as the difference shrinks, the cultivar is at a higher risk. Note that can be positive or negative (rare). Subsequently, we normalize the values as:
(1) |
Intuitively, this normalization function is aimed at making an oval or oblong branching shape into a more circular shape, making it suited for hole detection (examples shown in Figure 1).
Task 2. Computing seasonal correlations.
Given multiple seasons, we are also interested in computing pairwise seasonal correlations. Two seasons are said to be similar if all the cultivars considered show consistent relative behavior between the two seasons. There are two ways to compute this relationship. We can directly compare the point clouds for those two seasons. Alternatively, we can build the persistence diagrams for those two seasons and compare them. We choose the latter approach since persistence diagrams are more compact representations with robust properties (Edelsbrunner 2013).


4 Results
In this section, we present the results of applying our methodology described under Tasks 1 and 2 in Section 3.2 on the grape cold hardiness data set described in Section 2. All experiments shown are for values (due to space restrictions). All persistence diagrams and Wasserstein distances were computed using the Scikit-TDA package (Saul and Tralie 2019).
Results of Inter-cultivar Comparisons:
Figure 2 shows the persistence diagrams computed for each cultivar, and Table 2 shows the Wasserstein distance matrix for all cultivar pairs using their persistence diagrams. As can be seen, CD and MR display the largest distance, while CH and CS constitute the closest pair. WR (Riesling) has a larger distance to all other cultivars except to CD. Note that there are no known connections between the cold hardiness trait and the consumptive type of grape (i.e., wine or juice or table).
CD | CH | CS | MR | WR | |
CD | 0 | 0.236 | 0.201 | 0.305 | 0.168 |
CH | 0.236 | 0 | 0.146 | 0.164 | 0.233 |
CS | 0.201 | 0.146 | 0 | 0.168 | 0.206 |
MR | 0.305 | 0.164 | 0.168 | 0 | 0.286 |
WR | 0.168 | 0.233 | 0.206 | 0.286 | 0 |
Results of Intra-cultivar Variability:
Next, we ask how variable is each cultivar across the different seasons. This is captured by the level of branching observed within the for that cultivar (Task 1, Section 3.2). Figure 2 shows all five persistence diagrams. As can be readily observed, each cultivar has a different profile. Intuitively, if a cultivar behaves highly variable from season to season, we can expect to see more branching. However, if those branching events are relatively short-lived, then they correspond to small time scale variations. Longer lived branching events correspond to more persistent divergent behavior. From Figure 2, it can be seen that all three of CH, CD, and MR show numerous holes of wide ranging durations. In contrast, CS and WR show fewer holes with smaller duration. This suggests that CS and WR are less variable compared to the other varieties.
Seasonal comparisons:
We also compared the different seasons (from 1999 to 2022) using the methodology described in Task 2 of Section 3.2. Figure 3 shows the persistence diagrams for only the last 5 seasons (due to space constraints). We observed that the two most different seasons (i.e., with the largest Wasserstein distance) were the seasons 2001-2002 vs. 2010-2011 (shown in Figure 1).
5 Conclusion
Topological data analysis can be an effective tool to mine for higher order structural information from point cloud data. In this paper, we presented a persistent homology based framework to analyze and glean various types of structural information from a cold hardiness data set. The framework itself is generic and can be extended to other applications within agriculture or other domains. Future research directions include (but are not limited to) a) using the information gained to improve the prediction accuracy of cold hardiness models; b) adverse testing against noise and incomplete data; and c) exploring ways to use relationships inferred toward data imputation and multi-task learning among cultivars.
Acknowledgement
This research was supported by USDA NIFA award No. 2021-67021-35344 (AgAID AI Institute). The authors thank the Keller lab at WSU IAREC for data collection.
References
- Edelsbrunner (2013) Edelsbrunner, H. 2013. Persistent Homology: Theory and Practice. Lawrence Berkeley National Laboratory.
- Ferguson et al. (2014) Ferguson, J. C.; Moyer, M. M.; Mills, L. J.; Hoogenboom, G.; and Keller, M. 2014. Modeling Dormant Bud Cold Hardiness and Budbreak in Twenty-Three Vitis Genotypes Reveals Variation by Region of Origin. American Journal of Enology and Viticulture, 65(1): 59–71.
- Ferguson et al. (2011) Ferguson, J. C.; Tarara, J. M.; Mills, L. J.; Grove, G. G.; and Keller, M. 2011. Dynamic thermal time model of cold hardiness for dormant grapevine buds. Annals of Botany, 107(3): 389–396.
- Lum et al. (2013) Lum, P. Y.; Singh, G.; Lehman, A.; Ishkanov, T.; Vejdemo-Johansson, M.; Alagappan, M.; Carlsson, J.; and Carlsson, G. 2013. Extracting insights from the shape of complex data using topology. Scientific Reports, 3(1): 1236. Number: 1 Publisher: Nature Publishing Group.
- Mills, Ferguson, and Keller (2006) Mills, L. J.; Ferguson, J. C.; and Keller, M. 2006. Cold-Hardiness Evaluation of Grapevine Buds and Cane Tissues. American Journal of Enology and Viticulture, 57(2): 194–200. Publisher: American Journal of Enology and Viticulture Section: Articles.
- Munkres (2018) Munkres, J. R. 2018. Elements of algebraic topology. CRC press.
- Saul and Tralie (2019) Saul, N.; and Tralie, C. 2019. Scikit-TDA: Topological Data Analysis for Python.
- Schlichting (1986) Schlichting, C. D. 1986. The evolution of phenotypic plasticity in plants. Annual review of ecology and systematics, 667–693.
- Singh, Memoli, and Carlsson (2007) Singh, G.; Memoli, F.; and Carlsson, G. 2007. Topological Methods for the Analysis of High Dimensional Data Sets and 3D Object Recognition. The Eurographics Association. ISBN 978-3-905673-51-7. Accepted: 2014-01-29T16:52:11Z ISSN: 1811-7813.
- Tardieu et al. (2017) Tardieu, F.; Cabrera-Bosquet, L.; Pridmore, T.; and Bennett, M. 2017. Plant Phenomics, From Sensors to Knowledge. Current Biology, 27(15): R770–R783.
- WSU (2022) WSU. 2022. AgWeatherNet | Daily Data.
- Zhang et al. (2021) Zhang, Y.; Peng, J.; Yuan, X.; Zhang, L.; Zhu, D.; Hong, P.; Wang, J.; Liu, Q.; and Liu, W. 2021. MFCIS: an automatic leaf-based identification pipeline for plant cultivars using deep learning and persistent homology. Horticulture research, 8.