Introduction

Detailed and precise knowledge of production parameters (yield, quality, health status, etc.) is the basis for analyzing the effect of any agricultural practice. Fine mapping of production parameters, either yield or quality parameters, makes it possible to identify the origin of observed variability, whether associated with environmental factors or with agricultural practices, such as seeding, fertilization and irrigation among others (Simmonds et al., 2013). Yield and harvest quality parameters mapping requires specific sensors (when they exist), mounted on harvesting machines (Birrell et al., 1996; Momin et al., 2019). These sensors are sometimes costly and/or cumbersome to calibrate. Yield sensors are particularly common in arable crops, but they are not widely used, at least in France, for yield mapping. This is mainly due to calibration constraints required to obtain precise yield data (Lachia et al., 2021) and also for cost reasons (Longchamps et al., 2022). Remote sensing has been proposed to indirectly estimate field yield and its variability in viticulture. Most common approaches hypothesize that plant yield is correlated with photosynthetically active biomass at a key phenological stage of the crop (Longchamps et al., 2022). These approaches still need an important calibration step, which is almost block specific to relate vegetative index derived from remote sensing images with actual yield. Therefore, they are quite difficult to implement, and to our knowledge, there is still no commercial services available based on such an approach. As a result, spatial knowledge of yield and its variability is still a difficult variable for growers and advisors to obtain. Regarding harvest grape quality parameters, despite a few attempts (Baguena et al., 2009, Bramley et al., 2011), the situation is even worse. Indeed, these are parameters for which on-line measurements on a grape harvesting machine remain very difficult, and to our knowledge, there is still no grape harvesting machine able to measure grape quality parameters on the go. This is particularly problematic since many studies have shown that knowledge of harvest quality parameters is very important in terms of decision-making, since it contributes to the added value of the product and defines the entire wine-making process (McClymont et al., 2012). This difficulty to get yield and harvest quality parameters mapping is an important limitation for precision viticulture to be adopted.

As an alternative, low-cost methods using Global Navigation Satellite System (GNSS) tracking devices (TDs) have been developed for yield mapping in agriculture. Schueller et al. (1999) and Momin et al. (2019) have developed reliable methods, based on commercial TDs, to respectively generate yield maps of hand-harvested citrus and sugar cane. More recently, Bayano-Tejero et al. (2024) proposed their own TDs with an on-board weighing system to map olive production.

Momin et al. (2019) showed that it was possible to allocate sugar cane yield data measured at the receiving platform to a within block level from the geolocation of two machines: the harvester and the harvest trailer. Although it contained some inaccuracies, this approach was proven to be relevant. Moreover, it has the advantage of (i) being integrated into the organization and equipment of current harvesting methods, which allows for easy and rapid deployment as a retrofit, (ii) limiting operations regarded as tedious, such as the maintenance and calibration of on-board sensors and (iii) mapping all information collected at the reception dock without having to add additional specific sensors.

The approach proposed by Momin et al. (2019) is of great interest in viticulture. Indeed, many parameters (grape mass, sugar content, pH, total titratable acidity, yeast assimilable nitrogen content, etc.) are routinely carried out at the winery when the harvest is delivered. A total traceability of the harvesting process would therefore make it possible to reallocate this information to a within field level. To our knowledge, the use of TDs to map all harvest parameters commonly measured at the winery has never been tested in viticulture.

The objectives of this work are therefore (i) to implement and study the use of low-cost commercial TDs to generate production parameters mapping for viticulture. It proposes to investigate the applicability of the approach developed by Momin et al. (2019) to vineyard mapping. Compared to the work of Momin et al. (2019), the viticultural case is more complex since several harvesting trailers can operate simultaneously on the same harvesting site. The question that this study seeks to address is then to propose, design and validate a specific algorithm accounting for this specificity and to verify whether its application allows a total traceability of the harvest operations, (ii) to verify that only the time and geolocation information of vehicles equipped with low-cost tracking TDs, is sufficient to reconstruct agronomical relevant within-block maps of harvest parameters in viticulture, (iii) to identify the limit of the approach in terms of maintenance but also in terms of spatial footprint (resolution) of the maps, (iv) to verify whether the provided maps are relevant enough for the growers or the advisers to support decision and new management practices. To this end, a specific experiment was adopted with the vineyard manager based on the obtained maps.

Materials and methods

Study sites

The study took place in a vineyard estate located in the south of France, near Montpellier (Villeneuve-lès-Maguelone, WGS84—43.532300° N, 3.864230° E) during the 2022 harvest season (August–September). The area of the vineyard estate is 30 ha organized into 51 different blocks. A block refers to a section of the vineyard with uniform grape variety, rootstock, training system, same date of plantation, etc. A block commonly corresponds to a management unit. Harvesting was performed mechanically with a grape harvesting machine (Pellenc, Pertuis, France) mounted with two hoppers of 600 kg grape capacity each. During the harvest, once the harvesting machine was full, the hoppers were emptied into trailers towed to tractors that transferred the grapes to the vineyard cellar or to a wine-growing cooperative depending on the variety. Depending on the distance of the blocks from the winery, 2 to 3 trailers (with a maximum capacity of 3500 kg of grapes each) were used to ensure the continuity of the harvest operation.

Measurement of production parameters

Two measurement protocols were used depending on where the grapes were brought in: the vineyard cellar or the cooperative.

At the vineyard cellar, the trailers were systematically weighed. Harvest trailers are weighed in one single scale to get the mass of grapes. The mass of grapes is equal to the mass of the full harvest trailer minus the mass of the empty harvest trailer (this mass is measured at the beginning of the harvest season). The scale also registers the weighing time. In addition, a sample of grape must (30 centiliters) was collected inside the trailer and sent to a commercial laboratory specialized in oenological analysis (Institut Coopératif du Vin, Montpellier, France) to measure harvest quality parameters: sugar content (SC), total acidity (TA), pH, yeast assimilable nitrogen (YAN), organic nitrogen (ON). Given the filling of the trailer by the harvesting machine, the shakings during transport, and the precautions taken during sampling, this must sample is considered to be representative of the must contained in the whole trailer. After weighing and sampling, the harvest trailer may return to the field to get new grapes from the grape harvester or come back to the vineyard hangar.

At the wine growing cooperative, the harvest trailers are weighed at their arrival, when they are full of grapes, and at their departures when they are empty. After departure, the harvest trailers return to the field to get new grapes or return to the vineyard hangar. The potential alcohol percentage was calculated from sugar content but no additional must analysis was performed.

For both, vineyard cellar and wine growing cooperative, the accuracy of the calibrated scales mass measurement is ± 50 kg. The accuracy of the weighing scales time measurements is ± 1 s.

Geolocation of the vehicles

Each vineyard vehicle was equipped with a real-time kinematic (RTK) GNSS receiver embedded in a commercial tracking device (TD) manufactured by Samsys (Lille, France). A static RTK base, part of the Centipède RTK Network (Ancelin et al., 2022; INRAE, 2019) was installed near the winery, at a maximum distance of 5 km from any of the study blocks.

This type of TD was chosen because of (i) its low price (around 400 €/device), (ii) its accuracy (± 50 mm with RTK GNSS), (iii) its acquisition frequency (data recorded at 1 Hz), (iv) its ease of implementation (it is attached to the machine by a strong magnet system), (v) the accessibility of the data which are sent back by general packet radio service (GPRS) protocol to a server accessible via an application programming interface (API), and vi) its battery autonomy, given to be around 2 weeks by the manufacturer for an intensive use. Four TDs were used during the whole season; with one positioned on the grape harvester and three TDs positioned on each of the three harvest trailers.

The receivers used can either run on batteries or on the tractor power supply. However, in the case of TDs positioned on the harvest trailers, their goal was to track and record the location of the grapes crop during harvest. Considering that tractor/trailer pairing could change during a harvest day, TDs must be positioned on the trailer and not on the tractor to avoid any uncertainty. Therefore, for TDs on trailer, plugging the device into the tractor power supply was not easy and complicated to set up and manage. As a result, these TDs were running exclusively on batteries. For TD on harvester, it was plugged into the harvester power supply.

Spatial reallocation of data measured at the reception dock

The method relies only on time and geolocation measurements of the vehicles involved in the harvesting. The methodology, summarized in Fig. 1, is based on two types of events over the time:

  • A weighing event (WE); when a harvest trailer is weighed at the winery or at the cooperative,

  • A filling event (FE); when the grape harvester fills a harvest trailer.

Fig. 1
figure 1

Chronology of events during a harvest day with three WEs and 2 harvest trailers. Step 1: Association of harvest trailers to WEs and detection of FEs. Step 2: estimation of the harvesting time intervals (\({\Delta t}_{{WE}_{1}}\), \({\Delta t}_{{WE}_{2}}\), \({\Delta t}_{{WE}_{3}}\)) associated with the different WEs from WEs and FEs chronology

Regarding WE, each weighing event \({WE}_{i}\) (i = 1…\({N}_{WE}\), with \({N}_{WE}\) the number of WE) is defined as a vector. \({{\varvec{W}}{\varvec{E}}}_{{\varvec{i}}}=\boldsymbol{ }\left\{{{t}_{i}, {id}_{i},m}_{i}, {{\varvec{q}}{\varvec{p}}}_{{\varvec{i}}}\right\}\) where \({t}_{i}\) is the weighing time given by the scale clock, \({id}_{i}\) is the identity of the harvest trailer (\({id}_{i} = 1, 2, 3\)) weighed, \({m}_{i}\) is the grape mass and \({{\varvec{q}}{\varvec{p}}}_{{\varvec{i}}}\) is a vector which characterizes harvest quality parameters measured on a must sample from the harvest trailer. \({{\varvec{q}}{\varvec{p}}}_{{\varvec{i}}}=\left\{{SC}_{i}\right\}\) if the trailer is unloaded at the wine-growing cooperative and \({{\varvec{q}}{\varvec{p}}}_{{\varvec{i}}}= \left\{{SC}_{i}, {TA}_{i}, {pH}_{i}, {YAN}_{i},{ON}_{i}\right\}\); if the trailer is unloaded at the vineyard cellar. The identity of the harvest trailer \({id}_{i}\) associated to the weighing event \({WE}_{i}\) is determined as follows. First, the minimum Euclidean distance \({d}_{j}\) between the locations \({S}_{j}\) of each harvest trailer j (with j = 1, 2, 3, because there are three harvest trailers) during an interval of \([{t}_{i}-\Delta {t}_{s}, {t}_{i}+\Delta {t}_{s}],\) and the scale location SC is calculated for each harvest trailer:

$${d}_{j}= minimum(d\left({{\varvec{S}}}_{{\varvec{j}}}\left([{{\varvec{t}}}_{{\varvec{i}}}-\boldsymbol{\Delta }{{\varvec{t}}}_{{\varvec{s}}},\boldsymbol{ }{{\varvec{t}}}_{{\varvec{i}}}+\boldsymbol{\Delta }{{\varvec{t}}}_{{\varvec{s}}}]\right), {S}_{c})\right)$$
(1)

Then, the harvest trailer identity \({id}_{i}\) associated with the \({WE}_{i}\) corresponds to the harvest trailer j with the smallest minimum distance \({d}_{j}\) to the scale during the interval \([{t}_{i}-\Delta {t}_{s}, {t}_{i}+\Delta {t}_{s}]\) at the condition that this distance is inferior to a threshold distance \({s}_{WE}\) (maximum distance between harvest trailers and the scale during a WE). These conditions are sufficient to associate the right harvest trailers with measurements because harvest trailers came directly from the field and don’t stay near the scale while another trailer is weighed. Indeed, the value of \(\Delta {t}_{s}\) is chosen in order that during the interval \([{t}_{i}-\Delta {t}_{s}, {t}_{i}+\Delta {t}_{s}]\) of the measurement, only one harvest trailer mass is measured. For this purpose, \(\Delta {t}_{s}\) need to be inferior to the minimum duration between 2 mass measurements over the entire harvest season.

Regarding FE, each filling event \({FE}_{i}\) (i = 1…\({N}_{FE}\), with \({N}_{FE}\) being the number of FE) is defined as a vector; \({{\varvec{F}}{\varvec{E}}}_{{\varvec{i}}}=\){\({{\varvec{t}}}_{{\varvec{i}}}\),\({{\varvec{i}}{\varvec{d}}}_{{\varvec{i}}}\)} where \({t}_{i}\) is the filling time from harvester into the trailer and \({id}_{i}\) is the identity of the harvest trailer filled (\({id}_{i}= 1, 2, 3\)). \({FE}_{i}\) are detected when two conditions are satisfied. The first condition uses the spatial proximity between the grape harvester and the harvest trailers during filling. The second condition accounts for the minimum duration required to empty the grape harvester into a harvest trailer. This second condition was added in order to differentiate FE from simple machine crossings (e.g. when the grape harvester ends a vine row and passes close to a harvest trailer waiting on the border of the vine block).

$$d\left( {S_{j} \left( t \right), S_{H} \left( t \right)} \right) \le s_{FE} \,\forall t \in \left[ {t_{i} , t_{i} + \Delta t_{i} } \right]\,{\text{and}}\,\Delta t_{i} \ge \Delta t_{FE}$$
(2)

where, \({S}_{j}\left(t\right)\) and \({S}_{H}\left(t\right)\) are respectively the location of the harvest trailer j and of the grape harvester at time \(t\), \({t}_{i}\) is the filling time of the \({FE}_{i}\) when both conditions are satisfied. \({s}_{FE}\) is a threshold distance (the maximum Euclidean distance between grape harvester and harvest trailer during a FE). \({\Delta t}_{FE}\) is a threshold duration corresponding to the minimum time duration required by the grape harvester to fill an harvest trailer.

As the capacity of a harvest trailer is larger than the storage capacity of the grape harvester, several FEs can be carried out with the same trailer before a WE is observed. Therefore, the algorithm uses the whole chronology of FEs and WEs to estimate harvesting time intervals \({\Delta t}_{{WE}_{i}}\) associated to \({WE}_{i}\) (Fig. 1). For example, in Fig. 1, \(\Delta {t}_{{WE}_{1}}\) is associated with the first WE. For each \(\Delta {t}_{{WE}_{i}}\), harvester locations (points) are known. Then, at the end of the reallocation, each harvester location (point) is associated with a \({WE}_{i}\). The sector covered by the harvester locations inside a block, associated with a \({WE}_{i}\), will be called a harvest sector and noted \({HS}_{i}\).

The delimitation of each harvest sector \({HS}_{i}\) and the calculation of its corresponding area \({A}_{i}\) are performed in four steps:

  1. 1.

    First, harvester locations were filtered using the blocks data boundaries in order to keep only the intra-block harvester locations.

  2. 2.

    Second, a density-based spatial clustering of applications with noise (DBSCAN) algorithm (Ester et al., 1996) was used to identify geographical clusters of harvest machine locations within blocks. By using the convex hulls of these clusters, intra-blocks harvest zones are defined. This step is necessary in the case that the blocks are partially harvested by the harvest machine (for example, if some rows are harvested by hand, or if the decision of not harvesting a specific zone inside a block has been made). In the case that a block is totally harvested, the resulting intra-block harvest zone is equal to the block.

  3. 3.

    Third, a Voronoï tessellation (Arnaud & Emery, 2000) was used to define the spatial footprint (Voronoï polygon) of each grape harvester location (point) within the intra-block harvest zones. At this stage, each Voronoï polygon is associated with an intra-block harvester location (point) and its associated WE.

  4. 4.

    Finally, the Voronoï polygons corresponding to the same \({WE}_{i}\) are merged to form a unique entity, delimiting the harvest sector \({HS}_{i}\). The area Ai (in ha) of the harvest sector \({HS}_{i}\) is defined by \({A}_{i}\) = \({\sum }_{k =1}^{k ={K}_{i}}{A}_{k}\). Ak (in ha) is the area of the Voronoï polygons associated to the point of index k and \({K}_{i}\) is the number of points of the grape harvester path associated with a \({WE}_{i}\).

Production parameters mapping

Yield \({Y}_{i}\) in t ha−1, associated with a harvest sector \({HS}_{i}\), was then calculated as indicated by the following equation:

$${Y}_{i}=\frac{{m}_{i}}{{A}_{i}}$$
(3)

where, \({m}_{i}\) and Ai are respectively the mass of grape (in t) and the area (in ha) associated with the harvest sector \({HS}_{i}\). Yield per plant (\({YieldPP}_{i}\) in kg plant−1) of each specific harvest sector \({HS}_{i}\) is also calculated. This variable has an interesting agronomic value, it corresponds to the mass of grapes (\({m}_{i})\) divided by the number of productive plants (\({NP}_{i})\) of the considered \({HS}_{i}\):

$${YieldPP}_{i} =\frac{{m}_{i}}{{NP}_{i}}$$
(4)

In a harvest sector, the number of productive plants is equal to the original number of plants (\({NO}_{i})\), at the time of the plantation, minus the number of unproductive plants (\({NU}_{i}\)):

$${NP}_{i}= {NO}_{i}-{NU}_{i}$$
(5)

The original plants number \({NO}_{i}\) is equal to:

$${NO}_{i} = {\sum }_{k =1}^{k ={K}_{i}}({d}_{k}\times {A}_{k})$$
(6)

With \({A}_{k}\) (in ha), the area of the Voronoï polygon associated to the harvester location point of index k and \({K}_{i}\) the number of points of the grape harvester path associated with a \({WE}_{i}\). \({d}_{k}\) is equal to the original planting density (number of plants by hectare) of the block in which the point of index k is located. In the study, for most of the cases, harvest sectors are within a unique block (\({d}_{k}\) is then the same for all points), but in some cases a harvest sector may cover more than one block (\({d}_{k}\) may differ if the blocks planting densities are different). In the vineyard studied, unproductive vines were geolocalized manually over the whole vineyard using a RTK GNSS receiver, of accuracy 1–5 cm. The number of unproductive vines (\({NU}_{i}\)) inside a specific harvest sector is estimated from the localization of unproductive vines and the localization of the harvest sector.

Concerning harvest quality mapping, each harvest sector \({HS}_{i}\) is associated with a \({WE}_{i}\) and its \({{\varvec{q}}{\varvec{p}}}_{{\varvec{i}}}\) vector. For some harvest sectors \({HS}_{i}\), the quality parameters available will be \({{\varvec{q}}{\varvec{p}}}_{{\varvec{i}}}=\left\{{SC}_{i}\right\}\); if the grapes harvested inside this \({HS}_{i}\) were unloaded at the wine-growing cooperative; or \({{\varvec{q}}{\varvec{p}}}_{{\varvec{i}}}= \left\{{SC}_{i}, {TA}_{i}, {pH}_{i}, {YAN}_{i},{ON}_{i}\right\}\); if the grapes harvested inside this \({HS}_{i}\) were unloaded at the vineyard cellar. The potential alcohol PAi (in % v v−1)  associated with a harvest sector HSi is calculated by the following equation:

$$PA_{i}=\frac{SC_{i}}{16.83}$$
(7)

where SCi is the sugar content (in g l-1) associated with the harvest sector HSi

Implementation of the methods

The algorithm was implemented using the Python language (Van Rossum & Drake, 2009). The access to geospatial data from the Samsys API was done with the request library (Chandra & Varanasi, 2015). The geospatial data processing was made with the Geopandas library (Jordahl, 2014). Geometric operations (intersection, Voronoï tessellation) were performed with the shapely library (Gillies et al., 2007). The DBSCAN algorithm was implemented via scikit-learn machine learning library (Pedregosa et al., 2011). Dynamic html maps were made using the folium library (python-visualization, 2020) while static maps were made with QGIS software (QGIS Development Team, 2009).

Real use case definition

The spatialisation of the viticultural variables measured in this work is original. Our working hypothesis was that these new sources of information would necessarily lead to a desire from the vineyard manager to improve certain agricultural practices.

In order to validate this hypothesis, the different maps obtained were printed and presented to the vineyard manager. No specific method was used for this step; the aim was simply to observe the vineyard manager and identify any surprises or concerns such as unusually low or high sector values. The meeting also involved noting the hypotheses that were formulated by the vineyard manager to explain sectors with surprising values and identifying whether agronomic reasoning could be considered to change some agricultural practices in order to address any observed potential issues.

Once identified and analyzed, potential site-specific management practices were formalized with simple rules or classes value like: if X variable is Low and Y variable is High then a specific management (Mi) should be performed on the considered sector. A second step was considered to validate the application, the rules but also the thresholds (class) used to define the different levels (High, Low, etc.). This validation was performed in four steps: (i) compare the overall reasoning and rules to the literature knowledge, (ii) validate the classes and rule conclusions with an agricultural advisor, (iii) perform a final validation by the vineyard manager, (iv) validation by the latter of the conclusions in the form of a map and the resulting management units.

Results

The geolocation data of all the vehicles (1 grape harvester and 3 harvest trailers) were successfully recorded for the entire 2022 harvesting season and for the whole vineyard estate. As it is difficult to visualize this information over the whole vineyard, an example of the path of the grape harvester within a few blocks is shown Fig. 2. In total, there have been 87 WEs during the harvest season. The average mass of grapes per trailer was 2420 kg and a total of 208 t of grapes were harvested in the vineyard over a period of 5 weeks (17 days of harvesting). Table 1 summarizes main statistics on the duration between harvest trailer weighings at the vineyard cellar and at the wine growing cooperative. The mean time between two weighings is 38 min. This duration is approximately the duration necessary to fill a trailer. In a few cases, the duration between two harvest trailer weighings is short; the minimum duration is 3 min. Based on these statistics, \(\Delta {t}_{s}\) was chosen equal to 1 min in order to properly associate the harvest trailer to a weighing event at the vineyard cellar (\(\Delta {t}_{s}\) need to be inferior to the minimum duration between two weighing events: 3 min). Based on observed results, the maximum distance between tractor trailers and the scale during a WE was about 10 m. Indeed, even if RTK GNSS sensors are used with a centimetric accuracy, in presence of buildings (which are present at the scale location), the accuracy of the sensors is sometimes altered (because of multipath errors). The \({s}_{WE}\) parameter was then chosen equal to 10 m. Using these parameters, each WE was successfully associated with the right harvest trailer during the entire harvest season.

Fig. 2
figure 2

Example of intra-blocks grape harvester path recorded within some vineyard blocks over the harvesting season. The black lines correspond to block boundaries. Each color corresponds to a harvest sector associated with a WE. Mass of grapes and harvest time duration associated with WEs are displayed on the map

Table 1 Statistics of the duration in minutes between two harvest trailers weighings during the entire 2022 harvest season

During FE, the maximum observed distance between the TD mounted on the harvester and the TD mounted on the harvest trailer was equal to 15 m; \({s}_{FE}\) was then chosen equal to 15 m to be sure to not miss filling events. The minimum duration required by the harvester to fill a harvest trailer during the entire harvest season was equal to 1 min; \({\Delta t}_{FE}\) was then chosen equal to 1 min. Using these parameters, the FEs were correctly detected based on harvest machines geolocation and time information alone. Up to 4 FEs were recorded to fill a trailer before its departure from the block to the winery. No errors or uncertainties were detected, which allowed the allocation of each WE to harvest sectors based on WEs and FEs chronology.

Figure 2 shows an example of the grape harvester path during harvesting; each color corresponds to a specific harvest sector (HS) associated to a WE. Figure 2 highlights how measurements performed on the grape must at the winery can be traced back to within block locations. It also highlights the relevance of the geolocation of the grape harvester obtained with the RTK-TD, where each harvesting row could be properly identified. Moreover, very few outlier positioning data were detected over the season.

Figure 3a shows an example of the result of the Voronoï tessellation on the recorded data. The quality of the geolocation data makes it possible to estimate with accuracy the harvest sector areas. The total harvested area was found to be 26.2 ha which corresponded very well with the real area harvested mechanically. The mean yield of the whole vineyard estate was estimated to be 7.9 t ha−1. Figure 3b shows the histogram of the area of harvest sectors (i.e. area corresponding to a WE). The average harvest sector was 0.3 ha. The harvest sector areas were highly variable, ranging from 0.05 to 1.3 ha.

Fig. 3
figure 3

a Voronoï tessellation derived from the geolocation of the grape harvester. Each polygon color corresponds to a weighing event (WE). Boundaries of blocks are in black. Mass of grapes and harvest time duration associated with WEs are displayed on the map. b Histogram of the area of harvest sectors as identified by the methodology over the whole vineyard. The bars widths are equal to 0.05 ha

The proposed methodology allows the generation of maps for each measured production parameter. Yield, yield per plant (YieldPP), sugar content (SC) and potential alcohol (PA) maps cover the whole vineyard estate as trailer mass and sugar content were measured at the vineyard cellar and at the wine-growing cooperative. Maps relative to quality parameters such as total acidity, pH, yeast assimilable nitrogen and organic nitrogen don’t cover the whole estate because these quality parameters were measured only for the trailers which delivered the grapes at the vineyard estate (and not at the cooperative). Figures 4, 5 and 6 show respectively the yield per plant (YieldPP), the yeast assimilable nitrogen (YAN) and the potential alcohol (PA) maps derived from the proposed methodology for the whole vineyard estate.

Fig. 4
figure 4

Yield per plant (YieldPP) map of harvest sectors observed for the whole vineyard estate. Each color corresponds to a yield quartile computed at the vineyard estate scale

Fig. 5
figure 5

Yeast assimilable nitrogen (YAN) map of harvest sectors. Each color corresponds to a yield quartile calculated at the vineyard estate scale

Fig. 6
figure 6

Potential alcohol map of harvest sectors. Each color corresponds to a yield quartile calculated at the vineyard estate scale

To simplify the representation, the different harvest sectors were classified in 4 quartile classes. Each map highlights the variability that was observed both at the intra-block level and at the inter-block level. For example, the yield per plant of the harvest sectors ranged from 0.5 to 5.5 kg plant−1, the YAN from 59 to 281 mg l−1 and PA from 7.5 to 16.9% v v−1. An accurate description of the data and an access to these data is available in Gras et al. (2023).

Results on the use case

The presentation of the maps to the vineyard manager (VM) led him to question the relevance of the nitrogen fertilization as it has been performed over all the fields for several years. Indeed, until now, the VM applied a uniform 50 kg of nitrogen per hectare (kgN ha−1) in spring. Two sources of information provided by the project have led him to question this uniform management: the yield variability and the yeast assimilable nitrogen (YAN) variability. It should be noted that the significant increase in the nitrogen fertilizer price over the last 2 years and the objective to substitute the classical solid chemical fertilizers with more targeted application practices like foliar liquid nitrogen application (Gutiérrez‐Gamboa et al., 2022) have also contributed to consider changes in nitrogen management practices.

Figure 7 summarizes the decision rules formulated by the VM on the basis of observed yield and YAN values for each harvest sector. It shows that YAN is an important input variable for nitrogen modulation. Indeed, the literature considers that below 160 mg l−1, the YAN in the grape must is not high enough for wine fermentation to work properly. The literature also shows that it is difficult to directly relate nitrogen fertilization applied during the season (in spring) with YAN of the must (Verdenal et al., 2015). However, some studies have highlighted a direct linear relationship between an increase in YAN and the amount of nitrogen applied on the leaves a few weeks before harvest, at veraison (Verdenal et al., 2015). On the basis of this knowledge, the rules formulated by the VM clearly aim to increase nitrogen efficiency by considering a reduction in the doses applied in spring when the yield is high enough and by proposing a targeted foliar application to guarantee a YAN value higher than 160 mg l−1. In the peculiar conditions of the vineyard a yield of 1.75 kg vine−1 was considered by the VM as a limit under which the vines could experience vigor issues either due to nitrogen or water availability. The different rules account for these considerations:

  • ✓Rule 1: highlights sector where the situation is as expected in terms of YAN. Yield can be too low but not because of nitrogen availability. Without any other information, it was decided to keep the fertilization as it was (50 kgN ha−1 applied over the soil in spring). Note also that for some sectors, YAN was not available; in this case, and in the absence of any other information, the rule 1 applies, maintaining the fertilization that has been applied on the farm over the last years,

  • ✓Rule 2: highlights sector with a correct yield but a too low YAN. In this case, the vineyard manager decided to decrease spring fertilization to 30 kgN ha−1 while adding a target foliar application (20 kgN ha−1) a few weeks before harvest to increase YAN in grape must,

  • ✓Rule 3: highlights sectors with the worst situations; low yield and low YAN. They require more in-depth agronomical analysis (sanitary issues, soil, organic matter, water capacity, etc.) before a decision can be taken. This will undoubtedly lead to a rethinking of vine management (cover crop, irrigations, etc.). However, in the short term, the vineyard manager would implement a target foliar application (20 kgN ha−1) a few weeks before harvest to make sure to increase YAN in must.

  • ✓Rule 4: highlights sectors with high vigor and may be a high nitrogen availability. The vineyard manager considers to decrease significantly nitrogen fertilization in this case (only 30 kgN ha−1 in spring).

Fig. 7
figure 7

Decision rules defined by the vineyard manager on the basis of yield and Yeast Assimilable Nitrogen (YAN), the different rules aim at managing the nitrogen fertilization of the different sectors. Rule 1: nitrogen fertilization practice should be kept as it was before, Rule 2: reduction of nitrogen spring fertilization to 30 kgN ha−1 and addition of a foliar liquid fertilization with 20 kgN ha−1 at veraison stage, Rule 3: review fertilization and management practices (addition of organic matter, legumes, irrigation, etc.) and possibly supplement with foliar liquid fertilization with 20 kgN ha−1 at veraison stage, Rule 4: spring fertilization can be reduced to 30 kgN ha−1

Figure 8 shows the sectors concerned by a change in fertilization practices. Note that for the majority of sectors (70% of the vineyard area), Rule 1 applies which means that the fertilization remains unchanged or that YAN information was not available. Approximately 12%, 5%, 13% of the area is affected by rules 2, 3 and 4 respectively, which corresponds to a significant change for the vineyard manager. The amount of nitrogen applied goes from 1300 to 1267 kgN over the whole vineyard with the application of the rules. This new management strategy of the fertilization applied in 2023 does not really result in a reduction in the amount of nitrogen but more in improving the efficiency of the nitrogen applied.

Fig. 8
figure 8

Site specific nitrogen application map derived from information obtained over each sector and the rules combining YAN and yield

Discussion

During the whole harvest season, the method was able to map the origin of all yield and grape quality data recorded at the winery. This demonstrated: (i) the interest of low-cost commercial Tracking Devices (TDs) for mapping as no producer intervention was necessary during the harvest, apart from reloading the batteries every fortnight, (ii) the relevance of the proposed algorithm which, even with the presence of 3 trailers, could be automated and avoided ambiguities in the allocation of harvest data and, (iii) the retrofitting possibility of the approach on existing equipment without any additional workload for the machine operators, either for calibration or for maintenance issues (except for battery reloading).

The approach naturally has limitations since the spatial resolution of the measured data ranged from 0.05 to 1.3 ha. This variability could be explained by: (i) organizational constraints when, for example, at the end of the day, a harvest trailer returned to the winery while not completely full. In this case, the sector area assigned to the measurements will be small since it corresponds to a small harvested sector, (ii) the actual yield of the block, i.e. if the yield is low or there are a lot of missing vines, the area to be harvested will be larger to fill a trailer, as a result, the weighing event (WE) will be allocated to a large harvest sector and the spatial resolution will be very low. More generally harvest sectors depend on the actual yield and the capacity of the trailers. In the case of lower yield and larger trailers, the spatial resolution will be lower than that observed in this study.

Another limitation of the approach is the impossibility to observe variability along the direction of the vine rows. This can be a significant drawback for blocks where environmental factors drive yield and grape quality variability along the rows, as this approach will not detect this source of variability.

The algorithm proposed in this work needs to be tested in more situations to account for particular harvest organizations; for example, it would be difficult to identify the proper trailer during a filling event (FE) with two trailers waiting side by side to be filled by the grape harvester. This specific case didn’t occur during this study but it may lead to ambiguities in grape parameters reallocations. One solution would be to allocate the measured parameters from both trailers to the grape harvester positions. The drawback would be that this would generate larger harvest sectors with a subsequent loss in spatial precision.

Concerning TDs installed on trailers, one perspective will be to test the relevance of TDs equipped with dual-frequency GNSS receivers, or EGNOS receivers. Compared to RTK-TDs, they are less accurate, a few decimeters for the dual frequency GNSS receivers, and 1 to 3 m accuracy for the EGNOS receivers. This lower accuracy for TDs on trailer (not on the grape harvester) should not be a problem for characterizing FEs and WEs given the threshold distance values (\({s}_{FE}\) = 15 m and \({s}_{WE}\) = 10 m) resulting from this study. One advantage of dual-frequency GNSS receivers and EGNOS receivers is to present a higher autonomy compared to RTK-TDs. This is a major advantage when it comes to limiting maintenance requirements during the harvest, in particular checking and recharging the batteries at a critical period in terms of work. An other-significant advantage is that these receivers are less expensive. This could be an interesting solution for larger structures (such as cooperatives) with several hundred hectares to harvest and dozens of winegrower members. Indeed, deploying the project on this scale requires a larger number of TDs, as several harvesting machines can be used, and a larger number of trailers will also be involved in the harvesting works. On this scale, any solution that reduces the unit price of each TD and simplifies site maintenance is an important aspect in facilitating adoption. Further experimentations are required to determine which technology is preferable; dual frequency or EGNOS. From a pure cost point of view, EGNOS receivers are to be preferred as they are the cheapest, but the risk of errors in characterizing FEs and WEs with this less precise technology needs to be tested and verified. Concerning TDs installed on harvester, RTK-TDs with centimeter accuracy seems to be the best option; first, because battery autonomy is not an issue as the TD can be connected to the power supply of the harvester, second, because the centimeter accuracy is important to detect vines rows which are harvested but also to detect accurately when the grape harvester is within blocks boundary and collecting grapes.

It should also be noted that the project, although tested in a real farm, uses a simple configuration with one grape harvester, three trailers and two different delivery sites. Scaling up to larger structures, such as those described in the previous section, necessarily involves a higher number of harvesting machines and trailers working all together on the site. Our algorithm has not been tested in this situation and its robustness still needs to be validated. In particular, it will be necessary to check whether the algorithm of the FE and WE detection does not generate assignment errors or indeterminations when the number of TDs increases on a harvesting site.

Regarding the information provided to the vineyard manager (VM); it appears that, although limited in terms of resolution, it is relevant enough to raise agronomic questions and lead to concrete proposals for improving vineyard management practices spatially. The data resulting from the study has led to the emergence of a rationale that, as far as we know, had never been considered in precision viticulture; nitrogen management based on YAN and yield. Indeed, in the literature, most precision viticulture studies aimed at optimizing nitrogen fertilization based on plant vigor measurements either estimated by remote sensing (Valloo et al., 2023) or using on-board sensors on machines (Sozzi et al., 2023). To our knowledge, this is the first time that a reasoning based simultaneously on YAN and yield is considered for different nitrogen fertilization strategies in precision viticulture. The approach permits to map many variables that are commonly measured at the winery. This gives access to new sources of information that are currently impossible to measure with on-board sensors. These sources of information can be very useful in helping the VM to reconsider and optimize his farming practices as demonstrated in this study with nitrogen fertilization. This example remains simple in its approach, but the VM plans to take into account other sources of information, in particular vigor maps derived from remote sensing images, in order to refine certain decision rules. This shows the potential of this information, which makes sense to the VM in order to consider new management practices.

The VM adopted very quickly the maps generated here. Several reasons may explain this quick adoption: (i) harvest sectors are easy to handle and to understand for the VM, especially when compared to pixels or small zones resulting from high-resolution data which are sometimes more difficult to handle to define management zones, (ii) harvest sectors correspond to spatial units easily manageable since they fit with vine rows and mechanical interventions along the rows, (iii) the data generated are immediately understandable because they corresponds to the information and the units that the VM is used to (YAN in mg l−1, potential alcohol in % v v−1, etc.). For the VM, it requires much less effort to understand than some data commonly produced in precision viticulture like for example soil apparent resistivity in ohm.m or vegetation indices (NDVI, PCD, etc.). This rapid appropriation made it possible for the VM to consider experimentations on the farm based on the TDs in a second step. The overall idea of the VM is quite simple, since it aims at testing new management practices (inter row crops, soil tillage, manure, etc.) applied to a given number of rows forming a sector. The sector is then used to design the harvest operation. Since it is possible to get all the data (yield, pH, YAN, etc.) of this sector, it is then possible to have the results of the trial. The project enables on-farm experiments (Bramley et al., 2022) to be carried out, offering the possibility of simply measuring the characteristics of an experimental trial with classical harvesting operation.

Conclusions

The work demonstrated the potential of a retro-fitted low-cost and easy to implement TD to monitor the whole harvesting process in viticulture in order to obtain low-resolution yield and harvest quality maps. Based only on the timing and the geolocation of all the vehicles (harvest trailers and grape harvester), it demonstrated the possibility to automatically reallocate, at the within-block level, the grape mass and harvest quality parameters collected at the winery. Despite their low resolution, the provided maps were relevant enough for the vineyard manager to question his management practices and propose new variable management practices on a unique application. The approach still needs to be tested over another season and if possible, at the level of a cooperative, in order to verify the robustness of the proposed algorithm before considering its deployment towards the wine industry.