AI can trawl vast amounts of health data which is not specifically related to migraines, but which can be used to identify people predisposed to the condition.