I've just experienced the same, and I used to assume it was contagious because of external stimuli -- but this experience quickly disarms that hypothesis.
Mental note for a test at the office tomorrow: send an empty email entitled "video of people yawning" to folks in your line of vision.