Category: Multimedia

Videos, Books, Presentations, Songs and ePubs

  • How Cameras, Computers and Cake Recipes will Drive the Future of Weed Recognition

    How Cameras, Computers and Cake Recipes will Drive the Future of Weed Recognition

    The idea of controlling weeds individually instead of treating the whole field uniformly makes a lot of sense. Why waste herbicides, till soil unnecessarily or use other weed control methods on areas without weeds? Besides reducing unintended environmental impacts, it means cost savings for the farmer, reduced crop stress and the opportunity to concentrate efforts where they are needed.

    In this era of widespread herbicide resistance, the latter opens the door for new weed control tools – such as lasers or electrical weeding (Carbon Robotics as one example). Unfortunately, all the above absolutely relies on the ability to reliably recognize weeds in all manner of crop-weed conditions. Enter cameras, computers and cake recipes.

    Besides alliteration, they are all connected by their role in real-time, in-crop weed recognition. So why isn’t weed recognition already widely available and how will this trio change that? Well, the way I look at it, if our faces were weeds, this problem would have been solved a long time ago. Said differently: new technologies mean that this challenge can be addressed with the necessary focus, investment, and research.

    In the last few years, there have been step changes in research and development for real-time weed recognition, which are driving rapid gains for in-crop site-specific weed control. We are seeing this with the emergence of image-based green-on-green (GoG) see-and spray systems globally, many of which are listed in the table below.

    SensorLocation
    AutoWeedAustralia
    Agtecnic SenseSprayAustraila
    BilberryFrance / Australia
    Carbon Bee – SmartStrikerFrance
    DeepAgroArgentina
    EXXACT RoboticsFrance
    GreenEyeIsrael / USA
    John Deere / BlueRiverUSA
    OpenWeedLocator (OWL) – developed by the author as a DIY, open-source weed detection system.Australia
    Xarvio / Bosch / BASFCanada / Europe

    Yet, as the last 50 years of plant detection, identification and recognition research have shown, reliable weed recognition is a challenging problem to target. The aim of this article is to take you on the journey of weed recognition – from simple plant detection for thinning in the 1970s to every metre of a boom equipped with camera-computer-cake recipe combinations. Fortunately, we are well on this path toward more effective weed recognition.

    Green-on-brown weed detection

    As far as the available research shows, the first attempts at plant detection were made for thinning sugar beets in the early 1970s. The method is impressive in its simplicity – two sensors (photodiodes) that generate a signal based on incoming light intensity, are each covered by a filter that only allows specific wavelengths of light through. By knowing the reflectance spectrum for plants and comparing the ratio/output of these two sensors means you can detect if a plant has entered the field of view, but not necessarily exactly where it is.

    In this case the weed detection ‘algorithm’ is a ratio of sensor values and some predefined threshold, which can be adjusted as a form of ‘sensitivity’. The concept is largely the basis of WEEDits and WeedSeekers today. This system has all the principles of advanced image-based systems: (1) data stream from a sensor/camera + (2) computer running a weed recognition algorithm + (3) some form of actionable output (e.g. turn on a nozzle).

    Image-based weed recognition

    With the fundamentals of SSWC largely consistent between sensor and image-based systems, the interesting details and drivers for GoG technology emerge if we dive into the data stream (images) from the camera and the algorithm running on a computer.

    At its most basic, a digital colour camera is a sensor that generates signals based on incoming light intensity. The difference with the photodiodes is that a camera records this reflectance intensity information for every pixel in the camera across the red, green and blue (RGB) parts of the spectrum. For example, a 12-megapixel camera has 12 million pixels reporting reflectance intensity for each RGB channel. That means 36 million individual numbers generated for every photo. Learn more about the basics of digital imaging, here.

    When you bring this together in an image, you have information on object relationships in space, providing not just a ‘spectral’ dimension (RGB) but also a ‘spatial’ dimension. The use of computers to understand image content is known as computer vision. Having all this data (colour and spatial information) means there is a lot more to work with when differentiating two plants, increasing your chances of success. The downside of having more to work with, is having to work with more! In this case, the computer needs to deal with the 36 million numbers it receives 30 times per second.

    The next part of this weed recognition puzzle is the computer and associated weed recognition algorithms, which receive the incoming images and determine if there is a weed in the image. In the case of ‘conventional’ or non-convolutional neural network (CNN) methods (we’ll get to those later), this analysis process is largely formed of four stages shown in Figure 2 – (1) pre-processing, (2) segmentation, (3) feature extraction and (4) classification. If you’re interested in the details on the volumes of research done in this space, I’d highly recommend this review by Wang et al., 2019.

    Figure 2 Overview of the image analysis process including convolutional neural networks (CNNs) that automate much of what is done by hand in the more conventional methods with manual feature extraction. Adapted from Wang et al. 2019.

    In the case of a simple colour-based detection system that just needs to find green plants in fallow, like our DIY weed detector the OpenWeedLocator (OWL), the algorithm is largely a threshold on the green colour channel using the RGB colour space. This carries some risk – for example if the lighting changes substantially or if weeds aren’t green the method can break down. Yet we went down this path because of the simplicity and speed with which it can be used on the rather computationally constrained Raspberry Pi.

    Our field testing also showed acceptable levels of performance in variable fallow conditions. We managed these issues by combining multiple colour-based algorithms; relying on greenness in the RGB colour space from the ‘excess green’ (ExG) vegetation index, combined with thresholds in the hue, saturation, and value (equivalent to brightness) (HSV) colour space to avoid false detections on over/underexposed regions, which often occur in stubble. Even with these adjustments, the system is prone to errors, but the benefit of using cameras is that they can be levelled up for in-crop detection to more advanced algorithms.

    The ‘green detection only’ approach without machine learning that effectively exits Figure 2 at the segmentation stage is also likely in the initial launch of John Deere’s green-on-brown See & Spray Select ™. Probably for the reasons above, they also warn against use close to sunrise and sunset where lighting is changing rapidly. As expected, the system pivoted to in-crop detection with deep learning in early 2022 because images and embedded processors allow software-only changes for green-on-green.

    If weed species classification or crop-weed discrimination is needed for green-on-green use, then the remaining two stages of feature extraction and classification are required. In the conventional process, someone selected which plant attributes (known as image features) you wanted to use, trained an algorithm on those features and then ran it in the field, a method generally known as machine learning. In spite of this more advanced approach the performance drop between the test dataset and the variable field conditions meant the method was still commercially unusable in large-scale systems. So, what has changed?

    Well, in 2012 a research group managed to substantially outperform all these other methods with an algorithm known as a convolutional neural network (CNN). Instead of an ‘expert’ identifying which plant attributes in an image were important, the algorithm itself could select and learn which features were most important, making it more robust. The CNN effectively skips all the steps in the conventional process (Figure 2), instead replacing them with having large quantities of training images with weeds manually highlighted – a newfound bottleneck itself, but not insurmountable.

    Part of CNNs robustness comes from the algorithms being capable of analyzing many dozens of features and combinations of features that wouldn’t necessarily be obvious to humans. In the training process, it tests one combination of features before correcting itself based on the training dataset you’ve provided and testing another. One of the biggest improvements is that by doing this feature extraction and selection process automatically, it removes the slow and somewhat qualitative process of deciding which features/plant attributes were most important. Besides this, the algorithms are incredibly large. Some of the modern CNNs have over 100 million (!) different dials that can be automatically tuned to learn the patterns of a weed.

    Combined with these algorithms, we now also have low-cost (<US$150) credit-card sized computers such as the Raspberry Pi (when it has additional support) and Jetson Nano that can run these algorithms real time, or around 15 – 20 frames analyzed per second. Even when processing millions of pixels through CNNs with over a 100 million parameters 15 times per second, they consume very little power and can fit easily on agricultural equipment. Genuinely mind boggling every time I think of the sheer scale of it.

    Figure 3 The fully assembled OpenWeedLocator without the cover showing all the parts necessary for a site-specific weed control system. Camera at the front, a credit card-sized computer in the middle (Raspberry Pi) and a relay control board at the back to activate solenoids for spot spraying. The OWL is an open-source, DIY weed detection system and can be accessed here.

    That leaves us with the cake recipe – how does that fit? Well, the step-changes in technology, particularly deep learning for image analysis can be largely attributed to the use of open-source software, data and hardware. Accessible datasets gave rise to the first effective CNN; open-source deep learning libraries (e.g. Tensorflow and Pytorch) to widespread adoption and development and open-source and/or low-cost hardware to field-scale implementations of the work. The best analogy I have heard used to describe an open-source approach is that it’s like sharing the recipe for a cake – except the code/assembly guide are the recipe and the ingredient list all the tools/languages/packages/components required to make it work.

    Even though I could make an average chocolate cake with the ingredients in my pantry, I’ll still go and buy one for many different reasons – quality, convenience or support/returns in case it doesn’t quite live up to standards. The emphasis in this approach is on the quality of the entire product experience not necessarily a secret combination or method of combining ingredients. Plus, it means everyone with the basic tools can try making the cake or training the algorithm, discovering opportunities for fixes, optimization or low-hanging fruit that may change its use case entirely.

    I mean, Australians took sponge cake and made lamingtons! In my own experience with the OpenWeedLocator, we built a device for detecting green weeds in large-scale fallow situations. But in true open-source fashion, this has now been used for site-specific fungicide sprays, desiccant application and under trees for weed control. A Canadian innovation – AgOpenGPS – developed by Brian Tischler is an open-source GPS steering system for tractors, similarly enabling farmer-driven development. The examples of different uses are quite extraordinary.

    One of the main tenets of open-source technology is that by allowing people to see the details of software and hardware, a larger and more diverse array of people can examine the code and any inefficiencies and errors can be picked up faster. Besides this, it makes research and development accessible to those that might need the technology – the farmers – instead of it being locked away in large companies with inaccessible customer support. Farmer-driven innovation has a long and successful history and open-source development facilitates this continuing to occur in the era of agritech.

    Over these last 50 years of development, the cameras, the computers and the open-source recipes have each contributed at different points to site-specific weed control. It seems that now they are converging in agriculture in a storm of interest and development for weed recognition and targeted application.

  • The Art and Beauty of Spraying – A Photo Essay

    The Art and Beauty of Spraying – A Photo Essay

    This is an indulgent article.

    Over the years I’ve amassed thousands of sprayer-related photos. I find some to be compelling and even beautiful. It might be a face, or a composition, or the colours, or maybe evocative subject matter.

    What follows is a gallery of such photos. We do not condone or recommend any brand or action in these photos. Nor do we offer any explanations, captions or credits other than to assure you they are all related to spraying. If you recognize a photo as yours and would like credit, or would like it removed from the article, please don’t hesitate to let us know.

    Update: In the summer of 2022 I asked the Twitterverse to share their beautiful sprayer-related photos and the response was overwhelming. I’ve added some of the photos they shared, but had to make hard choices… there were too many to post them all.

  • If I had a Low Drift Nozzle – Parody

    If I had a Low Drift Nozzle – Parody

    Sung to the tune of “If I had a Rocket Launcher” by Bruce Cockburn

    Here comes the John Deere sprayer — second time today;

    All the insects scatter and hope it goes away;

    How many larvae murdered only Dow can say;

    If I had a low drift nozzle… I’d make somebody spray.

    I don’t believe in modes of action and I don’t believe in rates;

    I don’t believe in agronomists or their shiny steely spades;

    And when I talk with the survivors of that crappy bran bait;

    If I had a low drift nozzle… I would calibrate.

    On canola field margins one hundred thousand wait;

    Smash through truck radiators — or some less humane fate;

    Cry for bertha armyworm, sprayed with organophosphate;

    If I had a low drift nozzle… I would not hesitate.

    I want to raise every chirp — at least I’ve got to try;

    Every time I see them munching, with my compound eyes;

    Situation desperate, echoes of the hoppers cry;

    If I had a low drift nozzle… Some CCA would die.

  • Exploding Sprayer Myths (ep.13): Reading Nozzles and Nozzle Tables

    Exploding Sprayer Myths (ep.13): Reading Nozzles and Nozzle Tables

    After a long hiatus, it’s lucky episode 13!

    In this installment, Dr. Tom Wolf, intrepid reporter, braves the unforgiving wilds of Saskatoon as he investigates claims of mysterious devices popping up all over the city. Colloquially referred to as “nozzles” these items are imprinted with obscure codes that scientists are struggling to decipher. Be the first to learn how to read a nozzle and nozzle table in our newest installment.

    Want to know more about selecting nozzles? Check out this article and this one.

    Special thanks to the @RealAgriculture team and the Western Grains Research Foundation.

  • Dealing with Pesticide Shortages in 2022

    Dealing with Pesticide Shortages in 2022

    We’ve had dire warnings about possible pesticide shortages and price hikes for 2022. Price hikes are one thing. But if the products we need simply won’t be available, we have a tougher challenge.  It’s time to plan pesticide conservation.

    But first, what’s behind the product shortage?

    Emily Unglesby of dtnpf.com provided an excellent overview of the issue here and here. She said the reasons for the shortage are many-fold and came together in a perfect storm. Starting about 2017 or so, pesticide manufacturers tried to reduce the overall inventory of products to improve logistical efficiencies.  That effort was rewarded in 2019 when a wet spring in the US dramatically reduced seeded area to a low of 165 M acres. The resulting lower demand again provided incentives to reduce inventories. At the same time, US trade sanctions against China in the form of tariffs impacted production and shipment of many active ingredients to US markets. When Covid-19 happened, it affected both production and shipping of many goods, including pesticides. Container shipment costs increased sharply, and the ability to move them to and from ports was hampered. This then coincided with record seeded area in the US of 180 M acres in 2021, creating higher than usual demand. By that time, very little buffer remained in the system. The growth of Enlist E3 and Xtend Flex has placed additional pressure on glufosinate.

    Then two further events occurred. Hurricane Ida forced a shutdown of Bayer’s Louisiana glyphosate plant. And China, in late 2021, legislated a temporary 90% reduction of yellow phosphorus production in Yunnan Province in anticipation of the 2022 Olympic Winter Games. With phosphorus as a fundamental ingredient in glyphosate, glufosinate, and some fertilizers, this loss of production places significant strain on many products. The usual habit of returning unused pesticides to the retailer also became less common amidst shortage news, adding difficulty to planning inventories and demand.

    Shortages of popular herbicides like glyphosate, glufosinate, and clethodim will put demand on alternatives. Spreading out risk by implementing pre-emergent products where possible will pay dividends. But the ability to ramp up production of minor products is just as dependent on the supply chain, and these alternatives may therefore not offer reprieve if ordering is left to the bitter end. Planning ahead and staying in touch with retailers about your plans and your own inventory will assist the entire system in managing production and redistributing existing stocks.

    Safe to say products will be more expensive, and possibly impossible to obtain. Here are some things to consider to minimize the impact.

    1.Grow crops that require less pesticides. Crops which have good genetic resistance to insects and disease will be more likely to cope without a protective spray. Some crops are inherently competitive early on and give less time and space for weeds to become established. Remember that the relative time of emergence is important for crop yield loss from weeds. If crops emerge before weeds, they have the upper hand and will maintain higher yield potential. Crops that can be seeded early will prevent weeds from occupying that niche.

    A competitive crop is the best herbicide.

    2. The most powerful herbicide is a competitive crop. Use agronomic tools that favour good seedling establishment. The usual advice of seeding into a warm, firm, moist seedbed, should we be fortunate enough for the weather to cooperate, applies here. There is value in higher seeding rates to help outcompete weeds. Use fertilizer placement that favours crops, not weeds, such as side banding.

    3. Sample the spray water source and have it professionally tested. After a record drought in western North America, aquifers are low and surface waters have receded. Water quality will probably not be the same it has historically been. Use water conditioners to reduce effect of hard cations and bicarbonates. Ammonium Sulphate (21-0-0-24) at 1% w/v is a general treatment, harder water may require up to 3%.

    Conduct a water test in 2022 and condition spray water if necessary.

    4. Do not use untested mixes of pesticides with specialty foliar fertilizers. These may impact herbicide performance, or worse, result in an incompatible mix.

    5. Use the lowest label rate of product that is relevant for the pest you’re trying to control. Many products have a range of rates depending on the weed species and stage. Scout your fields and take advantage of the lower rate option if you can.

    Invest in logistics and be prepared to respond to a good spray day to get the timing right.

    6. Spray herbicides early. It’s been shown that crop plants can sense the presence of weeds before they compete for resources, causing a physiological adjustment that results in irreversible yield loss. The shorter the time that weeds and crops co-exist, the better. Also, smaller weeds are easier to control. Weeds that escape this early application will need to compete with an established crop and won’t thrive or impact yield as much.

    Smaller weeds are easier to control and may allow a lower label rate.

    7. It’s not advisable to reduce product rates from the one recommended on the label. Although label rates contain a margin for poor conditions, the risk of selecting for polygenic resistance exists. Polygenic resistance occurs when some weeds happen to be slightly more tolerant to the herbicide than the rest of their cohort. These weeds may survive a lower rate, and go on to produce seeds. If these outcross with other survivors, their more tolerant offspring will increase in relative abundance. With further such selections in subsequent generations, weeds become even more tolerant and eventually dominate.

    8. Apply the spray as uniformly as possible. Make sure the spray nozzles are within a 5% flow rate tolerance along the entire boom. If the set is older, consider a wholesale replacement. But the biggest enemy of uniform deposition seems to be turbulence created by wind and driving speed around the tractor unit. Slower wind and travel speeds help somewhat. Variable deposition means that some regions receive up to 50% more than intended, and others receive 50% less. This means weeds in the lower deposit regions may survive the application. The more variable the application, the higher the rate that is needed for acceptable control.

    Slower travel speed reduces variability of the spray deposit, limiting escapes.

    9. Use finer sprays whenever the tank mix contains a contact mode of action product (e.g., Group 1, 6, 10, 14, 15, 22, 27) or targets grassy weeds. Both situations require smaller droplets for best performance. The use of finer sprays may mean fewer hours in the day when drift is acceptable, and as a result, investment in efficient tendering and cleaning as well as overall time management pays dividends.

    10. Make efficient use of the product in the tank, preventing waste. The amount of product being discarded can range to over 10% of the total needed to treat a field, but this can be reduced to 3% with the proper steps. The following are areas where improvement is possible:

    (a) Prime the boom efficiently using sectional shutoffs or better yet, a recirculating boom. These can be primed without any spray leaving the nozzle or boom ends.

    Conserve product by eliminating priming waste with a recirculating boom.

    (b) Measure the spray mix of the last tank accurately, minimizing leftover. Consider the AccuVolume system that weighs the tank contents to the closest gallon. Tanks can be filled with the exact amount, and rates can be adjusted as the leftover becomes apparent on the last passes.

    Accurate measurement of tank volumes prevents leftovers.

    (c) Invest in individual nozzle shutoffs to improve sectional control resolution. These are part of any Pulse Width Modulation system but can also be obtained as air-actuated valves that are very affordable. Such capability is necessary for recirculating booms.

    Nozzle sectional control can save 4 to 5% product use.

    14. Consider an optical spot spray system such as the WEEDit Quadro, the Trimble WeedSeeker, or the John Deere See & Spray Select, available for 2022. These systems are “Green on Brown”, meaning they selectively spray just weeds in a burnoff or chem-fallow. This can save about 70% of the spray depending on weed density. More such systems are on the way, some even offering “Green on Green” that selectively identifies weeds among a crop. The return on investment of these systems is directly related to the pesticide cost, meaning in a year with high pesticide prices they pay off faster. If shortages of product become a reality, a spot sprayer may be the only way that some fields get treated at all.

    Pesticide shortages will not be fun. Unfortunately, their appearance coincides with higher fertilizer prices, meaning crop establishment will need to overcome that factor as well. But there are tools to minimize the impact if we’re willing to implement them. Just as necessity is the mother of invention, scarcity is the father of conservation.