I grew up on boats and docks. I noticed as a kid that dogs on boats could differentiate people walking on a dock without seeing them. The dogs would become alert and start barking when they heard someone who wasn't normally there. I still wonder if they detect known gaits or the gait of someone who is not walking with a purpose.