Monday, May 30, 2016

Robotics for Gardeners and Farmers, Part 1

What would you like to do with your garden or farm that you can't make time for, don't have patience for, or just can't imagine how you'd go about getting it done? Weeding without herbicides? Maintaining a continuous canopy of foliage by replacing plants as they mature? Dispensing with rows and using nearly all of the available space nearly all the time? Mixing native flowers in with your vegetables in a random fashion? Selectively harvesting certain plants in a polyculture mix without having to crush others under wheels to do it? Including perennials in your mix? Allowing poultry to range free under the shade of your taller crops, without fear that they'll wander off or be taken by a fox or bobcat? Whatever it is, there may soon be a machine available that makes it not only possible but practical.

Some of the items on this wish list, or others you might have come up with yourself, are probably already practical for those with a bit of knowledge about available technologies and a willingness to tinker. For example, it's not too difficult to imagine a drone (see below) establishing a virtual fence around a flock of chickens, and also keeping any predators that might show up at bay. With a bit more knowledge, some imagination, and persistence, all of the items I listed above can probably be accomplished with technologies that are available now.

Drone
This term has a range of meanings, but is usually applied to aircraft that are either operated remotely or which navigate for themselves. That auto-navigation can be entirely preprogrammed, a combination of preprogramming and flexible routing, or entirely autonomous, based on goals and rules. Drones can resemble either conventional aircraft, with fixed wings and one or more propellers pulling them forward, or helicopters, with one or more (usually at least two) rotors, primarily producing lift, spinning around vertical shafts. The most common configuration, and what most people think of when they hear the word drone outside of a military context, is four such rotors, arranged in a square, with most of the mass of the craft suspended in the space between them, at the center of that square.

Not tomorrow, and probably not the day after, but most likely within the next decade, tiny drones on the scale of moths or butterflies, with enough sophistication to be variously useful, will become available. With appropriate sensors and programming (see below), these should be very helpful in collecting all sorts of information, anything you might want to know about what's happening in your garden or field, and all without any disturbance more significant than occasionally brushing a rotor or wing against a leaf. They should also be capable of performing a wide range of very detailed operations, for example pollination, but possibly even the precise application of tiny amounts of potent substances, which might mean herbicides and pesticides, but might also mean something less noxious, like concentrated sodium hydroxide or phosphoric acid, or an inoculating solution containing some specific bacteria or fungus.

Sensor
The simplest sort of sensor is a switch, which allows current to pass or blocks it from passing, like a light switch. Many light switches do what they do by tipping a tube containing mercury (a metal that is liquid at room temperature) so that it either makes an electrical connection between two wire contacts or does not. That sort of tube, partially filled with mercury, can also be used to detect whether something to which it is attached, like a lamp, has tipped over. There are also magnetic switches that close (make contact to form a circuit) when in close proximity to a magnet and open (break the circuit) if there is no magnet nearby. These are frequently used to detect whether a door or window has been opened. Sometimes a sensor is nothing more than a thin rod, even a feather, connected to such a simple switch, which completes a circuit if the rod is moved far enough, and breaks that circuit again if the rod is allowed to swing back. Sensors can also be a good deal more complex, but I'll need to lay some groundwork before addressing this subject in detail.

Program or Programming
These words are basically interchangeable, and both can be either a noun or a verb. As nouns they refer to the collection of computer code (hand waving pending more detailed discussion) embedded in or available to be loaded into a computer processing core, which you can think of as the chip at the heart of a computer, although processing cores come in many types and sometimes with many on a single chip. As verbs they refer to the act of creating such code.

So there's not a lot I can say without defining some additional terms, a process that's sure to continue at least throughout the next installment, and perhaps several installments. I will attempt to make this a little more interesting than your typical glossary.

Automation
Automation need not involve computers, nor even anything electrical; it can be entirely mechanical. Farmers have been using automation since the advent of the earliest horse drawn sickle mowers, more than 150 years ago, and many forms of automation have become common on farms, from the microwave ovens in kitchens, with their rotating platters and timers that turn them off after a preset time, to combine harvesters that cut, thresh, and temporarily store grain, distributing the chaff back onto the field. Automation is difficult to define, but when you've seen as many examples of it as just about everyone living in the developed world has seen, you're sure to have a pretty good idea of what it's about.

Robot
Robot is even more difficult to define, in large part because people have differing ideas about what the word should mean, and attempting to provide a definition might be considered a fool's errand. There's even a podcast devoted to determining whether particular examples qualify as a robot. Again, you probably have a reasonable sense for what is meant by the word, but I would like to fill out the picture a bit:
  • Sense, Think, Act — The most fundamental attributes of a robot are that it
    1. somehow acquires information (even just a simple on/off signal) from its environment
    2. decides what action to perform (and whether to perform that action) based on the interaction of that information with its programming
    3. performs the action, when the decision is to do so
  • Physicality — While there are 'bots' that exist only as programs and are data-only in and data-only out, having physical form, some sensors and/or some mechanism of its own, is generally considered to be a requirement for being a robot, and it's devices having this property that we're concerned with here.
There are other properties we might include, for differentiating between a robot and an automaton, or between a robot and an artificial intelligence, but these distinctions aren't particularly relevant in this context, so let's leave it at that.

Robotics
Robotics is the study and practice of everything that goes into creating robots, and is therefore a radically multidisciplinary field. It includes, but is most certainly not limited to, mechanics, electronics, and computer science. Happily, you don't have to know everything about all of the various aspects of robotics to take advantage of the robots created by roboticists, nor even to make valuable contributions to the field. You can combine purchased bits with your own bits to create novel devices that perform tasks for which no off-the-shelf solution exists, in fact doing this is broadly encouraged, and supported with a wide variety of parts, kits, and code that is free to use. I'll provide some sources for these in a future installment.

Until the next installment, I'd like to suggest that you look around for examples of automation that are already part of your life, and give some thought to what else you might like to automate, if doing so were reasonable and affordable.

Sunday, May 29, 2016

Biological Agriculture for Roboticists, Part 6

In a previous installment, I said that identifying weeds based on what's left standing after a patch of ground has been grazed won't control low-growing plants, using goatheads as an example.

To begin with, what some type of herbivore (cattle) finds distasteful another (goats) may find delectable, so not everything left standing by a single species is useless, and it's a good idea to run cattle, which strongly prefer grass, together with or immediately followed by another herbivore that is less picky, like goats.

Secondly, being unpalatable doesn't automatically make a plant a weed. Weeds are plants that move aggressively onto disturbed ground, smother or chemically inhibit other plant life, and/or put most of their energy into producing above-ground growth and seeds rather than roots. They are typically annuals or biennials (producing seed in their second year). If a plant does none of these things and is not toxic to livestock or wildlife, it's probably not accurate to describe it as a weed. Even so, if livestock won't eat it and it's not a candidate for protection for being rare and endangered or threatened, and not vital to some rare and endangered animal, you probably don't want it taking up ground that could be producing something more useful in your pasture. So what's left standing after grazing isn't such a bad indication, but, as already mentioned, this test won't catch low-growing plants.

So, how to deal with those low-growing plants? Good question, and a good subject for further research. First you have to be able to identify their presence, and distinguish between them and the grass stubble left behind by grazing. Then there's the matter of locating the main stem and the location where it and the root system connect. If a plant is lying on the ground, supported by it and not swaying in the breeze, the modeling of its branching structure from video of its motion I referenced earlier won't work. One way to accomplish this might be to use a vacuum that pulls in a sufficiently large volume of air to pick up the vining tendrils and suck them in, and if you have a serious infestation of this sort of weed then using such equipment might be a reasonable choice. Another way might be a pincer-like manipulator, with cylindrical counter-rotating rotary rasps for fingers, pinching the vine at any point, determining which direction to rotate by trial and error, then using the resulting tension to guide the manipulator to the main stem so it can be uprooted.

Such a manipulator might be generally better at uprooting than a simple grasping manipulator, since the rotation of the fingers would replace retracting the robotic arm, potentially making the overall operation more efficient. A variation on the theme which might prove more generally useful would have low points on each finger matched by shallow indentations on the other finger, at the end furthest from the motors driving finger rotation, progressing to protruding hooks matched by deep indentations at the end nearest the motors. This would allow the same attachment to be used both for ordinary uprooting and for gathering up a something like goatheads, simply by adjusting where along the length of the rotating fingers it grasped the plant.


I also promised to get back to the use of sound, in the context of fauna management and pest control. This by itself could easily be the subject of a lengthy book. Information about the environment can be gleaned from ambient sounds as well as from active sonar, and a robot might also emit sounds for the effects they can produce.

Sonar is already widely used in robotics as a way of detecting and determining the distance to obstacles. While thus far more sophisticated technologies, such as synthetic aperture sonar, have primarily been developed for underwater use, a large market for autonomous robots operating at modest ground speeds in uncontrolled environments might prove incentive enough to justify developing versions for use in air.

Meanwhile, there is a wealth of information available from simple microphones. From tiny arthropods to passing ungulates, many animals produce characteristic sounds, with familiar examples including crickets, frogs, and all types of birds and mammals. These sounds can help identify not only what species are present but where they are and what they are doing.

Sound can also be used to affect the behavior of animals, for example discouraging deer from spending too much time browsing on your vegetable garden or keeping chickens from venturing too far afield. Through sound, a robot might signal the presence of a predator, or food, or a potential mate.

But it's not just animals; even plants produce sounds. A tree that has sustained wind damage, introducing cracks into its trunk, will sound different from one which has not. A plant with wilted leaves sounds different from one that is fully turgid, and one from which the leaves have fallen sounds different yet.

So far as I'm aware, all such potential uses of sound represent largely unexplored areas of research, so it's hard to know what all a machine might be able to learn about its biological environment just by listening and processing the data produced, and in what manner it might use sound to exert some control over that environment.


I've concentrated on tying up loose ends here because I'm eager to get on to the series on Robotics for Gardeners and Farmers. That's not to say that this will be the last installment in this series; after all I've yet to address planting, pruning, pest control, harvest, or dealing with the plant matter left behind after harvest, as well as animal husbandry. Whether I eventually get to all of these remains to be seen. Touching on all such topics probably isn't as important as conveying the nature of the opportunities presented by the application of robotics to methods founded in horticulture rather than in conventional agriculture, with an eye to then making them scalable.

Previous installments:

Building Soil Health for Healthy Plants by soil scientist Dr. Elaine Ingham

You might think of this as a mini-course in soil science, with an emphasis on soil microbiology.

Saturday, May 28, 2016

Joel Salatin: Successional Success - Field of Farmers

No mention of robotics here, except as might be implied by portable infrastructure, but this speech is a real eye-opener, well worth the time investment in watching and listening.

Pushing Back Deserts through Aerial Seeding


SourceLicense — Photo unmodified from original.

Start with a seed ball, containing seeds of one or more drought tolerant, deep-rooted perennial plants.

Next assemble some feathers or vanes, rather like those found on a badminton shuttlecock, but with an adaxial (inner) surface that is both a good radiator of thermal energy and hydrophobic, or having a branching network of hydrophobic veins which converge at the stem end.

Attach the feathers/vanes to the seed ball to form a seed bomb, and experiment iteratively to refine the design. The combination of mass and terminal velocity in free fall must be such that the seed bomb will penetrate a dry clay soil surface sufficiently to anchor itself against wind. The feathers or vanes should open up like a flower upon impact and remain in that configuration thereafter. This may require spring-loaded anchors that are triggered by the impact, to keep winds from tearing the seed bomb loose from the soil by its feathers/vanes.

Equip an aircraft with sensors that enable automatic determination of whether there are any people, domestic animals, or wildlife below and use this information to avoid harming them by interrupting the release of seed bombs. Drop the seed bombs near the desert's edge, where there is occasional rainfall, but not enough to support grazing, much less agriculture. Where there is enough rainfall to support grazing, a different type of seed bomb should be used.

Even without precipitation, so long as there is some humidity in the air, condensation (dew) will collect on the inner, now upward-facing radiative surfaces of the feathers/vanes, from where it will run down towards the seed ball due to the hydrophobic character of those surfaces.

In this manner, it should be possible to establish greenery at the edge of a desert, with the effect of locally altering the climate, perhaps enough so that a few years later another swath, closer to the center of the desert, can be seeded.

Friday, May 27, 2016

Why Agriculture Can Never Be Sustainable, and a Permacultural Solution present by Toby Hemenway

This video was recorded two years ago, but only recently posted to YouTube. I think it's amazingly good!

Tuesday, May 24, 2016

Biological Agriculture for Roboticists, Part 5

To be most useful, agricultural robots need not only to be able to distinguish plants from a background of soil and decaying plant matter, but to be able to distinguish them from each other, and to quickly model their branching structures, at least approximately, if only so they can locate the main stem and the point at which it emerges from the soil. They also need to be able to recognize plants that don't belong to any of the types they've already learned to identify as being something new.

This is a tall order, and I'll get into some specifics on how it might be accomplished a bit further on, but first why would robots need to be able to recognize plants as being something they haven't seen before; isn't it enough to be able to tell whether they've been planted intentionally, crop or not?

In Part 4 of this series, I provisionally claimed that, in a recently tilled field, which has not yet been planted to the next crop, any green growing thing can be presumed to be a weed. While that's usually the case there are exceptions.

Even in a monoculture scenario with routine tillage, where you don't really expect to find anything other than the crop that the farmer has planted and weeds in the field, seed may be brought in from elsewhere, blown on the wind, in bird droppings, or in the stools or clinging to the fur of some wide-ranging mammal. Generally these also might be considered weeds, but occasionally they will be rare and endangered species themselves, or vital to the survival of rare and endangered animals (milkweed for monarch butterflies), and should therefore be allowed to grow and mature, even at the expense of a small percentage of crop production and some inconvenience. (Farmers should be compensated for allowing this to happen, and robotic equipment can help document that they have done so.)

In a poly/permaculture scenario, native plants that aren't poisonous to livestock or wildlife, and which don't compete aggressively with crops, are usually welcome, because they increase the diversity of the flora, supporting a more diverse fauna, which is more likely to include beneficial species, all of which implies a more stable environment, less prone to overwhelming infestations of all sorts.

Plants look different under different lighting conditions — dawn, mid-morning, noon, mid-afternoon, dusk, and under clear sky versus clouds versus overcast conditions — and different in shade than when standing alone on otherwise clear ground. Beyond that, plants look very different as seedlings than they do after a few weeks of growth, different yet when they've gone to flower, and different once again when mature, and for deciduous perennials still more different in their winter or dry season dormancy. Without having seen them in all of these stages and conditions, even a human gardener might mistake one crop plant for another, or for a weed, and based upon that select an inappropriate action. Recognizing continuity between stages and across diverse conditions is even more challenging for a machine.

For all of these reasons, once the technology is up to making such differentiations quickly enough that it is no longer the limiting factor in machine performance, the default needs to be that when confronted with something unfamiliar do nothing other than keep track of it, and send a notification up the escalation chain. Now back to the question of how, which is about sensory modes and sensory processing. What information about an environment composed of crops, a smattering of native plants, and weeds, on a background of soil and decaying plant matter, can a machine usefully collect and process?

Among the most obvious and most valuable is location. To a very close approximation, plants stay where they're planted, so if today you find a plant in the same location as you found one yesterday, there's a high probability that it's the same plant, just a day older. (It's true that some plants send up new shoots from their root systems, remote from the original stem, but that belongs to a discussion of modeling things that aren't directly sensible, or, in that example, requires something like ground-penetrating radar.) Generally speaking for plants, over a short interval, location is synonymous with identity. GPS by itself is inadequate to establish location with sufficient precision to be used in this manner, so it must be supplemented with other methods, such as fixed markers, odometry, and maps created on previous passes over the same ground. More precise local positioning systems could also prove very helpful.

Another obvious collection of modalities center around imagery based on sensing reflected electromagnetic energy, including everything from microwaves through infrared and visible light to ultraviolet, as snapshots and over time (video), and using ambient or active illumination, or a combination of the two. (Introduction to RADAR Remote Sensing for Vegetation Mapping and Monitoring) Color video camera modules have become so inexpensive that using an array of them has become a reasonable proposition, and modules containing two or more lens/sensor systems are becoming widely available. Cameras which are sensitive to ultraviolet, near-infrared (wavelengths just longer than visible light), and far-infrared (thermal radiation) are also becoming common and dropping in price. Even phased array radar is being modularized and should be reasonable to include in mobile machines within a very few years.

Other sensory modes that are either already in common use, or may soon be so, include sound, both passive (hearing) and active (sonar), pressure/strain (touch-bars, whiskers, and controlling manipulator force), simple gas measurement (H2O, CO2, CH4) and volatile organic compound detection (smell, useful in distinguishing seedlings). I'll get back to the use of sound in a future installment, in the context of fauna management and pest control.

The stickier problem is how to transform all the data produced by all available sensors into something useful. This can be somewhat simplified by the inclusion of preprocessing circuitry in sensor modules, so that, for example, a camera module serves processed imagery instead of a raw data stream, but that still leaves the challenge of sensor fusion, weaving all of the data from all of the various sensors together to create an integrated model of the machine's environment and position within it, both reflecting physical reality and supporting decisions about what to do next, quickly enough to be useful. Again, research is ongoing.

Previous installments:

Sunday, May 22, 2016

Biological Agriculture for Roboticists, Part 4

So how can robotics contribute to agriculture, or, more generally, to land management? Let's start with a relatively simple example, where the robot need not concern itself with differentiating between crops and weeds, and the only required manipulations are of nonliving materials. I'm talking about erosion control. In the video linked below there is no mention of robots, but the speaker does describe one of the techniques he employs — close placement of stones such that they aren't vulnerable to being washed away in the next flood — as time consuming and tedious. This is almost certainly a task that could be automated.

One step up from this is weed elimination in a recently tilled field which has not yet been seeded for the next crop, sometimes referred to as 'fallow' although that word is also used to mean a field that is simply being left alone for a time and has not been tilled. In that recently tilled field, any green growing thing can be assumed to be a weed — well, not exactly, but for the present purpose yes; I'll get back to this in a future installment — so all the robot has to be able to do is differentiate between the color of tilled soil and the color of any green growing thing within a geofence. Spot application of herbicide directly onto the plant, scaled to the size of the plant (less on smaller plants), is a huge improvement over area-wide application of the same herbicide, because it results in much less being used, and there are already machines available that do this.

Still using herbicides, further improvement is possible if the robot can model the plant in some detail, instead of only detecting a green blob, and determine where various parts of the plant are in space and relative to each other, how they are attached. Given such a model, more precise application of still smaller amounts of herbicide becomes possible, dropwise onto the point or points where cell division takes place (the meristem or meristems) or, in the case of an established plant, by injection into the main stem, just above where it emerges from the soil. Drop application can be tricky in a breeze, with the plant moving around, but if that model includes the structure of the plant and how it moves in response to air currents — something that is extractable from video (see below) — then those motions can be predicted and compensated for in the positioning of the drop dispenser. Other methods, not involving herbicides, are also possible, and made a great deal easier by this sort of modeling.

Pastures are a bit more complicated than recently tilled fields, since the contrast between weeds and everything else is more subtle, but help is available. Herbivores can be picky about what they eat and don't eat, and what they don't eat can produce seed or spread vegetatively, reducing the value of the pasture. In combination with holistic management of the animals themselves, keeping unpalatable plant species in check can help protect and improve pasture land. This is a task that can be performed by robots, at its simplest by clipping off at ground level anything left standing more than a few centimeters high immediately after a paddock has been grazed, after the animals have already decided for themselves what's good to eat and what isn't. This approach won't control low-growing plants, like goatheads (photo courtesy of Forest & Kim Starr), but it will control thistles and other erect plants. (Again, more in a later installment.)

Weed control becomes more challenging when the machine must be able to distinguish between crops and weeds, and research into accomplishing this is ongoing, but given that perceptual ability, the ways in which a robot might deal with a weed are numerous, and generally fall into three categories, control of seedlings, control of established plants that can easily be uprooted, and control of established plants that break off if you attempt to uproot them, leaving the root behind to produce a new shoot.

Seedlings are difficult to distinguish, but easy to kill. Most are easily uprooted, but moving a mechanism into position to do the uprooting takes time, especially if there are many weed seedlings to be dealt with in this manner. Using a high-pressure water jet to expose the root or sever the stem should take less time, since no movement reversal (pulling) is required. Using projectiles (ice, dry compressed compost, ...) might accomplish much the same thing from a slightly greater distance, given accurate targeting. With even more precise targeting, a laser might heat just the meristem enough to stop a seedling's development, from an even greater distance, requiring even smaller movements for retargeting, enabling faster operation. Laser heating might be combined with LIDAR sensing as a precisely timed high-energy pulse. A downside for both projectile and laser methods is that they require a clear path from a remote position to the target, something that becomes more problematic as the growing season progresses and leaf canopies become more dense, but seedlings that emerge later in the season are less of a concern, both because they will develop more slowly due to the shade created by established plants and because, by the time they have developed enough to represent significant competition for resources, annual crops will already be maturing or have already been harvested.

Plants with established root systems can sometimes also be uprooted, and any established plant can be clipped off mechanically near the soil surface, or cut off with a jet of high-pressure water. All of these techniques require positioning a mechanism at or near the base of the plant, and uprooting also requires support sufficient not only for the weight of that mechanism but also to offset the force required to accomplish uprooting, which can be considerable. Clipping or cutting a plant off near the soil line may not kill it, but it will set back its growth, and doing so repeatedly can eventually exhaust the resources it draws upon to regenerate above-ground growth, provided that the root system isn't being fed by foliage elsewhere. Machines relying upon such methods should be programmed to revisit those locations periodically, checking for regrowth. Plants with very tenacious root systems may require more aggressive treatment, which could mean herbicides but might also mean coring (cutting a deep cylindrical plug from the soil around the plant's stem) or steam injection, to cut the node from which that stem emerged off from the rest of the root system or locally kill the root system. All of this is a little like the botanical equivalent of Whac-A-Mole, which means tedium, something robots excel at coping with.

Next I'll go into perceptual systems (sensing and sensory processing) and plant differentiation in greater depth.

Previous installments:

Saturday, May 21, 2016

Robots Podcast #208: James Underwood

Robots Podcast #208 is an interview with James Underwood, who is a senior research fellow at the Australian Centre for Field Robotics, University of Sydney. He “is an expert in the area of perception systems for field robotics – the study of how outdoor robots working in complex, unstructured environments can make sense of their world using science and technology in multi-modal sensing, data fusion and mapping.”

In that interview, Dr. Underwood goes far beyond discussing the featured Ladybird project to provide us with an excellent overview of where agricultural robotics is headed over the next few years.

Be sure not to miss this podcast!

Friday, May 13, 2016

Biological Agriculture for Roboticists, Part 3

Now you might wonder why I'm referring specifically to 'Biological' agriculture, rather than just refer to agriculture in general; allow me to explain.

The loss of soil through erosion, and the loss of fertility and the capacity for water retention in what remains are both reaching crisis proportions, with the result that it will become increasingly difficult to maintain yields on much of the land currently in production. Compounding this is the prospect of a world population that may be brushing up against ten billion by the middle of this century, the spread of urban areas onto land previously used to produce food, and climatic changes that dictate changes in what crop is grown where.

Moreover, while the number of people afflicted by starvation is actually falling, the percentage of people affected by malnutrition is on the increase. Over the last few decades, we have been catching up with the demand for calories, even for protein, but falling behind in terms of a well-rounded diet. If the goal is to feed everyone to a high standard, then we are not on track to achieve it, even without the further loss of production capacity.

There are countertrends, of course. Consumer cooperatives, urban farming, and direct connections between market farmers located near cities and consumers within them all work to narrow the gap between what is available and affordable through conventional channels and that well-rounded diet. On the downside, local production is even more seasonal than are conventional channels, which regularly bring in goods harvested unripe to help them survive long-distance transport, selling these at a premium in the off-season. It remains to be seen how much of that gap can be spanned for how many how soon. There are many working to push the envelope as far as it can be pushed, but habit and an avalanche of advertising stand in the way of rapid change.

One specific countertrend where robots are already making an inroad is in the production of leafy greens under artificial light in urban factory settings. Because these are controlled environments with repetitious geometries, it is relatively easy to make machines operate within them. No doubt this trend will continue to make headway, branching out into other types of produce at it proves practical to do so, but, at least for the near term, it will probably be limited to crops that are shade tolerant, not requiring intense light, and even the seed for these will continue to be produced outside.

If these trends continue to gain momentum, they may take some of the pressure off rural food production, even with a growing population. Nevertheless, we will continue to need that rural production for a long time to come, for the foreseeable future, so we'd better be thinking about how we can protect and improve the productivity of the land we depend upon.

This is where both biological agriculture and robots come in. In recent times, while what constituted conventional agriculture has been growing in scale and increasing its use of industrially produced fertilizers, pesticides, and herbicides, the practice of biological agriculture has mostly happened at the scale of gardens worked by hand, and, for the people working these gardens, this is quite often simply a matter of using traditional methods passed down through generations, which aren't necessarily optimal, but which are generally less destructive than the methods that have become conventional in the developed world. Unfortunately, such traditional methods only scale with the number of hands available to perform them, and the trend has been for people to leave this way of life for the cities – a new wave of emigration with each new war or environmental catastrophe – with the land they had been tending falling into the hands of larger scale farmers using more conventional methods. (Take a minute to consider for whom this migration off the land might be convenient.)

Using conventional equipment, the methods of biological agriculture don't scale without compromise. Where you might pull weeds by hand and avoid tillage in a small garden, as the size of the farm goes up the temptation to use wholesale methods, tillage or herbicides or both, can become overwhelming. Tillage exposes the soil to erosion, and herbicides can mess with soil microbiota, leach into ground water, are washed away with runoff, and remain present in trace amounts in the food produced, also true for pesticides and fungicides. Granted that it's not really fair to lump all such products together as being destructive – some are far more so than others – but on balance it's better to avoid their use if a practical alternative exists, and, if they must be used, to use them as sparingly as possible, through precise application.

What's needed is equipment capable of using methods which are functionally equivalent or superior to what a gardener doing the work by hand might use, and can do so without a human operator, so the number of such machines in operation is not limited to the number of human operators available. Perhaps surprisingly, the second of these requirements frees equipment manufacturers to opt for smaller rather than larger designs, both reducing the amount of damage one might do if it malfunctions and enabling economies of scale not available to equipment produced only in the thousands of units per year.

What may also be surprising is that, while equipment designed to work thousands of acres doesn't scale down for use in gardens, equipment designed for use in gardens, if it can be trusted to operate autonomously, will quite happily scale up to thousands of acres, bringing with it a transformation of the methods in use.

In the absence of ready examples to point to, it's hard to know how the economics of this transformation might work out. While the smaller devices would each be far less expensive than, for example, a modern tractor, many more of them would be needed, so equipment cost might actually be higher. On the other hand, if they are doing the mechanical equivalent of weeding by hand, and not consuming diesel fuel to power pulling implements through the soil, the cost of other inputs will be reduced. Also, their use may enable the cultivation of higher value crops that can't easily be produced by bulk methods.

Improving technology and techniques will undoubtedly, at some point, tip the balance in favor of using smaller, autonomous machinery, so that farms which do so are more profitable than those that do not, and once that happens further development will be driven by a rapidly growing market.

The smallholders alluded to above will be among the biggest beneficiaries of this trend. Much of the technology developed for conventional agriculture has only made their lives harder, by driving down the prices of commodity crops like maize and wheat. But the development of small, autonomous equipment, well suited to small plots and crops that aren't so easily produced using bulk methods, would make it possible for them to use more intensive management of the land they have, and spend less time doing it.

Another class of beneficiary is plant breeders, the people working to develop crop varieties that are better at competing with weeds, are more resistant to pests, are more hardy under a wider range of environmental conditions, produce higher yields in poorer soil with less fertilizer, and, as if all that weren't enough, are also more nutritious. This is tedious work*, and machines capable of performing detailed field operations autonomously would dramatically improve its effectiveness, in particular because land in active production and the machines tending that land could all be enlisted in the effort, by simply including some additional code in the programming of those machines. That increased effectiveness could help insure the availability of nonproprietary seeds which a farmer can save from one crop to plant the next without the next generation being far less productive than the original seed, and without being sued for doing so.

Next I'll get into some specifics of just how robots might perform such detailed field operations.

Tuesday, May 10, 2016

Biological Agriculture for Roboticists, Part 2

Not every plant we cultivate for food grows from seed in soil. Some don't grow from seed, either naturally or by our choice, because we want to perpetuate the characteristics of a particularly useful genome.

Vegetative Reproduction
Any plant reproduction that doesn't involve the reshuffling of chromosomes which results from sexual reproduction. Wikipedia has an excellent article on this topic.

Plant Propagation
This is a more general term that includes both reproduction from seed and vegetative reproduction. Again, Wikipedia has this covered.

There are also some plants that naturally don't grow in soil, but here we're mostly interested in cultivation methods not involving soil, except perhaps as an inert granular medium used only for mechanical support.

Aquaculture
Generally thought of as a way of producing fish, crustaceans (shrimp, lobsters, crayfish) or gastropods (snails, clams), aquaculture can also be a way of producing food those animals eat, or plant matter for other uses. Everything from suspended phytoplankton to vascular plants anchored on the bottom or floating on the surface can contribute to the biomass available to/from the system. Besides being productive in itself, aquaculture combines well with other practices, because, whether due to the presence of microorganisms or the waste products of animals, the water makes good fertilizer.

Hydroponics & Aeroponics
These are two variations on the theme of growing plants in a nutrient solution without soil, although, in the case of hydroponics, an inert granular medium may be used for mechanical support. Aeroponics is distinguished by the use of mist to keep the roots moist, rather than fluid water, obviating the need for supporting structures sufficiently strong to hold up the mass involved in using large amounts of water, and also avoiding the possibility of anaerobic conditions developing.

Aquaponics
Aquaponics is the combination of aquaculture and either hydroponics or aeroponics, where water from aquaculture is used as a fertilizer, and perhaps also plants produced using that water are fed to animals in the aquaculture environment. This cycling of nutrients can result in a highly productive systems which make good use of both space and available light energy.

While aquaponic systems are very good at producing quick-growing leafy greens, like lettuce, and protein from aquatic animals, the cost of infrastructure makes the use of hydroponics or even aeroponics prohibitively expensive for the production of many crops, and for others, like potatoes and peanuts, they are simply unsuitable because the part of the plant we are interested in harvesting grows below the soil surface, or, like wheat, the plants need a dry environment for final ripening and are susceptible to fungal damage if the humidity is too high too late in the growing season. So, we'll be needing soil for awhile yet.

Either way, whether using soil or not, aquaculture can be an integral part of the system.

Also either way, whether using soil or not, whether outdoors, or in polytunnels or permanent greenhouses, or in racks under light from LEDs, or even growing mushrooms in the dark, there's a place for robots, lots of robots, maybe even billions of robots.

Sunday, May 08, 2016

Biological Agriculture for Roboticists, Part 1

This is the first post in what I expect will become a series. As such, it makes no attempt to be comprehensive, but rather is intended to be a gentle introduction to the subject, which I have chosen to call "biological agriculture" for an audience composed of roboticists and robotics enthusiasts. This choice of names is somewhat arbitrary, but I think it will serve well enough, the idea being that methods based in biology and the manipulation of organisms should be used in preference to methods based in chemistry, even biochemistry. By this I do not mean that there is no place for chemistry, far from it, but that, in the sense/think/act paradigm common in robotics, chemistry properly belongs primarily to sensory input.

I also expect to do a series on Robotics for Gardeners and Farmers, as time and clarity allow.

Let's begin with a few definitions.

Cultivation
Cultivation has two primary meanings, one of which is specific to a class of tillage operations in which the soil is disturbed, usually lightly, to kill or suppress the development of weeds. The other meaning of cultivation is more general, roughly equivalent to the term husbandry, and may or may not include tillage as a practice. This more general meaning is what I had in mind in naming my blog Cultibotics. Cultivation without tillage is frequently referred to as a 'no-till' regime.

Soil
Soil is more than dirt. It is a complex ecosystem generally including a mineral component, but even that mineral component isn't static. The clay in soil is constantly in flux, trapping nutrients as it forms and releasing them again as it dissolves. It also contributes to the ability of soil to absorb and retain water. Decomposing organic matter in soil is collectively referred to as humus, which also contributes to water retention, as well as providing both nutrients for plants and food for the many living organisms found below the surface. Besides a bewildering array of bacteria and fungi, these also include worms, insects, and higher animals like moles and mice. Some microorganisms live in symbiosis with the roots of plants, receiving energy from them and providing a valuable service in return, for example nitrogen fixation. Living soil is also partly gaseous, with a continuous network of tiny pockets and channels throughout. In the absence of tillage or other disturbance, soil develops structure driven by the many simultaneous processes happening within it.

Fertilizer
Anything that provides substances needed by plants for growth and maturation can be considered a fertilizer, from the dung of passing herds of ungulates to composted feedlot waste, to slurry from urban sewage, to ground minerals, to industrially produced ammonium nitrate. Fertilizers are usually applied for the purpose of increasing yields, but may also be used to improve the nutritional quality and/or marketability of crops produced.

Herbicide
You may have heard of Glyphosate. It is one prominent example of herbicides, compounds marketed for the purpose of killing or suppressing the development of weeds that compete with crops, and has become a hot topic of debate in part because crop varieties which are relatively tolerant of this substance have been developed to broaden its applicability to crops that would otherwise be damaged or killed by it as much as the weeds it's meant to control. This is because it is a 'broad-spectrum' herbicide. Some herbicides are more specific, killing or stunting the growth of problematic species more selectively.

Pesticide
Generally the term pesticide is applied to substances which kill or suppress the development of multicellular animals, usually arthropods (insects, spiders, crustaceans) but commonly also tiny worms called nematodes and gastropods (slugs). Some of these substances are produced by and refined from organisms, or synthesized based on naturally produced compounds, while others are entirely synthetic. Depending on the metabolic pathway they target, pesticides may also be highly toxic to humans, and the use of those that are has already been prohibited or is tightly regulated, with limits established for residues in food sold for human consumption.

Fungicide
Fungicides are much like pesticides, except that they target fungi, such as ergot, which infects cereal crops like wheat and rye.

Biological Control
A prime example of biological control is one used by many gardeners, the release of ladybird beetles (ladybugs) to control aphids. Others include distribution of praying mantis egg cases and encouragement of parasitic wasps, which lay their eggs in or on the larvae of a variety of insects, such as the tomato hornworm. Biological controls tend to be more specific than synthesized products and are far less likely to present any danger to humans, but they also tend to be more management intensive, meaning that, for a given effect, they tend to require more time and attention from the gardener or farmer.

Polyculture
Plants are seldom found in uniform, single-species stands in nature, there is nearly always a mixture of species, forming plant communities, which in turn constitute the most visible aspect of ecosystems. Polyculture attempts to mimic this by combining plants that play well together into mixed plantings, simultaneously, sequentially, or both. One popular approach which arguably qualifies as polyculture is planting different crops in alternating rows in the same field. This practice may help keep populations of beneficial insects from crashing, by spreading out the season during which resources are available to them.

Crop Rotation
A compromise solution which achieves some of the benefits of polyculture without the complication of combining multiple types of plant together in the same field at the same time is crop rotation. Rotations can often be expressed as a simple, repeating sequence of crops, such as clover followed by maize followed by wheat.

Permaculture
Think vineyards and orchards, although some herbaceous crops are also perennial. Even though vines and trees eventually die, they live for years and may be replaced by young plants of the same type, perpetuating the continuity of the ecosystem which develops around them. Permacultures may also be polycultures, and may include annual crops in the mix, but the presence of perennials constrains the use of highly disruptive techniques, like plowing, to the space between them, discouraging the use of such techniques at all.

That's enough for a decent beginning. Stay tuned for Part 2, and for the series on Robotics for Gardeners and Farmers.