Slug Monitoring with IoT Systems

Background

Slugs are one of the major pests causing significant seed yield losses in grass and legume seed production in Oregon's Willamette Valley. Chemical baits are costly and vary in efficacy, and they work best when slugs are actively feeding above ground. Growers commonly rely on general rules of thumb: slugs are mainly active at night, when relative humidity is high, temperatures range between 40 and 70°F, moisture is ample, and wind is below 5 mph. However, microclimate differences within a field affect slug presence and behavior, and growers have no practical way to know when slugs are actually active before or after baiting.

Objectives

This project investigates whether self-customized, low-cost imaging and environmental sensing systems can monitor and predict slug activity. We hypothesize that slug activity in grass seed fields responds to short-term changes in weather, and that continuous field imaging can capture these responses and help predict periods of high slug activity. The project has three objectives:

  1. Develop low-cost imaging and environmental sensing systems for continuous collection of slug activity and on-site environmental data in field conditions
  2. Count and track slugs in the collected images using computer vision algorithms
  3. Identify the environmental variables that drive slug activity in grass seed crops

Low-Cost IoT Sensing Systems

Slug imaging station (about $350 per unit). Each station uses a night-vision camera controlled by a Raspberry Pi, with a timer that sets the imaging interval. The electronics are enclosed in a custom 3D-printed case mounted on a tripod, with LEDs for night illumination. Images are stored onboard and copied out weekly.

Slug imaging station showing the 3D-printed case, internal electronics, and tripod deployment in a field
The slug imaging station: custom 3D-printed enclosure (left), internal camera, timer, and microcontroller (center), and field deployment on a tripod (right).

Weather station (about $200 per unit). Controlled by an ESP32 microcontroller with Wi-Fi and cellular connectivity, each weather station measures air temperature, relative humidity, solar radiation, wind speed, vapor pressure, and precipitation. A web dashboard shows system status and live weather data, and the station is designed to push weather-based treatment scheduling to users.

Field weather station with anemometer, rain gauge, sensors, and a phone dashboard showing live weather data
The on-site weather station and its mobile monitoring dashboard.

Field Deployment

From October to December 2025, we deployed 24 imaging nodes and six weather stations in six conventionally tilled tall fescue seed production fields across the Willamette Valley: three in Washington County (North Valley) and three in Linn and Benton Counties (South Valley). Each node captured an image every 2–3 minutes from about 3 ft above the ground, covering a 2.5 × 3 ft area. In total, the systems collected 246,627 images in the first season.

Year 1 Findings

We manually annotated all images from one site (about 53,000 images) and identified 194 distinct slugs across 3,577 frames. Slugs could be identified in both day and night images.

Video example of slug monitoring in the field.

Relating slug presence to weather at this site showed that:

  • Season mattered most. No slugs were seen in October, 8–19% of 30-minute windows had slugs in November, and 36–38% in December. Season explained more of the variation in slug activity than all weather variables combined.
  • Slugs were active day and night. Slugs were seen two to three times more often at night, but they were also active during the day and at temperatures as low as 36°F.
  • Rain and humidity had specific effects. At night, activity was highest when no rain had fallen in the previous 6 hours and dropped after rain. During the day, activity was lowest in drier air (RH < 85%) and at temperatures above 55°F. Wind speed showed no clear standalone effect.
Bar chart of the percentage of 30-minute windows with at least one slug, by week from October 18 to December 19
Percentage of 30-minute windows with at least one slug, by weekly visit (Oct–Dec 2025).
Charts of slug activity by weather class for night and day: air temperature, relative humidity, vapor pressure deficit, wind speed, recent rain, and temperature change
Percentage of 30-minute windows with at least one slug by weather class, night vs. day (95% confidence intervals).

Note: These observations come from one site in one season and need to be confirmed with more data.

2026 Season: Improved Systems

Lessons from the first season led to several system upgrades: brighter, fully waterproof RGB LEDs for night illumination; cameras and lights mounted closer to the ground for higher image resolution; standalone data loggers and real-time clocks so weather data can be matched to each image frame; and a soil moisture sensor at each site. The improved systems, with five imaging nodes and one weather station per field, have been collecting data since October 5, 2026, with clearly improved image quality and continuous weather records.

Daytime image from the improved 2026 imaging node Nighttime image from the improved 2026 imaging node under RGB illumination
Example images from the improved imaging nodes during the day (left) and at night under RGB illumination (right).

Project Sponsors

  • Oregon Grass Seed Commissions (OGSC)
  • OSU Agricultural Research Foundation (ARF)

We thank the farmers who granted access to their fields for data collection.