Consumption of produce contaminated with pathogens of fecal origin is the most common source of food borne illnesses. Current practice is to visually survey fields for evidence of fecal contamination, and to exclude problematic areas from harvest. Bird excrement is known to contain human pathogens, and is often not detectable in produce fields using current survey methods. The goal of this project was to identify parameters for optical detection of bird excrements to support development of instruments to be used to supplement existing visual surveys. Under daylight ambient conditions, results suggested that reflectance imaging at around 500–530 nm or 610–640 nm could be used to detect excrements from the three bird species tested. Images were acquired using ad hoc camera parameters; however, normalizing intensities for individual images at 525 nm and using a fixed detection threshold allowed detection of 100% of bird excrements with no false positives against the background that consisted of local soil and fresh romaine and spinach leaves. Similar results were obtained using fluorescence imaging. Fluorescent imaging was accomplished in a darkened room using 405-nm illumination. The largest consistent differences in intensity responses between excrements and the brightest non-excrement object in the background matrix occurred at around 550 nm. Results suggested that using reflectance or fluorescence imaging for detection of bird excrements could be a valuable tool for reducing risks of consuming contaminated produce. One possibility would be to incorporate appropriate reflectance imaging capabilities in drones under the control of the individuals currently conducting field surveys.
Fecal contamination of produce in fields is a recognized food safety risk, and it is a requirement that fields be surveyed for evidence of fecal contamination. It may be possible to increase the efficacy of such surveys using imaging techniques that rely on detection of fluorescence responses of fecal material to UV excitation. However, fluorescence responses are easily masked by ambient illumination. This study investigated the potential of using a shroud to reduce the impact of ambient illumination on responses measured using relatively inexpensive optical components. During periods of near peak insolation, even with full shrouding, results indicate that reliable detection would be problematic. Towards dusk, effective imaging could be accomplished even with a gap of 250 cm at the bottom of the shroud. Results suggest that imaging using relatively inexpensive components could provide the basis for detection of fecal contamination in produce fields if surveys were conducted during dawn or dusk, or at night.
Weed infestations cause billions of dollars in annual loss and devastate natural habitats. Current weed recognition methods remain vulnerable to seasonal and environmental variations, and their performance relies on tedious manual curation. To address these limitations, we proposed a straightforward framework that combined pre-trained deep learning models (including transformers) with simple box annotations and Segment Anything Model (SAM) for precise postprocessing boundary delineation. We evaluated this approach by comparing the state-of-the-art Faster R-CNN (Region-based Convolutional Neural Network) against the pioneering transformer-based DETR on lettuce-farm imagery. Of 939 annotated images, 760 (≈81%) were used for training, 92 (≈10%) for validation, and the remaining 87 (≈9%) reserved for independent testing. Faster R-CNN achieved an overall F1 score of 95.0%—97.5% for lettuce and 92.5% for weeds—while DETR achieved 87.1% overall, with 88.1% for lettuce and 86.1% for weeds. In both models, SAM achieved near-perfect segmentation—even for overlapping or closely spaced objects—by focusing on a single object per bounding box. This research not only automates weed detection to boost lettuce yield, but also enables targeted weeding application, reducing the treatment cost and environmental impact.