Taste-based sensor tests could detect the flu before symptoms start and help prevent future outbreaks, a study suggests.