It's the ultimate noninvasive medical test: A growing number of health problems can be diagnosed by analyzing a patient's breath alone.

The concept goes back to Hippocrates, who wrote a treatise on breath aroma and disease around 400 B.C. For centuries afterward, doctors noticed that patients with liver and kidney disorders had distinctive smells to their breath.

Now,...