Electronic noses (e-noses) — arrays of chemical sensors paired with pattern-recognition algorithms — have become a widely used tool for gas and odor identification, with applications ranging from environmental monitoring to food quality control and disease screening [1]. Despite their promise, e-noses built on metal-oxide or conducting-polymer sensor arrays suffer from a well-documented limitation: sensor drift. Sensor responses to the same analyte gradually shift over days to months because of poisoning, aging and environmental fluctuation, so classifiers trained on early data degrade sharply when applied to later measurements [1], [2]. Standard mitigations — recalibration with labeled reference samples, classifier ensembles, or explicit drift-correction transforms — reduce this degradation but typically require additional calibration data or an explicit model of the drift process itself [2].
An alternative strategy looks to biology. The insect olfactory system, extensively characterized in Drosophila melanogaster, solves an analogous problem: it must recognize odors reliably despite large variations in concentration, background chemical noise, and receptor adaptation over an animal’s lifetime. Odor information enters the antennal lobe and is relayed by projection neurons (PNs) to the mushroom body, where a much larger population of Kenyon cells (KCs) receives sparse, largely random PN→KC connections [3], [4]. This random expansion into a high-dimensional space, combined with global feedback inhibition from the anterior paired lateral (APL) neuron that keeps KC activity sparse, produces decorrelated, near-orthogonal representations of different odors [5]. These KC representations are read out by mushroom body output neurons (MBONs) through synapses whose weights are shaped by dopamine-gated, spike-timing-dependent plasticity to drive behavior [6], [20]. This “expand and sparsify, then learn the readout” motif has proven attractive well beyond neuroscience: it underlies fly-inspired algorithms for similarity search and locality-sensitive hashing [7], and it has been adapted into insect-inspired classifiers for chemical-sensor data that show competitive robustness on gas-classification benchmarks [8], [9].
The fly’s circuit maps onto the three problems of electronic noses:
| E-nose problem | Fly mechanism | Our model |
|---|---|---|
| Cross-sensitivity: every sensor responds to many gases | Random expansion and sparse coding make patterns easier to separate | Random sparse PN→KC connections and APL inhibition |
| Drift and new odors | Only the KC→MBON synapses change, so learning can continue | KC→MBON synapses learn with a local rule and can be trained in stages |
| Limited computing on a small device | Neurons fire only when needed (event-driven) | A spiking network, shown to run in pure integer arithmetic |
AeroSense’s modeling team implements a fly-inspired spiking neural network (SNN) that follows this PN→KC→MBON architecture — a sparse random PN→KC projection, APL-mediated global inhibition of the KCs, and a plastic KC→MBON readout — in the Brian2 simulator [11], and applies it to gas classification on a real sensor-array dataset: KT Batch 1–3, a seven-month aging study (March–October 2020) of a 14-sensor metal-oxide array exposed to five gases, taken from an accompanying doctoral thesis. Sensor exposures are converted into response features, reduced with linear PCA, and encoded as PN spike patterns before the KC→MBON network classifies them (Figures 1 and 2).
Our central hypothesis is that the fly’s decorrelated, sparse coding — rather than a hand-engineered drift-correction step — can itself make classification robust to the slow, uncontrolled sensor drift that classical e-nose classifiers struggle with. So far, the network reaches a macro F1 of 0.87 ± 0.03 on randomly split data (5-fold cross-validation) and 0.73 on measurement days it has never seen (Section 3.3). We characterize drift itself on a 36-month public dataset (Section 3.6).
🟦 ADD RESULT — Cross-batch drift evaluation of the SNN (KT: train on Batch 1, test on Batches 2–3; UCI-270: Settings 1 and 2). This is the direct test of the central hypothesis.
Figure 1

Figure 1
Figure 1. The complete neural network. An odor (Odor A) enters the sensory unit (PN), is projected onto the coding unit (KC), and the output unit (MBON) gives the answer. Red neurons are global regulators: ALLN activation and inhibition at the PN layer, APL inhibition at the KC layer, and global inhibition at the MBON layer. The forced answer on the right is the teacher signal used during training. RPE (DAN) are dopaminergic neurons that adjust KC→MBON synapses depending on whether the answer was right (+) or wrong (−). The experiments on this page use PN, KC, APL, MBON, MBON global inhibition and the forced answer; the DAN rule is still in development (Section 3.7), and ALLN is not used in the experiments reported here.
Figure 2

Figure 2
Figure 2. From sensors to learning. Top row, left to right: raw voltage signals of the 14 sensors for the five gases; the response curve of every sensor during one exposure; the data after PCA dimensionality reduction; conversion into PN spikes. Bottom row: the network is trained repeatedly, with three learning mechanisms acting together: STDP, synaptic homeostasis (weight normalization) and self-adjusting KC thresholds (intrinsic plasticity).
The model is evaluated on the KT Batch 1–3 dataset, a multi-month exposure study of a 14-channel metal-oxide sensor array, taken from an accompanying doctoral thesis.
🟧 UPDATE — Cite the doctoral thesis (author, title, institution, year) and confirm that the KT data may be published.
| Item | Details |
|---|---|
| Sensors | An array of 14 metal-oxide gas sensors |
| Gases (4 concentrations each) | SO₂ 10–100 ppm, NO₂ 2–20 ppm, toluene 1–10 ppm, ethanol (EtOH) 5–40 ppm, ammonia (NH₃) 2–20 ppm |
| Humidity | 4 levels |
| Period | 6 March – 7 October 2020: 3 batches, 95 measurement days, 5 devices |
| Size | 8,366 gas exposures after cleaning |
| Excluded | Batch 2, devices 1–2 (known faulty units), about 13% of the raw data |