# Machine olfaction

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Machine_olfaction
> Markdown URL: https://mediated.wiki/source/Machine_olfaction.md
> Source: https://en.wikipedia.org/wiki/Machine_olfaction
> Source revision: 1353701524
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|Simulation of the sense of smell}}
{{Multiple issues|1=
{{more footnotes needed|date=January 2019}}
{{Expert needed|robotics|talk=Items needing expert attention – January 2019|date=January 2019|}}
}}
'''Machine olfaction''' is the automated simulation of the [sense of smell](/source/olfaction). An emerging application in modern engineering, it involves the use of robots or other automated systems to analyze air-borne chemicals. Such an apparatus is often called an [electronic nose](/source/electronic_nose) or e-nose.  The development of machine olfaction is complicated by the fact that e-nose devices to date have responded to a limited number of chemicals, whereas [odor](/source/odor)s are produced by unique sets of (potentially numerous) odorant compounds. The technology, though still in the early stages of development, promises many applications, such as:<ref name="Sensors Council"/>
[quality control](/source/quality_control) in [food processing](/source/food_processing), detection and [diagnosis](/source/diagnosis) in medicine,<ref name="Geffen 036001">{{Cite journal|last1=Geffen|first1=Wouter H. van|last2=Bruins|first2=Marcel|last3=Kerstjens|first3=Huib A. M.|date=2016-01-01|title=Diagnosing viral and bacterial respiratory infections in acute COPD exacerbations by an electronic nose: a pilot study|journal=Journal of Breath Research|language=en|volume=10|issue=3|article-number=036001|doi=10.1088/1752-7155/10/3/036001|pmid=27310311|issn=1752-7163|bibcode=2016JBR....10c6001V|doi-access=free|hdl=11370/fa628653-1a38-43d6-8b71-7ce6c550ea4f|hdl-access=free}}</ref> [detection of drugs](/source/drug_detection), explosives and other dangerous or [illegal substance](/source/illegal_substance)s,<ref>{{Cite journal| doi = 10.1039/C6SC00987E| pmid = 30034722| pmc = 6024240| last1 = Stassen| first1 = I.| last2 = Bueken| first2 = B.| last3 = Reinsch| first3 = H.| last4 = Oudenhoven| first4 = J. F. M.| last5 = Wouters| first5 = D.| last6 = Hajek| first6 = J.| last7 = Van Speybroeck| first7 = V.| last8 = Stock| first8 = N.| last9 = Vereecken| first9 = P. M.| last10 = Van Schaijk| first10 = R.| last11 = De Vos| first11 = D.| last12 = Ameloot| first12 = R.| title = Towards metal–organic framework based field effect chemical sensors: UiO-66-NH<sub>2</sub> for nerve agent detection| journal = Chem. Sci.| volume = 7| issue = 9| pages = 5827–32| year = 2016| hdl = 1854/LU-8157872}}</ref> disaster response, and [environmental monitoring](/source/environmental_monitoring).

One type of proposed machine olfaction technology is via gas [sensor array](/source/sensor_array) instruments capable of detecting, identifying, and measuring volatile compounds. However, a critical element in the development of these instruments is [pattern analysis](/source/pattern_analysis), and the successful design of a pattern analysis system for machine olfaction requires a careful consideration of the various issues involved in processing multivariate data: signal-preprocessing, [feature extraction](/source/feature_extraction), [feature selection](/source/feature_selection), [classification](/source/Statistical_classification), regression, [clustering](/source/Cluster_analysis), and validation.<ref>{{cite journal|doi=10.1109/jsen.2002.800688|bibcode=2002ISenJ...2..189G|title=Pattern analysis for machine olfaction: A review|year=2002|last1=Gutierrez-Osuna|first1=R.|journal=IEEE Sensors Journal|volume=2|issue=3|pages=189–202}}</ref> Another challenge in current research on machine olfaction is the need to predict or estimate the sensor response to aroma mixtures.<ref>{{cite journal|doi=10.1016/j.snb.2010.12.049|title=Predicting odor mixture's responses on machine olfaction sensors|year=2011|last1=Phaisangittisagul|first1=Ekachai|last2=Nagle|first2=H. Troy|journal=Sensors and Actuators B: Chemical|volume=155|issue=2|pages=473–482|bibcode=2011SeAcB.155..473P }}</ref> Some [pattern recognition](/source/pattern_recognition) problems in machine olfaction such as odor classification and odor localization can be solved by using [time series](/source/time_series) kernel methods.<ref>{{cite journal|doi=10.1016/j.snb.2012.06.070|title=On time series features and kernels for machine olfaction|year=2012|last1=Vembu|first1=Shankar|last2=Vergara|first2=Alexander|last3=Muezzinoglu|first3=Mehmet K.|last4=Huerta|first4=Ramón|journal=Sensors and Actuators B: Chemical|volume=174|pages=535–546|bibcode=2012SeAcB.174..535V }}</ref>

==Detection==
{{main|Electronic nose}}
There are three basic detection techniques using conductive-polymer odor sensors ([polypyrrole](/source/polypyrrole)), tin-oxide gas sensors, and quartz-crystal micro-balance sensors.{{citation needed|date=March 2017}} They generally comprise (1) an array of sensors of some type, (2) the electronics to interrogate those sensors and produce digital signals, and (3) data processing and user interface software.

The entire system is a means of converting complex sensor responses into a qualitative profile of the volatile (or complex mixture of chemical volatiles) that make up a smell, in the form of an output.

Conventional electronic noses are not analytical instruments in the classical sense and very few claim to be able to quantify an odor. These instruments are first 'trained' with the target odor and then used to 'recognize' smells so that future samples can be identified as 'good' or 'bad'.

Research into alternative pattern recognition methods for [chemical sensor](/source/chemical_sensor) arrays has proposed solutions to differentiate between artificial and biological olfaction related to dimensionality. This biologically-inspired approach involves creating unique algorithms for information processing.<ref>{{cite thesis|hdl=1969.1/4984|title=Sensor-based machine olfaction with neuromorphic models of the olfactory system|last=Raman|first=Baranidharan|date=December 2005|publisher=Texas A&M University|type=PhD}}</ref>

Electronic noses are able to discriminate between odors and volatiles from a wide range of sources and quality.<ref>{{cite journal |vauthors=Steenhuis EG, Asmara OD, Kort S, Papenhuijzen MH, Veeger NJ, Van den Heuvel MM, Van Geffen WH |title=The electronic nose in lung cancer diagnostics: a systematic review and meta-analysis |journal=ERJ Open Res |volume=11 |issue=3 |article-number=00723-2024 |date=May 2025 |pmid=40391063 |pmc=12086828 |doi=10.1183/23120541.00723-2024 }}</ref> The list below shows just some of the typical applications for electronic nose technology – many are backed by research studies and published technical papers.

== Odor localization ==
{{main|Odor source localization}}
Odor localization is a combination of quantitative chemical odor analysis and path-searching algorithms, and environmental conditions play a vital role in localization quality. Different methods are being researched for various purposes and in different real-world conditions.

=== Motivation ===
Odor localization is the technique and process of locating a volatile chemical source in an environment containing one or several odors. It is vitally important for all living beings for both finding sustenance and avoiding danger. Unlike the other basic human [sense](/source/sense)s, the sense of smell is entirely chemical-based. However, in comparison with the other dimensions of perception, detection of odor faces additional problems due to the complex dynamic equations of odor and unpredictable external disturbances such as wind.

=== Application ===
Odor localization technology shows promise in many applications, including:<ref>{{cite journal|title = Review on: Odor Localization Robot Aspect and Obstacles|url = https://www.academia.edu/9642032|website = www.academia.edu|access-date = 2015-11-12|last1 = Moshayedi|first1 = Ata Jahangir}}</ref><ref name="Sensors Council">{{cite journal|doi=10.1109/JSEN.2011.2167171|bibcode=2011ISenJ..11.3486.|title=Special issue on machine olfaction|journal=IEEE Sensors Journal|volume=11|issue=12|page=3486|year=2011}}</ref>
*[quality control](/source/quality_control) in [food processing](/source/food_processing) (e.g. taints, bacterial [spoilage](/source/Food_spoilage))
*locating the source of dangerous substances (e.g.: explosives and [chemical warfare](/source/chemical_warfare) agents)
*discovering underground resources or hazards
*detecting prohibited materials (e.g.: [drug detection](/source/drug_detection))
*searching for survivors of [natural disaster](/source/natural_disaster)s
*[environmental monitoring](/source/environmental_monitoring) for pollutants
*early diagnosis of diseases (e.g. in [chronic obstructive pulmonary disease](/source/chronic_obstructive_pulmonary_disease))<ref name="Geffen 036001"/>

=== History and problem statement ===
The earliest instrument for specific odor detection was a mechanical nose developed in 1961 by Robert Wighton Moncrieff. The first electronic nose was created by W. F. Wilkens and J. D. Hartman in 1964.<ref>{{Cite journal|title = A brief history of electronic noses|journal = Sensors and Actuators B: Chemical|date = 1994-03-01|pages = 210–1|volume = 18|issue = 1–3|doi = 10.1016/0925-4005(94)87085-3|first1 = Julian W.|last1 = Gardner|first2 = Philip N.|last2 = Bartlett| bibcode=1994SeAcB..18..210G }}{{subscription required}}</ref> Larcome and Halsall discussed the use of robots for odor sensing in the nuclear industry in the early 1980s,<ref>{{Cite book|title = Robotics in nuclear engineering: computer-assisted teleoperation in hazardous environments with particular reference to radiation fields|year = 1984|url=https://inis.iaea.org/search/search.aspx?orig_q=RN:17073058|last1 = Larcombe|first1 = M. H. E.}}</ref> and research on odor localization was started in the early 1990s. Odor localization is now a fast-growing field. Various sensors have been developed and a variety of algorithms have been proposed for diverse environments and conditions.

Mechanical odor localization can be executed via the following three steps, (1) search for the presence of a volatile chemical (2) search for the position of the source with an array of odor sensors and certain algorithms, and (3) identify the tracked odor source (odor recognition).

=== Localization methods ===
Odor localization methods are often classified according to odor dispersal modes in a range of environmental conditions. These modes can generally be divided into two categories: diffusion-dominated fluid flow and turbulence-dominated fluid flow. These have different algorithms for odor localization, discussed below.

==== Diffusion-dominated fluid flow ====
Tracking and localization methods for diffusion-dominated fluid flow – which is mostly used in underground odor localization – must be designed so that olfaction machinery can operate in environments in which fluid motion is dominated by viscosity. This means that diffusion leads to the dispersal of odor flow, and the concentration of odor decreases from the source as a [Gaussian distribution](/source/Gaussian_distribution).<ref>{{Cite journal|title = Robot Odor Localization: A Taxonomy and Survey|journal = The International Journal of Robotics Research|date = 2008-08-01|issn = 0278-3649|pages = 869–894|volume = 27|issue = 8|doi = 10.1177/0278364908095118|first1 = Gideon|last1 = Kowadlo|first2 = R. Andrew|last2 = Russell|s2cid = 348058}}</ref>

The diffusion of chemical vapor through soil without external pressure gradient is often modeled by [Fick's second law](/source/Fick's_second_law):

:<math>\frac{\partial C}{\partial t} =D\frac{\partial^2 C}{\partial d^2}</math>

where {{math|<var>D</var>}} is the diffusion constant, {{math|<var>d</var>}} is distance in the diffusion direction, {{math|<var>C</var>}} is chemical concentration and {{math|<var>t</var>}} is time.

Assuming the chemical odor flow only disperses in one direction with a uniform cross-section profile, the relationship of odor concentration at a certain distance and certain time point between odor source concentrations is modeled as

: <math>\frac{C}{C_s}=\operatorname{erfc}\frac{d}{\sqrt{4Dt}}</math>

where <math>C_s</math> is the odor source concentration. This is the simplest dynamic equation in odor detection modeling, ignoring external wind or other interruptions. Under the diffusion-dominated propagation model, different algorithms were developed by simply tracking chemical concentration gradients to locate an odor source.

===== ''E. coli'' algorithm =====
A simple tracking method is the ''E. coli'' algorithm.<ref name="cambridge109">{{Cite journal|title = Robotic location of underground chemical sources|journal = Robotica|date = 2004-01-01|issn = 1469-8668|pages = 109–115|volume = 22|issue = 1|doi = 10.1017/S026357470300540X|first = R. Andrew|last = Russell|s2cid = 40463021}}</ref> In this process, the odor sensor simply compares concentration information from different locations. The robot moves along repeated straight lines in random directions. When the current state odor information is improved compared to the previous reading, the robot will continue on the current path. However, when the current state condition is worse than the previous one, the robot will backtrack then move in another random direction. This method is simple and efficient, however, the length of the path is highly variable and missteps increase with proximity to the source.{{explain|date=January 2019}}

===== Hex-path algorithm and dodecahedron algorithm =====
Another method based on the diffusion model is the hex-path algorithm, developed by R. Andrew Russel<ref name="cambridge109"/> for underground chemical odor localization with a buried probe controlled by a robotic manipulator.<ref name="cambridge109"/><ref>{{cite web|url = http://www.araa.asn.au/acra/acra2003/papers/03.pdf|title = Chemical Source Location and the RoboMole Project}}</ref> The probe moves at a certain depth along the edges of a closely packed hexagonal grid. At each state junction {{math|<var>n</var>}}, there are two paths (left and right) for choosing, and the robot will take the path that leads to higher concentration of the odor based on the previous two junction states odor concentration information {{math|<var>n</var>−1}}, {{math|<var>n</var>−2}}. In the 3D version of the ''hex-path'' algorithm, the dodecahedron algorithm, the probe moves in a path that corresponds to a closely packed [dodecahedra](/source/Dodecahedron), so that at each state point there are three possible path choices.

==== Turbulence-dominated fluid flow ====
[[File:Figure1 Plume modeling.png|thumb|Figure 1. [plume](/source/Plume_(fluid_dynamics)) modeling]]
In turbulence-dominated fluid flow, localization methods are designed to deal with background fluid (wind or water) flow as turbulence interruption. Most of the algorithms under this category are based on [plume](/source/Plume_(fluid_dynamics)) modeling (Figure&nbsp;1).<ref>{{cite web|url = http://www.wseas.us/e-library/conferences/2008/hangzhou/acacos/1-586-389.pdf|title = Survey: Odor Source Localization}}</ref>

Plume dynamics are based on Gaussian models, which are based on [Navier–Stokes equations](/source/Navier%E2%80%93Stokes_equations). The simplified boundary condition of the Gaussian-based model is:

<math>\frac{\partial C}{\partial t} =D_x\frac{\partial^2 C}{\partial x^2}+D_y\frac{\partial^2 C}{\partial y^2}+\alpha\frac{\partial C}{\partial x}+\beta\frac{\partial C}{\partial y}</math>

where {{math|<var>D<sub>x</sub></var>}} and {{math|<var>D<sub>y</sub></var>}} are diffusion constants;  <math>\alpha</math> is the linear wind velocity in the {{math|<var>x</var>}} direction,  <math>\beta</math> is the linear wind velocity in the {{math|<var>y</var>}} direction. Additionally assuming that the environment is uniform and the plume source is constant, the equation for odor detection in each robot sensor at each detection time point {{math|<var>t</var>−<var>th</var>}} is

<math>R_i=\gamma_i\sum_{k=1}^{K}{\frac{C_k}{\|{\rho_k-r_k}\|^\alpha}}+\omega_i</math>

where <math>R_i</math> is the {{math|<var>t</var>−<var>th</var>}} sample of {{math|<var>i</var>−<var>th</var>}} sensor, <math>\gamma_i</math> is gain factor, <math>C_k</math> is {{math|<var>k</var>−<var>th</var>}} source intensity, <math>\rho_k</math> is the location of {{math|<var>k</var>−<var>th</var>}} source,  <math>\alpha</math> is plume attenuation parameter, <math>\omega_i</math> is background noise that satisfies <math>N(\mu,\sigma^2)</math>. Under plume modeling, different algorithms can be used to localize the odor source.
thumb|Figure 2. Triangulation method

===== Triangulation algorithm =====
A simple algorithm that can be used for location estimation is the triangulation method (Figure 2). Consider the odor detection equation above, the position of the odor source can be estimated by organizing sensor distances on one side of the equation and ignoring the noise. The source position can be estimated using the following equations:

<math>(x_1-x_s)^2+(y_1-y_s)^2=R_1/(\gamma_1C)</math>

<math>(x_2-x_s)^2+(y_2-y_s)^2=R_2/(\gamma_2C)</math>

<math>(x_3-x_s)^2+(y_3-y_s)^2=R_3/(\gamma_3C)</math>

===== Least square method (LSM) =====
The least square method (LSM) is a slightly complicated algorithm for odor localization. The LSM version of the odor tracking model is given by:

<math>R_i,_t=\gamma_i{\frac{C}{\|{\rho_k-r_i}\|^2}}+\omega_i=\gamma_i{\frac{C}{d^2}}+\omega_i</math>

where  <math>d_i</math> is the [Euclidean distance](/source/Euclidean_distance) between the sensor node and the plume source, given by:

<math>d_i=\sqrt{(x_i-x-s)^2+(y_i+y_s)^2}</math>

The main difference between the LSM algorithm and the direct triangulation method is the noise. In LSM, noise is considered, and the odor source location is estimated by minimizing the squared error. The nonlinear least square problem is given by:

<math>J=\sum_{i=1}^{N}({\frac{C}{\sqrt{(x_i-\widehat{x_s})^2(y_i-\widehat{y_s})^2}}-\overline{z_l})}</math>

where <math>(\widehat{x_s},\widehat{y_s})</math> is the estimated source location and <math>\overline{z_l}</math> is the average of multiple measurements at the sensors, given by:

<math>\overline{z_l}=\frac{1}{M}\sum_{i=1}^M{z_i}</math>

===== Maximum likelihood estimation (MLE) =====
Another method based on plume modeling is [maximum likelihood estimation](/source/maximum_likelihood_estimation) (MLE). In this odor localization method, several matrices are defined as follows:

<math>Z=[\frac{R_1-\mu_1}{\sigma_1}, \frac{R_2-\mu_2}{\sigma_2}, ...\frac{R_N-\mu_N}{\sigma_N}]</math>

<math>G=diag[\frac{\gamma_1}{\sigma_1}, \frac{\gamma_2}{\sigma_2}, ...\frac{\gamma_N}{\sigma_N}]</math>

<math>D=[\frac{1}{d_1^2}, \frac{1}{d_2^2}, ...\frac{1}{d_N^2}]</math>

<math>\zeta=[\zeta_1, \zeta_2,...\zeta_N]</math>

<math>\zeta_i=(\omega_i-\mu_i)/\sigma_i\sim N(0,1)</math>

<math>\frac{R_i-\mu_i}{\sigma_i}\sim N(\frac{\gamma_i}{\sigma_i}\frac{C}{d_i^2},1)</math>

With these matrices, the plume-based odor detection model can be expressed with the following equation:

<math>Z=GDC+\zeta</math>

Then the MLE can be applied to the modeling and form the [probability density function](/source/probability_density_function)

<math>f(Z,\theta)=2\pi^{-(N/2)}e^{-\frac{1}{2}(Z-GDC)^T(Z-GDC)}</math>

where <math>\theta</math> is the estimated odor source position, and the log [likelihood function](/source/likelihood_function) is

<math>L(\theta)\sim \frac{1}{2}\sum_{i=1}^N{\|Z_i-\gamma_i\frac{c}{d_i^2}\|}=\frac{1}{2}\sum_{i=1}^N{(\frac{Ri-\mu_i}{\sigma_i}-\gamma_i\frac{c}{d_i^2})^2}</math>

The maximum likelihood parameter estimation of <math>\theta</math> can be calculated by minimizing

<math>I(\theta)=\sum_{i=1}^N{(\frac{Ri-\mu_i}{\sigma_i}-\gamma_i\frac{c}{d_i^2})^2}</math>

and the accurate position of the odor source can be estimated by solving:

<math>\frac{\partial{I(\theta)}}{\partial(x)}=0, \frac{\partial{I(\theta)}}{\partial(y)}=0</math>

===== Infotaxis ===== 
In 2007, a strategy called infotaxis was proposed in which a mental model is created utilizing previously collected information about where a smell's source is likely to be. The robot moves in a direction that maximizes information.<ref name="Mackenzie">{{cite journal |last1=Mackenzie |first1=Dana |title=How animals follow their nose |journal=Knowable Magazine |publisher=Annual Reviews |date=6 March 2023 |doi=10.1146/knowable-030623-4 |doi-access=free |url=https://knowablemagazine.org/article/living-world/2023/how-animals-follow-their-nose |access-date=13 March 2023 |language=en|url-access=subscription }}</ref>
Infotaxis is designed for tracking in turbulent environments.  It has been implemented as a [partially observable Markov decision process](/source/partially_observable_Markov_decision_process)<ref name="Reddy">{{cite journal |last1=Reddy |first1=Gautam |last2=Murthy |first2=Venkatesh N. |last3=Vergassola |first3=Massimo |title=Olfactory Sensing and Navigation in Turbulent Environments |journal=Annual Review of Condensed Matter Physics |date=10 March 2022 |volume=13 |issue=1 |pages=191–213 |doi=10.1146/annurev-conmatphys-031720-032754 |bibcode=2022ARCMP..13..191R |url=https://www.annualreviews.org/doi/10.1146/annurev-conmatphys-031720-032754 |language=en |issn=1947-5454|url-access=subscription }}</ref> with a stationary target in a two-dimensional grid.<ref name="Loisy">{{cite journal |last1=Loisy |first1=Aurore |last2=Eloy |first2=Christophe |title=Searching for a source without gradients: how good is infotaxis and how to beat it |journal=Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences |date=June 2022 |volume=478 |issue=2262 |article-number=20220118 |doi=10.1098/rspa.2022.0118 |language=en |issn=1364-5021|arxiv=2112.10861 |bibcode=2022RSPSA.47820118L }}</ref>

==See also==
*{{annotated link|Chemical sensor array}}
*{{annotated link|Chemiresistor}}
*{{annotated link|Digital scent technology}}
*{{annotated link|Fido explosives detector}}
*{{annotated link|Molecular communication}}
*{{annotated link|Olfactometer}}

==References==
{{Reflist}}

==External links==
{{refbegin}}
* [https://web.archive.org/web/20070714163452/http://www.scensive.com/ Electronic Nose Technologies from Scensive Technologies Ltd, UK] 
* {{cite book |editor-first=T.C. |editor-last=Pearce |editor2-first=S.S. |editor2-last=Schiffman |editor3-first=H.T. |editor3-last=Nagle |editor4-first=J.W. |editor4-last=Gardner |title=Handbook of Machine Olfaction: Electronic Nose Technology |publisher=Wiley-VCH |location=Weinheim |date=2003 |isbn=978-3-527-30358-8 |doi=10.1002/3527601597 |oclc=76943353 |url=http://www.le.ac.uk/eg/tcp1/book/content.htm |archive-url=https://web.archive.org/web/20021104124255/http://www.le.ac.uk/eg/tcp1/book/content.htm |archive-date=4 November 2002 }}
* {{usurped|1=[https://web.archive.org/web/20060219042716/https://nose-network.org/ Network on artificial Olfactory Sensing (NOSE) Archive]}}
* {{cite journal | last=Lundström | first=Ingemar | title=Picture the smell | journal=Nature | publisher=Springer | volume=406 | issue=6797 | year=2000 | doi=10.1038/35021156 | pages=682–3 | pmid=10963577 | bibcode=2000Natur.406..682L | s2cid=16957778 }}
{{refend}}

Category:Olfaction
Category:Robotic sensing

---
Adapted from the Wikipedia article [Machine olfaction](https://en.wikipedia.org/wiki/Machine_olfaction) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Machine_olfaction?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
