The electronic 'tongue' could also monitor water for pollutants or test blood for signs of disease, researchers said.
Researcher S V Litvinenko and colleagues explain in the American Chemical Society's journal Applied Materials and Interfaces that an electronic tongue is an analytical instrument that mimics how people and other mammals distinguish tastes.
Tiny sensors detect substances in a sample and send signals to a computer for processing just as taste buds sense and transmit flavour messages to the brain.
But existing devices are limited in how they can be used.
Also Read
Litvinenko's team decided to make an improved instrument that could have applications in medical diagnostics, pharmaceutical testing and environmental monitoring, as well as food testing.
The researchers developed a low-cost and environmentally friendly "e-tongue" with a silicon base that could be easily incorporated into existing electronic systems of the same material.
When they tested it with Armagnac, cognac, whiskey and water, they were able to establish precise signatures for each.