Sperm whales forage in the deep ocean, hunting for squid. An innovative approach for the study of sperm whale foraging behavior and habitat selection is reported in this letter. A DIDSON imaging sonar mounted on a profiler with a conductivity, temperature, and depth sensor was used to count and measure potential prey in the deep ocean during sperm whales' acoustical foraging encounters in Hawaii. Preliminary results show how this technique can be applied to the study of deep diving whale foraging and habitat selection. Sperm whales foraged where the density of prey decreased with depth and where the size of prey increased with depth.