Showing posts with label whales. Show all posts
Showing posts with label whales. Show all posts

Sunday, September 23, 2012

How loud is that whale, anyway?

When we're thinking about how loud a noise needs to be to damage a whale's hearing, it's important to consider how loud the sounds are that the whale makes itself. If a singing whale makes a sound itself that is at a certain sound level, it is pretty unlikely that it will be deafened by being exposed to a sound of the same level.  This is something like how you are unlikely to be deafened by the sound of your own voice. This isn't to say that continual exposure to sounds at or quieter than their own won't affect whales. It will - just like constant low-noise sounds such as traffic can damage human health.

Calibrating hydrophone sensitivity
curves is very pleasurable.
The first step in figuring out how loud your whale is to drop a hydrophone in the water. Hydrophones convert pressure into voltage (if you're interested in how, I explain here). Hydrophones also have a property called sensitivity, which is a measurement of how quiet of a sound that the hydrophone can hear. The difference in sound sensitivity between a very sensitive hydrophone and a very insensitive hydrophone is like the difference in touch sensitivity between your tounge and your heel. A light touch on the heel might not make any neurons fire, but...

As an aside, in the book "Last Chance to See," Douglas Adams puts a microphone in a condom and uses it to try and listen to Yangtzee river dolphins in China. (Insert nerdy bio-acoustition joke here).

Hydrophone sensitivity is usually listed as a single number, something you will notice if you are a buyer of hydrophones or microphones. This number is negative, and the less negative, the more sensitive the hydrophone. Listing a single number actually oversimplifies things. For example, let's look at the sensitivity of the Reson TC 4024 hydrophone at a range of frequencies between 0 and about 90 kHz. If you remember, frequency determines how shrill a sound is. Barry White, for example, has a low frequency voice, and the Chipmunks squeak their songs at high frequencies. OK, so the "typical receiving sensitivity of this hydrophone" is listed as -173 dB. But, as you can see, the sensitivity actually varies quite a lot with frequency:



Because of this, most people only use their hydrophones to record sounds in the "flat frequency response" region, which, for this hydrophone, is between about 4 Hz and 45 kHz. This flat frequency region is pretty much about equal to -173 dB (and if you want to be really specific about things you can always go back and correct for the variation later - as long as your hydrophone is calibrated!)

You'll probably also need to know your gain. Gain means amplification. Generally, the signals coming out of the hydrophone are still too quiet to use, so we amplify them again.

Finally, we can calculate how loud the whale is. So here we go:

Sound Pressure Level = Sensitivity - Gain + 20 * log (Voltage from the Hydrophone)

It's actually pretty simple once you know what all the numbers mean...

... except for the fact that, by convention, the Sound Pressure Level is measured at 1 m from the sound source. So, if we are working with wild animals, we will either have to get incredibly lucky, or we have to figure out a way to deal with attenuation of the sound in water. Attenuation is a fancy word that means "makes quieter." For example, sound-proof walls attenuate the sound of your neighbor's Eminem music.  I'll deal with that one a little bit later.

You almost never get this lucky. Photo by Flip Nicklin.

Tuesday, September 18, 2012

Why Can't We Directly Compare Sounds in Water and Air?

One of the biggest, and most common, mistakes that people make when writing about underwater acoustics is making direct comparisons between the loudness of things in water and in air.  Here's an example of something that you might read about underwater sound:

"The bottlenose dolphins were being exposed to sounds up to 160 dB.  That's  louder than a 747!"


Well, actually, it's not.   

The problem here is related to the units with which we measure sound. First of all, we measure sound using the decibel.  Decibels are logarithmic units. Basically, logarithmic scales allow us to make big numbers smaller so that they are easier to visualize. For example, in the chart below, you can see that when we take the log of value for x (in green), the log values (in blue) are decreased more for large values of x than for small values of x. The opposite is true of taking an exponential of x, such as x^2 (in red).


Why make things so complicated when we talk about sound? Well, human beings actually perceive sound pressure in a log scale.  For example, you wouldn't really be able to tell the difference in loudness between 6 trumpet players and 7 trumpet players, because your brain doesn't process sound lineally. In fact, every time you want to change the loudness level by just three measly decibels, you have to double the power.  So, if you want to increase the loudness of your trumpet players by 3 dB, you'll need 6 more trumpets.  

Doublemint gum only makes you 3 dB louder, just ask the dolphins.

OK, so now we understand decibels, why can't we compare dB in air with dB in water?

First of all, decibels must always be referenced to some standard. In air, decibels are referenced to 20 micropascals (pascals are a unit of pressure). In water, they are referenced to 1 micropascal.  This means that, from the start, 26 dB must be added to the sound level to make the two references levels the same.

Secondly, water is much denser than air, so the effects of pressure are also different. Although it is possible to compress water, it is much more difficult to do so.  In fact, when we add the difference in densities between air and water into the equation, we find that the sound pressure in water is 60 times greater (or 35.6 dB higher) than the same value in air.

Loud, but not as loud as a plane. Photo from the CRRU.
So, if white-beaked dolphins are producing whistles that are between 139 and 148 dB, that doesn't mean that they are making sounds louder than a 747. If we convert those numbers to values in air, we get somewhere between 103 and 113 dB.  Which is still pretty darn loud, but not quite as loud an airplane engine.  It's also good to point out that dolphin whistles are "narrowband" sounds. I explained narrowband in an earlier blog post, but basically what this means is that you can't imagine a whistling dolphin sounding like a jackhammer, because the sounds cover a very different range of frequencies and are produced by very different mechanisms.

So, next time you read something comparing underwater sound compared to sound in air, check to see if they did their conversions right!

Thursday, August 16, 2012

What is looking for dolphins in the ocean really like?

Many people are curious about what it is like to be out on a boat looking for dolphins in Hawaii. Lots of people think it's easy - my job is simply to sit on a boat and watch dolphins. Many people have a hard time believing that you can actually get paid to lounge on a boat and watch dolphins frolic in the surf.  The reality is a lot more complicated.


This is not what I look at all day (photo from FIRMM.org).

Finding dolphins, especially in Hawaii, can be really time consuming and difficult. Especially if you are interested in the types of dolphins that don't generally hang out near shore, which is most Hawaiian species (the exception being spinner dolphins).

Searching for dolphins at sea requires something called a "search image." Visual predators use search image all the time to find food. For example, blue jays look for the color, shape, or pattern of a moth to find their food. Prey can also use a search image to look out for predators: sea lions also use a visual search image to watch out for hungry killer whales.  If a killer whale doesn't match their search image - for example, by having a weird, bent over dorsal fin - sea lions don't always recognize it as a threat.

Biologists also use search images. Bird biologists look for something moving against a still background. Snail biologists look for a round, white spiral in a sea of shaking green leaves. And dolphin biologists look for moving triangles (dorsal fins) in a sea of other moving triangles (waves).

Lots and lots of blue-gray triangles. But which is a dolphin?
Photo by Alexis Rudd, 8/15/12.
Looking at waves is a lot like looking at the ants on a tv screen.  It's kind of like watching random noise (although obviously I am oversimplifying things to give you an idea, waves aren't really random).

So, most of the time, when whale and dolphin observers are  looking at the ocean, it's like looking at this (you might want to adjust your screen so you can only see one of these .gif files at a time - it's making me kind of queasy):



When a large whale comes along, the observer sees a shape in the noise that isn't changing for a little while, like this:


Did you find the "whale?" Hint: it's the blacker spot that appears in the bottom right hand corner for about 3 seconds.

Dolphins are even harder to see, because they move faster. When a scientist is searching for a dolphin, they look for a shape that isn't changing very much, but might be moving across the waves.  Can you spot my "dolphin?"



That one's kind of hard (I am having trouble, and I made the thing!), so I made the "dolphin" pink.  Now can you see it?


This week, I've been out on the water on the big island, helping look for whales and dolphins. We usually get out on the water at about 6:00 am (sometimes a little earlier) and come back in at 3:00 pm (if we're lucky unlucky). For the last two days, we have seen two groups of animals per day. That means that we have effectively been staring at noise for about 8 hours, searching for that tiny little clue that will tell us where the dolphins might be.  Coastal cetaceans are not spread out as much as in the tropics, so there is not always as much time staring at noise.

Isn't the human brain an amazing thing? It can pick up a tiny difference in pattern -

"That bit of the ocean isn't moving as much as the other bits!"

out of an enormous amount of noise. There isn't much on earth that's more enormous than the ocean.


Tuesday, May 8, 2012

We Should Have Studied Dolphins in High School Math

When I look back at my educational career, it's really striking how poor of a student I was.  That is, I was a pretty mediocre student in the "hard" sciences until I took Marine Biology class during my senior year of college.  Most of the time, I think I was just really bored.  It wasn't always because the material wasn't challenging or useful (although sometimes this was the case). It was often because I had no idea what the point of it was.  OK, so in physics we could calculate where a ball would land based on the angle and force.  I only played baseball when forced to in gym class, and when I did I had no control over the force and angle of my wild swings.  I didn't have a home catapult, and I just didn't get how this stuff could really matter to ME.

It wasn't until I got really interested in marine biology, and specifically whale and dolphin bioacoustics, that I started seeing how amazing and cool math & physics can be.  If you read my blog, you know that bioacoustics is the study of the sounds of living things.  Whales and dolphins use sound to communicate and find food underwater, so even if you can't see them, you can very often hear them.  Some whales, such as beaked whales, are actually easier to find by listening than by looking with your eyes.  In addition, sound travels further underwater than light, so people at the surface can even hear whales that are thousands of feet underwater, or even hundreds of miles away. We can use these sounds to track the location of the animal, and we can do it using high school math.  Super cool.

Why didn't we do this in my high school trigonometry class?

It's really pretty simple.  First, you need something in the water making a sound.  Let's say... a whale.


Then you'll need a boat and something to record the sound.  We're going to use a hydrophone array, which is made up of three underwater microphones (hydrophones) strung in a line, with 15 meters between each hydrophone.  



When the whale makes a sound, it travels in a straight line through the water* to each hydrophone, arriving at the closer hydrophones sooner and arriving at the further hydrophones last.  Let's say the sound arrives at our recordings at time 0 for hydrophone 1, 0.006 seconds for hydrophone 2, and 0.0007 seconds for hydrophone 3.



How on earth do we figure out the distance to a whale when all we know is the difference between when we heard it on hydrophones 1, 2, and 3?  Easy - there's a simple equation for that!


The sound speed in water is 1500 m/s (which is why I put the hydrophones 15 m apart - to make the math easier).



We've replaced some of the words with numbers, something I HATED in high school.  Oh wait, I still hate it, so I'll just explain what the equations mean: The time difference between hydrophone 1 and 2 (t21) is equal to the difference between the distance between the whale and hydrophone 1 and the distance between the whale and hydrophone 2 (d2-d1) divided by the speed of sound.  Holy mother of god, this is just geometry!  I could have been doing this when I was 15! Some of you over-achiever types probably took geometry in 8th grade, so you could have done this when you were 14. Not me!

With a little algebraic rearrangement (which I am not going to bore you with, since you can look it up here), we get:

**


Sx and Sy are the x and y locations of the whale. C the speed of sound in salt water, 1500 m/s.  dh is the distance between the hydrophones, which in this case is 15 m, and all the ts refer to the time difference between the hydrophones (the small numbers tell you which two hydrophones: t21 is the difference between the arrival at hydrophone 2 and 1, etc).  All you have to do now is plug in the numbers. Edited 5/12/2012: To make it even easier, I've provided a spreadsheet here.


**


Then you can graph the location of the whale (-16.7, ±241.7), along with the locations of your hydrophones at (0, 0), (0, 15), and (0, 30).  I've just made designated hydrophone 1 at (0, 0) to make things easy, but in real life you'd have a GPS on the boat and you'd have to add the length of the hydrophone cable to the location of the boat's gps.



You might notice something funny about this equation - it actually gives two solutions - one on either side of the line of hydrophones.  That's a big problem with using three (or four, five, etc.) hydrophones in a row - you're not really sure what side of you the whale's on.  The reason for this is that there are two possible solutions for Sy. However, you can figure out which side the whale is on by turning the boat.  The location that stays in relatively the same place regardless of where the hydrophones are is the correct one.  Other ways to fix the left-right ambiguity? Make your hydrophones into a 2D shape (hard to do when dragging them behind a boat because 2d shapes are not very streamlined)*** or use DIFAR.

I wish I had done this kind of math in high school - it is totally within the realm of a high school student!  I think I might have paid better attention to something cool like finding whales.  On the other hand, maybe not.  That boy across the room WAS pretty dreamy.  Not all kids will be interested enough in whales and dolphins to get interested in math and physics, but the cool thing about math and physics is that, regardless of what you're into, I bet it applies.  From video games to raising miniature ponies, there's math in there somewhere.  Sometimes it just takes the right spark to get people interested.

P.S. If I made any mistakes above, please call me out.  Like I said, I didn't do so well in math class.  Also, if you're interested in a copy of the xcel spreadsheet with the equations already in it, shoot me a message and I'll send you a copy.




* This isn't always the case - sometimes the sound bounces off the bottom or the surface to get to the hydrophone, but I'm ignoring those cases here for simplicity.

** Edit: May 9, 2012. I made a HUGE mistake the first time I posted this and completely ignored the equation for t1 (I thought t1 was a typo for t12).  This is now fixed.

*** Edit: May 8, 2012.  Changed "3D" to "2D" because of a comment from Sam Denes. I had thought a straight line was already 2D, but apparently a straight line is 1D and adding another point off the line makes something 2D.

Note: I got to talk to a bunch of high school math teachers about this math.  Recap here.

 

Monday, March 12, 2012

Turning Whalesong into Rainbows: 1000 Numbers to 1000 words

Art by Casey Roberts
Two weeks ago I wrote about how sound gets from a whale, and into your computer.  At the end of that post, I included a pretty rainbow-colored picture of some dolphin whistles.  But I didn't ever explain how all that digital data got translated from zeros and ones into a nice pretty picture.


Why are pretty pictures important to science?  Awards are given out every year by several prestigious groups for the best images in science and biology.  These images are not only beautiful, but they often help us understand complex concepts that are difficult to understand using words alone.  For instance, I can tell you that dolphins have fat deposits in their jaw bones that help transfer sound into their ears, but the following picture by Darlene Ketton's lab at Woods Hole really shows you how the auditory fats (orange) connect up with the inner ear bones (red) to help the dolphin hear.  This picture does a better job of communicating the concept than I could do in 1000 words, AND you're not bored to death, either.


A 3-D image generated from a CT scan highlights selected
 tissue groups of a bottlenose dolphin's head. 
 (Courtesy of Darlene Ketten, WHOI)
Humans process most of their information visually, so we often need to translate acoustic information into visual information.


The acoustic data that I collect in my research is stored as binary data, which means that it is stored as a bunch of ones and zeroes, like this: 


01001000 01100101 01101100 01101100 01101111 


Each of these sets of ones and zeros corresponds to a letter or a number (the code I just used says "Hello"). Unfortunately, I can't look at binary code and understand what it means, because I'm not Neo from the Matrix.  Alas!


However, my computer understands the language of binary, and it translates all of these ones and zeros into slightly shorter strings of numbers, which look something like this (except a whole lot longer):

0.000113379 0.000136054 0.00015873 0.000181406 0.000204082 0.000226757

Not really a whole lot better, is it?  

2-D

Fortunately, I know that these random-looking numbers are the pressure values for a sound wave that has been measured 80,000 times every second. This means that the first number has a time value of 0, followed by 1/80000, 2/80000, etc.  Now that I know what the time values are, I can make graph with time on the x axis and the value for pressure on the y axis, like so: 

This is better: I can see that the sounds get louder and softer over time.  If the sound is louder, it will make bigger bumps on the graph, and if it is quieter, the bumps will be smaller.  It's still pretty hard for me to pick out the different sound frequencies, or pitches.

I can kind of see what is going on here, but it is like looking at only one line of pixels from an image of Marilyn Monroe; I don't really know what is going on [A]:


Fortunately for me, a French mathematician named Jean Baptiste Joseph Fourier (1768-1830) figured out a way to represent a continuous periodic signal (like a sound wave) as the sum of a bunch of sine waves.  This means that I can break up the signal above into a lot of simple sine waves.  I can also do the opposite, by adding up a bunch of simple sine waves to create a complicated one [B]:
Adding two sine waves together.
The top four waves combined (light blue) create the more complex wave at the bottom (dark blue) 

Even REALLY complicated waves, like this one, can be created by combining fourteen simpler waves:


2-D Again - Frequency

Once we break the sound up into its component frequencies, we can create a different picture.  This picture looks at how much of the sound is made up of each frequency.  For example, in this picture we are looking at the relative contributions of different frequencies to a sound recording.  You can see that there are more low sounds than high sounds, and that there are two small "peaks" between the frequencies of 1250 Hz and 1500 Hz.  (Hertz measures the frequency of a sound.  You can hear between 20 and 20000 Hz, depending on your age.) These two small peaks are actually the two frequencies at which the humpback whale is singing at this particular moment in time.

Now, it's like I'm looking at that picture of Marilyn vertically, but still only one row at a time.




Let's recap: To make a picture of a whale song, the computer breaks up the original sound recording into hundreds or thousands of individual segments.  For each of these segments, it does a Fourier Transform, which breaks the sound wave up into its component frequencies and creates the graph shown above.  

Next, the sound values are assigned a color.  Loud sounds are generally shown as red, and quiet sounds are blue.  If we stack these values next to each other, we start to see more of the picture:  


As more and more Fourier transforms are combined, they create the picture below, which shows the whistles of two common dolphins recorded in the Irish Sea. This picture allows us to see several important parts of the sound at once - how long it is, how loud it is, and how shrill or low the noise is.  I guess it's no lady in a red dress, but it's a whole lot more useful to me!



[A] Of course, this is not a perfect analogy, because a sound waveform is a combination of all the different frequency parts.  

[B] The explanations in this post about Fourier transform are grossly, extremely simplified, and skip over most of the math.  If you want a more thorough explanation, please see The Scientist and Engineer's Guide to Digital Signal Processing.  If you have any comments on my over-simplification, please leave them on the post or shoot me an email.