Measuring tiny drifting debris in the river

A model we’re developing examines the idea that the behavior of drift-feeding fish is largely determined by cognitive limits on their ability to process visual information. We’ve hypothesized that the fish focus their efforts on a particular region (for example, within a 10 cm radius of their snout), or on particular types of prey, to avoid sensory overload from trying to search too much space or sort through too many drifting items at once.  Even with this focus, 91% of the foraging maneuvers of juvenile Chinook salmon in the Chena River are directed at items they reject (by abandoning the chase or spitting things out), and it’s obvious on video that there’s far more debris present than what the fish actually pursue.

But how much is there, exactly?

It’s easy to collect the debris with a drift net and weigh it, but that doesn’t tell us how many pieces there were, nor how big they were — both crucial pieces of information for understanding the visual challenge facing a fish as it tries to locate prey amongst the debris. To get that information, we’re developing a new technique based on computer vision. We use a DSLR to take thousands of pictures of water flowing through a well-lit rectangular chamber against a dark background. Here’s the first version of that contraption in the Chena River a few days ago:

Debris counter testWe took a picture per second to get around 2,500 pictures that look like this (click it to view full size):

CountedDebrisOriginal

Most of that junk against the black background is stuck to the chamber somehow, not actual drifting debris. We can get a picture that excludes the real drifting stuff (or anything that’s moving) by taking the average (median) of ten consecutive pictures, a technique borrowed from astronomy. Here’s the average (which was also converted from color to grayscale to speed up the calculations):

CountedDebrisMedianIt hardly looks any different. But if we subtract this background from one of the individual images containing drifting items, we theoretically get an image with only the drifting items. The reality is a bit messier, because some of the non-drifting items change slightly in appearance between frames and can show up in the subtracted image, but we have a nice bag of tools for dealing with that. In the end, the process lets us pick out almost all the drifting debris, highlighted and numbered in green boxes in the image below:

CountedDebrisGreenBoxesThe detected particles can then be counted and measured. Here are the close-ups, with the index # of each particle listed above its length in millimeters. The four images of each particle, from left to right, are from (1) the original image, (2) the median background, (3) the original minus the median background, and (4) a false-color overlay showing which pixels were actually counted as part of the particle.CountedDebrisTable

Here’s another one, just because they’re pretty:

2015-10-18 Debris-0039_GridGraphic

It takes about 30 seconds for the computer to crunch one image, so an overnight program run will allow us to count and measure tens of thousands of debris particles from several cubic meters of water.

We won’t need to do this every time we go in the field to observe fish. The particle size composition and average weight per particle probably don’t change too much within each stream at normal water levels, although they may be very different in different streams. So we’re planning to run this system alongside a drift net, a few times per stream, to establish relationships between weight of debris in the net and debris counts/sizes from the images. Then we’ll be able to reasonably infer debris counts and sizes based on debris weights in the nets at all our other study sites.

This was the very first test of this whole idea, and as expected there are some little problems, like a roughly hourglass-shaped region in the middle of the image where not all the debris particles were detected. We have easy fixes for every problem identified so far, and are going to get some really interesting data when we deploy this system in the field next summer.

 

The fish we sampled in 2015

Our fieldwork consists of recording feeding fish on video, then capturing them (or their neighbors, if necessary) and harmlessly collecting their stomach contents to see what they ate during our observations. We’ll then compare these data with model predictions. We take photos of each fish we stomach sample, from both sides, so we can compare their appearances (spots, parr marks, scars, etc.) and see which stomach samples correspond to which fish we observed on video.

We also accomplish two tasks at once by photographing each fish against a ruler-like grid to measure its length. We started out with a storebought 1/8-inch grid (pink in the pictures), but then used custom black and white metric grids for most of the summer (with progressively thicker marks at 1, 10, and 100 mm).

After using photo software (Lightroom) to crop/straighten all the fish images and add metadata (such as species, length, and left/right view) I sent the whole batch to Mathematica to organize all the metadata into spreadsheets and generate some graphics. Here are all the fish we physically sampled this summer, from the left (click the image to see it full-size):

All2015FishLeft2880And the other side of all the same fish:

All2015FishRight2880And here are collages of each species, with image size being proportional to the size of the fish. Juvenile Chinook salmon:

Weighted2015Fish_Chinook_RightView_2880Dolly varden:

Weighted2015Fish_Dolly_LeftView_2880Arctic grayling:

Weighted2015Fish_Grayling_LeftView_2880The above images are mostly just for fun. The main application of these images, besides length measurement, is to group them into “reference cards” for comparing fish on video to the fish we caught at each of our 31 study sites. Here are a couple of those, showing each fish from both sides:

2015-07-10-1 DataFish

2015-07-17-1 DataFish

 

 

 

 

 

Looking for Summer 2015 Field Techs [UPDATE: POSITIONS FILLED]

As of April 4, 2015, these positions are filled. To all applicants, thanks for your interest!

Below is a flyer announcing two summer field technician positions we’re hiring. If you came to this site after seeing it, you can read more about our scientific goals, see the people involved, see our study sites, or browse down the blog to see more pictures of the sites and the work we did last summer to test our methods.

NPRB Field Assistant Flyer

Capturing dolly varden for foraging experiments

We had to capture a small number of grayling or dolly varden this year to begin experiments on their feeding behavior and learn how to adjust the lab environment for their capabilities. By the time we were ready to receive fish (October 1st), winter was already creeping in on our study stream in the foothills of the Alaska Range.

View downstream from previous pool

 

My job was to bushwhack up the creek with a bucket of water and a bunch of other supplies to catch fish and keep them safe for transport. I tried using my fly rod and some collapsible minnow traps, and I also brought a GoPro on a telescoping pole with an HDMI live viewer to scope out the locations of fish I might not find otherwise.

Sampling gear

 

It was generally more difficult to find fish at this time of year than during the summer. Grayling were nowhere to be seen, but I found a few dolly varden in the biggest pools. The minnow traps were completely ineffective, even when placed in a pool right next to dollies I found on camera. But my fly fishing skills did not fail me.

 

Good dolly

 

Like the Chinook salmon, the dollies we collected survived the trip to Georgia in great shape. However, I was asked to send a few more a couple weeks later. Unfortunately, conditions on the creek were not very conducive to catching fish.

2014-10-12-0067_ 2014-10-12-0066_

Not wanting to completely give up after the long drive, my friend Trevor (a labmate at UAF who also finished his Ph.D. this summer) and I hiked three miles up the icy river bed searching for fish. We stuck the GoPro through gaps in the ice to investigate all sorts of likely habitat, but there were almost no fish to be found — just a few that spooked out of the shallowed riffles and were long gone before we could try to catch them.

2014-10-12-0068_

The only fish we could have collected was a slimy sculpin we found, frozen solid and perfectly preserved, out in the open on top of the ice. We left it to rest in peace.

Trying to film big grayling

From August 23-25, 2014, my dad and I camped out on the Richardson Clearwater to try to collect 3-D video foraging data on adult grayling using the GoPros. We found one of the only good campsites on the river, although it was well hidden.

2014-08-24-0054_The weather and scenery were amazing the whole time.

2014-08-24-0055_

2014-08-25-0057_

In addition to filming, we also caught some fish to compare diet samples with the ones we caught a month before.

2014-08-25-0060_The video we shot of grayling turned out to be disappointing. The fish were mostly in water fast and deep enough that it was difficult to place the cameras nearby. When we did, our presence spooked the fish, and they eventually returned to the general area but not to their specific original positions in front of the cameras. Unlike Chinook salmon I’ve filmed previously with steady success, the grayling in this stream seem to range over an area large and uniform enough that when they’re disturbed they have no strong urge to return to the same spot anytime soon.

2014-08-25-0059_

Although this stymied our efforts to shoot good footage on this trip, it was very valuable going into the off-season before our first real field season. It told us that we need to figure out a way to place the cameras in faster, deeper water than expected (i.e. devise a new anchoring system) and that we need to find a way to keep the cameras running for a very long time, so they’re ready when the fish eventually do return to suitable positions. This is exactly the kind of thing we needed to figure out while we still have the whole winter to engineer our solutions.