Advances in artificial intelligence, including activity trackers, smartphones and smartwatches, threaten the privacy of people's health data, according to new research.