Agro Intelligence Research Press Agro Intelligence Research Press

Impact of Camera Selection and Target Distance on Deep Learning Weed Detection in Wild Blueberry

Original Research | Open access | Published: 25 November 2025
Volume 4, article number 109, (2025) Cite this article
You have full access to this open access article.
Download PDF
, , ,
  1. Department of AI for Tea Leaf Plucking and Grading Robotics, Faculty of Agriculture, Zhejiang University, Hangzhou, China
  2. Department of Smart Greenhouse Light Spectrum Optimization, Faculty of Agriculture, Nanjing University, Nanjing, China
  3. Department of Machine Learning for Soil Heavy Metal Prediction, Faculty of Agriculture, University of Melbourne, Melbourne, Australia
118 Accesses

Abstract

The effectiveness of herbicide spraying in agriculture can be significantly boosted by smart sprayers that deliver targeted, site-specific treatments rather than uniform broadcast applications. Researchers trained the YOLOv3-Tiny convolutional neural network (CNN) to identify two specific weeds—hair fescue and sheep sorrel—within photographs obtained from wild blueberry fields throughout Nova Scotia, Canada. A field evaluation was conducted across three commercial wild blueberry operations in Nova Scotia to investigate how camera type and target distance influenced detection performance. RGB images were acquired using a Canon T6 DSLR camera, an LG G6 smartphone, and a Logitech C920 webcam at varying distances from the weeds. Average F1-scores across each camera and image height pairing were assessed using a 3 × 3 factorial setup for hair fescue and a 3 × 2 factorial setup for sheep sorrel. Photographs taken at 0.98 m with the LG G6 and Canon T6 reached F1-scores of 0.97 when identifying at least one hair fescue tuft. At 0.57 m, the LG G6 and Canon T6 DSLR cameras attained F1-scores of 0.94 and 0.93, respectively, for spotting at least one sheep sorrel plant in each image. The Logitech C920 failed to detect sheep sorrel in 19 out of 27 tested combinations. Upcoming research will apply this CNN to direct real-time herbicide delivery via a smart sprayer. Furthermore, the model will power a web-based tool that can recognize these weeds and deliver location-specific guidance to support better decision-making. Detection of weeds via CNN technology promises enhanced management strategies, delivering notable cost reductions and improved environmental sustainability within the wild blueberry sector.

Explore related subjects
Discover the latest articles in related subjects:

Introduction

Wild blueberry cropping system 

Wild blueberries (Vaccinium angustifolium Ait.) represent a perennial crop indigenous to northeastern North America. These plants propagate via rhizomes [1] and typically reach heights of 5-30 cm [2]. Commercial cultivation follows a two-year cycle in which fields are pruned by flail mowing or burning after harvesting concludes in August and September of the second (crop) year. In the first (sprout) year following pruning, new growth emerges, and berry buds develop starting in August [1]. The plants stay dormant over winter before resuming active development in the crop year [1]. Harvesting commences once roughly 90% of the berries have ripened [2]. Before the successful mechanical harvester designed by Doug Bragg in 1981 [3, 4], wild blueberries were gathered manually using hand rakes. Advancements in management techniques, particularly the mechanical harvester, drove substantial growth of the wild blueberry industry across Canada [2, 5, 6]. 

Weed management practices 

Weeds present in wild blueberry fields reduce overall yield [7-9], disrupt harvesting machinery [10], and lower berry quality [10, 11]. In conventional cropping systems, weeds are controlled through tillage, crop rotation, or manual removal [12]. However, tillage and rotation are impractical for wild blueberries due to the crop’s perennial and rhizomatous characteristics [1]. Manual weeding incurs excessive expenses due to high labour costs [13], leading most producers to rely on blanket applications of liquid herbicides for weed control in wild blueberry fields [7, 11]. Hair fescue (Festuca filiformis Pourr.) ranks as the fourth most prevalent weed in Nova Scotia wild blueberry fields, exhibiting an adjusted frequency of 74.55% and occurrence uniformity of 37.37% [14]. This species forms distinctive tufts with slender, green-to-tan blades (Figure 1). Its uniformity value of 37.37% indicates that hair fescue occurs in discrete patches rather than being evenly distributed across entire fields. Hexazinone was the primary control method for hairy fescue until repeated use led to resistance [7]. Currently, pronamide offers the most reliable management [15], though its application cost exceeds twice that of hexazinone on wild blueberry land [16]. Sheep sorrel (Rumex acetosella L.) is the dominant weed in these fields, with an adjusted frequency of 97.58% and an occurrence uniformity of 64.44% [14]. It features easily identifiable small, arrow-shaped leaves that appear green or red (Figure 1). The 64.44% uniformity measurement indicates that large portions of the field remain free of this weed. Pollen released by sheep sorrel can elevate the risk of botrytis blight (Botrytis cinerea) on wild blueberry foliage [17], potentially advancing to fruit buds without proper intervention [18]. Control of sheep sorrel has involved hexazinone [7, 19] and pronamide [17] with inconsistent outcomes. Early-season sulfentrazone treatments have demonstrated reduced seedling numbers, suggesting potential as a future strategy [20]. Given the patchy distribution of both hair fescue and sheep sorrel, targeted spot spraying with smart sprayers could substantially decrease total herbicide requirements. 

Figure 1. Hair fescue and sheep sorrel growing in a sprout-year wild blueberry field during spring 2019 in Nova Scotia. The hair fescue tuft is characterized by its thin, green blades, while the sheep sorrel plants are characterized by their green and red narrow-shaped leaves. 

Figure 1. Hair fescue and sheep sorrel growing in a sprout-year wild blueberry field during spring 2019 in Nova Scotia. The hair fescue tuft is characterized by its thin, green blades, while the sheep sorrel plants are characterized by their green and red narrow-shaped leaves. 

Smart sprayers reduce overall agrochemical volumes by restricting application to weed-infested areas [21-27]. Esau et al. [23] created a targeted system relying on green colour segmentation for weed identification in wild blueberry fields. When mounted on a smart sprayer with cameras positioned 1.2 m above ground, it achieved a 44.5% reduction in agrochemical use compared with broadcast methods [21]. Subsequent refinements produced herbicide reductions reaching 78.5% [22]. Nevertheless, the approach struggled to differentiate between weeds sharing similar colours. Commercially available systems such as GreenSeeker and WeedSeeker1 in other crops also depend on green colour sensing. Colour co-occurrence matrix techniques enabled real-time targeting of goldenrod (Solidago spp.) in wild blueberry fields [25, 26]. This delivered agrochemical savings of up to 60.58% [25], yet required custom development for goldenrod and lacked straightforward adaptation to additional weed species. 

Convolutional neural networks in agriculture 

Convolutional neural networks (CNNs) constitute a sophisticated machine vision approach capable of accurately classifying entire images or individual objects inside them [28]. Training involves large collections of thousands of annotated images containing the intended objects. CNNs automatically extract relevant visual features and recognize associated patterns via error backpropagation [29] combined with repeated gradient-descent optimization [30]. Once the dataset is prepared, the process demands little ongoing user involvement, allowing straightforward adaptation to novel targets. Standard input resolutions range from 224 × 224 [31-33] up to 608 × 608 [34, 35], although higher resolutions can enhance detail visibility [33, 36]. Applications of CNNs in agriculture include weed identification [37-41], plant disease detection [42, 43], assessment of crop development and maturity [36, 44, 45], and livestock monitoring [46, 47]. 

Hennessy et al. [37] developed six CNN models with the Darknet framework [48] to recognize hair fescue and sheep sorrel in wild blueberry imagery. Training data were collected during April and May 2019 using eight different cameras. Results indicated that YOLOv3-Tiny [34] performed exceptionally well for these weeds and showed strong potential for guiding smart sprayer operations. The original 416 × 416 processing resolution was expanded to four higher resolutions, ranging from 864 × 480 to 1280 × 736 [37]. Model performance was evaluated at confidence thresholds of 0.15 and 0.25. F1-scores [49] for images containing at least one weed reached 0.94–0.97 for hair fescue and 0.87–0.90 for sheep sorrel. One notable drawback involved possible sampling bias in the training collection, as images were gathered without systematic location protocols, potentially favouring more obvious weed specimens while overlooking harder-to-detect cases. 

Contributions of this paper 

The current research applied YOLOv3-Tiny for detecting hair fescue and sheep sorrel from images acquired at 0.57 m, 0.98 m, and 1.29 m distances using three different colour cameras in Nova Scotia wild blueberry fields, Canada. Data collection occurred across three commercial sites on three separate days in May 2020, coinciding with typical herbicide application windows. Sampling followed an inverted “W” pattern within each field [11, 14, 17, 50]. Detection performance, measured by F1-scores, was compared across all camera-distance pairings for both weed types. Outcomes provide practical guidance for selecting appropriate cameras and determining optimal spray boom heights for smart sprayers. Integration of CNN-based detection for directing herbicide application can markedly lower the quantity of agrochemicals required for effective field management. 

Materials and Methods

Field image collection 

Image acquisition was performed on May 6, May 14, and May 25, 2020, within sprout-year wild blueberry fields. These dates were chosen to span the typical spring herbicide application period used by growers. Collection took place in three locations—Debert (45.4265° N, 63.4826° W), Folly Mountain (45.4829° N, 63.5755° W), and Portapique (45.4054° N, 63.6706° W), Nova Scotia—between 9:00 am and 3:00 pm daily. Sampling points in each field followed an inverted “W” pattern [11, 14, 17, 50]. The process began by advancing 10 paces along the field boundary, then 10 paces inward, perpendicular to that line. Plots were flagged at randomly selected intervals between 5 and 10 paces using Minitab 19.2. At each plot, images were recorded at one of three heights—0.57 m, 0.98 m, or 1.29 m—to reflect possible sprayer boom variations. The 0.98 m and 1.29 m heights closely matched those in the prior training dataset by Hennessy et al. [37] (0.99 ± 0.09 m, 1.35 ± 0.07 m), whereas 0.57 m represented a clear departure (0.52 ± 0.04 m). Height assignment per plot was also randomized via Minitab 19. Sampling continued until each field contained a minimum of three target and three non-target plots per height for both hair fescue and sheep sorrel (Table 1). Overall, 83 plots were included: 29 in Debert, 23 in Folly Mountain, and 31 in Portapique. 

Table 1. Number of target and non-target images collected for hair fescue and sheep sorrel. The images were captured three separate times on May 6, May 14, and May 25, 2020.

Field location

Target category

Overall total

1.29 m height

0.98 m height

0.57 m height

Debert

Hair Fescue

15

5

5

5

Non–Hair Fescue

14

6

4

4

Sheep Sorrel

9

3

3

3

Non–Sheep Sorrel

20

8

6

6

Folly Mountain

Hair Fescue

11

3

5

3

Non–Hair Fescue

12

4

3

5

Sheep Sorrel

12

4

4

4

Non–Sheep Sorrel

11

3

4

4

Portapique

Hair Fescue

17

7

4

6

Non–Hair Fescue

14

4

4

6

Sheep Sorrel

17

5

4

8

Non–Sheep Sorrel

14

6

4

4

Three cameras were used to capture images at each test plot. A Logitech C920 USB 2.0 webcam3 was fixed onto a tripod via an extension arm, directing the lens straight down toward the soil (Figure 2). Connection was made to the USB 3.1 port of an MSI Workstation laptop4 via a 2 m USB 3.0 extension cable, with all captures saved through Logitech Capture software at a resolution of 1920 × 1080. Every setting in Logitech Capture remained at factory defaults, except sharpness, which was reduced from 128 to 95 to eliminate tearing and unwanted visual artifacts (Figure 3). The C920’s autofocus would occasionally readjust on its own, leading to the adoption of a locked manual focus set at infinity. Selection of this camera stemmed from its status as an inexpensive consumer-grade device offering straightforward compatibility with Windows6 and documented earlier deployment in smart sprayer systems [51]. A total of eight individual Logitech C920 units were tested to verify that image-quality glitches and unpredictable autofocus shifts were not confined to a single defective unit. Every one of the eight units showed nearly identical issues. Images in matching orientation came from a Canon T6 DSLR camera7 and an LG G6 smartphone8, with lenses positioned right beside the Logitech lens (Figure 2). The choice of these two devices came down to their noticeably superior image clarity and expanded colour range relative to the Logitech c920. Resolutions reached 5184 × 3456 on the Canon T6 and 4160 × 3120 on the LG G6. Autofocus remained active with zero zoom on both, and the LG G6 used its regular lens rather than the ultrawide alternative.

Figure 2. Field experimental setup showing image capture in the Portapique field on May 25, 2020. A tripod with an extension arm was used to hold the Logitech C920 camera at 0.98 m above the ground, with the lens facing the laptop (L). The Canon T6 camera was held with the lens directly beside the Logitech C920 at the same height for image capture (R).

Figure 2. Field experimental setup showing image capture in the Portapique field on May 25, 2020. A tripod with an extension arm was used to hold the Logitech C920 camera at 0.98 m above the ground, with the lens facing the laptop (L). The Canon T6 camera was held with the lens directly beside the Logitech C920 at the same height for image capture (R).

Figure 3. Examples of image tearing and artifacts seen in the Logitech C920 images when the default sharpness setting was used.

Figure 3. Examples of image tearing and artifacts seen in the Logitech C920 images when the default sharpness setting was used.

Target dimension measurements 

Dimensions of selected hair fescue and sheep sorrel specimens were taken directly in the Debert field on May 1, 2020, specifically at plots arranged along the “W” pattern. As many as three examples of each weed species were assessed per location, whenever possible, yielding 25 total measurements for hair fescue and 24 for sheep sorrel. Length and width determinations were made using a ruler from an overhead viewpoint. Length corresponded to the maximum horizontal extent of the weed. Width represented the broadest distance at right angles to that length (Figure 4). Field of view (FOV) assessment involved laying a measuring tape across the ground directly under the Logitech c920 camera to establish the actual ground coverage at each of the three heights. Such data supported a better understanding of the CNN’s detection findings.

Figure 4. Example of the measurement method for a hair fescue tuft, with the red bounding box showing the length and width of the tuft. The base image was captured on April 26, 2019, with the Canon T6 camera at a sprout-year field in Debert, NS (45.4381°N, 63.4534°W). The image also shows branches and leaves from wild blueberry plants after mechanical flail mowing.

Figure 4. Example of the measurement method for a hair fescue tuft, with the red bounding box showing the length and width of the tuft. The base image was captured on April 26, 2019, with the Canon T6 camera at a sprout-year field in Debert, NS (45.4381°N, 63.4534°W). The image also shows branches and leaves from wild blueberry plants after mechanical flail mowing.

Image processing 

All collected field images were received and organized by date, field location, camera model, height, and target presence on the MSI Workstation Laptop featuring an Intel Core i9–9980H central processing unit (CPU)9 paired with an Nvidia RTX Quadro 5000 graphics processing unit (GPU)10. The YOLOv3-Tiny CNN was applied using the Darknet framework, employing the trained weights supplied by Hennessy et al. [37] to locate hair fescue and sheep sorrel in the images. Processing initially handled complete batches to determine the most suitable image resolution and detection threshold for effective identification of the two weeds. Network resolutions tested during trials included 1280 × 736 and 864 × 480, starting at a detection threshold of 0.15. Evaluation of each pairing relied on precision, recall, and F1-score calculations to assess success in spotting at least one target weed per image [49]. Derivation of these scores uses counts of true positives (tp), false positives (fp), and false negatives (fn). Precision consists of the ratio of true positives to total detections: 

(1)

Recall consists of the ratio of true positives to total actual targets: 

(2)

F1-score represents the harmonic mean of precision and recall: 

(3)

At the 0.15 threshold, precision consistently exceeded recall, prompting additional trials at lower thresholds of 0.10 and 0.05. Threshold reduction yields more true positives and false positives, thereby lowering precision while increasing recall. The highest overall F1-scores for both weeds emerged at 1280 × 736 resolution with a 0.05 threshold, and this pairing was used for all remaining evaluations.

Experimental design 

Testing of field images for hair fescue and sheep sorrel detection utilized the YOLOv3-Tiny CNN running on the Darknet framework with trained weights from Hennessy et al. [37]. Calculation of F1-scores indicating detection of at least one target weed per image covered every possible mix of date, field, camera, and lens height. Variance analysis was conducted in Minitab 19 to identify meaningful main effects and interaction terms. Hair fescue showed notable main effects of camera selection, image height, and field, as well as a significant three-way interaction among them. Deeper review for hair fescue applied a 3 × 3 factorial layout combining lens height (0.57 m, 0.98 m, 1.29 m) with camera (Canon T6, LG G6, Logitech c920) inside a randomized complete block design for each separate field. Mean F1-scores for the interaction between camera and lens height per field were calculated, followed by group comparisons using Tukey’s pairwise approach in Minitab 19. Examination of sheep sorrel followed a 3 × 2 factorial layout using the identical three lens heights, but excluded Logitech C920 results due to limited usable data from that device.

Results and Discussion

Optimal image resolution and detection threshold 

Detection of at least one hair fescue plant per image yielded F1-scores spanning 0.80 to 0.81 across threshold and resolution shifts (Table 2). Peak precision reached 0.85 at 1280 × 736 resolution with the 0.15 threshold, contrasting with the bottom precision of 0.78 seen at both resolutions under the 0.05 threshold. Maximum recall reached 0.85 at 1280 × 736 resolution with a 0.05 threshold and fell by just 0.01 when switching to 864 × 480. Across both weed types, the prevailing pattern indicated that threshold reductions enhanced recall values while sacrificing some precision. Resolution maximization proved especially critical for sheep sorrel identification. Training of the networks at 1280 × 736 resolution probably contributed to this outcome. On average, sheep sorrel F1-scores rose by 0.07 when using 1280 × 736 rather than 864 × 480, attaining the best value of 0.67 at the 0.05 threshold. Consequently, the 1280 × 736 resolution with a 0.05 detection threshold was the ideal setting for both weeds. These top F1-scores remained beneath the levels achieved by Hennessy et al. [37], which were 0.97 for hair fescue and 0.90 for sheep sorrel. Camera impacts receive focus here, yet the composition of the training dataset might also be a contributing factor. Staff members gathered training images by traversing fields and actively searching for target weeds, possibly leaning toward larger, more obvious examples. By comparison, the “W” sampling strategy implemented in the present work minimizes such bias. It delivers a truer picture of the occurrence patterns of hair fescue and sheep sorrel within wild blueberry fields.

Table 2. Precision, recall, and F1-scores for detection of at least one hair fescue or sheep sorrel target per image at varying detection thresholds and resolutions.

Threshold

Sheep sorrel

Hair fescue

Resolution

Empty Cell

F1-Score

Recall

Precision

F1-Score

Recall

Precision

Empty Cell

0.05

0.63

0.57

0.72

0.81

0.84

0.78

864×480

0.67

0.66

0.68

0.81

0.85

0.78

1280×736

0.10

0.58

0.48

0.73

0.80

0.79

0.81

864×480

0.65

0.59

0.71

0.81

0.79

0.84

1280×736

0.15

0.52

0.40

0.74

0.80

0.75

0.85

864×480

0.63

0.53

0.76

0.80

0.74

0.89

1280×736

Measurement of hair fescue and sheep sorrel targets 

Mean length and width of hair fescue tufts recorded at the Debert site came to 54.6 ± 15.9 mm and 42.6 ± 13.3 mm, respectively (Table 3). Sheep sorrel proved far smaller on average, measuring 11.0 ± 1.7 mm long and 6.0 ± 0.9 mm wide. Confidence intervals at 95% for hair fescue measurements showed much greater spread than those for sheep sorrel, pointing to higher size inconsistency among hair fescue tufts. Ground distance per pixel extended from 0.60 mm up to 1.35 mm inside 1280 × 736 images and from 0.89 mm to 2.00 mm inside 864 × 480 images (Table 4). Under both resolutions, subtle sheep sorrel characteristics became less clear at higher image heights. Pixel sizes reaching 1.35 mm and 2.00 mm translated an average sheep sorrel leaf width into merely 4 and 3 pixels. Greater resolutions could therefore be essential to support dependable sheep sorrel recognition. Furthermore, dust or soil accumulation on lenses might impair performance, particularly on the LG G6 and Logitech c920 models, whose lenses are smaller than the Canon T6’s. Study images displayed no evident dust effects, although this issue might emerge as a constraint once deployed in real commercial settings.

Table 3. Mean measurements of hair fescue and sheep sorrel plants at the Debert Site on May 1, 2020.

Target weed

Dimension

Mean measurement (mm)

Hair fescue

Length

54.6 ± 15.9

Width

42.6 ± 13.3

Sheep sorrel

Length

11.0 ± 1.7

Width

6.0 ± 0.9

Table 4. FOV of the Logitech C920 camera at each tested image height. The size of the field represented by each pixel at 1280×736 and 864×480 resolution was calculated based on the FOV.

Height (m)

Pixel size (864 × 480 (mm))

Pixel size (1280 × 736 (mm))

FOV (m)

Empty Cell

Empty Cell

Empty Cell

Width

Length

0.57

0.60

0.89

0.43

0.77

0.98

1.02

1.51

0.73

1.30

1.29

1.35

2.00

0.97

1.72

Effects of camera selection and image height 

Detection of hair fescue revealed significant main effects (P < 0.05) for camera type, image height, and field. Interactions also mattered, specifically the combined effect of image height and field, and the full three-way interaction among camera type, image height, and field. Meanwhile, the primary impact from the day of capture and various paired interactions — such as day with camera, day with height, day with field, camera with height, or camera with field — along with the triple combination of day, camera, and height showed no meaningful influence. When Tukey’s method compared the pairings of image height and camera type, the strongest outcome in Debert came via the LG G6 positioned at 0.98 m (F1-score = 0.97) (Table 5). The Canon T6 at the same 0.98 m distance ranked next (F1-score = 0.82) but blended statistically with several lower results. Folly Mountain posted its top scores at 0.98 m, whether using the Canon T6 or LG G6 (F1-score = 0.97). In Portapique, the LG G6 at 1.29 m achieved the best performance (F1-score = 0.92), yet it remained comparable to most other tested arrangements in that area. Camera differences stood out clearly in just one situation — Debert at 0.98 m — where LG G6 scored highest (F1-score = 0.97), Canon T6 came after (F1-score = 0.82), and Logitech c920 lagged (F1-score = 0.63). Only the LG G6 and Logitech C920 differed sharply from each other, while the Canon T6 sat in between, with no clear separation. The fact that nearly 70% of the starting training pictures were shot at a distance of 0.99 ± 0.09 m probably helped explain the strong success at 0.98 m.

Table 5. Effect of lens height and camera selection on mean F1-score for detection of hair fescue plants using the YOLOv3-Tiny weights trained by Hennessy et al. [37]. Test images were captured in Nova Scotia on May 6, May 14, and May 25, 2020. 

Height (m)

Camera

Field

Portapique

 

Folly Mountain

 

Debert

 

0.57

Canon T6

ABCD

0.84

CD

0.70

CD^

0.74

0.57

LG G6

ABCD

0.84

CD

0.72

CD

0.67

0.57

Logitech c920

ABCD

0.77

BCD

0.75

D

0.61

0.98

Canon T6

ABCD

0.83

A

0.97

ABCD

0.82

0.98

LG G6

ABCD

0.77

A

0.97

A

0.97

0.98

Logitech c920

ABCD

0.78

AB

0.96

D

0.63

1.29

Canon T6

ABCD

0.86

CD

0.72

ABCD

0.80

1.29

LG G6

ABC

0.92

ABCD

0.79

ABCD

0.81

1.29

Logitech c920

ABCD

0.89

ABCD

0.76

ABCD

0.82

^Means followed by the same letter(s) are not significantly different based on Tukey’s means comparison at α = 0.05.

In the process of calculating F1-scores for sheep sorrel, 19 of the 27 possible height-date-field setups with the Logitech c920 yielded no usable detections. Those situations recorded absolutely no true positives, forcing precision and recall to zero and blocking any F1-score calculation due to division by zero. Even the best average F1-score possible with the Logitech C920 only reached 0.44 (Table 6). The camera’s lower sharpness setting produced fuzzier details and weaker separation between hues (Figure 5). Adjusting such images beforehand to emphasize green areas might lift performance on both sheep sorrel and hair fescue, but it would probably slow computation noticeably. Model training was based solely on Canon T6 and LG G6 images, bypassing the Logitech C920 entirely. This imbalance appears to be responsible for the network favoring detections in the higher-quality Canon T6 and LG G6 images.

Table 6. Sheep sorrel detection results from YOLOv3-Tiny on images captured with the Logitech C920 camera at three wild blueberry fields in Nova Scotia.

Date

Field

F1-score

Height (m)

06-May

Portapique

0.22

0.57

0.44

1.29

14-May

Debert

0.29

0.57

0.33

1.29

Folly Mountain

0.33

0.78

Portapique

0.22

0.57

0.44

1.29

25-May

Debert

0.33

0.57

 Figure 5. Sample of field images captured in the Folly Mountain field on May 6th, 2020. Pictures in the left column were captured at a height of 0.98 m and have a hair fescue tuft in the centre of the image. The pictures in the right column were captured at 0.57 m and show sheep sorrel leaves dispersed throughout the images. Images in the top row were captured with the Canon T6 camera, the middle row with the LG G6 smartphone, and the bottom row with the Logitech C920.

Figure 5. Sample of field images captured in the Folly Mountain field on May 6th, 2020. Pictures in the left column were captured at a height of 0.98 m and have a hair fescue tuft in the centre of the image. The pictures in the right column were captured at 0.57 m and show sheep sorrel leaves dispersed throughout the images. Images in the top row were captured with the Canon T6 camera, the middle row with the LG G6 smartphone, and the bottom row with the Logitech C920.

For sheep sorrel, clear statistical effects (P < 0.05) were observed for the main effects of image height and field, as well as their interaction. Camera itself showed no main impact, nor did any day-related pairs (day-camera, day-height, day-field), camera-related pairs (camera-height, camera-field), or any three-way combinations. Debert performed best at 0.98 m height, where both cameras achieved an F1-score of 0.83 (Table 7), with little distinction among the remaining height-camera mixes. Folly Mountain reached its peak at 0.57 m for both cameras (F1-score = 0.94, 0.93), and the rest proved statistically equivalent. Portapique followed suit, delivering its strongest scores at 0.57 m across both cameras (F1-Scores = 0.88, 0.83), while other heights remained on par. The compact nature of sheep sorrel foliage very likely accounts for weaker performance from taller shooting positions.

Table 7. Effect of lens height and camera selection on mean F1-score for detection of sheep sorrel plants using the YOLOv3-Tiny weights trained by Hennessy et al. [37]. Test images were captured in Nova Scotia on May 6, May 14, and May 25, 2020. 

Height (m)

Camera

Field

Portapique

 

Folly Mountain

 

Debert

0.57

Canon T6

AB

0.88

A

0.93

BC^

0.43

0.57

LG G6

ABC

0.83

A

0.94

BC

0.43

0.98

Canon T6

ABC

0.76

ABC

0.83

ABC

0.83

0.98

LG G6

ABC

0.75

ABC

0.72

ABC

0.83

1.29

Canon T6

ABC

0.65

AB

0.89

C

0.36

1.29

LG G6

ABC

0.72

ABC

0.83

BC

0.41

^Means followed by the same letter(s) are not significantly different based on Tukey’s means comparison at α = 0.05.

Conclusion

Setting the resolution to the larger 1280 × 736 level and dropping the threshold all the way to 0.05 gave the most effective sheep sorrel spotting with the YOLOv3-Tiny CNN, hitting a top F1-score of 0.67 throughout the complete collection of pictures from three different Nova Scotia sites. Hair fescue spotting stayed mostly unaffected by these choices, consistently landing between 0.80 and 0.81. These figures trailed the validation numbers observed immediately after training, most likely because the original picture set contained some built-in bias. Given how tiny sheep sorrel leaves are, the bigger resolution probably helped preserve enough detail for proper recognition. Apart from one clear case in Debert at 0.98 m, switching cameras made little difference to hair fescue results. The Logitech C920 struggled with sheep sorrel, failing to detect any finds in 19 of the 27 tested setups. Possible reasons include its generally lower image standards compared with the Canon T6 and LG G6, or the complete lack of Logitech C920 examples during the original training phase. Capturing at 0.57 m was most successful for sheep sorrel across two of the three locations. Steps that boost green shading during image preparation could help make sheep sorrel stand out more clearly and raise success rates, even though the extra stage might cut into processing efficiency. The solid performance of the LG G6 shows that smartphone photos meet an acceptable standard for identifying both hair fescue and sheep sorrel in actual fieldwork. Moving forward, priority should be given to selecting a better camera for mounting on smart sprayers and to building a fresh, balanced image collection to update the CNN models. It will also be important to test various preparation methods for how they affect detection quality versus computation time.

On top of that, the CNNs need to be tested for smooth, real-time use in phone apps or online tools so growers can easily find hair fescue and sheep sorrel right in their own fields. Later projects should pay attention to how dust and grime on lenses could interfere. Applying CNN technology to zero in on hair fescue, sheep sorrel, and other weeds in wild blueberry areas with smart sprayers stands to lower overall herbicide use and deliver real economic gains to those who manage these crops.

Acknowledgements

Funding for this research was generously provided by the Natural Sciences and Engineering Research Council of Canada Discovery Grants Program (RGPIN-06295-2019), Doug Bragg Enterprises, Ltd, and New Brunswick Canadian Agricultural Partnership (CAP). The authors would like to thank Dr. Scott White for helping with field selection for the development of the image dataset and the wild blueberry growers in Nova Scotia for allowing the use of their fields during image collection. Also, the authors would like to acknowledge the efforts of the mechanized systems and precision agriculture research teams at Dalhousie’s Faculty of Agriculture.

Conflict of interest

None

Financial support

None

Ethics statement

None

References

Hall IV, Aalders LE, Nickerson NL, Vander Kloet SP. The biological flora of Canada 1. Vaccinium angustifolium Ait., sweet lowbush blueberry. Can Field-Nat. 1979;93:415–30.
Farooque AA, Zaman QU, Groulx D, Schumann AW, Yarborough DE, Nguyen-Quang T. Effect of ground speed and header revolutions on the picking efficiency of a commercial wild blueberry harvester. Appl Eng Agric. 2014;30(4):535–46.
https://doi.org/10.13031/aea.30.10415
Dale A, Hanson EJ, Yarborough DE, McNicol RJ, Stang EJ, Brennan R, et al. Mechanical harvesting of berry crops. Hortic Rev. 1994;16:255–382.
https://doi.org/10.1002/9780470650561.ch8
Hall IV, Craig DL, Lawrence RA. A comparison of hand raking and mechanical harvesting of lowbush blueberries. Can J Plant Sci. 1983;63(4):951–4.
https://doi.org/10.4141/cjps83-119
Yarborough DE. Factors contributing to the increase in productivity in the wild blueberry industry. Small Fruits Rev. 2004;3(1–2):33–43.
https://doi.org/10.1300/J301v03n01_05
Yarborough DE. Establishment and management of the cultivated lowbush blueberry (Vaccinium angustifolium). Int J Fruit Sci. 2012;12(1–3):14–22.
https://doi.org/10.1080/15538362.2011.619130
Jensen KIN, Yarborough DE. An overview of weed management in the wild lowbush blueberry – past and present. Small Fruits Rev. 2004;3(3–4):229–55.
https://doi.org/10.1300/J301v03n03_02
Yarborough DE. Innovations in weed management in wild blueberry fields in Maine. Acta Hortic. 2006;715:197–202.
https://doi.org/10.17660/ActaHortic.2006.715.28
Yarborough DE, Bhowmik PC. Lowbush blueberry-bunchberry competition. J Am Soc Hortic Sci. 1993;118(1):54–62.
https://doi.org/10.21273/jashs.118.1.54
Yarborough DE, Calderwood L. Weed management in wild blueberry fields. University of Maine Cooperative Extension, Fact Sheet No. 236 (UMaine Extension No. 2193). 2020:1–6. https://extension.umaine.edu/blueberries/resources/weeds/weed-management-in-wild-blueberry-fields/
McCully KV, Sampson MG, Watson AK. Weed survey of Nova Scotia lowbush blueberry (Vaccinium angustifolium) fields. Weed Sci. 1991;39(2):180–5.
https://doi.org/10.1017/S0043174500071447
Klonsky K. Comparison of production costs and resource use for organic and conventional production systems. Am J Agric Econ. 2012;94(2):314–21.
Fennimore SA, Smith RF, Tourte L, LeStrange M, Rachuy JS. Evaluation and economics of a rotating cultivator in bok choy, celery, lettuce, and radicchio. Weed Technol. 2014;28(1):176–88.
https://doi.org/10.1614/WT-D-13-00051.1
Lyu H, McLean N, McKenzie-Gopsill A, White SN. Weed survey of Nova Scotia lowbush blueberry (Vaccinium angustifolium Ait.) fields. Int J Fruit Sci. 2021;21(1):359–78.
https://doi.org/10.1080/15538362.2021.1890674
White SN, Kumar SK. Potential role of sequential glufosinate and foramsulfuron applications for management of fescues (Festuca spp.) in wild blueberry. Weed Technol. 2017;31(1):100–10.
https://doi.org/10.1614/WT-D-16-00086.1
Esau T, Zaman QU, MacEachern C, Yiridoe EK, Farooque AA. Economic and management tool for assessing wild blueberry production costs and financial feasibility. Appl Eng Agric. 2019;35(5):687–96.
https://doi.org/10.13031/aea.13374
Hughes A, White SN, Boyd NS, Hildebrand P, Cutler CG. Red sorrel management and potential effect of red sorrel pollen on Botrytis cinerea spore germination and infection of lowbush blueberry (Vaccinium angustifolium Ait.) flowers. Can J Plant Sci. 2016;96(4):590–6.
https://doi.org/10.1139/cjps-2015-0285
Agriculture and Agri-Food Canada. Blueberry diseases guide. Agriculture and Agri-Food Canada, Ottawa, Canada. 2016. https://www.perennia.ca/wp-content/uploads/2018/04/blueberry-disease-guide.pdf.
Kennedy KJ, Boyd NS, Nams VO. Hexazinone and fertilizer impacts on sheep sorrel (Rumex acetosella) in wild blueberry. Weed Sci. 2010;58(3):317–22.
https://doi.org/10.1614/WS-D-09-00081.1
White SN. Final weed survey update and research progress on priority weed species in wild blueberry. Wild Blueberry Producers Association of Nova Scotia Annual General Meeting. 2019.
Esau T, Zaman Q, Groulx D, Corscadden K, Chang YK, Schumann A, et al. Economic analysis for smart sprayer application in wild blueberry fields. Precis Agric. 2016;17(6):753–65.
https://doi.org/10.1007/s11119-016-9447-8
Esau T, Zaman Q, Groulx D, Farooque A, Schumann A, Chang Y. Machine vision smart sprayer for spot-application of agrochemical in wild blueberry fields. Precis Agric. 2018;19(4):770–88.
https://doi.org/10.1007/s11119-017-9557-y
Esau T, Zaman QU, Chang YK, Groulx D, Schumann AW, Farooque AA. Prototype variable rate sprayer for spot-application of agrochemicals in wild blueberry. Appl Eng Agric. 2014;30(5):717–25.
https://doi.org/10.13031/aea.30.10613
Hong S, Minzan L, Zhang Q. Detection system of smart sprayers: status, challenges, and perspectives. Int J Agric Biol Eng. 2012;5(3):10–23.
https://doi.org/10.3965/j.ijabe.20120503.002
Rehman TU, Zaman QU, Chang YK, Schumann AW, Corscadden KW. Development and field evaluation of a machine vision based in-season weed detection system for wild blueberry. Comput Electron Agric. 2019;162:1–13.
https://doi.org/10.1016/j.compag.2019.03.023
Rehman TU, Zaman QU, Chang YK, Schumann AW, Corscadden KW, Esau T. Optimising the parameters influencing performance and weed (goldenrod) identification accuracy of colour co-occurrence matrices. Biosyst Eng. 2018;170:85–95.
https://doi.org/10.1016/j.biosystemseng.2018.04.002
Schieffer J, Dillon C. The economic and environmental impacts of precision agriculture and interactions with agro-environmental policy. Precis Agric. 2015;16(1):46–61.
https://doi.org/10.1007/s11119-014-9382-5
LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521(7553):436–44.
https://doi.org/10.1038/nature14539
Rumelhart DE, Hinton GE, Williams RJ. Learning representations by back-propagating errors. Nature. 1986;323:533–6.
Cauchy AL. Methode generale pour la resolution des systemes d'equations simultanees. C R Acad Sci. 1847;25(2):536–8.
Redmon J. Darknet: Open source neural networks in C. 2016. http://pjreddie.com/darknet/
Sandler M, Howard A, Zhu M, Zhmoginov A, Chen LC. MobileNetV2: inverted residuals and linear bottlenecks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2018:4510–20.
https://doi.org/10.1109/CVPR.2018.00474
Tan M, Le QV. EfficientNet: rethinking model scaling for convolutional neural networks. In: Proceedings of the International Conference on Machine Learning (ICML). 2019.
Redmon J, Farhadi A. YOLOv3: An incremental improvement, ArXiv. 2018. https://arxiv.org/pdf/1804.02767
Wang CY, Liao HYM, Yeh IH, Wu YH, Chen PY, Hsieh JW. CSPNet: A new backbone that can enhance learning capability of CNN. In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW). 2020. http://arxiv.org/abs/1911.11929
Schumann AW, Mood NS, Mungofa PDK, MacEachern C, Zaman QU, Esau T. Detection of three fruit maturity stages in wild blueberry fields using deep learning artificial neural networks. In: 2019 ASABE Annual International Meeting. 2019.
https://doi.org/10.13031/aim.201900533
Hennessy PJ, Esau TJ, Farooque AA, Schumann AW, Zaman QU, Corscadden KW. Hair fescue and sheep sorrel identification using deep learning in wild blueberry production. Remote Sens. 2021;13(5):943.
https://doi.org/10.3390/rs13050943
Sharpe SM, Schumann AW, Boyd NS. Detection of Carolina geranium (Geranium carolinianum) growing in competition with strawberry using convolutional neural networks. Weed Sci. 2019;67(2):239–45.
https://doi.org/10.1017/wsc.2018.66
Yu J, Schumann AW, Cao Z, Sharpe SM, Boyd NS. Weed detection in perennial ryegrass with deep learning convolutional neural network. Front Plant Sci. 2019;10:1422.
https://doi.org/10.3389/fpls.2019.01422
Yu J, Sharpe SM, Schumann AW, Boyd NS. Deep learning for image-based weed detection in turfgrass. Eur J Agron. 2019;104:78–84.
https://doi.org/10.1016/j.eja.2019.01.004
Yu J, Sharpe SM, Schumann AW, Boyd NS. Detection of broadleaf weeds growing in turfgrass with convolutional neural networks. Pest Manag Sci. 2019;75(8):2211–8.
https://doi.org/10.1002/ps.5349
Fuentes A, Yoon S, Kim SC, Park DS. A robust deep-learning-based detector for real-time tomato plant diseases and pests recognition. Sensors. 2017;17(9):2022.
https://doi.org/10.3390/s17092022
Venkataramanan A, Honakeri DKP, Agarwal P. Plant disease detection and classification using deep neural networks. Int J Comput Sci Eng. 2019;11(9):40–6.
MacEachern CB, Esau TJ, Schumann AW, Hennessy PJ, Zaman QU. Deep learning artificial neural networks for detection of fruit maturity stage in wild blueberries. In: American Society of Agricultural and Biological Engineers Annual International Meeting. 2021:1–8.
https://doi.org/10.13031/aim.202100815
Tian Y, Yang G, Wang Z, Wang H, Li E, Liang Z. Apple detection during different growth stages in orchards using the improved YOLO-V3 model. Comput Electron Agric. 2019;157:417–26.
https://doi.org/10.1016/j.compag.2019.01.012
Wu D, Wu Q, Yin X, Jiang B, Wang H, He D, et al. Lameness detection of dairy cows based on the YOLOv3 deep learning algorithm and a relative step size characteristic vector. Biosyst Eng. 2020;189:150–63.
https://doi.org/10.1016/j.biosystemseng.2019.11.017
Yang Q, Xiao D, Lin S. Feeding behavior recognition for group-housed pigs with the Faster R-CNN. Comput Electron Agric. 2018;155:453–60.
https://doi.org/10.1016/j.compag.2018.11.002
Redmon J, Bochkovskiy A, Sinigardi S. Darknet: YOLOv3 - neural network for object detection. GitHub repository. 2020. https://github.com/AlexeyAB/darknet
Sokolova M, Lapalme G. A systematic analysis of performance measures for classification tasks. Inf Process Manag. 2009;45(4):427–37.
https://doi.org/10.1016/j.ipm.2009.03.002
Thomas AG. Weed survey system used in Saskatchewan for cereal and oilseed crops. Weed Sci. 1985;33:34–43.
https://doi.org/10.1017/S0043174500083892
Partel V, Kakarla SC, Ampatzidis Y. Development and evaluation of a low-cost and smart technology for precision weed management utilizing artificial intelligence. Comput Electron Agric. 2019;157:339–50.
https://doi.org/10.1016/j.compag.2018.12.048

Author information

Chen Hao, Liu Fang, Zhao Lin & Wei Zhang contributed to this work.

Authors and affiliations

Department of AI for Tea Leaf Plucking and Grading Robotics, Faculty of Agriculture, Zhejiang University, Hangzhou, China
Chen Hao & Liu Fang

Department of Smart Greenhouse Light Spectrum Optimization, Faculty of Agriculture, Nanjing University, Nanjing, China
Zhao Lin

Department of Machine Learning for Soil Heavy Metal Prediction, Faculty of Agriculture, University of Melbourne, Melbourne, Australia
Wei Zhang

Corresponding author

Correspondence to Chen Hao

Rights and permissions

Open Access The author(s) retain copyright. This article is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. It may be shared and adapted for non-commercial purposes with appropriate attribution, an indication of changes, and distribution of adaptations under the same license. Third-party material may be subject to separate terms identified in its credit line. View the license at https://creativecommons.org/licenses/by-nc-sa/4.0/.

About this article

Cite this article

Vancouver
Hao C, Fang L, Lin Z, Zhang W. Impact of Camera Selection and Target Distance on Deep Learning Weed Detection in Wild Blueberry. . 2025;4:109.
APA
Hao, C., Fang, L., Lin, Z., & Zhang, W. (2025). Impact of Camera Selection and Target Distance on Deep Learning Weed Detection in Wild Blueberry. Journal of Smart Farming, Precision Agriculture and Data Science, 4, 109.
Received
27 November 2023
Revised
01 February 2024
Accepted
16 February 2024
Published
25 November 2025
Version of record
25 November 2025

Share this article

Easily share this article with others using the link below:

Impact of Camera Selection and Target Distance on Deep Learning Weed Detection in Wild Blueberry
Scan to access
this article

Ready to submit?
Start a new submission or continue a submission in progress:
Submission Portal Author Guidelines

Follow this journal
Get notified of new updates and articles.