Genetic Algorithm For UAV Path Optimization
Genetic Algorithm For UAV Path Optimization
Original papers
Placement and drone flight path mapping of agricultural soil sensors using
machine learning
Payton Goodrich a ,∗, Omar Betancourt a , Ana Claudia Arias b , Tarek Zohdi a
a
University of California Berkeley, Department of Mechanical Engineering, Berkeley, 94720, California, USA
b
University of California Berkeley, Department of Electrical Engineering and Computer Science, Berkeley, 94720, California, USA
Keywords: Accurate soil data, which can be collected with agricultural sensors spaced at the half-variogram range, is
Agricultural sensors crucial information for precision agriculture. Drones offer a unique advantage over other existing methods to
UAVs sample data from soil sensors because of the high density of sensors required to gather spatially granular data
Genetic algorithms
to capture soil variability. To determine the placement of sensors within an agricultural field, a novel sequential
Agent-based model
gap-reduction algorithm that minimizes sensor overlap was developed and used to assign sensor placement for
Geostatistics
four types of agricultural fields. A genetic algorithm optimized multi-agent flight paths for scanning sensors in
a simulated agricultural field using a robust agent-based model. The locations of soil sensors for a simulated
400 m center-pivot irrigation field were used to determine flight paths for swarms of 1-8 drones. Increasing the
number of drones in the swarm had a negligible effect on total energy expenditure but reduced the time to scan
the sensors from 19 min to less than three minutes. The proposed sequential gap reduction algorithm maximizes
the coverage of any arbitrarily-shaped agricultural field with fewer sensors than a grid-based distribution in
most cases. The proposed multi-agent flight path mapping can effectively and efficiently generate flight paths
for variable numbers of drones to scan all sensors. The framework proposed here can be utilized and expanded
for variable rate irrigation, precision application of biological control agents, and smart farming.
∗ Corresponding author.
E-mail address: paytongoodrich@berkeley.edu (P. Goodrich).
https://doi.org/10.1016/j.compag.2022.107591
Received 21 June 2022; Received in revised form 16 December 2022; Accepted 21 December 2022
Available online 27 December 2022
0168-1699/© 2022 Elsevier B.V. All rights reserved.
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
variability? Half of the spatial range – referred to hereafter as the ‘half- coordinate, and its size corresponds to an area. Three methods of
variogram range’ (Bachmaier and Backes, 2008) – can be used as a expressing an agricultural field in a digital format are discussed.
‘‘rule-of-thumb’’ to account for the spatial dependency of agricultural For agricultural fields that a simple geometric shape can approxi-
measurements (Kerry et al., 2010). The variance of a measurand, 𝑧, as mate – such as a rectangular field or a center-pivot irrigation field –
a function of distance is empirically given by: expressing the farm digitally is trivial. For a rectangular-shaped field,
⃗ [ (
the space is discretized into a grid of uniform pixels with dimensions
∑
𝑁( ℎ) ) ( )]2
⃗ = 1⋅ 1 ⃗ − 𝑧 𝑥⃗𝑖 proportional to the length and width of the physical field. For a center-
𝛾̂ (ℎ) 𝑧 𝑥⃗𝑖 + ℎ (1)
2 𝑁(ℎ) ⃗ 𝑖=1 pivot irrigation field, the field is bounded by a square grid of uniform
( ) ( ) pixels. Then, each pixel in the grid is tested to determine if the pixel’s
⃗ are the measured values of
where 𝛾̂ is the variance, 𝑧 𝑥⃗𝑖 and 𝑧 𝑥⃗𝑖 + ℎ coordinates are equal to or less than the physical field radius. This
the measurand 𝑧 at 𝑁(ℎ) ⃗ pairs of comparisons separated by the vector technique is demonstrated in Fig. 1A for a rectangular-shaped field and
⃗ Numerous studies have determined the spatial range of various soil
ℎ. Fig. 1B for a center-pivot irrigation field.
properties in various soil conditions (Robertson et al., 1997; Shahandeh When the boundaries of the agricultural field are not regularly
et al., 2005; Anthony et al., 2012; Kerry et al., 2010; Longchamps shaped, the field is defined by a list of consecutive coordinate points
et al., 2015), which demonstrates the fact that the half-variogram that form an enclosed shape when piecewise connected by polynomial
range itself varies depending on the geographic location and sampling curves. A ray tracing algorithm is adopted to determine whether or not
method (Kerry et al., 2010). Recently, Longchamps & Khosla analyzed a pixel is inside or outside of this boundary (Kumar and Bangi, 2018).
and tabulated the spatial ranges of numerous soil properties reported Given an enclosed boundary and a point in space, if one were to draw
in literature (Longchamps and Khosla, 2017), which can be used as an infinite vector in any direction originating from that point, it will
informed estimates for spacing sensors when no other information intersect the boundary an odd-numbered amount of times if-and-only-
about the soil is known. if the point is within the enclosed space, which is shown in Fig. 1C.
Geostatistically representative soil data can be collected with agri- This holds for all points in space except for points on the boundary,
cultural sensors spaced at the half-variogram range (Kerry et al., 2010). which must be determined explicitly. This way, the coordinates of each
The data gathered from these sensors can inform management tech- pixel are used as a point to determine if a pixel is inside the boundary
niques such as variable-rate technologies, which adapt to the hetero- and append it to a list. A more detailed explanation of this method is
geneities of an agricultural field and thus enable site-specific manage- described in the Supplementary Material.
ment (Kanter et al., 2019; Evans, 2001; Evans et al., 2013; Lo et al., Finally, satellite or drone visible-spectra images of agricultural land
2017). For example, farmers could tailor their nitrogen and water man- are already stored in a digital, pixelized format. Such images and
agement to site-specific conditions (Finger et al., 2019), which would, datasets are widely available from Google Earth, NASA Earth Observa-
tory, or the USDA cropland data layer, to name a few. Computer vision
in turn, reduce nitric oxide emissions, increase yields, and reduce
techniques can differentiate the arable land on a field from obstructions
fertilizer use (Ahrens et al., 2010). Other researchers have investigated
(such as roads, buildings, trees, and ponds) and store those pixels in
the use of machine-learning algorithms as tools for decision-making
a list (TOMBE, 2020; Akbari et al., 2021). This process is shown in
in precision agriculture (Jourdan and de Weck, 2004; Chlingaryan
Fig. 1D.
et al., 2018; Akbarzadeh et al., 2014; Patrício and Rieder, 2018; Sun
In all cases, it is important to note the physical dimensions that
et al., 2022). However, to the best of our knowledge, no authors have
a single pixel represents. It should also be noted that because each
optimized agricultural soil sensor placement using the half-variogram
method requires discretization of the field, the results are approxima-
range to inform the placement of sensors.
tions whose accuracy increases proportionally to the number of pixels
Because many sensors need to be distributed across an agricul-
used.
tural field to acquire granular enough data to capture soil variability,
drones offer a unique advantage over other existing methods to sample
2.2. Optimized sensor placement
data from the sensors (Sørensen et al., 2017). With drones and drone
accessories becoming less expensive, using multiple drones to simulta-
The optimal layout of sensors in an agricultural field is achieved
neously map sensors has become an attractive route to efficiently gather
when, using the fewest number of sensors possible, all points in the
data (Tosato et al., 2019; Bertalan et al., 2022; Pereira et al., 2022).
field are statistically represented by the data collected by sensors in
Machine-learning algorithms are a promising approach for generating
that field. For a given sensor, the data collected from that sensor is
flight path maps due to their ability to solve highly non-convex prob-
statistically significant for all points within a radial distance equal to
lems rapidly and even operate in real-time as a digital twin (Zohdi,
the half-variogram range of that sensor (Kerry et al., 2010). Thus,
2021b,a, 2022).
if one considers an agricultural field as a two-dimensional collection
This work develops a sequential gap reduction (SGR) algorithm that of pixels described previously, one can model sensors as circles with
determines an optimal distribution of soil sensors across an agricultural a radius equal to the half-variogram range. Using this definition for
field. The SGR algorithm is used to solve optimal sensor distribution optimal sensor placement, the problem is similar to the circle pack-
using the half-variogram range as the basis in four field geometries: ing problem. Circle packing (or more broadly, ‘‘object packing’’) is
a circular field, a rectangular field, a field with both circular and a well-researched area in mathematics that has many practical ap-
rectangular features, and a field shape determined from an image. plications (Hifi and M’hallah, 2009). Object packing aims to fit as
Finally, a methodology for sampling the sensor measurements using many of some objects within a domain as possible without any overlap
UAV swarms is proposed and characterized. between the objects. There are several algorithms that aim to optimize
object packing, such as random sequential addition (Widom, 1966),
2. Theory the Metropolis algorithm (Metropolis et al., 1953), and various particle
growth schemes (Donev et al., 2005a,b). The limit of packing efficiency
2.1. Digital expression of an agricultural field for equal-size circles in two dimensions is about 91% for a hexagonal
grid (Steinhaus, 1999). While circle-packing nearly describes the model
Similar to how an agricultural field can be defined in the real problem, there is one major caveat: no physical justification prevents
world as a geographic area at a location, a digital representation – or the circles (sensors) from overlapping. This ‘soft boundary’ makes it
‘simulation’ – of an agricultural field can be defined as some number of possible to achieve 100% coverage of the domain by allowing overlap.
discrete pixels, where each pixel’s position corresponds to a geographic If the only objective was to maximize the effective areal coverage of
2
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
3
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
Fig. 2. (A) Flowchart of the Sequential Gap Reduction algorithm used to place sensors in a digitized agricultural field. (B) Schematic depicting the action of the Sequential Gap
Reduction algorithm. (i) First, sensors are added to the field at randomly selected pixels within the field boundary such that there is no overlap between the sensors’ effective
coverage radius. The sensors are depicted as small black circles, and the sensor’s effective coverage area is depicted as a solid line encircling the sensor. (ii) Once it is no longer
possible to add any more sensors this way, the allowable minimum distance between sensors is decreased – represented by a dashed circle – while the effective coverage area of
the sensors remains the same. (iii) This process is repeated until all gaps have been filled and all pixels within the boundary are within the effective coverage radius of at least
one sensor.
et al., 2015). Each drone within the simulated framework, referred to where 𝑚𝑖 is the agent’s mass, 𝑎𝑖 is the agent’s acceleration, and 𝒏⋆ 𝑖 is
as an ‘agent’, has unique characteristics that determine how it interacts the agent’s propulsion vector.
with its surroundings, such as its environment and other drones. These The distance between an agent and other agents or sensors (here-
characteristic parameters take inspiration from the physics of molecular after referred to as ‘objects’) is imperative to calculate the propulsion’s
dynamics, where each agent is modeled as a point-mass particle that vector 𝒏⋆𝑖 . At each time step, the model calculates the Euclidean dis-
is attracted and repelled by other objects within the system (Zohdi, tance between objects, defined between agent 𝑖 with position 𝒓𝑖 and
2021b). The framework inputs are the field’s shape, the number of another object 𝑗 in the system at 𝑨𝑗 , as:
agents, and the sensor locations (targets). Depending on the field √
def
geometry and the locations of sensors within that field, the framework 𝑑𝑖𝑗 = ‖𝒓𝑖 − 𝑨𝑗 ‖ = (𝑟𝑖1 − 𝐴𝑗1 )2 + (𝑟𝑖2 − 𝐴𝑗2 )2 + (𝑟𝑖3 − 𝐴𝑗3 )2 . (4)
will output several suggestions of each drone’s trajectory. Agents follow
the simplified assumptions: The distance between an agent and other objects influences the
magnitude of the attraction or repulsion force it has towards that
• The effects of buoyancy, lift, drag, and gravity are of secondary particular object; Distant objects should have a weaker influence than
importance and may be neglected. near objects. Therefore, an exponentially decaying function is used to
• The agents may propel themselves in any direction in 3D space. calculate the interaction vector between an agent and an object:
• The agents may be idealized as point masses.
𝒏̂ 𝑖→𝑗 = (𝑤𝑎𝑡𝑡 𝑒−𝑐𝑎𝑡𝑡 𝑑𝑖𝑗 − 𝑤𝑟𝑒𝑝 𝑒−𝑐𝑟𝑒𝑝 𝑑𝑖𝑗 )𝒏𝑖→𝑗 . (5)
• The agents know the locations of all targets, obstacles, and other ⏟⏞⏞⏞⏞⏟⏞⏞⏞⏞⏟ ⏟⏞⏞⏞⏞⏟⏞⏞⏞⏞⏟
agents. 𝑎𝑡𝑡𝑟𝑎𝑐𝑡𝑖𝑜𝑛 𝑟𝑒𝑝𝑢𝑙𝑠𝑖𝑜𝑛
This framework is modeled in a fixed Cartesian basis in 𝒆1 , 𝒆2 , and where 𝑤𝑎𝑡𝑡 and 𝑐𝑎𝑡𝑡 are the weight and exponential decay coefficients of
𝒆3 where the position 𝒓, velocity 𝒗 and acceleration 𝒂 of a drone are the attraction term, and 𝑤𝑟𝑒𝑝 and 𝑐𝑟𝑒𝑝 are the weight and exponential
described as: decay coefficients of the repulsion term, respectively. 𝒏̂ 𝑖→𝑗 is calculated
for each type of object within the system, therefore agents and sensors
𝒓 = 𝑟1 𝒆1 + 𝑟2 𝒆2 + 𝑟3 𝒆3 ,
will have their own values associated with 𝑤𝑎𝑡𝑡 , 𝑐𝑎𝑡𝑡 , 𝑤𝑟𝑒𝑝 and 𝑐𝑟𝑒𝑝 . The
direction 𝒏𝑖→𝑗 is the unit normal vector in the direction of the object 𝑗
𝒗 = 𝒓̇ = 𝑟̇ 1 𝒆1 + 𝑟̇ 2 𝒆2 + 𝑟̇ 3 𝒆3 , (2)
relative to agent 𝑖 and is given by:
𝒂 = 𝒓̈ = 𝑟̈1 𝒆1 + 𝑟̈2 𝒆2 + 𝑟̈3 𝒆3 𝑨𝑗 − 𝒓𝑖
𝒏𝑖→𝑗 = . (6)
respectively. A schematic of this framework is shown in Fig. 3A. ‖𝑨𝑗 − 𝒓𝑖 ‖
The only force, 𝐹 , imposed on each agent, 𝑖, is the agent’s propul-
Generally, a larger attraction term relative to the repulsion term
sion, which is assumed to be of constant magnitude. Hence each agent’s
causes net propulsion towards sensor objects. The total interaction
equation of motion is described using Newton’s second law:
vector between agent 𝑖 and all objects of a particular type is the sum
𝑚𝑖 𝒂𝑖 = 𝑭 𝑝,𝑖 = 𝐹 𝒏⋆
𝑖 . (3) of all their interaction vectors, such as those shown in Fig. 3B. For
4
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
3. Computational model
instance, the total interaction vector given by all sensors on agent 𝑖 3.2. Optimized sensor placement
is:
𝑁𝑠𝑒𝑛𝑠𝑜𝑟𝑠
∑ Sensor optimization throughout a field is achieved using the SGR
𝑵 𝑠𝑖 = 𝒏̂ 𝑠𝑖→𝑗 (7) algorithm. The algorithm is as follows:
𝑗=1
where 𝑁𝑠𝑒𝑛𝑠𝑜𝑟𝑠 is the total number of sensors in the system. A similar 1. INITIALIZE: For a given vector of field pixels, 𝐹̄ , select a random
̄ a 𝑁𝑠𝑒𝑛𝑠𝑜𝑟𝑠 × 2 vector of sensor
pixel within it and append it to 𝑆,
calculation is used for finding the interaction vector influenced by
all other agents, 𝑵 𝑎𝑖 . A weighted sum of the total interaction forces coordinates, where 𝑁𝑠𝑒𝑛𝑠𝑜𝑟𝑠 is the number of sensors in the field.
of sensors and agents is normalized to give the final direction of 2. GENERATE: Select a random pixel, 𝑃 = (𝑝𝑥 , 𝑝𝑦 ), within the field
propulsion, i.e, 𝐹̄
3. TEST: For all 𝑆𝑖 , where 𝑆𝑖 = (𝑠𝑥 , 𝑠𝑦 ), if ‖𝑃 − 𝑆𝑖 ‖ ≥ 𝑅ℎ𝑣 , where
𝑊𝑠 𝑵 𝑠𝑖 + 𝑊𝑎 𝑵 𝑎𝑖
𝒏⋆
𝑖 = . (8) 𝑅ℎ𝑣 is the half-variogram range of the sensor, then append 𝑃 to
‖𝑊𝑠 𝑵 𝑠𝑖 + 𝑊𝑎 𝑵 𝑎𝑖 ‖
𝑆̄
Using this framework, the following algorithm determines the flight 4. SCORE: Calculate fitness as the ratio of 𝑁𝛤 to 𝑁𝑓 𝑝 , where 𝑁𝛤
paths: is the number of pixels within distance 𝑅 from any sensor pixel
𝑁
𝑆𝑖 : 𝛱(𝛬) = 𝑁 𝛤 .
1. INITIALIZE: Load in the sensor location data within the sim- 𝑓𝑝
ulated domain and position agents along one edge of the do- 5. ITERATE: If 𝛱 ≤ 𝑇 𝑂𝐿, loop to Step 2.
main. Assign weight and exponential decay coefficients for each
The algorithm’s speed can be further increased by incorporating a
object’s attraction and repulsion terms in Eq. (5).
spatial hash. Spatial hashing is further discussed in the Supplementary
2. OBSERVE: Each agent observes it’s surroundings to calculate
Material.
the attraction and repulsion terms and the optimal direction of
propulsion as described in Eqs. (3)–(8).
3. STEP: Each agent will apply its thrust and accelerate toward the 3.3. Flight path mapping
optimal direction.
4. TEST: If an agent is within the transmission range of a sensor, The algorithm for optimizing the system parameters for flight paths
the sensor is considered scanned and removed from the domain. for each drone is as follows:
5
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
6
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
Table 1
Flight path simulation parameters.
Symbol Type Units Value Description
𝑅𝑓 𝑖𝑒𝑙𝑑 Scalar m 400 Radius of the center-pivot irrigation field
𝑅ℎ𝑣 Scalar m 40 Half-variogram range
𝑅𝑡𝑟𝑎𝑛𝑠𝑚𝑖𝑠𝑠𝑖𝑜𝑛 Scalar m 2 Sensor transmission radius
𝑁𝑑𝑟𝑜𝑛𝑒𝑠 Scalar None 1–8 Number of drones in the simulation
𝑊𝑎 Scalar None [1, 10] Search bounds of interaction weight for agents
𝑊𝑠 Scalar None [1, 10] Search bounds of interaction weight for sensors
𝑤−𝑎𝑡𝑡 , 𝑤+𝑎𝑡𝑡 Scalar None [0, 1] Search bounds for attraction term weight coefficient
− +
𝑐𝑎𝑡𝑡 , 𝑐𝑎𝑡𝑡 Scalar None [0, 1] Search bounds for attraction term decay coefficient
𝑤−𝑟𝑒𝑝 , 𝑤+𝑟𝑒𝑝 Scalar None [0, 1] Search bounds for repulsion term weight coefficient
− +
𝑐𝑟𝑒𝑝 , 𝑐𝑟𝑒𝑝 , Scalar None [0, 1] Search bounds for repulsion term decay coefficient
𝐹 Scalar N 100 Drone magnitude of propulsion force
𝑚 Scalar kg 5 Drone mass
𝑣𝑚𝑎𝑥 Scalar m/s 10 Drone max velocity
𝑅𝑐𝑟𝑎𝑠ℎ Scalar m 2 Crash radius
𝑊1 Scalar None 0.6 Cost function weight associated with mapping sensors
𝑊2 Scalar None 0.1 Cost function weight associated with mapping speed
𝑊3 Scalar None 0.3 Cost function weight associated with crashed drones
𝑇 𝑂𝐿 Scalar None 0.05 Cost tolerance for GA
Fig. 4. Sensor placement using the (A–D) SGR algorithm and (E–H) hexagonal grid distributions using a 40 m half-variogram range as the effective sensing radius for various
field types. The orange circular markers indicate the sensor coordinates, and the black ring around the sensor indicates the half-variogram range that the sensor covers. (A–D)
Sensor placement for a circular field, rectangular field, user-defined boundary, and fields generated from an image using the SGR algorithm. (E–H) Sensor placement for a circular
field, rectangular field, user-defined boundary, and fields generated from an image using a hexagonal grid spacing. (I–L) Plots of the effective field coverage for a given number of
sensors corresponding to the field types above. The black curve is the field coverage for a distribution using the SGR algorithm, while the red line is for the hexagonal distribution.
flight path, which is even longer than the UGV. Finally, the optimized calculated from the path lengths and the average power of the vehicles
flight path for a single UAV is shown in Fig. 5C. When the agent- while neglecting the impact of start-stop behavior and turning. The
based optimization model is applied, the total path length is reduced to total energy consumed to scan all of the sensors in the field was 165
11.4 km. While the agent-based method is more energy efficient than kWh for UGVs, 0.32 kWh for UAVs performing a traditional sweep, and
the traditional sweeping method, the comparison is more difficult to 0.06 kWh for UAVs with optimized flight paths.
make against the case of UGVs, which consume power at a different To determine the ideal number of drones to use for sampling
rate than UAVs. The energy consumption of the three scenarios was data from the distributed sensors, flight paths for swarms of n = 1–8
7
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
Fig. 5. Comparison of different data sampling strategies in a 400 m radius center-pivot irrigation field. (A) Manned or unmanned ground vehicles are restricted to traversing crop
rows to prevent damaging the crops, which are radial in a center-pivot irrigation field. (B) A UAV performing a traditional sweep scan must execute tight sweeps to scan all the
sensors. (C) A UAV with an optimized flight path has a significantly shorter path than the other sampling options making it the most energy efficient.
Fig. 6. Flight paths of drones scanning sensors in a 400 m radius center-pivot irrigation field for swarms of (A) 1, (B) 2, (C) 3, (D) 4, (E) 5, (F) 6, (G) 7, and (H) 8 agents,
respectively.
drones were simulated. The optimized flight paths for the varying-sized
swarms are shown in Fig. 6, and the total flight path length and flight
time are shown in Fig. 7. Fig. 6A shows the flight path of a single agent.
Fig. 6B and C show the flight paths for two and three agent swarms,
respectively. In both cases, the agents frequently crossed each other’s
paths. As swarm size increases, such as for four agent swarms shown
in Fig. 6D, the agents crossed paths less, and each agent subdivided
the field into its own sections to scan the sensors within it, which is
generally more efficient and less prone to accidental crashes in the
event of interference or GPS malfunction. For swarms with five or
more sensors, as shown in Fig. 6E–H, more overlapping occurred as
agents began to compete over the same sensors. These results may
also depend on each drone’s initial starting position. The agents in this
example were placed at the edge and linearly spaced along the width
of the domain. However, one may choose to have the agents start along
the circumference of the field, somewhere within the field, or from
Fig. 7. Split-axis plot showing the total distance traveled (left) and the flight time to
a single point. A staggered start time would also vary the flight path read all sensors in a 400 m radius center-pivot irrigation field (right) for swarms of n
recommendations. = 1–8 agents. Each bar in the stacked bar plot shows the distance traveled for each
The benefits of employing a multi-agent swarm of drones are high- agent.
lighted in Fig. 7 where a different color indicates each agent’s total
energy consumed on the stacked bar chart. As the number of agents in-
creases, the time required to map all the sensors decreases. Meanwhile, path lengths decreased while the total flight path remained relatively
as the number of drones in the swarm increased, their individual flight consistent for all simulated swarm sizes. The distance traveled can be
8
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
Fig. 9. Sequences of flight paths in a 400 m radius center-pivot irrigation field for a four-agent swarm. (A) Initial configuration of the agents and sensors. (B–G) Development of
each agent’s flight path throughout simulated time.
9
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
Table 2
Optimal parameters for the top three performing design strings for flight paths of four drones.
𝑊𝑠 𝑊𝑎 𝑤𝑠𝑒𝑛𝑠𝑜𝑟
𝑎𝑡𝑡
𝑤𝑠𝑒𝑛𝑠𝑜𝑟
𝑟𝑒𝑝
𝑠𝑒𝑛𝑠𝑜𝑟
𝑐𝑎𝑡𝑡 𝑠𝑒𝑛𝑠𝑜𝑟
𝑐𝑟𝑒𝑝 𝑤𝑎𝑔𝑒𝑛𝑡
𝑎𝑡𝑡 𝑤𝑎𝑔𝑒𝑛𝑡
𝑟𝑒𝑝
𝑎𝑔𝑒𝑛𝑡
𝑐𝑎𝑡𝑡 𝑎𝑔𝑒𝑛𝑡
𝑐𝑟𝑒𝑝
2.38897 6.60861 0.38679 0.34980 0.41784 0.73018 0.28894 0.48590 0.69733 0.32812
2.38633 3.69574 0.36072 0.32646 0.35214 0.78264 0.29032 0.48498 0.72134 0.33702
2.42084 6.98402 0.39193 0.54399 0.69210 0.67569 0.27516 0.48624 0.68220 0.32287
Fig. 10. Flight paths for the top three performing design strings for a four-agent swarm in a 400 m radius center-pivot irrigation field.
decreased the amount of the total time it takes to complete the sensor Acknowledgments
scanning task within the field compared to a single drone.
The drone flight path mapping shown here does not account for The drone photography of the farm field shown in Fig. 1D is
topological features or weather conditions. Further extensions of this from the publicly available data set from senseFly. This and simi-
framework include adding variations in terrain height and additional lar datasets can be accessed at https://www.sensefly.com/education/
outside forces such as wind drag synced with weather data, to obtain datasets/. This work was partially supported by the National Science
a more accurate framework for digital twin capabilities. Foundation Graduate Research Fellowships, USA under Grant No. DGE
Agricultural drone flight path mapping applications are not limited 1752814, and the Advanced Research Projects Agency - Energy, USA
to reading sensors. Recently, drones in precision agriculture have taken award DE-AR0001013. This work was also partially supported by AFRI
a more physical role, such as aerial application of fluids, solids, and Competitive, USA Grant no. 2020-67021-32855/project accession no.
biological control agents. In 2015, the Federal Aviation Administration 1024262 from the USDA National Institute of Food and Agriculture,
approved the first crop-dusting drone capable of spraying pesticides USA. This grant is being administered through AIFS: the AI Institute
with tanks weighing more than 55 lbs. This approval allowed the rapid for Next Generation Food Systems. https://aifs.ucdavis.edu.
deployment of drones to spray soil amendments and seeds to precise
areas indicated by the soil-embedded sensors, reducing the amount of Appendix A. Supplementary data
irrigation runoff and seeds dispensed in unwanted areas. The flight path
model could also be modified for tasks such as orchard harvesting, Supplementary material related to this article can be found online
where the drone is programmed to collect fruits or nuts from trees and at https://doi.org/10.1016/j.compag.2022.107591.
deposit them into boxes.
References
CRediT authorship contribution statement Ahrens, T., Lobell, D., Ortiz-Monasterio, J., Li, Y., Matson, P., 2010. Narrowing the
agronomic yield gap with improved nitrogen use efficiency: a modeling approach.
Payton Goodrich: Generated the code and figures for the ‘‘digital Ecol. Appl. 20 (1), 91–100.
Akbari, Y., Almaadeed, N., Al-maadeed, S., Elharrouss, O., 2021. Applications, databases
expression of an agricultural field’’ and ‘‘optimized sensor placement’’ and open computer vision research from drone videos and images: a survey. Artif.
sections, Generated the figures for the ‘‘Results and Discussion’’ section Intell. Rev. 54 (5), 3887–3938.
and wrote the manuscript. Omar Betancourt: Generated the code and Akbarzadeh, V., Lévesque, J.-C., Gagné, C., Parizeau, M., 2014. Efficient sensor
figures for the ‘‘flight path mapping’’ sections, Generated the figures for placement optimization using gradient descent and probabilistic coverage. Sensors
14 (8), 15525–15552.
the ‘‘Results and Discussion’’ section and wrote the manuscript.
Anthony, P., Malzer, G., Zhang, M., Sparrow, S., 2012. Soil nitrogen and phosphorus
behavior in a long-term fertilization experiment. Agron. J. 104 (5), 1223–1237.
Declaration of competing interest Bachmaier, M., Backes, M., 2008. Variogram or semivariogram? Understanding the
variances in a variogram. Precis. Agric. 9 (3), 173–175.
Bertalan, L., Holb, I., Pataki, A., Négyesi, G., Szabó, G., Kupásné Szalóki, A., Szabó, S.,
The authors declare that they have no known competing finan- 2022. UAV-based multispectral and thermal cameras to predict soil water content –
cial interests or personal relationships that could have appeared to A machine learning approach. Comput. Electron. Agric. 200, 107262. http://dx.doi.
org/10.1016/j.compag.2022.107262, URL https://www.sciencedirect.com/science/
influence the work reported in this paper.
article/pii/S0168169922005750.
Cao, Q., Cui, Z., Chen, X., Khosla, R., Dao, T.H., Miao, Y., 2012. Quantifying spatial
Data availability variability of indigenous nitrogen supply for precision nitrogen management in
small scale farming. Precis. Agric. 13 (1), 45–61.
Cassman, K.G., Dobermann, A., Walters, D.T., 2002. Agroecosystems, nitrogen-use
Data will be made available on request. efficiency, and nitrogen management. AMBIO: J. Human Environ. 31 (2), 132–140.
10
P. Goodrich et al. Computers and Electronics in Agriculture 205 (2023) 107591
Chlingaryan, A., Sukkarieh, S., Whelan, B., 2018. Machine learning approaches for Longchamps, L., Khosla, R., 2017. Precision maize cultivation techniques. In: Achieving
crop yield prediction and nitrogen status estimation in precision agriculture: A Sustainable Cultivation of Maize Volume 2. Burleigh Dodds Science Publishing, pp.
review. Comput. Electron. Agric. (ISSN: 0168-1699) 151, 61–69. http://dx.doi. 127–157.
org/10.1016/j.compag.2018.05.012, URL https://www.sciencedirect.com/science/ Longchamps, L., Khosla, R., Reich, R., Gui, D., 2015. Spatial and temporal variability
article/pii/S0168169917314710. of soil water content in leveled fields. Soil Sci. Am. J. 79 (5), 1446–1454.
Comis, D., 2011. Growing crops and saving water in the west. Agric. Res. 59 (7), 12–14. MacDonald, J.M., Korb, P., Hoppe, R.A., 2013. Farm Size and the Organization of US
Dalin, C., Hanasaki, N., Qiu, H., Mauzerall, D.L., Rodriguez-Iturbe, I., 2014. Water Crop Farming. Tech. rep.
resources transfers through Chinese interprovincial and foreign food trade. Proc. Metropolis, N., Rosenbluth, A.W., Rosenbluth, M.N., Teller, A.H., Teller, E., 1953.
Natl. Acad. Sci. 111 (27), 9774–9779. Equation of state calculations by fast computing machines. J. Chem. Phys. 21 (6),
Deng, F., Zuo, P., Wen, K., Wu, X., 2020. Novel soil environment monitoring 1087–1092.
system based on RFID sensor and LoRa. Comput. Electron. Agric. 169, 105169. Mueller, M.W., Hehn, M., D’Andrea, R., 2015. A computationally efficient motion
http://dx.doi.org/10.1016/j.compag.2019.105169, URL https://www.sciencedirect. primitive for quadrocopter trajectory generation. IEEE Trans. Robot. 31 (6),
com/science/article/pii/S0168169919319222. 1294–1310.
Diacono, M., Rubino, P., Montemurro, F., 2013. Precision nitrogen management of Patrício, D.I., Rieder, R., 2018. Computer vision and artificial intelligence in precision
wheat. A review. Agron. Sustain. Dev. 33 (1), 219–241. agriculture for grain crops: A systematic review. Comput. Electron. Agric. 153,
Dieter, C.A., 2018. Water Availability and Use Science Program: Estimated Use of Water 69–81.
in the United States in 2015. Geological Survey. Pereira, F.S., de Lima, J., Freitas, R., Dos Reis, A., Amaral, L., Figueiredo, G.,
Donev, A., Torquato, S., Stillinger, F.H., 2005a. Neighbor list collision-driven molecular Lamparelli, R., Magalhães, P., 2022. Nitrogen variability assessment of pasture
dynamics simulation for nonspherical hard particles. I. Algorithmic details. J. fields under an integrated crop-livestock system using UAV, PlanetScope, and
Comput. Phys. 202 (2), 737–764. Sentinel-2 data. Comput. Electron. Agric. 193, 106645. http://dx.doi.org/10.
Donev, A., Torquato, S., Stillinger, F.H., 2005b. Neighbor list collision-driven molecular 1016/j.compag.2021.106645, URL https://www.sciencedirect.com/science/article/
dynamics simulation for nonspherical hard particles.: Ii. applications to ellipses and pii/S0168169921006621.
ellipsoids. J. Comput. Phys. 202 (2), 765–793. Ritchie, H., Roser, M., 2020. 𝐶𝑂2 and Greenhouse Gas Emissions. Our World in Data,
Evans, R.G., 2001. Center pivot irrigation. In: Agricultural Systems Research Unit, Vol. https://ourworldindata.org/co2-and-other-greenhouse-gas-emissions.
1500. North Plain Agric. Res. Laboratory. USDN-Agric. Res. Service. Robert, P.C., Rust, R.H., Larson, W.E., 1995. Proceedings of site-specific management
Evans, R.G., LaRue, J., Stone, K.C., King, B.A., 2013. Adoption of site-specific variable for agricultural systems: second international conference, march 27-30, 1994 thun-
rate sprinkler irrigation systems. Irrigation Sci. 31 (4), 871–887. derbird hotel, 2201 east 78th st., minneapolis, MN: conducted by the department
Finger, R., Swinton, S.M., El Benni, N., Walter, A., 2019. Precision farming at the nexus of soil science and minnesota extension service, university of minnesota. In: 2nd
of agricultural production and the environment. International Conference on Site-Specific Management for Agricultural Systems.,
Gellings, C.W., Parmenter, K.E., 2016. Energy efficiency in fertilizer production and use. Minneapolis, Minn.(USA), 1994. American Society of Agronomy.
In: Gellings, C.W. (Ed.), Efficient Use and Conservation of Energy. In: Encyclopedia Robertson, G.P., Klingensmith, K.M., Klug, M.J., Paul, E.A., Crum, J.R., Ellis, B.G., 1997.
of Life Support Systems, pp. 123–136. Soil resources, microbial activity, and primary production across an agricultural
Gupta, M., Khosla, R., 2012. Precision nitrogen management and global nitrogen ecosystem. Ecol. Appl. 7 (1), 158–170.
use efficiency. In: Proceedings of the 11th International Conference on Precision Sela, S., Woodbury, P., Van Es, H., 2018. Dynamic model-based N management reduces
Agriculture. Indianapolis, Ind, USA. surplus nitrogen and improves the environmental performance of corn production.
Hardin, R.G., Barnes, E.M., Delhom, C.D., Wanjura, J.D., Ward, J.K., 2022. Internet of Environ. Res. Lett. 13 (5), 054010.
things: Cotton harvesting and processing. Comput. Electron. Agric. 202, 107294. Shahandeh, H., Wright, A., Hons, F., Lascano, R., 2005. Spatial and temporal variation
http://dx.doi.org/10.1016/j.compag.2022.107294, URL https://www.sciencedirect. of soil nitrogen parameters related to soil texture and corn yield. Agron. J. 97 (3),
com/science/article/pii/S0168169922006068. 772–782.
Hedley, C.B., Yule, I.J., 2009. Soil water status mapping and two variable-rate irrigation Sørensen, L.Y., Jacobsen, L.T., Hansen, J.P., 2017. Low cost and flexible UAV
scenarios. Precis. Agric. 10 (4), 342–355. deployment of sensors. Sensors 17 (1), 154.
Hellerstein, D., Vilorio, D., 2019. Agricultural Resources and Environmental Indicators, Steinhaus, H., 1999. Mathematical Snapshots. Courier Corporation.
2019. Tech. rep. SU, S.L., Singh, D., Baghini, M.S., 2014. A critical review of soil moisture measurement.
Hifi, M., M’hallah, R., 2009. A literature review on circle and sphere packing problems: Measurement 54, 92–105.
Models and methodologies. Adv. Oper. Res. 2009. Sun, X., Fang, W., Gao, C., Fu, L., Majeed, Y., Liu, X., Gao, F., Yang, R., Li, R., 2022.
Hoy, R., 2021. Nebraska summary S1150A for Fendt 1050. Institute of Agriculture and Remote estimation of grafted apple tree trunk diameter in modern orchard with
Natural Resources University of Nebraska–Lincoln, URL https://digitalcommons.unl. RGB and point cloud based on SOLOv2. Comput. Electron. Agric. 199, 107209.
edu/tractormuseumlit/3481/. http://dx.doi.org/10.1016/j.compag.2022.107209, URL https://www.sciencedirect.
Jourdan, D.B., de Weck, O.L., 2004. Layout optimization for a wireless sensor network com/science/article/pii/S0168169922005245.
using a multi-objective genetic algorithm. In: 2004 IEEE 59th Vehicular Technology TOMBE, R., 2020. Computer vision for smart farming and sustainable agriculture. In:
Conference. VTC 2004-Spring (IEEE Cat. No. 04CH37514), Vol. 5. IEEE, pp. 2020 IST-Africa Conference (IST-Africa). IEEE, pp. 1–8.
2466–2470. Tosato, P., Facinelli, D., Prada, M., Gemma, L., Rossi, M., Brunelli, D., 2019. An
Kanter, D.R., Bell, A.R., McDermid, S.S., 2019. Precision agriculture for Small- autonomous swarm of drones for industrial gas sensing applications. In: 2019 IEEE
holder Nitrogen Management. One Earth 1 (3), 281–284. http://dx.doi.org/10. 20th International Symposium on" a World of Wireless, Mobile and Multimedia
1016/j.oneear.2019.10.015, URL https://www.sciencedirect.com/science/article/ Networks"(WoWMoM). IEEE, pp. 1–6.
pii/S2590332219301290. Widom, B., 1966. Random sequential addition of hard spheres to a volume. J. Chem.
Kerry, R., Oliver, M., Frogbrook, Z., 2010. Sampling in precision agriculture. In: Phys. 44 (10), 3888–3894.
Geostatistical Applications for Precision Agriculture. Springer, pp. 35–63. Zohdi, T., 2019. The Game of Drones: rapid agent-based machine-learning models for
Kumar, G.N., Bangi, M., 2018. An extension to winding number and point-in-polygon multi-UAV path planning. Comput. Mech. 65, 217–228.
algorithm. IFAC-PapersOnLine 51 (1), 548–553. Zohdi, T., 2021a. A digital-twin and machine-learning framework for the design of
Ladha, J.K., Pathak, H., Krupnik, T.J., Six, J., van Kessel, C., 2005. Efficiency of multiobjective agrophotovoltaic solar farms. Comput. Mech. 68 (2), 357–370.
fertilizer nitrogen in cereal production: retrospects and prospects. Adv. Agron. 87, Zohdi, T., 2021b. A digital-twin and machine-learning framework for ventilation system
85–156. optimization for capturing infectious disease respiratory emissions. Arch. Comput.
Lo, T.H., Heeren, D.M., Mateos, L., Luck, J.D., Martin, D.L., Miller, K.A., Barker, J.B., Methods Eng. 28 (6), 4317–4329.
Shaver, T.M., 2017. Field characterization of field capacity and root zone available Zohdi, T., 2022. A digital-twin and machine-learning framework for precise heat and
water capacity for variable rate irrigation. Appl. Eng. Agric. 33 (4), 559–572. energy management of data-centers. Comput. Mech. 1–16.
11