Measuring the ups and downs of pregnancy