Artificial intelligence (AI) is best known for its ability to see (as in driverless cars) and listen (as in Alexa and other home assistants). From now on, it may also smell.

My colleagues and I are developing an AI system that can smell human breath and learn how to identify a range of illness-revealing substances that we might breathe out.

The sense of smell is used by animals and even plants to identify hundreds of different substances that float in the air. But compared to that of other animals, the human sense of smell is far less developed and certainly not used to carry out daily activities.

For this reason, humans aren’t particularly aware of the richness of information that can be transmitted through the air, and can be perceived by a highly sensitive olfactory system. AI may be about to change that.

For a few decades, laboratories around the world have been able to use machines to detect very small amounts of substances in the air.

Those machines, called gas-chromatography mass-spectrometers or GC-MS, can analyse the air to discover thousands of different molecules known as volatile organic compounds.

In the GC-MS machine, each compound in a sample of air is first separated and then smashed up into fragments, creating a distinctive fingerprint from which compounds can be recognised.

The GC-MS can analyse the air to discover thousands of different molecules (Shutterstock)

Each peak represents a fragment of a molecule. The particular patterns of such peaks reveal the presence of distinct substances. Often even the smallest peak can be crucial.

Among the several hundred compounds present in the human breath, a few of them might reveal the presence of various cancers, even at early stages.

Laboratories around the world are therefore experimenting with GC-MS as a non-invasive diagnostic tool to identify many illnesses, painlessly and in a timely manner.

Unfortunately, the process can be very time consuming. Large amounts of data need to be manually inspected and analysed by experts.

The sheer amount of compounds and the complexity of the data mean that even experts take a long time to analyse a single sample. Humans are also prone to error, can miss a compound or mistake one compound for another.

As part of Loughborough University’s data science team, my colleagues and I are adapting the latest artificial intelligence technology to perceive and learn a different type of data: the chemical compounds in breath samples.

Mathematical models inspired by the brain, called deep learning networks, were specifically engineered to “read” the traces left by odours.

A team of doctors, nurses, radiographers and medical physicists at the Edinburgh Cancer Centre collected breath samples from participants undergoing cancer treatment.The samples were then analysed by two teams of chemists and computer scientists.

In pictures: Artificial intelligence through history Show all 7 1 /7 In pictures: Artificial intelligence through history In pictures: Artificial intelligence through history Boston Dynamics Boston Dynamics describes itself as 'building dynamic robots and software for human simulation'. It has created robots for DARPA, the US' military research company In pictures: Artificial intelligence through history Google's self-driving cars Google has been using similar technology to build self-driving cars, and has been pushing for legislation to allow them on the roads In pictures: Artificial intelligence through history DARPA Urban Challenge The DARPA Urban Challenge, set up by the US Department of Defense, challenges driverless cars to navigate a 60 mile course in an urban environment that simulates guerilla warfare In pictures: Artificial intelligence through history Deep Blue beats Kasparov Deep Blue, a computer created by IBM, won a match against world champion Garry Kasparov in 1997. The computer could evaluate 200 million positions per second, and Kasparov accused it of cheating after the match was finished In pictures: Artificial intelligence through history Watson wins Jeopardy Another computer created by IBM, Watson, beat two champions of US TV series Jeopardy at their own game in 2011 In pictures: Artificial intelligence through history Apple's Siri Apple's virtual assistant for iPhone, Siri, uses artificial intelligence technology to anticipate users' needs and give cheeky reactions In pictures: Artificial intelligence through history Kinect Xbox's Kinect uses artificial intelligence to predict where players are likely to go, an track their movement more accurately

Once a number of compounds were identified manually by the chemists, fast computers were given the data to train deep learning networks.

The computation was accelerated by special devices, called GPUs, that can process multiple different pieces of information at the same time.

The deep learning networks learned more and more from each breath sample until they could recognise specific patterns that revealed specific compounds in the breath.

In this first study, the focus was on recognising a group of chemicals, called aldehydes, that are often associated with fragrances but also human stress conditions and illnesses.

AI could make breath diagnosis more reliable (Shutterstock)

Computers equipped with this technology only take minutes to autonomously analyse a breath sample that previously took hours by a human expert. Effectively, AI is making the whole process cheaper – but above all it is making it more reliable.

Even more interestingly, this intelligent software acquires knowledge and improves over time as it analyses more samples. As a result, the method is not restricted to any particular substance.

Using this technique, deep learning systems can be trained to detect small amounts of volatile compounds with potentially wide applications in medicine, forensics, environmental analysis and others.

If an AI system can detect markers of disease, then it becomes possible to also diagnose whether we are ill or not. This has great potential, but it could also prove controversial.

We simply suggest that AI could be used as a tool to detect substances in the air. It doesn’t necessarily have to diagnose or make a decision. The final conclusions and decisions are left to us.