Introduction

The harvesting process and logistics of harvested fruit is a task that involves a large manual component, which has a significant impact on crop profitability (Ampatzidis et al., 2014). The way this operation is carried out differs depending on crop type. The most common method is that in which the fruit is harvested manually or mechanically from the trees and deposited in different storage systems such as small boxes, nets or big bags that are left on the ground close to the harvesting location (Ampatzidis and Vougioukas, 2009). These storage systems are loaded onto a trailer or other system that travels around the plot, and either taken to a location with a higher loading capacity or transported directly to the processing industry.

The procedure described above has two fundamental problems. On the one hand, when the harvest is unified in a single storage system such as a trailer, it is difficult to trace the fruit harvested at different locations on the plot. On the other hand, as there is no record of each harvested batch, it is not possible to ascertain the production of each harvested area for a detailed plot control. These problems can be reduced by using harvesters capable of incorporating recording systems called yield monitors (Fulton et al., 2018). However, due to their high cost, such harvesters are often not used by the small-scale farmers who produce a large amount of fruit for the sector (Plasquy et al., 2019, 2021).

This logistic problem of the fruit harvested by small producers is very common in the case of olive groves. For this crop, the most common technique among small producers is to harvest the fruit on nets, which are then dumped into other systems such as nets or boxes on the ground, or directly into small trailers located in the field (Ferguson, 2006; García and Yousfi, 2006). Finally, the content of the trailers is taken to other, larger capacity, trailers or directly to the industry, with no record of traceability beyond a manual record in a field notebook of the total kilograms of fruit harvested. The harvesting process carried out in olive groves is also frequently employed for other traditional crops. For citrus, it is common to manually harvest the fruit and dump it into big bags situated between the different crop rows in the field. Some research has contributed to the implementation of yield monitors by geo-referencing the big bags (Colaço et al., 2020). For other crops, such as apples or pears, harvesting also involves using small bags, the contents of which are then deposited into larger capacity bins (Guevara et al., 2021; Mizushima and Lu, 2013). The configuration of crops and plots, as well as a lack of machinery for their integral mechanisation, results in a high manual component with the consequent difficulty of implementing harvest control and traceability systems.

Yield monitors are composed of a direct yield measurement element by means of weighing (Maja and Ehsani, 2010) or by indirect estimation methods such as machine vision (Stein et al., 2016), time-of-flight (ToF) sensors (Gené-Mola et al., 2020), volumetric flow (Jadhav et al., 2014), drones with different sensors (Feng et al., 2020), and so on. In addition, weight measurement must be linked to geographical coordinates for which high-precision global navigation satellite system (GNSS) solutions are used to obtain an accurate yield map (Perez-Ruiz et al., 2021). Finally, yield monitors must incorporate a system to record information, either locally or remotely in cloud applications (Ampatzidis et al., 2016). The purpose of a yield monitor is to create yield maps that provide the farmer with information about the production per unit area (Underwood et al., 2016) and help decision-making through differential farm management. These systems are designed for large farms where advanced harvesting mechanisation and fruit logistics is possible; however, they are difficult to adapt to farms with a lower degree of mechanisation and technification such as those associated with small producers. Moreover, a mapping system for small fields may add complexities to data collection and usage that must be considered to maintain a good proportion of the map usable for decision making (Longchamps et al., 2022).

This work proposes a methodology and an instrumented mechanical logistics system for small producers that allows digital registration of the harvesting procedure and crop traceability. Our development is based on the case of olive groves, although, as the discussion section comments, with adaptation it could be very useful for other crops. The aim of the paper is to present this novel method and show its usefulness as a yield monitor. The following sections provide a detailed explanation of the developed system and its instrumentation, explain the methodology to be followed and show the tests conducted to validate its operation.

Materials and methods

Load handling system

The fruit management system consists of a conventional trailer for fruit storage, equipped with a telescopic hydraulic arm for loading and unloading big bags from the ground. Big bags are standard fruit storage systems that are laid out on the ground and onto which the harvested fruit is deposited. They can be hooked onto a loading system by means of rings at the corners of the bag (Fig. 1-1). The trailer has dimensions of 2200 × 1300 × 920 mm and a capacity for approximately 2000 kg of fruit. The arm, which is controlled by a radio control system (Fig. 1-2), rotates through 220° to enable loading on either the left or right side of the trailer, and can extend up to a length of 3000 mm. At the end of the arm there is a specially designed, inverted T-shaped implement in steel with two pins to hook the rings (two per pin) of standard big bags with different capacities (Fig. 1-3 and -4). The central part of the implement has a loading bolt installed. This is attached to the top of the implement and locked to prevent it from turning. The lower part of the implement hangs from the load bolt so that the load is always perpendicular to the ground to measure the weight correctly. To unload the big bags inside the trailer, a trigger is operated which releases one of the implement's pins, causing the big bag of fruit to fall by gravity and remain attached by means of the remaining support. The trailer is unloaded through the rear door by gravity thanks to a hydraulic cylinder that tilts the whole unit backwards.

Fig. 1
figure 1

Components of the yield monitor. 1 Transport trailer, 2 Electronic and hydraulic system for arm control, 3 Implement with loading bolt for weighing fruit, 4 Standard big bag for loading fruit, 5 Electronic system for geo-referencing fruit big bags, weighing and sending data, 6 Wireless electronic system for logistic configuration and visualisation, 7 RTK GNSS antenna

Electronic system

The control and recording system developed consists of an electronic system on board the trailer to weigh and geo-reference the fruit (Fig. 1-5) alongside a wireless electronic system to configure the harvesting method and view the parameters (Fig. 1-6). The core of the electronics system on board the trailer is a microcontroller board (Teensy 4.1, SparkFun Electronics, United States), which is connected via the I2C bus to a high-precision GNSS RTK system (ZED-F9P-02B-00, Ublox, Switzerland) to geo-reference the fruit (Fig. 1-7). Another module weighs the different loaded big bags. It consists of an Arduino microcontroller board (Arduino, Arduino Nano, Italy), a load cell amplifier (HX711, SparkFun Electronics, United States), a load bolt with 5 kN capacity and 0.5 kg resolution (F5301, TECSIS, Barcelona) and a CAN module (MCP2515, Microchip, United States) that sends the weight value to the main board. A radio frequency module (NRF24L01, Nordic Semiconductor, Norway) enables the information flow between the wireless system and the system on board the trailer. This information is sent to the cloud application via a 4G modem (Minilite, Microtik, Latvia). The whole electronic system on board the trailer is powered by its own built-in 12 V DC battery, which is connected to the alternator of the transporting vehicle for charging. The 12 V from the battery are supplied to two DC-DC Step-Down converters that stabilize and transform the voltage to 3.3 V DC and 5 V DC. Thus, the main board and the radio frequency module are powered at 3.3 V DC while the Arduino board and GNSS system are powered at 5 V DC. Only the modem is powered at 12 V DC. The wireless electronic system consists of an Arduino microcontroller board (Arduino, Arduino Pro-Micro, Italy), which communicates via serial bus with an 8" touch display (Nextion, NX8048P, Shenzhen) and another radio frequency module. Everything is powered by 3 rechargeable 4800 mAh batteries and another converter to adapt the voltage to 5 V DC to power the display and the Arduino board. Section ‘Harvesting and logistics methodology’ explains the configuration of the harvesting logistics, which is carried out by means of the display and sent to the electronic system on board the trailer.

Harvesting and logistics methodology

Achieving harvest registration and traceability with the proposed system requires a harvesting methodology compatible with the systems used. Figure 2 shows the different stages proposed:

  1. 1)

    Nets are placed under the trees in the same way as for a normal harvesting process. That is, a net is placed that covers the harvest area on each side of a row of trees. Perpendicular to where the nets lie, i.e., along a main row of the plot, the big bags are positioned on the ground, centred between the trees.

  2. 2)

    The fruit is detached with any harvesting system (Sola-Guirado et al., 2014), and the fruit from each tree falls onto the nets located on either side.

  3. 3)

    The fruit in both nets is grouped by manually moving the nets in the direction perpendicular to the main row, towards the location of the big bags, into which it is deposited. The empty nets are laid out in a new location to continue the harvest according to step 1.

  4. 4)

    In this way, the fruit contained in each big bag corresponds to approximately half of the trees harvested on both sides of the row. The number of trees must be established manually as described in section ‘Map generation procedure’ below.

  5. 5)

    On the other hand, an operator who is not involved in the harvesting process drives the instrumented trailer along the main row where the big bags are and positions the trailer close to the big bags. The operator then controls the telescopic arm to load the fruit onto the trailer by placing the rings of the big bag on the T-arm. When the big bag is suspended and static, pressing a touch button on the display records the weight and geo-references the content. Subsequently, the operator pulls the cable which activates the trigger of the implement, releasing one end of the big bag and allowing the fruit to fall into the trailer. The operator uncouples the remaining rings and removes the empty big bag. Finally, the operator moves the yield monitor to another weighing location and starts the sequence again.

  6. 6)

    The system automatically generates the batch and harvest maps on a cartographic basis for consultation in the cloud application. This map is created overlaid with the cartographic map and is based on different polygons (formed by the sectors to be harvested) which are coloured according to a scale of the weight of the batch per area harvested.

Fig. 2
figure 2

Proposed methodology for use of the yield monitor, adapted to the current logistics system. 1 Pre-placement of nets and big bags to receive olives, 2 Olive harvesting using a trunk shaker over nets, 3 Unloading olives onto big bags, 4 Moving the logistics system to the olive loading points, 5 Weighing olives in big bags and unloading to the trailer, 6 Recording in the application and visualisation of yield by coloured polygon map

Map generation procedure

It is necessary to enter a series of parameters into the system before harvesting in order to generate harvest maps. This is done manually using the wireless electronic system display shown in Fig. 3, and Fig. 4 illustrates some of these parameters:

  • Row width (Rw): distance between tree trunks in the perpendicular direction where the nets are placed.

  • Tree spacing (Ts): distance between two tree trunks in the perpendicular direction where the bags are placed.

  • Tree number (Tn): number of trees harvested per row for each storage system. This parameter will depend on the approximate production of the trees, bearing in mind that the capacity of each bag is approximately 200 kg.

  • Harvesting orientation (Ho): indicates the direction (left or right) in which the fruit is harvested from the storage system.

Fig. 3
figure 3

Interface developed for logistics configuration and parameter visualisation

Fig. 4
figure 4

Method of representing yield on a cartographic base map. The shaded area corresponds to the surface (m2) to which the big bag and the fruit weight value (kg) will be associated. The colour of the area indicates the yield (kg·m−2). O is the origin of the cartesian x and y planes. V1, V2, V3 and V4 are the vertices of the polygon delimiting the harvested area. P1, P2, Pn are the cartesian coordinate points where the different big bags are located. α is the angle formed by the line joining P1 and Pn with the x-plane. β is the angle formed by the side V1V3 of the polygon with the x-plane

With each big bag weighed, an information frame containing the parameters mentioned above is recorded in the internal memory. To these parameters are added the geographical coordinates obtained by GNSS RTK (latitude and longitude), the weight value in kilograms, the date and time of registration and a unique identifier that differentiates each big bag weighed (sub-batches). This identifier (Ids) consists of a 10-digit code of random numbers and letters generated by the microcontroller board. When the trailer is full, the operator finishes the logistical operation by pressing on the display to close the batch, which consists of the sum weight of all the big bags. At that moment, each of the information frames previously recorded in the display’s internal memory are sent to the cloud application (described in the following section) together with another 10-digit identifier created for the batch (Idb). The batch corresponds to the loaded trailer. The trailer is then transported to the industry, where the fruit batch will be unloaded. Through the developed interface (Fig. 3), it is also possible to consult aspects concerning the GNSS system status, such as reception of georeferencing data, connection to the Networked Transport of RTCM via Internet Protocol (NTRIP) server, correction of coordinates, the status of mobile data connection and status of communication with the electronics on board the trailer.

Cloud-based application for yield estimation

The cloud application was developed in the open source Microsoft.NET framework which allows applications to be created to run natively on any operating system using tools, libraries and languages. It enables the polygons design and registration of plots for the big bags and batches of fruit harvested and representation of the information on a cartographic base map. In the representation, shaded polygons of different colours are generated according to a scale based on the kg m−2 weighed at each location during harvesting logistics. The procedure followed for the polygon representation (Fig. 4) was:

  • 1. The big bag and batch identifier parameters (Ids and Idb), Rw, Ts, Tn and Ho were extracted from the database, as were the geographical coordinates in decimal degrees notation of the different locations recorded for each big bag of fruit.

  • 2. The data were associated to a previously created plot. The methodology applied to create the plot and associate the georeferenced points to it was that of Bayano-Tejero et al., 2019.

  • 3. The geographical coordinates recorded in decimal degrees were converted to UTM geographical coordinates (x,y) expressed in metres (Snyder, 1987), obtaining the different points (P1,…Pn).

  • 4. The r line inclination formed by the initial and final geographical points P1 = (x1, y1) and Pn = (xn, yn) with respect to the easting plane (x) was calculated (Eq. 1).

    $$\alpha =\mathrm{arctan}(\frac{{y}_{n}-{y}_{1}}{{x}_{n}-{x}_{1}})$$
    (1)
  • 5. The vertices V1,n, V2,n of the polygon were obtained. To do this, first the distances (dx,v1v2, dy,v1v2) on both x and y axes were calculated (Eq. 2 and Eq. 3). Then, the coordinates of the two vertices V1,n, V2,n were found for each point (P1,…Pn), one on each side of the point on the r line (Eq. 4 and Eq. 5).

    $${d}_{x,v1v2}=\frac{{R}_{w}}{2}\cdot cos\alpha$$
    (2)
    $${d}_{y,v1v2}=\frac{{R}_{w}}{2}\cdot sin\alpha$$
    (3)
    $${V}_{1,n}=\left({x}_{v1,n}, {y}_{v1,n}\right)=({x}_{n}-{d}_{x,v1v2},{y}_{n}-{d}_{y,v1v2})$$
    (4)
    $${V}_{2,n}=\left({x}_{v2,n}, {y}_{v2,n}\right)=({x}_{n}+{d}_{x,v1v2},{y}_{n}+{d}_{y,v1v2})$$
    (5)
  • 6. The vertices V3,n and V4,n were calculated. For this purpose, the distance on the x and y axis, (dx,v1v2, dy,v1v2) were calculated (Eq. 6 and Eq. 7).

    $${d}_{x,v1v3}={T}_{n}\cdot {T}_{s}\cdot cos\beta$$
    (6)
    $${d}_{y,v1v3}={T}_{n}\cdot {T}_{s}\cdot sin\beta$$
    (7)

    Travel direction on the xy plane (easting and northing) was then calculated by the difference between the coordinates of points P1 and Pn. This determined the travel direction on the plane during logistics, and thus the quadrant in which these points were located (Q1–Q4).

    $${x}_{n}>{x}_{1} and {y}_{n}>{y}_{1} \to {Q}_{1}$$
    $${x}_{n}<{x}_{1} and {y}_{n}>{y}_{1} \to {Q}_{2}$$
    $${x}_{n}>{x}_{1} and {y}_{n}<{y}_{1} \to {Q}_{3}$$
    $${x}_{n}<{x}_{1} and {y}_{n}<{y}_{1} \to {Q}_{4}$$

    Based on the Q quadrant result and the parameter Ho, the following equations (Eq. 8–Eq. 15) were applied for calculation of vertex coordinates V3,n and V4,n.

    If Q1 and Ho = left or Q3 and Ho = right, then

    $${V}_{3,n}=({x}_{v1,n}-{d}_{x,v1v3},{ y}_{v1,n}+{d}_{y,v1v3})$$
    (8)
    $${V}_{4,n}=({x}_{v2,n}-{d}_{x,v1v3}, { y}_{v2,n}+{d}_{y,v1v3})$$
    (9)

    If Q2 and Ho = left or Q4 and Ho = right, then

    $${V}_{3,n}=({x}_{v1,n}+{d}_{x,v1v3}, { y}_{v1,n}-{d}_{y,v1v3})$$
    (10)
    $${V}_{4,n}=({x}_{v2,n}+{d}_{x,v1v3}, { y}_{v2,n}-{d}_{y,v1v3})$$
    (11)

    If Q3 and Ho = left or Q1 and Ho = right, then

    $${V}_{3,n}=({x}_{v1,n}-{d}_{x,v1v3}, { y}_{v1,n}-{d}_{y,v1v3})$$
    (12)
    $${V}_{4,n}=({x}_{v2,n}-{d}_{x,v1v3}, { y}_{v2,n}-{d}_{y,v1v3})$$
    (13)

    If Q4 and Ho = left or Q2 and Ho = right, then

    $${V}_{3,n}=({x}_{v1,n}+{d}_{x,v1v3}, { y}_{v1,n}+{d}_{y,v1v3})$$
    (14)
    $${V}_{4,n}=({x}_{v2,n}+{d}_{x,v1v3}, { y}_{v2,n}+{d}_{y,v1v3})$$
    (15)
  • 7. Once the 4 vertices coordinates forming the polygons were calculated, the UTM coordinates were converted to decimal geographical coordinates. For determination of each polygon colour, a scale of 11 colours was defined and intervals in kg m−2 were established. The converted georeferenced points defining a polygon and the associated colour were sent to the Google Maps API for representation on a cartographic base map.

  • 8. Subsequently, it is possible to access the cloud application and consult and export the data relating to the plot (batch ID, time, location, weight). To do this, access the IP address of the application with the credentials and select a plot from the drop-down menu to view the map associated with the registered production. A user demo has been created to show the application's utility (Supplementary material).

Tests for assessing the system

To evaluate the performance of the developed system, we conducted different tests of the GNSS system and the loading bolt, in addition to a test under real working conditions.

GNSS system accuracy

The system was statically placed outside in an area with a completely clear sky. Using the U-center v21.05 GNSS system software, geographic coordinates were recorded for 30 min from system start-up to check deviation and accuracy over time. The test was performed with and without receiving RTCM 3.x corrections via NTRIP. The reference base station used for the corrections belonged to the Andalusian Positioning Network (RAP) with identifier CRDB 13461M001 located in Cordoba at coordinates X = 342,765.562 m and Y = 4,193,718.831 m (UTM coordinates, zone 30S, datum ETRS89), 7200 m as the crow flies from the test location. To compare the accuracy and precision of the system with and without corrections we used the parameter twice the distance root mean squared (2DRMS), which indicates the radius in metres where the GNSS points are located with a probability between 95.4 and 98.2% (Specht, 2021) expressing the accuracy in 2D (Eq. 16).

$$2DRMS=2\cdot \sqrt{{\sigma }_{x}^{2}+{\sigma }_{y}^{2}}$$
(16)

σx and σy are the respective absolute standard errors of the UTM X and Y coordinates with respect to the mean of all points expressed in metres.

The horizontal dilution of precision (HDOP) and horizontal position accuracy (PACC H) parameters were also recorded. HDOP is a measure of the geometric quality of a satellite configuration in the sky and the lower the value the better the accuracy of the estimated horizontal position (latitude and longitude). PACC H is the estimate of horizontal position accuracy calculated during post-processing by the U-center v21.05 software. It indicates the horizontal position accuracy as a function of satellite parameters (Sanna et al., 2022).

Weighing system accuracy

First, it was verified that the installation of the loading bolt was suitable, and the measurements could be realised correctly regardless of the extension and elevation of the telescopic arm. Subsequently, a test was carried out to determine the response of the loading bolt to a constant increase in known weight, considering the variability in big bag weight that may exist between different productive areas of the plots. To this end, 16 weighing measurements were carried out, adding fruits of 15.07 ± 0.06 kg until reaching 240 kg, with 2 repetitions. This limit was set according to the maximum weight that the arm can carry when fully extended. The weight measured by the loading bolt was compared by means of a scale with a resolution of 1 g and a maximum range of 30 kg (PCE-TB30, PCE, Deutschland, Germany).

Performance of the system under real working conditions

The complete system was tested in an intensive olive grove with a square planting layout of 7 m row width and 6.5 m tree spacing, and in a traditional olive grove that also had a square planting layout of 9.5 m row width and 9 m tree spacing. Both plots were in Cordoba, in Lucena (37.392882, − 4.634364) and Aguilar de la Frontera (37.366609, − 4.641397), respectively in slope conditions between 3 and 7%. The plots were registered in the cloud application and harvested with the usual harvesting procedure, adapted to the logistics explained above. The process was carried out over an area of 1.8 ha in the case of the intensive olive grove and 2.35 ha for the traditional olive grove. The big bags were handled by operators qualified to carry out this task.

Results

GNSS system accuracy

Figures 5a and b show the accuracy of the georeferencing system. In Fig. 5a we observe that the 2DRMS of the system with corrections is much lower than the values calculated without corrections (0.58 and 1.82 m, respectively) measured from initial start-up. Figure 5b shows that the system with corrections becomes highly accurate very quickly after receiving the corrections, stabilising within 10 s of start-up. However, the system without corrections requires more time, around 250 s.

Fig. 5
figure 5

Circle determining the accuracy of the GNSS system with 95.4–98.2% accuracy (left). For the GNSS system with NTRIP corrections most points are in the centre of the blue circle, below the red dot. Evolution over time of error in UTM X and Y coordinates (right). The evolution of the X and Y errors over time with NTRIP corrections is similar, and the lines overlap

Considering only the recorded data and once both GNSS systems had stabilised, the accuracy and precision are considerably reduced with a 2DRMS value of 0.019 m for the system with corrections and 0.59 m without corrections. Considering the errors in terms of the X and Y coordinates (e_X, e_Y), the system with corrections presents an average error in X and Y of 0.008 ± 0.005 m and 0.017 ± 0.008 m respectively. The system without corrections presents an average error in X and Y of -0.018 ± 0.24 m and 0.31 ± 0.17 m, respectively. The HDOP and PACC H parameters took values of 0.53 ± 0.049 and 0.014 ± 4.32e-16 m, respectively for the system with corrections, which indicates good satellite data reception and therefore a good accuracy estimation. For the system without corrections, the HDOP and PACC parameters were 0.57 ± 0.047 and 0.308 ± 0.004 m, respectively.

Weighing system accuracy

Figure 6 illustrates the weighing system’s relative error. This remained stable, although there was a slight decrease as the weight measured by the loading bolt increased. The mean absolute error was 1.1 ± 0.99 kg. The higher relative errors measured at the beginning of the weighing process were due to the low weight in the big bag and the resolution of the loading bolt (0.5 kg) compared to the scale (1 g). Therefore, the weighing system gives high accuracy for the amount of fruit that the big bags will contain in the harvesting process, between 50 and 240 kg approximately.

Fig. 6
figure 6

Relative error of the load bolt to the scale. Black line indicates the linear regression model fit. Gray area indicates a 95% confidence interval

Results of work in real conditions

The average time measured for loading and unloading operations between the different big bags was 154.05 ± 31.49 s for the intensive olive grove and 158.50 ± 24.85 s for the traditional olive grove. In addition to this, we have to consider the time it takes to transport the fruit to the final harvesting point, once the trailer reaches full capacity or when another batch is to be started. This time will vary depending on the location of the plot from the industry or the intermediate harvesting point. Table 1 provides the batch data recorded for each planting system. Two batches of fruit per main row were estimated for each of the two plots so that the trailers did not reach their full capacity for each batch, thus avoiding batches that had very unequal weights.

Table 1 Information recorded for the batches during the tests for intensive and traditional olive groves

The cloud application generated the harvest maps, which were checked to ensure that they correctly represented the information (Figs. 7 and 8). It is possible to consult each of the big bags corresponding to each batch with its respective ID, weight and geographical coordinates by means of the batch ID (Table 1) through the user demo (supplementary material). Thus, it is possible to maintain traceability of the fruit. We observe a greater variability of colours in the harvest map generated for intensive olive groves, which indicates a greater variability in production between each of the different areas. The average production in this case was 0.66 ± 0.15 kg·m−2. In the case of the traditional olive grove, production between the different zones was much more stable, with an average production of 0.55 ± 0.08 kg·m−2. In both planting systems, we see that the least productive areas were in the rows adjacent to where the plot bordered with roads or gullies.

Fig. 7
figure 7

Yield map generated in the cloud application for the intensive orchard

Fig. 8
figure 8

Yield map generated in the cloud application for the traditional orchard

Discussion

The GNSS system with NTRIP corrections showed a high accuracy of around 20 mm. The initial deviations had a short time duration (10 s) and were due to system start-up, reception of georeferencing data, and corrections via connection to the NTRIP network. This aspect has no influence for the developed application since the operation mode is continuous and does not require switching the electronic system off and, if it is, the time required for stabilisation and provision of reliable data is assumable. In the case of the GNSS system without corrections, accuracy and precision were lower, and the time taken to provide more reliable data was longer (250 s). After this time, the system could also be used for the developed application as the error measured in X and Y is less than half the width of a row (3–3.5 m for intensive and 4–6 m for traditional) where the trailer runs. In this way, there is no risk of locating the polygon in another row or main row in the cloud application. However, without corrections, the different polygons would not be as well aligned with each other or arranged on the map as is the case when corrections are used. Even so, the GNSS system without corrections, also needs to be valid in these circumstances with regard to results obtained (Fig. 5), since the absence of mobile coverage is common in some rural areas (Cabrera-Castellanos et al., 2021). On the other hand, the time spent with the device switched on will influence obtaining better accuracy and precision in the geographic coordinates, so this is a factor to consider when there are no corrections (Valbuena et al., 2010). If greater accuracy is required, a base station could be located on the plot to send corrections to the system on board the trailer (Berber et al., 2012). Finally, the spatial distribution of the satellites in the sky above the measurement point was good as indicated by the HDOP parameter and this is also a factor that influences the accuracy of the coordinates obtained. (Hussain et al., 2020). However, there are several additional factors that affect the accuracy of a GNSS system, such as the number of satellites, multipath effects, ionospheric delay, the number of satellites, tree coverage, terrain slope or cloudiness of the sky, among others (Feng et al., 2021; Zuo et al., 2019).

The weighing system had an average absolute error of around 1 kg, which is low in accordance with the amount of fruit the big bags can carry. This allows small farmers and traditional olive growers to monitor their production very precisely. The telescopic arm used cannot handle more than 300 kg with the arm fully extended, although systems with a higher load capacity are available on the market. The loading bolt resolution (0.5 kg) resulted in less accurate results at the beginning of the tests with low weights and constant weight increments (15 kg). However, the error is negligible for higher weights such as can occur in traditional and intensive olive orchards, where the average production per tree is 60 kg and 20 kg, respectively (Fernández-Escobar et al., 2013; Lo Bianco et al., 2021).

The generated harvest or yield maps and their associated colours provide a quick overview of productivity differences between different areas of the plot. However, the maps are made in a discrete way, in line with the logistics used in many plantations, unlike other harvest maps that are generated with the continuous work of machinery (Maja and Ehsani, 2010) or by drones (Stateras and Kalivas, 2020). A future improvement would aim to automatically create coninuols interpolated yield maps, but would require a number of corrections and extra programming to display the information reliably.

The harvest maps generated were recorded in the database together with the olive orchard season, which forms a production history and allows the farmer to make a comparison with future maps of the same plot. This helps in decision-making about plantation management and in verification of the evolution over successive seasons. It also allows production comparisons between plots with different crop types, tree densities and different management methods (Vieri and Sarri, 2010).

The developed system is applicable to other crops that use square or rectangular planting layouts such as the almond or apple (Pantera et al., 2018). However, the proposed algorithm for polygon generation requires a square or rectangular planting layout for proper operation. For its application in irregular planting systems or in another configuration such as quincunx spacing (Javaid et al., 2017), the representation of the maps would not be reliable. This is due to the fact that the trees would not be aligned along contiguous rows, and it would be necessary to modify the proposed algorithm to obtain other polygon types.

The proposed electronic system and cloud application are adapted to the logistic system used in plantations that use big bags and trailers with an arm to load fruit. By means of the display, the system can be adapted to different field conditions such as the number of trees for each big bag and the planting layout of the plot. The designed loading and weighing system is independent of the telescopic arm, so it would be easy adaptable to another system. The loading system could be modified to other systems that handle boxes or use other means of fruit logistics, such as the tomato or pepper (Ahumada and Villalobos, 2011), following the methodology and instrumentation presented in this work.

The logistic process times between loading and unloading one big bag and moving on to the next were short, around 2.5 min. Therefore, the proposed system does not alter the workflow of operators as they only need to configure the display at the beginning of the logistic process or in the case of changes in the planting layout, harvesting direction or boundary rows of the plot, which usually have fewer trees. Even so, the interface is user-friendly, and configuration takes only a few seconds. Furthermore, the proposed procedure with big bags has the advantage that the harvesting and the logistics processes can be performed separately, i.e., fruit loading can be conducted in parallel or in series at any time, with the advantage that this brings in avoiding delays. With the operating times measured, full capacity of the trailer can be reached in around 30 min in the case of big bags with approximately 200 kg of fruit. Although it is possible that trailer capacity may not be fully reached due to weight differences between the big bags, the equidistant arrangement in space of the big bags and their association with the number of trees allows the acquisition of accurate yield maps. Other research shows proposals that are less close to reality as they are based on the average harvest for an area where the big bags are unevenly distributed (Fountas et al., 2011).

The proposed system also makes it possible to record the traceability of fruit batches thanks to an alphanumeric code associated with each big bag and the geographical coordinates. In addition, the entire batch or trailer carries another code associated with the respective codes of the big bags that constitute it. In this way, it is possible to ascertain which plot area a batch came from and take the appropriate decisions in the case of detected anomalies. For a traditional olive grove with an average production between 3500 and 6000 kg ha−1, depending on whether it is rainfed or irrigated, a complete trailer can correspond to an area between 0.33 and 0.57 ha. In the case of intensive olive groves with an average production between 5000 and 10000 kg ha−1, the trailer will correspond to an area between 0.2 and 0.4 ha (AEMO, 2020). The traceability control of the harvest is an added value to the product that could help revalue some plantation systems currently suffering gradual decline, as is the case of traditional olive groves (Fernández-Escobar et al., 2013).

Crop yield monitoring systems are usually expensive. In this case, the developed system is adaptable to a trailer that the producer usually has for different tasks. The cost of the complete system including all necessary elements (control operated arm, battery, loading bolt, T-shaped implement and display) is around €5000. This makes it possible for small producers, who cannot afford other, high cost harvesting and logistics machinery, to implement the developed system on small farms.

Conclusions

A yield monitor was developed for small producers based on a trailer with a manipulator arm equipped with a mechanical implement that allows the loading of big bags for olives. In addition, the yield monitor has an electronic system for weighing and geo-referencing the fruit batches. The data from the harvested batches are recorded in a cloud application that generates yield maps of the plot in a farmer-friendly way, and allows traceability of the harvested fruit batches. The geo-referencing and weighing systems were tested and reported very low error, which proves they are a valid option for the developed application. The complete system was used in real field conditions in both a traditional olive grove and an intensive olive grove with low logistic times according to the methodology described. The harvest maps generated for both plots provided an adequate visualisation of production that can be of great use for its management, either as a comparison between plots, or to control its historical evolution.