Introduction

Grape rot impairs perceptual quality due to the formation of e.g. musty, earthy and fresh mushroom-like off-flavours (Rousseaux et al. 2014; Steel et al. 2013). Grape rot may also cause bitter taste (Ribéreau-Gayon et al. 2006; Walter 2012), and desirable varietal aroma may be degraded (Scott et al. 2010). Additionally, browning in all and colour loss in red varieties is elicited (Scott et al. 2010). The microbial formation of mycotoxins and biogenic amines is a major food safety concern due to their health-affecting human toxicity (Flamini and Larcher 2008). Mycotoxins, including ochratoxin A (OTA), which is one of the most potent mycotoxins toxic to humans, are formed by grape-associated moulds (Rousseaux et al. 2014; Somma et al. 2012). Furthermore, fungal grape rot has also been reported to produce elevated levels of biogenic amines (Kiss et al. 2006).

Visual assessment and tasting are commonly applied in industrial practice for grape quality determination but suffer from being subjective. Visual assessment is particularly challenging for machine-harvested grapes (Dewey and Meyer 2004; Gishen et al. 2010; Stummer et al. 2006). Besides metabolites of microorganisms commonly applied for indicating grape bunch rot, several alternative parameters have been proposed. Laccase is secreted by various grape rotting fungi; however, the relationship between grape rot and laccase activity may be ambiguous (Dewey et al. 2008; Lorenzini et al. 2013). Indication of fungal contaminations by chitin lacks specify, sensitivity and reproducibility (Gourama and Bullerman 1995; Pitt and Hocking 2009). Adenosine triphosphate (ATP) content indicates metabolic activity but occurs ubiquitously in all living cells (Gourama and Bullerman 1995). Quantitative polymerase chain reaction (qPCR) is generally highly sensitive and specific for the detection and quantification of specific organisms (Saito et al. 2013; Sanzani et al. 2012; Stummer et al. 2006), however, inapplicable for the detection of universal fungal spoilage. Commonly used conventional plate count techniques are time-consuming and restricted to the detection of viable fungi (Gourama and Bullerman 1995). Howard mould count (HMC) is a microscopic method developed for the detection of fungal rot, especially in tomato products, but remains subjective (Jay et al. 2005; Kadakal and Artık 2004).

Ascomycetes, to which the relevant grape rot fungi entirely belong, exhibit ergosta-5,7,22-trien-3β-ol (ergosterol) (Fig. 1) as the major sterol. Ergosterol is essential for growth of fungi and yeasts that synthesise it, while it is completely or virtually absent in plants, animals and bacteria (Weete et al. 2010; Weete and Gandhi 1996; Czub and Baginski 2006). However, the occurrence of ergosterol cannot be directly related to an infection of vine powdery mildew (Erysiphe necator Schw.), accumulating ergosta-5,24(28)-dien-3β-ol (24-methylene cholesterol) instead of ergosterol (Debieu et al. 1995; Loeffler et al. 1992). Downy mildew (Plasmopara viticola Berk. & M.A. Curtis) does not synthesise any of the mentioned steroids but rather appears to be fully dependent on sterol biosynthesis of its host (Nes 1987; Mikes et al. 1997). Thus, the detection of downy mildew via sterol determination might be impractical.

Fig. 1
figure 1

Chemical structure of ergosterol (ergosta-5,7,22-trien-3β-ol)

Ergosterol has been suggested for the determination of fungal contamination in matrices similar to grapes such as tomato products (Battilani et al. 1996; Kadakal et al. 2004; de Sio et al. 2000; Porretta 1995) and apple juice (Kadakal et al. 2005). Recently, ergosterol has been proven to be a suitable and objective phytosanitary marker for fungal grape rot (Porep et al. 2014b).

Additionally, ergosterol has often been suggested as a readily measurable indicator of mycotoxins in agricultural commodities like grains (Abramson et al. 2005; Moretzsohn de Castro et al. 2002; Olsson et al. 2002; Pietri et al. 2004; Saxena et al. 2001), dried figs (Karaca and Nas 2006), apple juice (Kadakal et al. 2005) and hazelnuts (Ekinci et al. 2014).

Near-infrared (NIR) spectroscopy represents an advantageous technique because of low running costs and the needlessness of sample preparation. Due to the latter, it allows non-destructive, environmentally friendly and rapid measurements. Ultimately, it is capable for online applications (Nicolaï et al. 2007; Woodcock et al. 2008; Williams 2008). Thus, NIR spectroscopic online applications meet the requirements of modern viticultural industry for highly desired rapid quality assessment of grapes delivered to the winery (Bauer et al. 2008; Cozzolino et al. 2011a).

The NIR region covers wavelengths from 780 to 2500 nm. The most predominant absorption bands in NIR spectra of biological samples originate from overtones and combinations of fundamental vibrations of C–H, N–H, O–H and S–H bonds in organic molecules (Sandorfy et al. 2007; Blanco and Villarroya 2002). Unfortunately, NIR bands are usually broad and severely overlapped. Therefore, assignment of NIR bands is mostly difficult (Ozaki et al. 2007), although representing a ‘fingerprint’ of the chemical composition and comprising information of the physical properties of the investigated sample (Siesler 2008). Multivariate calibration is therefore applied in order to extract analytical information from the spectra and find quantitative relationships between the recorded spectra and the results determined by conventional techniques. The calibration model obtained may be applied to accurately predict the desired parameters in unknown samples using the rapid NIR method, therefore replacing the conventional method (Heise and Winzen 2002; Næs et al. 2002; Herold et al. 2009).

The successful application of NIR spectroscopy for ergosterol detection has previously been reported for red pepper (Kim et al. 2003), barley (Börjesson et al. 2007), maize (Berardo et al. 2005), soil (Rinnan and Rinnan 2007; Terhoeven-Urselmans et al. 2008) and leaf litter (Mancinelli et al. 2014). Particularly, NIR spectroscopy has previously been proven to be applicable for the prediction of ergosterol contents of grape mashes, i.e. crushed grapes (Porep et al. 2014a). Moreover, promising results for online applications under industrial conditions for holistic grape quality assessments were reported (Porep et al. 2015). However, the online prediction of ergosterol in grapes has not been investigated so far.

In the present study, we aimed at confirming the validity of ergosterol as a grape rot indicator for commercially harvested grapes delivered to wineries under normal operating conditions. Additionally, calibration experiments for the prediction of the ergosterol content of the corresponding grape mashes by online NIR spectroscopy under industrial conditions at wineries should be conducted.

Materials and Methods

Measurements by Near-Infrared/Visible Spectroscopy

Industrial near-infrared/visible (NIR/VIS) spectrometers, Process Analyser X-Three (NIR-Online, Walldorf, Germany), were used for online spectra collection. They were integrated into the grape reception line at the wineries in a bypass pipe of the mash-collecting tank after passing the de-stemmer/crusher and the weighing container. Grape mash was pumped in a loop through the bypass pipe back into the collecting tank (see also Porep et al. (2015)). Crushed and blended grapes represented a homogeneous sample material at this stage. Spectra acquisition was performed in reflectance mode with a scanning range of 400–1800 nm in 10 nm intervals using a photodiode array detector (PAD) comprising a Si detector for the VIS and an InGaAs detector for the NIR range, respectively. Spectra were stored as the average of a 15 s measurement period with an exposure of 30 ms per single spectrum. Instrument internal black and white references were used for automatic balancing. Data acquisition was performed using the software SX-Center Version 2.9.0.53 (NIR-Online).

Samples

Samples were commercially harvested grapes, delivered to wineries under normal operating conditions. No classification or preselection of the samples according to the severity or type of rot before sampling was performed in order to obtain samples typical for authentic industrial practice. Representative grape mash samples (approximately 1 kg) for reference analyses were taken from the grape reception line right after the mash passed the NIR/VIS spectrometer (see section “Measurements by Near-Infrared/Visible Spectroscopy”) by drawing them from the bypass pipe prior to pumping the mash back into the collecting tank. Subsequently, they were preserved by the addition of 200 mg sodium azide (NaN3) and immediately stored at −20 °C until further analyses. Samples and corresponding spectra were unambiguously labelled with a time stamp. Recording of the NIR/VIS spectra was performed at the two winemaking cooperatives, Genossenschaftskellerei Heilbronn-Erlenbach-Weinsberg (Heilbronn, Germany) and Winzergenossenschaft Weinbiet (Neustadt-Mußbach, Germany), located in two distinct wine-growing regions, namely Württemberg and Pfalz (Palatinate), respectively. In total, spectra of 177 grape mash samples of vintage 2013 were collected online, and the corresponding reference analysis of ergosterol was carried out using HPLC-UV. Total samples can be subdivided by colour, comprising white (n = 76) and red varieties (n = 101); by growing area/winery, namely Heilbronn (n = 163) and Neustadt-Mußbach (n = 14) and by varieties, consisting of Müller-Thurgau (n = 45), Dornfelder (n = 34), Riesling (n = 31), Pinot Meunier (Schwarzriesling) (n = 31), Trollinger (n = 23) and Lemberger (n = 13). For the samples and spectra of the vintage 2010–2012 collected offline, used for some calibration models considered, see Porep et al. (2014a).

Reagents

Reagents and solvents purchased from Merck (Darmstadt, Germany) were at least of analytical or HPLC grade unless otherwise specified. Ultrapure water, generated by an ultrapure water system (Millipore Milli-Q, Billerica, MA, USA), was used throughout.

Reference Analyses of Ergosterol

Samples for the reference analyses were prepared as described by Porep et al. (2014b). The HPLC method for ergosterol determination as described by Seitz et al. (1977) and Seitz et al. (1979) was adopted according to Schwadorf and Müller (1989) and Ghiretti et al. (1995) with slight modifications. Briefly, for ergosterol extraction, 20 g of homogenised grape mash were weighed into a 250 mL round-bottom flask. For saponification, 75 mL methanol, 50 mL ethanol 96 % (v/v) denatured with methyl ethyl ketone (MEK; Brüggemann Alcohol, Heilbronn, Germany) and 10 g potassium hydroxide (KOH) were added. The mixture was heated in a heating mantle (G2 250, Heraeus Wittmann, Heidelberg, Germany) and refluxed with a Dimroth condenser for 30 min under continuous stirring with a magnetic stirrer (RCO 23403, IKA-Werke, Staufen, Germany). After cooling, the suspension was filtered (No. 1, Whatman, Little Chalfont, UK), rinsing the flask and washing the filter once with 25 mL methanol. The resulting filtrate was transferred to a 250 mL separation funnel, and 25 mL ultrapure water was added to rinse the Büchner flask. Ergosterol was twice extracted from the alcoholic phase with 50 mL n-hexane. The upper organic layers were combined and filtered over anhydrous sodium sulphate (Na2SO4) through a pleated filter (MN 615 ¼, Macherey-Nagel, Düren, Germany), rinsing once with 5 mL hexane. Hexane was evaporated to dryness under reduced pressure, and the residue was dissolved in 5 mL methanol assisted by ultrasonication. The solution was membrane-filtered (0.45 μm, Chromafil RC-45/15MS, Macherey-Nagel, Düren, Germany) into a vial. Subsequent HPLC analysis was performed on a Dionex UltiMate 3000 HPLC System (Dionex, Idstein, Germany) equipped with a diode array detector and the Chromeleon software (Version 6.80). The column (Luna 5 μ C18, 100 A, 250 × 4.6 mm, 5 μm, Phenomenex, Aschaffenburg, Germany) was maintained at 25 °C. The injection volume was 25 μL. The mobile phase consisted of acetonitrile/water 80:20 (v/v), isocratically applied at a flow rate of 0.8 mL/min. Ergosterol was monitored at 282 nm. Retention time of ergosterol was about 20.1 min. Total run time was 40 min for equilibration and purging of the column. External calibration was conducted with an authentic ergosterol standard (>95 % (HPLC), Sigma-Aldrich, Steinheim, Germany). Stock solution was prepared by dissolving 500 mg/L of ergosterol in methanol assisted by ultrasonication and gentle warming. Working standard solutions for calibration were prepared therefrom by diluting in methanol resulting in concentrations of 0.5, 1.0, 2.0, 4.0, 7.5, 15.0, 30.0, 62.5, 125.0 and 250.0 mg/L.

Limit of detection (LOD) and limit of quantification (LOQ) were calculated from the signal-to-noise ratio of 3 and 9 determined from the baseline noise in a blank run and amounted to 0.006 and 0.019 mg/kg, respectively. The standard error of the laboratory (SEL) (Workman 2008) amounted to 0.08 mg/kg.

Both extractions and HPLC analyses were carried out in duplicate. Statistical evaluation of the ergosterol reference analysis of the grape mash samples for defined vintages used for NIR spectroscopic calibration and validation is shown in Table 1.

Table 1 Statistical evaluation of the reference data of the grape mash samples used in near-infrared/visible (NIR/VIS) spectroscopic models of defined vintages (2010, 2011, 2012 and 2013) and divided into calibration (cal) and validation (val) sets

Chemometrics and Data Analysis

Statistical analysis of the HPLC data was performed using XLStat (Version 2011.1.05, Addinsoft, Paris, France). Tukey’s honestly significant difference at 0.05 level (HSD0.05) test was used to identify groups showing significant differences among the samples.

Processing of the spectral data and building of the calibration models were carried out with the software SX-Plus Version 2.10 (NIR-Online, Walldorf, Germany). Noisy edge regions were avoided by narrowing the VIS and NIR region to 450–850 and 1050–1650 nm, respectively. Partial least squares (PLS) regression was applied as regression method being commonly used (Næs et al. 2002). For the validation with a separate dependent test set, the entire sample set was divided into two thirds for calibration and one third solely used for validation. In general, the first sample was selected for validation and the remaining two for calibration per group of three samples in the chronological order of spectra collection. Moreover, the data structure of the entire dataset was divided into one sub-dataset per vintage and growing area/winery, respectively, resulting in eight sub-datasets. If the selection procedure led to minimal or maximal values of a sub-dataset contained in the validation set, these samples were relocated from the validation to the calibration set. Thus, extreme values were avoided to be contained in the validation. Calibration and the predictive ability of the model were assessed based on the coefficient of determination (R 2), the root mean square error of calibration (RMSEC), the root mean square error of cross-validation (RMSECV), the root mean square error of prediction (RMSEP) (Næs et al. 2002) and the ratio of prediction to deviation (RPD) being the standard deviation (SD) of the reference values of the entire sample set of the respective calibration and validation divided by the standard error of cross-validation or prediction (SD/RMSECV or RMSEP) (Cozzolino et al. 2011b; Herold et al. 2009). The limit of PLS factors was set to 20. The criterion used for the final factor selection was to find the first lower number of factors where the RMSECV or RMSEP is less than 5 % higher than its successor and less than 10 % higher than the minimum residual. Automatic outlier detection performed removed any samples from the calibration data with a standardised error greater than 2.5, any sample from the calibration and validation data with a Mahalanobis distance greater than 5 and any samples from the validation data with a standardised residual exceeding 3.5. Deletion and recalibration processes were repeated until no further samples were deleted.

Results and Discussion

Results of ergosterol analyses are shown in Fig. 2. The highest ergosterol contents (mean: 3.1 mg/kg, maximum: 11.4 mg/kg) were found in Pinot Meunier, a variety being prone to microbial infection (Kast et al. 2004). In addition, Riesling and Müller-Thurgau exhibited relatively high ergosterol contents. This is most probably due to their characteristic density of grape clusters, which also favour infections (Molitor and Evers 2012). The lowest contents on average were found in Dornfelder and Lemberger, with Dornfelder showing significantly (p < 0.05) lower values than Pinot Meunier. Dornfelder is rich in polyphenols, namely anthocyanins, which may prevent its grapes from mould infections (Liu et al. 2010; Ky et al. 2012). According to ANOVA (Tukey’s HSD0.05 test), all other varieties did not show any significant differences regarding their ergosterol content.

Fig. 2
figure 2

Box-plot graph according to Tukey of ergosterol content [mg/kg] of grapes from various varieties (n = 177) measured by HPLC-UV

Tentative thresholds of below 3.0 mg/kg and above 6.2 mg/kg ergosterol for sound and rotten grapes, respectively, have been derived from glycerol values suggested by Sturm (2009) due to the high correlation of the ergosterol and glycerol content (Porep et al. 2014b). In our study, 36 samples (20.3 %) showed ergosterol contents between 3.0 and 6.2 mg/kg. In total, six samples (3.4 %) had ergosterol contents above 6.2 mg/kg. Thus, from a phytosanitary point of view, nearly a quarter of the grape samples under investigation may be considered as conspicuous or definitely rotten by moulds. This observation is in agreement with the anecdotal report of the infection rate of vintage 2013, which was purely visually determined (A. Maier, Genossenschaftskellerei Heilbronn, pers. communication).

Statistical analysis revealed good correlation of ergosterol with both glycerol (R 2 = 0.876) and gluconic acid (R 2 = 0.708) (data not shown). The correlation for glycerol confirmed earlier findings (R 2 = 0.911), while the correlation with gluconic acid was much higher than previously determined (Porep et al. 2014b). These metabolites are also indicators of mould infestations; thus, their correlation with ergosterol is not surprising (Zanardi et al. 2013; Cetó et al. 2011).

Spectral Properties

The mean spectrum and the SD spectrum of all samples are shown in Fig. 3. In the VIS range, spectra are essentially influenced by pigments contained in grape berries, namely chlorophyll a and b, carotenoids and anthocyanins. The highest SD observed at around 550 nm may be ascribed to the latter (Agati et al. 2007), which was to be expected because both white and red varieties were included in the sample set. High SD near 740 nm can be ascribed to water combination bands, but C–H and other O–H groups influence this area as well. In the NIR range considered, absorption bands referring to O–H bonds of water, aliphatic alcohols and phenols; C–H bonds of aliphatic and aromatic hydrocarbons and N–H bonds of (aromatic) amines and amides are generally predominant (Workman and Weyer 2008). As expected for the highly water containing grape mashes, the spectra were dominated by the water band at 1440 nm (first overtone of the O–H stretch) (Bokobza 2002). Moreover, further O–H bands, e.g. of sugars, N–H bands, e.g. of proteins, and C–H bands are also related to this area. The adjoining part of the broad peak up to 1600 nm is generally attributed to the first overtone of the hydroxyl group of hydrogen-bonded alcohols but as well as to various other O–H, C–H and N–H groups. Further marked local maxima were observed at around 1100 nm (possibly the second overtone of the terminal methylene C–H stretch) and 1200 nm (possibly second overtones of C–H stretching and O–H combination bands of water) (Workman and Weyer 2008). Additionally, spectral variation could be observed at similar bands in the PLS loading plots of the PLS factors of the NIR/VIS model comprising the vintage 2013 with a dependent test set (Fig. 4). Comparable spectral properties were reported by other authors for intact grape berries (Ferrer-Gallego et al. 2011; González-Caballero et al. 2010) and grape homogenates (Janik et al. 2007).

Fig. 3
figure 3

Mean spectrum (solid line) (calculated from the arithmetic mean of each wavelength) and standard deviation spectrum (dashed line) (calculated from the standard deviation of each wavelength, upscaled by factor 10) of the online recorded near-infrared/visible (NIR/VIS) spectra of vintage 2013 (n = 177)

Fig. 4
figure 4

Partial least squares (PLS) loading plot of factors 1–9 of the NIR/VIS calibration models of vintage 2013 with dependent test set for ergosterol

Calibration Experiments

The results of different calibration models tested are shown in Table 2. The models relying on online recorded spectra of the combined NIR and VIS range were used as reference for the vintage 2013, like in our previous study (Porep et al. 2014a). Model performance was evaluated from the coefficient of determination of the calibration (R 2 cal), the RMSEC, the coefficient of determination of the cross-validation (R 2 CV), the RMSECV, the coefficient of determination of the validation (R 2 val), the RMSEP and RPD, respectively. The number of factors (latent variables) used for the model should minimise RMSECV or RMSEP. In case of insufficient number of factors, not all relevant information are covered, leading to underfitted, suboptimal calibration models. Contrarily, using too many factors goes along with redundancies and noise of the spectral variability within the calibration equation. Hence, the model becomes overfitted, thus being strongly data dependent with poor prediction results. Therefore, smaller numbers of factors together with approximately the same prediction error are favourable (Næs et al. 2002; Blanco Romía and Alcalà Bernàrdez 2009).

Table 2 Calibration and validation statistics of near-infrared (NIR) or near-infrared/visible (NIR/VIS) spectroscopic models for the prediction of ergosterol in grape mashes. Datasets were collected during the vintages 2010–2013 with offline or online measurements and validated with a separate dependent test set or in full cross-validation

The NIR/VIS calibration for the vintage 2013 with a separate dependent test set resulted in an R 2 val of 0.726, an RMSEP of 0.84 and an RPD of 2.0. Predictive performance with R 2 val values between 0.7 und 0.8 and a RPD value of about 2 are considered to be suitable for semi-quantitative predictions or rough estimations (Nicolaï et al. 2007). Further details about the data distribution of the calibration und validation are shown in Fig. 5. A leave-one-out full cross-validation of the same dataset showed a similar performance (Table 2). According to the number of PLS factors of the calibration models, the usage of the NIR region alone, in contrast to the addition of the VIS region as well, resulted in simpler models exhibiting similar performance (Table 2). Such models may be more robust on one hand; but on the other hand, valuable information may get lost. This has to be taken into consideration for future calibration models.

Fig. 5
figure 5

Calibration (cal) and validation (val) with an dependent test set of ergosterol of vintage 2013 by online NIR/VIS spectroscopy

Combination of the dataset of the offline measurements and the online measurements of the vintages 2010–2013 showed similar or even better results (Table 2), with, e.g. R 2 val = 0.735 and RPD = 2.1 for the NIR/VIS model with the dependent test set, but showed a higher RMSEP of 3.66 mg/kg. These findings are in accordance with the wider distribution and higher variance of the ergosterol levels of the respective samples. Moreover, compared to the offline calibration (2010–2012), with R 2 val = 0.851, RMSEP = 3.61 mg/kg and RPD = 2.72 (Porep et al. 2014a), the RMSEP reached was almost the same, and R 2 val and RPD indicated a lower performance, which, again, was in accordance with the data distribution with more samples of lower ergosterol values.

Prediction of the online measured values (2013) as an independent test set with the offline data (2010–2012) used for calibration did not perform satisfactory (data not shown). Hence, the calibration with the offline data appeared not to cover the necessary variance for a robust calibration reliably predicting these samples.

Deleting 10 and 11 % of the samples as outliers for NIR/VIS models of the vintage 2013 with dependent test set and full cross-validation, respectively, did not lead to significant model improvement (Table 2). Although the errors were lowered (RMSEP = 0.60 mg/kg and RMSECV = 0.52 mg/kg), the R 2 and RPD were just slightly improved with R 2 val = 0.850 and RPD = 2.0 for the dependent test set and R 2 CV = 0.844 and RPD = 2.2 for the full cross-validation, respectively. However, elimination of outliers may omit valuable information for a robust calibration model necessary for reliable sample prediction.

Some other studies about the determination of ergosterol in plant foodstuffs have been reported. The best predictive ability observed in a model for predicting the ergosterol content in maize meal showed an R 2 cal of 0.81 and a standard error of prediction (SEP) of 1.74 mg/kg (Berardo et al. 2005). For barley samples, the best performance reported was R 2 CV = 0.83 and RMSECV = 4.5 mg/kg (Börjesson et al. 2007). In red pepper powders, SEP = 7.7 mg/kg and R 2 val = 0.63 has been reported (Kim et al. 2003).

Conclusion

The suitability of ergosterol as an objective indicator of grape rot in commercial grape mashes has been verified. Moreover, the feasibility of ergosterol prediction under normal industrial operating conditions at wineries by online NIR/VIS spectroscopy has been confirmed. The performance achieved has been demonstrated to be appropriate for at least semi-quantitative ergosterol determinations, thus allowing the detection of conspicuous grape deliveries and a holistic quality assessment when considering further parameters. Objective detection of grape rot may be used for objective quality control and management in viticulture. Therefore, it may serve as a basis for improving the perceptive quality and food safety of wines. Based on the proposed methodology, fair and incentive pricing as well as the definition of threshold values for the rejection of rotten grape lots prior to their processing may be established.