Also, I don't know whether you're on a city sewer system or on a septic system. If you're on a septic system, those have pumps too, which can make noises like that. Although I don't know why you'd hear a septic pump only from an upper floor bathroom, unless the vibration was transmitted through the piping.
_________________________
Tony Fabris