论文解读
AI 辅助整理- 方法
- 深度网络、SVM与随机森林共识门控,结合特征空间新颖度检测,用栎树种子病原挥发物
- 发现
- 已知类准确率0.99至1.00,特征距离AUROC达0.97,可识别未知病原挥发物。
- 机会点
- 可扩展到田间多病原混合气味与跨物种泛化,并解决培养物层面独立性不足问题。
论文摘要
针对电子鼻开放集气味识别,提出深度网络、支持向量机与随机森林共识门控加特征空间新颖度检测。栎树种子病原挥发物已知类准确率0.99至1.00,特征距离AUROC达0.97。预印本未经同行评议,培养物层面独立性不足。
全文
arXivFeature Space Novelty Detection for Open-Set Recognition of
Root-Pathogen Volatiles with an Electronic Nose
Krzysztof Siwek ∗, Tomasz Grzywacz, and Tran Hoai Linh
Faculty of Electrical Engineering, Warsaw University of Technology
ul. Koszykowa 75, 00-662 Warsaw, Poland
Abstract
Electronic nose (e-nose) systems classify odors in agriculture, food safety, and environmental
monitoring. Conventionalclassifiersassumeafixedsetofknownclassesandmayassignconfident
but incorrect labels to novel odors. We address this open-set problem with a self-training
framework that combines a deep neural network, a support vector machine, and a random
forest. The framework accepts a known class label only when all three classifiers agree at a
conservative heuristic threshold. It routes other samples to an open-set stage that measures
novelty in the learned feature space. Confirmed novel samples enter a quarantine buffer and
may support the creation of a new class. We evaluated the framework using volatiles from root
pathogens cultured on germinatingQuercus roburacorns. Contiguous blocked splitting reduced
leakage between adjacent autocorrelated readings, but culture-level independence could not be
reconstructed. Known class accuracy and macro-averaged F1 ranged from 0.99 to 1.00. For
withheld classes, the softmax confidence score approached chance, with an AUROC of 0.57.
OpenMax reached 0.93, while feature space distance reached 0.97. On the Gas Sensor Array
Drift Dataset, classifier fusion had a higher mean AUROC than feature space distance. The
comparisons after Holm correction were not statistically significant. We also tested the adaptive
cycle. The consensus gate produced correct pseudo-labels whenever it accepted samples in the
main regime. Agreement between geometric and disparity-network criteria reduced false alarms
below 1%, although sensitivity declined. Class creation was triggered in 19 of 25 simulations.
Among those 19 completed updates, recognition of the new class on a segment excluded from
the stream and update reached 98.2%. The known class retention result is descriptive because
its fold was reused during threshold calibration and stream simulation.
Keywords:open-set recognition, novelty detection, feature-space distance, electronic nose, fungal
pathogen detection, semi-supervised self-training, ensemble classification, sensor drift
1 Introduction
The electronic nose (e-nose) is an artificial olfactory system that detects, identifies, and classifies
volatile compounds by mimicking the mammalian sense of smell [1, 2]. Over the past two decades
these systems have found use in food quality monitoring, environmental control, industrial safety,
and medical diagnostics [3, 4]. Despite their growing importance, most deployed implementations
still rely on supervised learning that assumes a fixed set of odor classes known in advance. That
assumption limits scalability and robustness in the field, where previously unobserved odors can
appear without warning.
∗Corresponding author. Email: krzysztof.siwek@pw.edu.pl.
1
arXiv:2611.36512v1 [cs.CE] 26 Nov 2026
Several practical settings make this limitation concrete. In agricultural disease detection, food
quality control, and environmental monitoring, new odors emerge over time because of pathogen
mutation, chemical contamination, or spoilage [5, 6]. In such conditions an e-nose must adapt
quickly to novel classes without complete retraining or constant expert supervision, and it must keep
producing reliable inferences when faced with inputs it has never seen. This motivates intelligent
frameworks that learn online and reason about what they do not yet know.
Conventional machine learning models, including support vector machines (SVM) and artificial
neural networks, perform well when trained on a fixed set of labeled classes [7]. Their core weakness
is the closed-world premise: every class is assumed to be available at training time, which is rarely
true in practice. A softmax classifier, for example, is forced to choose among the known categories
and often returns a high score even for an out-of-distribution input, so it cannot signal that a sample
is unfamiliar [8–10]. Addressing this gap calls for a shift from static classification toward adaptive
frameworks that detect and incorporate new classes as they arrive.
To make this shift, the present work draws on three complementary ideas. Open-set recognition
lets a model decide whether an odor belongs to any known class rather than forcing a choice among
them [8, 11]. Semi-supervised learning, and self-training in particular, expands the labeled set by
assigning pseudo-labels to high-confidence unlabeled samples, which reduces the annotation burden
[12, 13]. Ensemble learning combines diverse models so that the weaknesses of any single classifier
are offset by the others, improving robustness against the noise and drift typical of chemical sensors
[14–16].
This study integrates these ideas into a single semi-supervised adaptive framework with three
central capabilities. The framework classifies odor samples into known classes using an ensemble
of a deep neural network, an SVM, and a random forest; it detects novel odors by measuring the
agreement and the confidence of those classifiers together with a geometric test in the learned feature
space; and it updates itself by provisionally creating new classes for confirmed novel samples, so that
recognition adapts continuously to evolving profiles. The contribution is therefore twofold. First,
a strict three-model consensus rule is coupled to the self-training loop, so that a pseudo-label is
accepted only when probabilistic, geometric, and statistical evidence point to the same class, which
curtails the error propagation that ordinarily destabilizes self-training [17]. Second, this consensus
gate is paired with a dual-criterion novelty detector and an active quarantine-and-adapt cycle, so
that the system separates ambiguous known samples from genuinely new ones before it commits to
a new class. The framework is demonstrated on volatiles released by root pathogens cultured on
germinatingQuercus roburacorns, a task with direct relevance to plant biosecurity and one that
extends the authors’ earlier e-nose work on the same biological material [18–20].
The remainder of the paper is organized as follows. The next section reviews related work on
closed-set and open-set odor recognition and on adaptive learning. The following sections summarize
why fungal and oomycete detection matters for agriculture and food safety, describe the measure-
ment hardware and the sample set, and present the classifiers and the three-stage adaptive method.
The experimental protocol and an exploratory analysis of the acquired data are then reported, the
strengths and limitations of the approach are discussed, and future directions are outlined.
2 Related Work
Research on machine learning for e-nose data has historically concentrated on closed-set problems,
in which the training and test sets share the same label space. Comprehensive reviews show how
feature extraction followed by SVM, random forest, or shallow neural networks became the standard
pipeline, and how convolutional and recurrent networks later improved accuracy on raw or lightly
2
processed sensor responses [3, 4, 21]. Within this closed-set setting, heterogeneous ensembles can
improve accuracy and stability because their component models make different errors [14, 22]. These
results are encouraging, yet they do not address the situation in which a test odor belongs to no
training class.
The open-set problem has been formalized in the broader pattern-recognition literature. Bendale
and Boult introduced the OpenMax layer, which replaces the closed-set softmax with an estimate
of the probability that an input belongs to none of the known classes, using the distance between
an activation vector and per-class mean vectors together with extreme-value statistics [8]. Liang
and co-workers proposed ODIN, which sharpens the separation between in-distribution and out-of-
distribution inputs through temperature scaling and small input perturbations, and which requires
almost no change to a trained network [9]. These methods underpin a family of distance-based
and prototype-based detectors in which a sample is compared with class centroids in a learned
embedding, and they directly inspire the geometric novelty test used in the present work.
For gas sensing specifically, open-set recognition has only recently received sustained attention.
Qu and colleagues studied open-set learning on a public e-nose dataset and showed that classifiers
built on a robust latent space can reject unseen substances while still recognizing the known ones,
which establishes the feasibility of the approach for sensor arrays [11]. Parallel efforts treat the
appearance of unknown gases jointly with sensor drift, since both push the test distribution away
from the training distribution, and they argue that the two problems are best handled within a single
open-set risk formulation. These studies confirm that softmax thresholding alone is insufficient and
that an explicit rejection mechanism is needed for reliable field operation.
Reducing the dependence on labeled data is the second strand of relevant work. Self-training
assigns pseudo-labels to confident unlabeled samples and folds them back into the training set [12].
The method is simple and effective, but it is also fragile, because an early mistake can be reinforced
over successive iterations and degrade the model [17]. The standard remedies tighten the acceptance
criterion or introduce diversity, for instance by requiring agreement among several models before a
pseudo-label is trusted [13, 16]. The consensus rule adopted here follows this logic and makes the
agreement explicit across three classifiers with distinct inductive biases.
A third strand concerns rapid adaptation when only a few examples of a new class are available.
Meta-learning trains a model to adapt quickly to unseen tasks, with Model-Agnostic Meta-Learning
optimizing an initialization from which a few gradient steps suffice [23], and prototypical networks
classifying by proximity to class prototypes in an embedding space [24]. Such few-shot ideas are
attractive for olfaction, where labeled samples of a newly encountered odor are scarce, and they
have been linked to continual-learning schemes that resist sensor drift over time [25]. A recent
survey of few-shot action recognition, although centered on video, offers a taxonomy of generative
and meta-learning approaches that transfers naturally to odor learning, in particular to instance
representation, prototype learning, and generalized matching [26]. Reinforcement and active learn-
ing complete the picture, since an agent can update its model from the outcome of its own actions
and can query a human only for the most informative samples, which is valuable when annotation is
costly. A study that applied deep reinforcement learning to ventilation control in pig housing, with
the aim of reducing ammonia and odor while saving energy, illustrates how sensor-driven control
can be optimized even outside a classical e-nose, and its findings transfer to odor-control systems
built around sensor arrays [27].
Despite this progress, few studies combine self-training with dynamic class expansion in an e-
nose, particularly under the practical constraints of field deployment. The framework proposed
here is positioned in exactly that gap: it keeps the strong closed-set accuracy of an ensemble, adds
an explicit open-set rejection stage, and closes the loop with an adaptation cycle that creates new
classes only after careful verification.
3
3 Significance of Fungal and Oomycete Detection
The detection of fungal and oomycete pathogens in agricultural products is a critical task for food
safety and economic stability. The impact of these pathogens is twofold. They reduce crop yield,
lowering the quantity of the harvest, and they degrade its quality by contaminating grain with
mycotoxins, the toxic secondary metabolites produced during fungal growth.
Fungi of the genusFusariumpose a dual threat, acting both as human pathogens that infect
the eyes and fingernails and as devastating agricultural pests. The genus is ubiquitous and adapts
to many ecological niches and building materials, and among its membersFusarium graminearum
andFusarium oxysporumare ranked internationally among the ten most significant plant pathogens
[28]. The risk associated withFusariumremains high after harvest, because grain stored in silos
provides conditions that favor fungal growth, rendering the grain unfit for consumption and creating
a need for rapid tools that identify spoilage in collected samples.
BeyondFusarium, several other soil-borne and water-borne pathogens threaten global agricul-
ture and plant health, in particularPhytophthora,Pythium,Rhizoctonia, andCylindrocarpon.Phy-
tophthoraandPythiumare oomycetes, often called water molds, and are notorious for late blight,
damping-off, and aggressive root rot across a wide range of crops and ornamentals.Rhizoctonia
is a true fungal genus that causes sore shin, stem cankers, and brown patch, and that survives in
soil for long periods through resilient sclerotia.Cylindrocarponspecies are associated with root-rot
complexes and black-foot disease, especially in perennial crops such as grapevines and fruit trees,
where they cause progressive necrosis and systemic decline. As withFusarium, these pathogens are
economically damaging, and their early detection is central to biosecurity and productivity.
Traditional diagnostic methods such as classical cultivation, immunological assays, and genetic
sequencing by the polymerase chain reaction offer high sensitivity and accuracy, but they are con-
strained by high cost and the need for specialized laboratory conditions. A practical alternative is
to detect the volatile organic compounds (VOCs) released into the surrounding air during fungal
growth, which provide a chemical signature of infestation [20]. This signature can be read by an
electronic nose, a device that uses an array of non-specific gas sensors with overlapping detection
ranges [2]. Unlike gas chromatography coupled with mass spectrometry, which identifies individual
chemical components, the e-nose relies on pattern recognition over the collective response of the
array [29]. By analyzing that response, such systems classify samples and distinguish healthy from
infected grain with accuracies that earlier studies on related material reported to exceed eighty per-
cent [18, 20]. These high-throughput analyzers are fast, non-destructive, and cost-effective, which
makes them well suited to real-time monitoring of grain safety in large storage facilities.
4 Materials and Methods
4.1 Problem Formulation
The task is stated formally before the system is described. LetK={1, . . . , nK}be the set of
known odor classes seen during training, withnK =|K|their number, and letD={(x i, yi)}Ni=1,
withx i ∈R d andy i ∈ K, be the labeled training set, wheredis the number of sensor features
andNis the number of training samples. At deployment a sample may belong to a known class
or to a class never seen before, so the target is an open-set classifierg:R d → K ∪ {unknown}
rather than the closed-set mapf:R d → Kthat a conventional model learns. The classifier is
built from a closed-set predictor that supplies class posteriorsp(k|x)and from a novelty score
s(x)∈Rthat is large when the sample is unfamiliar, and a sample is referred to the unknown
route whens(x)exceeds a thresholdτ, otherwise it is assigned toarg max k p(k|x). The central
4
Figure 1: GerminatingQuercus roburacorn seedlings used in the study: i) healthy control seedling;
ii) seedling infected byPythium; iii) seedling infected byPhytophthora. Red ellipses mark necrotic
lesions on the radicle.
design question of this paper is how the novelty scoresshould be defined, since it can be read
from the output probabilities or from the geometry of an internal representation, and these choices
behave very differently. Performance is therefore not a single accuracy but a pair of competing
quantities, the closed-set error on known samples and the ability to separate known from unknown,
and the objective is to choose the model and the score that jointly minimize the closed-set error
while maximizing the threshold-free separation of knowns and unknowns, the latter summarized by
the area under the receiver operating characteristic curve ofsand by the normalized accuracy that
weights correct known classification and correct unknown rejection equally.
4.2 System Architecture
The effectiveness of an e-nose depends not only on its learning algorithms but also on the physical
design of the hardware that senses the VOCs. The system used in this study comprises four
functional parts that work together. A sensor chamber fitted with a deflector ensures consistent
airflow and a uniform distribution of the odor across the array. A signal-conditioning and data-
acquisition module preprocesses the sensor responses and transmits them to a computer for analysis.
A classification stage hosts the three models, a deep multilayer neural network, a support vector
machine, and a random forest, each producing an independent prediction. Finally, an adaptive
learning mechanism updates the system when a new class is identified. Figure 2 shows the overall
architecture.
5
Figure 2: Schematic diagram of the electronic nose, comprising the pneumatic sample-delivery path,
the sensor chamber with the array, the data-acquisition and preprocessing electronics, and the host
computer that runs the classification and adaptation pipeline.
4.3 E-Nose Hardware Implementation
The sensor technologies most widely used in e-nose systems include metal-oxide semiconductors
(MOS), conducting polymers, quartz crystal microbalances (QCM), surface acoustic wave (SAW)
devices, and, more recently, carbon-nanotube and graphene-based materials [2, 4]. Each class differs
in response time, recovery kinetics, baseline stability, and cross-sensitivity. MOS sensors are favored
for their low cost and high sensitivity to a broad range of gases, although they are prone to baseline
drift and humidity interference. By contrast, QCM and SAW sensors offer high mass sensitivity
and precision, but they often require complex signal processing and careful environmental control
to suppress thermal noise.
Complementing these established technologies, complementary metal-oxide-semiconductor
(CMOS) gas sensors have gained traction because of their potential for dense integration, miniatur-
isation, and low power consumption. CMOS technology allows the sensing element to be integrated
monolithically with the analogue front end and the digital processing on a single chip, which
suits portable and wearable applications. Such sensors typically use micro-hotplates embedded
in the CMOS substrate to regulate the temperature of the gas-sensitive material, and the result-
ing temperature-modulation protocols can extract additional kinetic features from the analyte
interaction, improving selectivity toward VOCs. Advances in CMOS-compatible nanomaterials,
including metal-oxide nanowires and two-dimensional materials, have further raised sensitivity
while remaining compatible with standard semiconductor fabrication [30].
The architecture in Figure 2 contains three subsystems. The sample delivery system draws
vapor into the sensor chamber and stabilizes the flow. The detection unit contains non-specific,
cross-sensitive sensors [31]. In MOS devices, analytes react with chemisorbed oxygen, thereby
changing the measurable resistance. The acquisition unit converts the analog responses to digital
values. For the present study, processing consisted solely of the baseline normalization defined in
Section 4.4. We applied no software filtering, smoothing, or transient feature extraction. Figure 3
6
shows the laboratory system.
State-of-the-art commercial platforms, such as the PEN3 by AIRSENSE: [32] and the Cyranose
320 [33], standardized modular arrays combined with embedded pattern recognition. The current
trend, however, is toward miniaturised and wearable architectures that use micro-electromechanical
(MEMS) sensors and wireless communication for distributed sensing in healthcare and environmen-
tal monitoring [34, 35]. These developments supply the high-dimensional data streams that the
open-set methods proposed here require.
4.4 Sample Preparation and Signal Acquisition
We used the constructed e-nose to analyze VOCs emitted by parasitic fungi and oomycetes as-
sociated with tree roots. Germinating pedunculate oak acorns (Quercus roburL.) served as the
biological substrate [18, 20, 29, 36]. We studiedCylindrocarpon,Fusarium,Rhizoctonia,Pythium,
andPhytophthora. We cultivated each pathogen separately on an artificial growth medium. We
incubated the acorns in sterilized moist sand under light at25◦C. After one month, we placed acorn
tips with radicles of 5–7 cm on agar plugs containing mycelium. We used separate Petri dishes for
each experimental variant. We moistened the filter paper in each dish with 5 mL of sterile distilled
water. We then incubated the dishes under daylight at approximately20–22◦C. We inspected them
every 8 h until seedlings collapsed and all roots showed necrosis. We transferred the acorns into
measurement jars and reisolated the pathogens in accordance with Koch’s postulates.
We prepared five independent cultures on five consecutive days for each pathogen and the un-
infected medium control. Each culture contributed three jars, giving fifteen jars per class. The
330 readings per class therefore averaged 22 readings per jar. These readings were closely spaced
observations from the same headspace exposures, not independent biological replicates. The pump
delivered headspace at 100 mL/min, and the system recorded each sensor channel every 1.2 s. We
allowed the sensors to recover for 5 min under ambient-air flow after each measurement. Figure 4
shows the sealed jars connected to the sampling unit. The sensing chamber contained fourteen
Figaro channels, two each of TGS2600, TGS2602, TGS2603, TGS2610, TGS2611, TGS2616, and
TGS2620, operated at two sensitivity points.
We applied baseline division but no software filtering, smoothing, or noise-reduction procedure.
Letv j(t)denote the recorded output of sensor channeljat readingt. We defined its clean air
baseline as
bj = 1100 100Xt=1 vj(t),(1)
and the normalized response as
xj(t) = vj(t)bj .(2)
We treated readings 300–400, after the response had stabilized, as steady-state observations.
Each model input was the 14 dimensional vectorx(t) = [x1(t), . . . , x14(t)]⊤ from that interval.
The system logged all sensor outputs to a structured database. Figure 5 shows one measurement
cycle. The analysis used the baseline normalized steady-state vectors defined in Equations (1)
and (2). It did not apply smoothing, digital noise reduction, or transient feature extraction. We
used the same vectors for classification and exploratory clustering.
7
Figure 3: Laboratory realisation of the constructed electronic nose, showing the control and heater
unit, the data-acquisition module, and the gold-plated sensor chamber connected through the pneu-
matic path.
8
Figure 4: Acorn samples sealed in glass jars and connected to the portable acquisition unit, which
transfers the accumulated headspace from each jar to the sensor chamber of the electronic nose.
Figure 5: Measured responses of the Figaro MOS sensors of the constructed electronic nose during
a single measurement cycle.
9
4.5 Base Classifiers
The classification ensemble combines three models with deliberately different inductive biases, so
that a sample is treated as known only when probabilistic, geometric, and statistical evidence agree.
The deep neural network (DNN) is the probabilistic and non-linear pillar of the ensemble,
designed to interpret the multi-dimensional patterns produced by the array during exposure. It
narrows to a low-dimensional bottleneck layer placed immediately before its output, which serves
both as a compact representation for classification and as the feature space in which the open-set
novelty distance is later measured. Because the two datasets studied here differ in input dimension,
the network takes two related forms, a convolutional model for the fourteen-channel acorn signals
and a fully connected model for the higher-dimensional drift descriptors, and both are specified in
full in Section 4.6.
The support vector machine (SVM) is the geometric pillar of the ensemble, chosen for its strong
generalization in high-dimensional feature spaces [37]. Equation (3) states the classical two-class,
hard-margin formulation, shown here for its clarity as the starting point of the method rather than
as a description of what is fitted, withwthe normal vector of the separating hyperplane,bits
offset, and(x i, yi)a training pair carrying the binary labelyi ∈ {−1,+1}this classical formulation
assumes, distinct from the multiclass labelyi ∈ Kdefined in Section 4.1. It identifies the hyperplane
that separates the odor classes with the largest possible margin, as expressed in Equation (3). By
maximizing the margin, the SVM becomes less sensitive to noise and to minor drift in the sensor
signals, which improves reliability in the field.
min
w,b
1
2 ∥w∥2 subject toy i (w·x i +b)≥1(3)
The classifier actually fitted, and the one every reported result uses, differs from Equation (3)
in two respects. It is a soft-margin formulation, in which the regularisation constantCgiven in
Table 2 allows a controlled number of margin violations rather than forbidding them outright, and
it is extended to then K known classes of the leave-one-class-out split by scikit-learn’s standard
one-versus-one reduction rather than the two-class case shown above. Because the chemiresistive
responses are not linearly separable, the SVM uses the radial basis function (RBF) kernel in Equa-
tion (4), which maps the inputs into a high-dimensional space where complex odor patterns can be
separated linearly.
κ(xi, xj) = exp
−γ∥x i −x j∥2 (4)
Herex i andx j are any two feature vectors being compared, not necessarily training points,
andγ >0is the kernel bandwidth, whose value for each dataset is given in Table 2. The random
forest (RF) is the statistical pillar, providing a robust non-parametric model that copes well with
the high-dimensional and noisy data produced by MOS arrays [38]. It consists ofMdecision trees,
each grown on a bootstrap sample of the training data, with a random subset of the sensor features
considered at every split. WritingTm(x)for the class predicted by them-th tree on samplex, the
forest classifies a samplexby majority vote over the trees, as in Equation (5). This bagging reduces
the variance of the model and makes it resilient to sensor-specific noise and to outliers that could
mislead a single tree.
ˆy= mode{T1(x), T2(x), . . . , TM (x)}(5)
Hereˆyis the forest’s predicted label. The three models therefore offer distinct and complemen-
tary views. The DNN contributes a probabilistic confidence through the Softmax output, the SVM
10
contributes a boundary-based confidence that is high only when a sample lies far from the decision
surface, and the RF contributes a vote-based confidence that grows with the fraction of trees that
agree. In the self-training loop these views are combined so that an unlabeled sample is accepted
as known only when all three reach a high-confidence agreement, which provides a triple-checked
gate for the updates described next.
4.6 Neural Network Architectures
Both datasets are classified by a compact feedforward network trained from scratch on each cross-
validation fold, and the two networks share a deliberate design choice that the open-set stage
depends on. Each network narrows to a low-dimensional bottleneck layer placed directly before the
linear output, so that every odor is compressed into a few coordinates, and it is this bottleneck
representation, rather than the softmax output, in which the Mahalanobis novelty distance of the
open-set stage is measured. Hidden units use the rectified linear unit, and the output layer applies
the softmax functionσof Equation (6) to the logit vectorz= (z1, . . . , znK )it produces, turning the
final scores into class probabilities over thenK known classes of that fold. Training minimises the
categorical cross-entropy loss with the Adam optimizer [39], which maintains exponentially decaying
averages of past gradients and past squared gradients to give per-parameter adaptive step sizes, and
which converges quickly and stays stable in the presence of the drift and noise characteristic of
metal-oxide sensors.
σ(z)i = eziPnK
j=1 ezj , i= 1, . . . , nK (6)
For the acorn data the fourteen stabilised sensor responses are treated as a single channel of
length fourteen and passed to a one-dimensional convolutional network. A convolution with eight
filters of width three slides across neighbouring sensors, so each filter learns a local response pattern
shared along the array, and after a rectified-linear activation the eight resulting feature maps, each
of length twelve, are flattened into a ninety-six dimensional vector. A fully connected layer reduces
this to a five-unit bottleneck, and a final linear layer maps the bottleneck to the logits of the five
known classes, since one of the six classes is withheld in every run. The network is trained for four
hundred epochs at a learning rate of 0.01 with a weight decay of10−4 and He initialization, and
the five-unit bottleneck is the feature space used by the distance-based novelty detector.
For the drift benchmark each measurement is already a flat descriptor vector of 128 values,
eight summary features for each of the sixteen sensors, so the ordered-channel structure that the
convolution exploits is absent and a fully connected network is the natural choice. A first layer maps
the 128 inputs to thirty-two units with a rectified-linear activation, a second layer reduces these
to an eight-unit bottleneck, and a linear output layer produces the five known-class logits. It is
trained for eighty epochs at a learning rate of 0.005 with the same weight decay, and the eight-unit
bottleneck plays exactly the role of the five-unit bottleneck in the convolutional model. The two
architectures and their training settings are collected in Table 1.
All models were implemented in Python with numpy and scikit-learn, and every result uses a
fixedrandomseedforfullreproducibility. Thehyperparametersweresettostandardvaluesandwere
deliberately not tuned on the test data, so as to avoid optimistic bias. The support vector machine
uses a radial basis kernel withC= 10for the fourteen-channel acorn data and a linear kernel for
the higher-dimensional drift data, the random forest uses three hundred trees for the acorn data
and one hundred for the drift data, and thek-nearest-neighbor baseline uses ten distance-weighted
neighbors, whilethetwonetworksusethesettingslistedinTable1. Table2collectstherandomseed,
the exact software versions, and the remaining implementation details, the SVM kernel parameters
11
Table 1: Architecture and training settings of the two neural networks. Both end in a narrow
bottleneck placed before the output layer, which is the feature space used by the distance-based
open-setdetector. Eachrunhasfiveknownclassesbecauseoneofthesixiswithheldastheunknown.
Acorn network Drift benchmark network
Input 14 sensor channels (length-14 signal) 128 descriptors (8 per sensor)
Type one-dimensional convolutional fully connected (MLP)
Feature stage Conv1D, 8 filters of width 3, ReLU,
flattened to 96
FC128→32, ReLU
Bottleneck FC96→5, linear FC32→8, linear
Output FC5→5classes, softmax FC8→5classes, softmax
Loss categorical cross-entropy categorical cross-entropy
Optimiser Adam Adam
Learning rate 0.01 0.005
Epochs 400 80
Weight decay10 −4 10−4
Initialisation He He
and calibration method, the random forest andk-nearest-neighbor settings, and the configuration
of OpenMax, temperature scaling, and the energy score, for every method compared in Table 3.
Feature standardisation is fitted on the training fold alone and then applied to the test fold, so that
no information from the test fold enters either training or threshold selection. Because the leave-one-
class-out protocol trains a fresh model for every combination of withheld class and fold, and different
combinations share most of their known-class training data, whether two combinations differ only
in which fold is held out or in which class is withheld, these combinations are not statistically
independent of one another. Wherever this paper reports a confidence interval or a significance
test, the withheld class, the pathogen on the acorn data or the gas on the drift benchmark, rather
than the class-by-fold combination, is treated as the independent statistical unit, and results within
a withheld class are averaged before any interval or test is computed. The complete code that
regenerates every table and figure is provided in the accompanying scripts.
4.7 Consensus-Based Pseudo-Labelling and Self-Training
The adaptive method transforms the e-nose from a static classifier into an open-set system that
can improve itself, and it operates in three connected stages: consensus-based classification with
self-training, hybrid novelty detection, and active adaptation.
The first stage maximises accuracy on known analytes while exploiting unlabeled data to refine
the decision boundaries. The primary classification is performed by the ensemble of the DNN, the
SVM, and the RF, whose diversity limits the bias of any one model and improves robustness against
noise and drift. A new samplexis assigned to a known classkonly when a strict consensus is
reached, meaning that all three models predict the same class with a confidence that exceeds a
threshold, as stated in Equation (7).
conf(k|x)≥θ C for every model in the ensemble (7)
We useθ C = 0.90as a conservative heuristic operating point for the unanimity gate, not as a
generally calibrated confidence threshold. We also testθC = 0.80in Section 5.5. The three scores do
12
not share a common probabilistic calibration. The DNN supplies its raw maximum softmax value.
The SVM supplies a Platt-scaled probability fitted within the training fold [40]. The random forest
suppliestheuncalibratedfractionoftreesvotingforitspredictedclass. Weapplythesamenumerical
cutoff only to impose a simple, reproducible rule: all predictions must agree, and the minimum
score must exceedθ C. We therefore interpret the acceptance rate and pseudo-label precision at
this operating point, rather than the score itself as a calibrated probability. Section 5.5 shows
that acceptance depends on seed size and the chosen cutoff. When the gate accepts an unlabeled
sample, we add its pseudo-label to the next training round [12]. Otherwise, we route the sample to
the novelty stage.
Two distinct combinations of the ensemble are used in this work and should not be confused.
The consensus gate just described is a hard unanimity rule, in which a known-class label is accepted
only when all classifiers agree and each is confident, and it carries no learned weights. Separately,
when a single fused posterior is needed, for the closed-set prediction and for the probability-based
noveltyscore, theper-classprobabilityvectorsoftheindividualclassifiersarecombinedbyoneoftwo
simple non-trainable rules, the arithmetic mean of the probabilities, called the mean rule, or their
normalized element-wise product, called the product rule. Neither rule is a trained stacking model
and neither uses tuned weights, which keeps the fusion transparent and avoids adding parameters
that would themselves require validation.
4.8 Hybrid Open-Set Novelty Detection
The second stage examines the rejected samples to separate ambiguous known samples from gen-
uinely novel odors, and it does so with two independent criteria whose agreement is required before
a decision is taken.
The first criterion is geometric and uses the feature space learned by the network. The sample
is mapped to its penultimate-layer embeddingztest, and a novelty score is computed as the squared
Mahalanobis distance to the nearest known-class centroidµk, as in Equation (9). The covariance
is pooled across the known classes rather than estimated separately for each one, since a single
shared estimate is far better conditioned than several separate ones would be from only a few
hundred training embeddings per class. It is obtained by centering every training embedding on
its own class centroid and averaging the resulting outer products over the whole training set, as in
Equation (8), whereNis the number of training embeddings in that fold andµyi the centroid of the
classy i that training sampleibelongs to, after which a ridge term of10−6 is added to its diagonal
for numerical stability and the regularized matrix is inverted once per fold. If the resulting score
exceeds an adaptive thresholdτ, the sample is flagged as a potential novelty. The thresholdτis
set to the ninety-fifth percentile of this score computed on a held-out set of known-class samples,
the same five percent operating point on the known classes used consistently throughout the paper,
and it is calibrated using only those held-out known samples, before any withheld or unknown-
class sample is scored or examined. The use of a covariance-normalized distance to class centroids
in a learned embedding follows the prototype and distance-based detectors that underpin modern
open-set recognition [8, 9, 43].
Σ = 1N NXi=1 (zi −µ yi) (zi −µ yi)⊤ (8)
13
S(xtest) = mink (ztest −µ k)⊤
×(Σ +ϵI) −1 (ztest −µ k),
ϵ= 10 −6, Ithe identity matrix
(9)
The second criterion uses a lightweight disparity network. It operates on the 14 standardized
sensor features, not on the five-dimensional DNN bottleneck. Its architecture is14→16→8→1.
Both hidden layers use rectified linear activations, and the output layer uses a sigmoid. The network
therefore contains 385 trainable parameters:14×16 + 16,16×8 + 8, and8×1 + 1. We train it with
binary cross-entropy, Adam, a learning rate of0.02, a weight decay of10−4, and 300 epochs. We
construct all training inputs in the 14-dimensional standardized sensor feature space of that fold.
We generate 80 points by interpolating between known-class centroids with a mixing ratio drawn
from[0.35,0.65]. We generate another 200 points by extrapolating training feature vectors from
their class centroids by a factor drawn from[1.8,3.0]. We regenerate these 280 boundary points for
every fold and never use the withheld class to train the disparity network. We calibrateθD as the
95th percentile of its output on held-out known samples. Requiring the geometric and disparity
criteria to agree reduces false alarms relative to either test alone.
4.9 Active Adaptation and Incremental Class Creation
The third stage turns a confirmed detection into a controlled update. A sample is treated as a novel
odor only when both the geometric test and the lightweight verifier flag it, and this dual check keeps
spurious alarms low. Once a sample is confirmed, the system enters an active-learning state rather
than retraining immediately on potentially noisy data. The novel sample and subsequent similar
samples are quarantined in a buffer, which prevents the system from reacting to transient sensor
spikes or to single anomalies. In supervised deployments these high-priority samples can be shown
to a human expert for labeling, which uses scarce expert effort efficiently. When enough quarantined
samples have accumulated, a new classnK + 1is provisionally created, and the ensemble is incre-
mentally retrained to include it. For future deployment, we propose an additional cross-validation
step after class creation to assess separation of the candidate class before releasing the updated
models. We did not perform this additional step in the experiments reported here. Section 5.5 in-
stead evaluates a predefined sequence of training, streaming, updating, and testing, with a reserved
segment for recognition of the new class. Repeating that sequence across five predefined folds is
distinct from adding a validation step after each update. In practice the incremental training step
is triggered only after several or a dozen samples of the candidate class have been collected, and
once a small set is available the network can be extended to recognise the new class even from a
few-shot presentation [24–26]. This cycle is intended to support adaptation with periodic expert
verification. Its performance in a live deployment remains to be evaluated.
4.10 Exploratory Clustering and Visualisation
Clusteringplaysafundamentalroleintheanalysisofe-nosedata, especiallywhenlabelsarescarceor
when unknown classes are being explored. Classical algorithms such ask-means [44], fuzzyc-means
[45], and hierarchical clustering [46] are widely used for their simplicity and interpretability, while
more recent deep-clustering methods learn an embedding and cluster within it, which can reveal
latent odor structure and help compensate for drift [47]. In this work,k-means was used to group
the stabilised sensor responses, and the cluster centroids were retained so that the distance between
a new sample and the centroids of the established classes could be measured directly. To visualise
14
the high-dimensional responses, principal component analysis projected the stabilised values onto
two principal components [48], which makes the separability of the odor classes easy to inspect.
5 Results and Discussion
5.1 Experimental Protocol
The acorn dataset contains 1,980 measurements, 330 from each of six classes. Each measurement
is a 14-dimensional baseline normalized steady-state vector. We used leave-one-class-out evalua-
tion, withholding each pathogen in turn as unknown. The other four pathogens, together with the
medium, formed the five known classes. The raw file contains contiguous blocks of highly autocor-
related readings. We divided each known class into five contiguous segments and assigned whole
segments to folds. This blocked split reduces leakage between adjacent readings. It cannot guar-
antee independence between cultures or acquisition sessions because the file lacks those identifiers.
We fitted feature standardization only on each training fold and applied it to the corresponding
test fold. We report closed-set accuracy and macro averaged F1 on held-out known samples. We
report open-set AUROC, true-positive and false-positive rates, normalized accuracy, and open-set
classification rate. We evaluated raw and temperature-scaled softmax, an energy score, OpenMax,
and Mahalanobis distance in the five-unit bottleneck [8, 41–43].
5.2 Exploratory Analysis and Qualitative Demonstration
Figures6aand6billustratethedimensionalityreductionobtainedwithprincipalcomponentanalysis
applied to the stabilised sensor values [48]. The two-component projection makes the separability
of the odor classes visible. The clustering was performed withk-means [44], which grouped the
samples by their VOC profiles, and the cluster centroids are marked so that the distance between
a new sample and the centroids of the established classes can be read directly from the figures.
(a)
(b)
Figure 6: Qualitative principal-component illustration. The blue clouds and red centroids come
from the main 1,980-sample acorn dataset. The magenta markers are additional measurements
from a separate qualitative trial and were excluded from every quantitative evaluation. We selected
the two examples deliberately to show a near-centroid case in panel (a) and a remote case in panel
(b); they are not random or representative test samples.
Figure 6a shows the additional measurement near an existing centroid. Figure 6b shows the ad-
ditional measurement outside the main data clusters. These panels illustrate how centroid distance
15
behaves; they provide no quantitative evidence and do not contribute to any reported metric.
In the latter case, further analysis is warranted to decide whether the sample should be discarded
as noise or used as the basis for a new odor category. That decision may call for additional sampling,
expertvalidation, orretrainingofthemodeltoaccommodatetheexpandedodorspace. Ifthesample
is confirmed to be a valid measurement that represents a new class, it is stored in the database,
and once more samples of the same kind have been collected the network is updated to recognise
the new class, which can be achieved even from a few-shot presentation [24, 26]. This loop is
intended to incorporate newly identified classes as samples accumulate. The present simulations
evaluate individual updates and do not establish continuous improvement or resistance to drift and
contamination during deployment. This update cycle is governed by fixed consensus and novelty
thresholds rather than a learned decision policy, so it is described here as an incremental update
mechanism rather than as reinforcement learning, a term that would require an explicit action space
and reward signal that the framework does not define and that is not implemented or evaluated in
this work. It is especially useful where olfactory profiles are non-stationary, as in agriculture, food
safety, and clinical diagnostics.
5.3 Quantitative Evaluation
On the known classes the task is close to saturated. Every classifier reaches between 0.986 and 0.996
in both overall accuracy and the macro-averaged F1 score, with the random forest highest, and the
per-class precision and recall lie between 0.97 and 1.00 for all six classes. The only notable confusion
is about two percent of medium samples assigned toFusarium, which is visible in the row-normalized
confusion matrix of Figure 7. Because the known classes are so easily separated, closed-set accuracy
does not distinguish the methods and is not where the contribution of the framework lies.
Fusarium Pythium Medium
PhytophthoraCylindrocarponRhizoctonia
Predicted
Fusarium
Pythium
Medium
Phytophthora
Cylindrocarpon
Rhizoctonia
True
0.99 0.01
0.99 0.01
0.02 0.98
0.99
0.99
1.00
Closed-set confusion matrix (SVM and DNN, mean rule)
0.0
0.2
0.4
0.6
0.8
1.0
Figure 7: Row-normalized closed-set confusion matrix for the mean-rule fusion of the support
vector machine and the network, aggregated over the leave-one-class-out folds. The known classes
are separated almost perfectly.
16
The per-class precision behind this confusion matrix ranges from 0.973 to 0.997 and recall from
0.979 to 0.996, with no class falling behind the others, which confirms that the closed-set difficulty
is evenly low across the six classes rather than concentrated in one hard category, and the only
confusion large enough to be visible in the figure is the two percent of medium samples the matrix
already shows being assigned toFusarium.
The methods differ once the task becomes open-set, and Table 3 collects the figures. Reading
novelty from the network’s softmax confidence gives an area under the ROC curve of 0.567, close
to chance, because the network stays almost maximally confident on the withheld class just as it
is on the known ones. Temperature scaling does not repair this and the energy score performs
no better, which is consistent with the established observation that calibration alone is not out-
of-distribution detection [10, 41, 42]. The support vector machine and the random forest, whose
confidences fall on unfamiliar inputs, give strong novelty scores with areas under the curve of 0.958
and 0.939. The established open-set baseline, OpenMax [8], which recalibrates the network logits by
their distance to the class mean activation vectors and fits a Weibull tail to the training distances
so that outliers are flagged, reaches an AUROC of 0.928 in this experiment, above raw softmax
but below the observed values for SVM, random forest, mean fusion, and bottleneck distance. The
principal result is that the same network attains the highest area under the curve of all methods,
0.971 and a true-positive rate of 0.873 at a five percent false-alarm rate, once its novelty is read
from a Mahalanobis distance in the five-unit bottleneck rather than from its softmax [43]. These
observed values motivate the geometric criterion used in the framework. They do not establish
its superiority over the alternatives, because the tested comparisons are not statistically significant
after Holm correction.
Figure 8 shows the same ordering through the open-set classification rate curve, on which the
softmax detector trails far below the distance-based and margin-based detectors across the whole
range of operating points, while the bottleneck distance, the support vector machine, the random
forest, and the mean-rule fusion are almost indistinguishable near the top. The per-pathogen
breakdown in Table 4 shows the same pattern per class, since the softmax score falls below chance
forCylindrocarponandRhizoctonia, meaning the network is more confident on those unknown
samples than on the known classes, whereas the bottleneck distance stays above 0.93 for every
withheld pathogen. The two fusions of the support vector machine and the network behave as the
individual scores predict. Averaging the probabilities preserves almost all of the support vector
machine’s novelty strength and reaches an area under the curve of 0.952, while the product rule is
dragged down to 0.763 because the overconfident softmax dominates the product, so the mean rule
has the higher observed AUROC in this experiment.
The spread across the five withheld pathogens shows that the leading detectors are not only
the strongest but also the steadiest, which matters as much as the mean for a method that must
work on a pathogen it has never seen. The bottleneck distance, the support vector machine, and the
mean-rule fusion score 0.971 plus or minus 0.026, 0.958 plus or minus 0.025, and 0.952 plus or minus
0.026 respectively. The random forest at 0.939 plus or minus 0.063 and OpenMax at 0.928 plus
or minus 0.069 are close behind but more variable from one pathogen to the next, with OpenMax
dropping to 0.794 on its weakest case, and thek-nearest-neighbor baseline is markedly weaker at
0.643, which shows that a generic distance to neighbors is not enough and that the structured
bottleneck representation is what makes the geometric criterion work. The confidence-based scores
are weaker and less consistent, since the softmax at 0.567 plus or minus 0.335 and the energy score
at 0.380 plus or minus 0.325 are not merely poor on average but wildly inconsistent, collapsing below
chance for some pathogens, which is precisely the unpredictability a deployable detector must avoid.
The 25 pathogen-by-fold combinations are dependent on each other because they share train-
ing data. We treat the withheld pathogen as the independent unit. This gives 5 pathogen-level
17
means per method. The 95% cluster-bootstrap intervals are[0.947,0.993]for bottleneck distance,
[0.936,0.980]for SVM,[0.930,0.975]for mean-rule fusion,[0.876,0.985]for random forest, and
[0.857,0.975]for OpenMax. These intervals overlap. Holm-corrected paired Wilcoxon tests find
no statistically significant pairwise difference among the tested methods. With only 5 independent
units, the tests have little inferential resolution. We therefore treat them as exploratory and em-
phasize the descriptive AUROCs, intervals, and directions across pathogens. Bottleneck distance
ranks above softmax for all five pathogens (r= 1.00). Mean-rule fusion ranks above product-rule
fusion for all five (r= 1.00). SVM ranks abovek-nearest neighbors for all five (r= 1.00). In con-
trast, bottleneck distance exceeds SVM in only three pathogens (r= 0.60) and OpenMax in three
(r= 0.47). We therefore interpret bottleneck distance, SVM, random forest, mean-rule fusion, and
OpenMax as a leading group rather than a strict ranking.
0.0 0.2 0.4 0.6 0.8 1.0
False positive rate (unknown accepted as known)
0.0
0.2
0.4
0.6
0.8
1.0Correct classification rate (known)
Open-set classification rate, averaged over five withheld pathogens
DNN softmax
OpenMax
DNN Mahalanobis
SVM
SVM+DNN avg
Figure 8: Open-set classification rate, the correct classification rate on the known classes against
the rate at which unknown samples are wrongly accepted as known, averaged over the five withheld
pathogens. The softmax detector lies far below the others, OpenMax recovers much of the gap, and
the bottleneck Mahalanobis distance matches the support vector machine and the mean-rule fusion
at the top.
5.4 Robustness to Sensor Drift on a Public Benchmark
The acorn study describes performance on the available biological dataset. Independence between
cultures or acquisition sessions could not be established. We therefore also evaluated novelty de-
tection on an external dataset recorded with different hardware across temporal batches. The Gas
Sensor Array Drift Dataset of Vergara and colleagues [49, 50] serves as that stress test. It con-
tains 13,910 measurements from an array of sixteen metal-oxide sensors of the same Figaro family
used here, exposed to six analytes over thirty-six months, and the recordings are grouped into
18
ten temporal batches that carry the drift explicitly, which also makes the cross-validation strictly
session-grouped. Each batch is held out in turn while the models train on the other nine, and within
each split one analyte is withheld as the unknown class, giving up to sixty combinations of held-out
batch and withheld analyte in principle. Three of these sixty do not exist in the data and are
excluded, all three involving toluene, whose measurements are entirely absent from batches three,
four, and five of the original dataset, leaving zero samples of that analyte to serve as the unknown
class in those three batches. No other combination was excluded, and every other analyte is present
in every one of the ten batches, so the remaining fifty-seven combinations are all genuinely valid.
The network, the support vector machine, the random forest, thek-nearest-neighbor baseline, and
the mean-rule fusion are scored exactly as before, with the network taking the fully connected form
of Section 4.6 for the 128-dimensional descriptors. As on the acorn data, the novelty threshold
for every method is calibrated independently within each training partition, from that partition’s
own held-out known-class samples only, before the withheld analyte’s samples are examined, so no
combination’s threshold depends on data outside its own split.
Two effects appear. Closed-set accuracy falls from near unity to between 0.85 and 0.89, which is
expected once training on nine batches and testing on a tenth exposes the classifier to drift directly.
The open-set ranking reverses, as shown in Figure 9. Bottleneck Mahalanobis distance had the
highest observed mean AUROC on the acorn data, 0.971, and reached 0.628 on this benchmark. The
corresponding values were 0.680 for raw softmax, 0.715 for SVM, 0.739 for random forest, and 0.768
for mean fusion. These values describe the present experiments and do not establish a statistically
significant ranking. As with the acorn study, the fifty-seven gas-by-batch combinations are not
independent, since different withheld gases evaluated at the same held-out batch share most of their
known-class training data, so the withheld gas, not the combination, is treated as the independent
unit here as well, giving six values per method, five gases with ten valid batches each and toluene
with seven. The differences are directionally consistent rather than an averaging artefact, since the
ninety-five percent confidence interval, obtained the same way by a cluster bootstrap over the six
withheldgases, is[0.586,0.879]forthefusionagainst[0.520,0.746]forthebottleneckdistance. These
intervals overlap enough that a paired Wilcoxon signed-rank test on the six gas-level means, with
a Holm-Bonferroni correction applied across the four comparisons reported here, does not reach
significance for any of them, the fusion against the bottleneck distance (adjustedp= 0.88), the
fusion against the softmax (adjustedp= 0.88), the random forest against the bottleneck distance
(adjustedp= 0.88), and the support vector machine against the bottleneck distance (adjusted
p= 0.88). The rank-biserial effect sizes still show a consistent direction, the fusion ranks above the
bottleneck distance in five of the six withheld gases (r= 0.62) and above the softmax in five of six
(r= 0.62), and the random forest and the support vector machine each rank above the bottleneck
distance in five of six (r= 0.43for both). The reversal relative to the acorn study is accordingly
a consistent direction across most withheld gases rather than a formally significant effect at this
cluster count, which is the honest limit of what six independent gases can establish.
Because several withheld-analyte combinations share the same test batch, the batch is a second,
distinct source of dependence alongside the withheld gas, so it is worth checking directly rather
than assumed away. Averaging within each of the ten batches instead of within each of the six
gases shows a real but smaller effect, the mean-rule fusion’s accuracy by batch ranges from 0.639 to
0.886, a standard deviation of 0.067 across batches, against 0.358 to 0.900 and a standard deviation
of 0.189 across gases, so the withheld analyte is the larger source of variation between the two.
A cluster bootstrap that resamples over the ten batches instead of the six gases confirms this
rather than merely suggesting it, its interval is narrower than the gas-clustered interval already
reported for every one of the five methods compared, so the intervals in this paper, which are
built by resampling the larger and more conservative of the two dependence structures, are not
19
understating the uncertainty that batch-level dependence would add. A possible explanation is that
drift changes the relation between test samples and the centroids estimated during training. The
present comparison does not isolate this mechanism. Bottleneck distance had the highest observed
mean AUROC on the acorn data, whereas mean fusion had the highest observed value on the drift
benchmark. These descriptive findings are specific to the datasets and protocols evaluated here.
With five pathogen units and six gas units, and no significant comparisons after Holm correction,
they do not establish a generally preferred detector.
DNN softmax DNN Mahalanobis
SVM RF
SVM+DNN avg
0.0
0.2
0.4
0.6
0.8
1.0Open-set novelty AUROC
Novelty AUROC: within-session (acorn) vs. cross-batch under drift
Chance
Acorn (within-session)
Drift dataset (cross-batch)
Figure 9: Open-set novelty AUROC in the acorn study and the cross-batch drift benchmark. The
legend label “SVM+DNN avg” denotes the arithmetic mean-rule fusion of the SVM and DNN
probabilities. Bottleneck distance has the highest observed mean AUROC on the acorn data, while
mean fusion has the highest observed value on the drift benchmark. The comparisons after Holm
correction are not statistically significant.
5.5 Validation of the Consensus, Novelty, and Class-Creation Cycle
The consensus gate of Section 4.7, the hybrid novelty test of Section 4.8, and the class-creation
cycle of Section 4.9 are evaluated here as a connected sequence rather than as isolated components,
using the acorn data under the same blocked, five-fold structure as the rest of the study. Three
questions are addressed in turn, what fraction of unlabeled samples the consensus gate accepts and
how accurate the resulting pseudo-labels are, whether the disparity network contributes anything
beyond the geometric criterion it is paired with, and whether a newly created class is recognised
correctly while accuracy on the established classes is retained.
For the first question, each fold sets aside one contiguous segment per class as a clean test set
untouched by the loop, keeps a small labeled seed from the remaining segments, and treats the rest
as an unlabeled pool whose true labels are hidden from the algorithm and used only afterwards to
score what the gate accepted. With a seed of fifteen percent of the available training data per class,
the gate accepts a large majority of the pool and every accepted pseudo-label matches its hidden
20
label, but closed-set accuracy is already close to its ceiling before any pseudo-labeled sample is
added, so self-training changes almost nothing, as Table 5 shows. Reducing the seed to about three
percent of the available data per class produces a markedly different and less favourable picture.
At the confidence threshold of ninety percent proposed in Section 4.7, the gate accepts nothing at
all in any of the five folds, because with so few training samples the calibrated probability of the
support vector machine rarely exceeds ninety percent for all three models at once. Lowering the
threshold to eighty percent, the other end of the range proposed there, does not repair this so much
as make the gate unpredictable, accepting nothing in two folds, almost the entire pool in one, and a
moderate fraction in the remaining two. Pseudo-label precision remains at or near unity whenever
the gate accepts anything, so the mechanism is trustworthy when it fires, but whether it fires at all
depends strongly on how much labeled data is available at the outset and on the exact threshold
chosen, a sensitivity the original description does not discuss.
For the second question, we calibrate the Mahalanobis and disparity criteria separately to a
5% false-positive rate on held-out known samples. We then compare each criterion against the
rule requiring both to agree. The disparity network has 385 parameters and uses the fourteen
standardized sensor features described in Section 4.8. Requiring agreement reduces the false-positive
rate from about 5% to 0.8%. The true-positive rate also falls from 87.3% for the Mahalanobis
distance to 66.8% for the hybrid rule. The hybrid rule increases specificity at the cost of sensitivity.
For the third question, we fixed the train, stream, update, and test partitions before processing
any stream sample. We did not run an additional cross-validation step after class creation; the
reserved segment provided the evaluation of the new class after each completed update. For each
known class, four contiguous segments fitted the initial ensemble. The remaining known class
segment calibrated the novelty thresholds and was then interleaved with the deployment stream.
For the withheld pathogen, four segments entered that stream, and the fifth segment was reserved
for post-update testing. Every stream sample flagged by both novelty criteria entered the quarantine
buffer, including any false alarms. When the buffer reached 20 samples, we labeled that buffer as
the candidate new class. We retrained the ensemble on the original known-class training data plus
those 20 buffered samples. The reserved withheld pathogen segment and later stream samples were
not included in retraining. New class recognition was measured on the reserved withheld pathogen
segment, which was excluded from calibration, streaming, and updating. Known class retention was
measured on the known class segment that had also been used for calibration and in the stream.
It is therefore a descriptive diagnostic, not an independent post-update test. We make this reuse
explicit rather than claiming an independent known class retention evaluation.
The buffer filled in 19 of 25 pathogen-by-fold simulations, a class creation trigger rate of 76%.
We calculated buffer purity, retention, and new-class recognition only for those 19 completed up-
dates. Their mean new class recognition on the reserved withheld-pathogen segment was 98.2%.
The descriptive known class retention diagnostic changed from 98.7% before updating to 99.3%
afterward. The other six simulations did not create a class and do not contribute to the 98.2%
value. Four failures occurred in fold 5 and two in fold 4. Fold 5 also had the lowest pre-update
closed-set accuracy. Because the acquisition order cannot be linked to cultures or sessions, we do
not assign a biological or related to acquisition cause to this concentration.
These results separate two outcomes. The class creation trigger succeeds in 76% of simulations.
Conditional on a successful trigger, the updated model recognizes the new class with 98.2% accuracy
on a segment excluded from the stream and update. The known class retention diagnostic remains
high, butitisnotanindependentpost-updateestimatebecauseitsfoldwasreusedduringcalibration
and streaming. The failures concentrate in the empirically weakest fold, but the available metadata
do not support a causal explanation.
21
5.6 Computational Cost and Error Accumulation Across Adaptation Rounds
Two further properties of the framework are measured directly here rather than assumed, since
neither was checked in the experiments above: the computational cost of producing a prediction
once training is complete, and whether pseudo-label errors compound as the self-training loop runs
across successive rounds.
Table 9 reports the wall-clock time to classify and score one new sample with each already-
trained component, measured on a single core of a generic Intel Xeon server processor at 2.10GHz,
the platform this study was carried out on rather than a purpose-built embedded target. The deep
network, the support vector machine, the Mahalanobis novelty score, and the disparity network are
all sub-millisecond per sample. The random forest is the dominant cost, at roughly fifteen millisec-
onds per sample, because scikit-learn’s implementation is optimized for scoring many samples in a
batch rather than one at a time, and calling it on a single sample repeatedly incurs per-call overhead
that a batched or embedded implementation would not. Even so, the complete pipeline, all three
classifiers and the hybrid novelty test together, classifies a new sample in about sixteen milliseconds,
several orders of magnitude faster than the many-second sensor exposure and stabilisation time a
single measurement itself requires, as shown by the response curve of Figure 5. Computation is
accordingly not the bottleneck to deployment on this hardware, though this remains a desktop-class
reference point rather than a measurement on power- or memory-constrained embedded hardware,
which would need its own separate characterisation.
On error accumulation, every self-training round reported in Table 5, across all five folds and all
three seeding and threshold regimes, was checked individually against the hidden true labels rather
than only the aggregate figures already given. Across the fifty-one rounds in which the consensus
gate accepted at least one sample, it accepted seven thousand nine hundred and sixty pseudo-labeled
samples in total, of which exactly one was incorrect, an overall precision of 0.9999 across every round
examined, and the single error occurred at the final round of one fold under the smaller seed and the
more permissive threshold, the regime already identified as the least reliable. Pseudo-label errors
are accordingly not compounding across successive rounds in these experiments, the gate’s precision
holds essentially unchanged from the first round to the last, though this conclusion is limited to the
up to eight rounds and the pool sizes studied here, and a longer-running deployment with repeated
class-creation events over more rounds than tested would still warrant its own monitoring.
5.7 Advantages of the Proposed Framework
The framework combines classification, novelty detection, and provisional class creation in a single
procedure. The reported simulations demonstrate these operations on the available data. They do
not establish improved generalization to independently prepared cultures or acquisition sessions,
because those groups could not be reconstructed. The consensus gate achieved high precision
among accepted pseudo-labels, while the hybrid novelty rule reduced false alarms at the cost of
sensitivity. Learning from unlabeled samples may reduce manual labeling needs, but the practical
benefit requires evaluation in deployment. Section 5.5 provides direct evidence for each stage.
The consensus gate maintains high pseudo-label precision when it accepts samples. The hybrid
rule reduces false alarms below 1%. Class creation triggers in 19 of 25 simulations. In those 19
completed updates, new class recognition reaches 98.2% on a withheld pathogen segment excluded
from streaming and updating. The known class retention result is descriptive because its fold was
reused for calibration and streaming. These findings come from offline data, not a live deployment.
Section 5.6 reports inference latency on the study hardware, but embedded deployment remains
untested. These properties are valuable in agriculture, food safety, and environmental monitoring.
22
5.8 Limitations
Several limitations should temper these claims and guide the next steps. The performance of the
system depends on the quality of the initial labeled dataset, so a weak or biased starting set will limit
later accuracy. Retraining several classifiers each time a class is added carries a computational cost,
which matters for embedded or low-power deployment. The confidence and novelty thresholds must
be tuned with care, since they govern the trade-off between false alarms and missed detections, and
a single fixed value rarely suits every operating condition. A further caution concerns the data itself,
and it can now be stated precisely rather than inferred. Each pathogen and the medium control were
prepared as five independent cultures across five consecutive days, with three jars exposed within
every culture, so every class rests on fifteen independently prepared jars rather than one, a real
though modest amount of biological replication. This does not resolve the central concern, however,
because the order in which the three hundred and thirty measurements of each class were written to
the shared data file cannot be confirmed to follow the acquisition order. It is therefore not possible
to identify which rows came from which culture or which jar, and a direct check for day-to-day
structure within each class’s readings found no signal distinguishing one contiguous block of the
file from another, consistent with either an unordered file or with preprocessing that removed such
structure before the file was compiled. Because the infected acorns used for this study are no longer
available, this cannot be resolved by returning to the same material, and validation that holds out an
entire culture rather than a contiguous file position is not possible on this dataset as it stands. The
blocked cross-validation used throughout this paper therefore guards only against leakage between
adjacent, highly autocorrelated readings drawn from the same brief exposure, not against leakage
between readings that happen to share a culture or a jar, and the closed-set and open-set figures
reported on the acorn data should be read accordingly, as evidence that the framework separates
and detects departures among five known cultures per class, not as an estimate of its accuracy on
an independently cultured new sample. The drift robustness analysis of Section 5.4 is accordingly
the strongest evidence in this paper for behavior beyond the specific material at hand, since its
validation is genuinely grouped by acquisition batch on an independent public benchmark, and the
acorn figures should be read together with that benchmark rather than on their own. A study
designed from the outset to record culture and session identifiers alongside each measurement is
the appropriate way to close this gap, and is a necessary precondition for the next study on this
material rather than an optional refinement. Finally, the present study rests on a single biological
material, and a comparison on the identical preprocessing used by Qu and colleagues [11] remains
a useful further step.
The adaptive validation adds several limitations. The consensus gate’s acceptance rate depends
on the labeled seed and the heuristic threshold. The hybrid rule reduces false alarms but also misses
more novel samples. Class creation triggers in 76% of simulations, while the 98.2% recognition rate
applies only after a successful trigger. The new-class test segment is excluded from streaming
and updating, but the known-class retention fold is reused for threshold calibration and stream
simulation. Retention is therefore descriptive rather than an independent post-update estimate.
Failures concentrate in the weakest fold. We cannot connect file order to cultures or sessions, so
we do not propose a biological or acquisition-related explanation. The validation uses an offline
simulated stream. It does not establish performance in a live or embedded deployment.
6 Summary and Conclusions
This article presented a semi-supervised adaptive framework for electronic-nose systems that assigns
odor samples to known categories and creates new categories when a sample departs from every
23
known profile. The method couples a strict three-model consensus rule to a self-training loop, so
that probabilistic, geometric, and statistical evidence must agree before an unlabeled sample is
trusted, and it pairs this gate with a dual-criterion open-set detector and an active quarantine-and-
adapt cycle that creates a new class only after verification. The aim throughout was to keep the
strong closed-set accuracy of an ensemble while adding an explicit ability to recognise and learn the
unknown, which is the central weakness of conventional supervised e-nose models.
We first studied the framework on volatiles emitted by root pathogens cultured on germinating
Quercus roburacorns. Leave-one-class-out evaluation used contiguous blocked splits to reduce
leakage between adjacent autocorrelated readings. It could not establish culture level independence.
Known class accuracy and macro-averaged F1 ranged from 0.99 to 1.00. For withheld classes,
softmax confidence reached an AUROC of 0.567, OpenMax reached 0.928, SVM reached 0.958, and
Mahalanobis distance in the five unit bottleneck reached 0.971. With five independent pathogen
level units, these differences remain descriptive rather than confirmatory. The observed AUROC
for feature space novelty was high on this dataset. This result does not establish performance on
independent cultures or acquisition sessions.
On the public Gas Sensor Array Drift Dataset, we held out complete temporal batches. Closed-
set accuracy ranged from 0.85 to 0.89. Mean fusion had the highest observed mean novelty AU-
ROC, 0.768, compared with 0.628 for bottleneck distance. These descriptive results suggest that
the relative performance of the detectors depends on the dataset and evaluation conditions. The
comparisons after Holm correction were not statistically significant, so they do not establish a gen-
erally superior method. Evaluation on additional independent cultures and acquisition sessions is
needed before making broader claims about generalization.
We then evaluated the adaptive stages as a connected sequence. The consensus gate maintained
high pseudo-label precision when it accepted samples, but its acceptance rate depended on seed
size and threshold. Combining geometric and disparity criteria reduced false alarms below 1% and
reduced sensitivity. Class creation triggered in 19 of 25 simulations. The 19 completed updates
recognized the new class with 98.2% accuracy on a segment excluded from streaming and updating.
Known-class retention remained high, but the diagnostic reused the calibration and stream fold, so
it is not independent. Failures concentrated in the empirically weakest fold, but the data do not
support a causal explanation.
Several extensions follow naturally from the framework. The active class-creation cycle already
supplies a hook for online recalibration of the class centroids, which is a promising route to carrying
the feature-space advantage into changing conditions, and richer feature extractors for the raw
transients together with optimization for low-power edge deployment would move the system toward
autonomous, self-updating olfactory sensing in the field.
References
[1] Julian W. Gardner and Philip N. Bartlett.Electronic Noses: Principles and Applications.
Oxford University Press, 1999.https://doi.org/10.1093/oso/9780198559559.001.0001.
[2] Alphus D. Wilson and Manuela Baietto. Applications and advances in electronic-nose tech-
nologies.Sensors, 9(7):5099–5148, 2009.https://doi.org/10.3390/s90705099. URL
https://doi.org/10.3390/s90705099.
[3] Zhenyi Ye, Yuan Liu, and Qiliang Li. Recent progress in smart electronic nose technologies
enabled with machine learning methods.Sensors, 21(22):7620, 2021.https://doi.org/10.3
390/s21227620. URLhttps://doi.org/10.3390/s21227620.
24
[4] Zhenyu Zhai, Yaqian Liu, Congju Li, Defa Wang, and Hai Wu. Electronic noses: From gas-
sensitive components and practical applications to data processing.Sensors, 24(15):4806, 2024.
https://doi.org/10.3390/s24154806. URLhttps://doi.org/10.3390/s24154806.
[5] Hanyue Feng, Claudia Gonzalez Viejo, Niloofar Vaghefi, Paul W. J. Taylor, Eden Tongson,
and Sigfredo Fuentes. Early detection of Fusarium oxysporum infection in processing tomatoes
(Solanum lycopersicum) and pathogen-soil interactions using a low-cost portable electronic
nose and machine learning modeling.Sensors, 22(22):8645, 2022.https://doi.org/10.339
0/s22228645.
[6] Miguel Peris and Laura Escuder-Gilabert. On-line monitoring of food fermentation processes
using electronic noses and electronic tongues: A review.Analytica Chimica Acta, 804:29–36,
2013.https://doi.org/10.1016/j.aca.2013.09.048.
[7] AmyLoutfi, SilviaCoradeschi, GaneshKumarMani, PrabakaranShankar, andJohnBoscoBal-
aguru Rayappan. Electronic noses for food quality: A review.Journal of Food Engineer-
ing, 144:103–111, 2015.https://doi.org/10.1016/j.jfoodeng.2014.07.019. URL
https://doi.org/10.1016/j.jfoodeng.2014.07.019.
[8] Abhijit Bendale and Terrance E. Boult. Towards open set deep networks. InIEEE Conference
on Computer Vision and Pattern Recognition (CVPR), pages 1563–1572, 2016.https://doi.
org/10.1109/CVPR.2016.173. URLhttps://doi.org/10.1109/CVPR.2016.173.
[9] Shiyu Liang, Yixuan Li, and R. Srikant. Enhancing the reliability of out-of-distribution image
detection in neural networks. In6th International Conference on Learning Representations
(ICLR), 2018.https://doi.org/10.48550/arXiv.1706.02690. URLhttps://doi.org/10
.48550/arXiv.1706.02690.
[10] DanHendrycksandKevinGimpel. Abaselinefordetectingmisclassifiedandout-of-distribution
examples in neural networks. InInternational Conference on Learning Representations (ICLR),
2017.https://doi.org/10.48550/arXiv.1610.02136.
[11] Cheng Qu, Chuanjun Liu, Yun Gu, Shuiqin Chai, Changhao Feng, and Bin Chen. Open-set
gas recognition: A case-study based on an electronic nose dataset.Sensors and Actuators
B: Chemical, 360:131652, 2022.https://doi.org/10.1016/j.snb.2022.131652. URL
https://doi.org/10.1016/j.snb.2022.131652.
[12] Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for
deep neural networks. InWorkshop on Challenges in Representation Learning, 30th Interna-
tional Conference on Machine Learning (ICML), volume 3, 2013.
[13] Olivier Chapelle, Bernhard Schölkopf, and Alexander Zien.Semi-Supervised Learning. The
MIT Press, 2006.https://doi.org/10.7551/mitpress/9780262033589.001.0001. URL
https://doi.org/10.7551/mitpress/9780262033589.001.0001.
[14] Thomas G. Dietterich. An experimental comparison of three methods for constructing ensem-
bles of decision trees: Bagging, boosting, and randomization.Machine Learning, 40(2):139–157,
2000.https://doi.org/10.1023/A:1007607513941. URLhttps://doi.org/10.1023/A:
1007607513941.
[15] Lior Rokach. Ensemble-based classifiers.Artificial Intelligence Review, 33(1):1–39, 2010.http
s://doi.org/10.1007/s10462-009-9124-7. URLhttps://doi.org/10.1007/s10462-009
-9124-7.
25
[16] Zhi-Hua Zhou.Ensemble Methods: Foundations and Algorithms. Chapman and Hall/CRC,
2012.https://doi.org/10.1201/b12207. URLhttps://doi.org/10.1201/b12207.
[17] Chuck Rosenberg, Martial Hebert, and Henry Schneiderman. Semi-supervised self-training
of object detection models. InSeventh IEEE Workshop on Applications of Computer Vision
(WACV/MOTION), pages 29–36, 2005.https://doi.org/10.1109/ACVMOT.2005.107. URL
https://doi.org/10.1109/ACVMOT.2005.107.
[18] Piotr Borowik, Leszek Adamowicz, Rafał Tarakowski, Piotr Wacławik, Tomasz Oszako, Sła-
womir Ślusarski, Miłosz Tkaczyk, and Marcin Stocki. Electronic nose differentiation between
quercus roburacorns infected by pathogenic oomycetesphytophthora plurivoraandpythium
intermedium.Molecules, 26(17):5272, 2021.https://doi.org/10.3390/molecules26175272.
URLhttps://doi.org/10.3390/molecules26175272.
[19] Piotr Borowik, Tomasz Grzywacz, Rafał Tarakowski, Miłosz Tkaczyk, Sławomir Ślusarski,
Valentyna Dyshko, and Tomasz Oszako. Development of a low-cost electronic nose with an
open sensor chamber: Application to detection ofciboria batschiana.Sensors, 23(2):627, 2023.
https://doi.org/10.3390/s23020627. URLhttps://doi.org/10.3390/s23020627.
[20] Jérémie Loulier, François Lefort, Marcin Stocki, Monika Asztemborska, Rafał Szmigielski,
Krzysztof Siwek, Tomasz Grzywacz, Tom Hsiang, Sławomir Ślusarski, Tomasz Oszako, Marcin
Klisz, Rafał Tarakowski, and Justyna Anna Nowakowska. Detection of fungi and oomycetes by
volatiles using e-nose and SPME-GC/MS platforms.Molecules, 25(23):5749, 2020.https://do
i.org/10.3390/molecules25235749. URLhttps://doi.org/10.3390/molecules25235749.
[21] Xijia Zhang, Tao Wang, Wangze Ni, Yongwei Zhang, Wen Lv, Min Zeng, Jianhua Yang, Nantao
Hu, Rui Zhan, Guang Li, Zhiqiang Hong, and Zhi Yang. Sensor array optimization for the
electronic nose via different deep learning methods.Sensors and Actuators B: Chemical, 418:
136271, 2024.https://doi.org/10.1016/j.snb.2024.136271. URLhttps://doi.org/10.1
016/j.snb.2024.136271.
[22] Fady Mohareb, Olga Papadopoulou, Efstathios Panagou, George-John Nychas, and Conrad
Bessant. Ensemble-based support vector machine classifiers as an efficient tool for quality
assessment of beef fillets from electronic nose data.Analytical Methods, 8(18):3711–3721, 2016.
https://doi.org/10.1039/C6AY00147E. URLhttps://doi.org/10.1039/C6AY00147E.
[23] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adap-
tation of deep networks. In34th International Conference on Machine Learning (ICML),
pages 1126–1135, 2017.https://doi.org/10.48550/arXiv.1703.03400. URLhttps:
//proceedings.mlr.press/v70/finn17a.html.
[24] Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In
Advances in Neural Information Processing Systems (NeurIPS), volume 30, pages 4077–4087,
2017.https://doi.org/10.48550/arXiv.1703.05175.
[25] Chuanjun Liu, Hitoshi Miyauchi, and Kenshi Hayashi. Deepsniffer: A meta-learning-based
chemiresistiveodorsensorforrecognitionandclassificationofaromaoils.Sensors and Actuators
B: Chemical, 351:130960, 2022.https://doi.org/10.1016/j.snb.2021.130960.
[26] YuyangWanyan, XiaoshanYang, WeimingDong, andChangshengXu. Acomprehensivereview
of few-shot action recognition, 2024. URLhttps://doi.org/10.48550/arXiv.2407.14744.
26
[27] S. Zheng. Deep reinforcement learning for ventilation system control in pig buildings. Master’s
thesis, Universiteit Leiden, Statistics and Data Science, 2023.
[28] Ralph Dean, Jan A. L. van Kan, Zacharias A. Pretorius, Kim E. Hammond-Kosack, Antonio
Di Pietro, Pietro D. Spanu, Jason J. Rudd, Martin Dickman, Regine Kahmann, Jeff Ellis, and
Gary D. Foster. The top 10 fungal pathogens in molecular plant pathology.Molecular Plant
Pathology, 13(4):414–430, 2012.https://doi.org/10.1111/j.1364-3703.2011.00783.x.
[29] Piotr Borowik, Leszek Adamowicz, Rafał Tarakowski, Krzysztof Siwek, and Tomasz Grzywacz.
Odor detection using an e-nose with a reduced sensor array.Sensors, 20(12):3542, 2020.https:
//doi.org/10.3390/s20123542. URLhttps://doi.org/10.3390/s20123542.
[30] Tran Quang Trung and Nae-Eung Lee. Flexible and stretchable physical sensor integrated
platformsforwearablehuman-activitymonitoringandpersonalhealthcare.Advanced Materials,
28(22):4338–4372, 2016.https://doi.org/10.1002/adma.201504244. URLhttps://doi.or
g/10.1002/adma.201504244.
[31] Stanisław Osowski, Krzysztof Siwek, Tomasz Grzywacz, and Kazimierz Brudzewski. Differ-
ential electronic nose in on-line dynamic measurements.Metrology and Measurement Sys-
tems, 21(4):649–662, 2014.https://doi.org/10.2478/mms- 2014- 0046. URLhttps:
//doi.org/10.2478/mms-2014-0046.
[32] AIRSENSE Analytics GmbH. PEN3 portable electronic nose.https://airsense.com/en/pr
oducts/portable-electronic-nose, n.d. Accessed: 2025.
[33] Sensigent. Cyranose 320 electronic nose.https://www.sensigent.com/cyranose-320.html,
n.d. Accessed: 2025.
[34] Frank Röck, Nicolae Barsan, and Udo Weimar. Electronic nose: Current status and future
trends.Chemical Reviews, 108(2):705–725, 2008.https://doi.org/10.1021/cr068121q.
URLhttps://doi.org/10.1021/cr068121q.
[35] Alphus D. Wilson and Manuela Baietto. Advances in electronic-nose technologies developed
for biomedical applications.Sensors, 11(1):1105–1176, 2011.https://doi.org/10.3390/s1
10101105. URLhttps://doi.org/10.3390/s110101105.
[36] Piotr Borowik, Leszek Adamowicz, Rafał Tarakowski, Krzysztof Siwek, and Tomasz Grzywacz.
On data collection time by an electronic nose.International Journal of Electrical and Computer
Engineering (IJECE), 11(6):4767–4773, 2021.https://doi.org/10.11591/ijece.v11i6.pp4
767-4773. URLhttps://doi.org/10.11591/ijece.v11i6.pp4767-4773.
[37] Corinna Cortes and Vladimir Vapnik. Support-vector networks.Machine Learning, 20(3):273–
297, 1995.https://doi.org/10.1007/BF00994018. URLhttps://doi.org/10.1007/BF00
994018.
[38] Leo Breiman. Random forests.Machine Learning, 45(1):5–32, 2001.https://doi.org/10.1
023/A:1010933404324. URLhttps://doi.org/10.1023/A:1010933404324.
[39] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2015. URL
https://doi.org/10.48550/arXiv.1412.6980. 3rd International Conference on Learning
Representations (ICLR).
27
[40] Hsuan-Tien Lin, Chih-Jen Lin, and Ruby C. Weng. A note on platt’s probabilistic outputs for
support vector machines.Machine Learning, 68(3):267–276, 2007.https://doi.org/10.100
7/s10994-007-5018-6.
[41] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural
networks. InProceedings of the 34th International Conference on Machine Learning (ICML),
pages 1321–1330, 2017.https://doi.org/10.48550/arXiv.1706.04599.
[42] Weitang Liu, Xiaoyun Wang, John D. Owens, and Yixuan Li. Energy-based out-of-distribution
detection. InAdvances in Neural Information Processing Systems (NeurIPS), volume 33, pages
21464–21475, 2020.https://doi.org/10.48550/arXiv.2010.03759.
[43] Kimin Lee, Kibok Lee, Honglak Lee, and Jinwoo Shin. A simple unified framework for de-
tecting out-of-distribution samples and adversarial attacks. InAdvances in Neural Information
Processing Systems (NeurIPS), volume 31, pages 7167–7177, 2018.https://doi.org/10.485
50/arXiv.1807.03888.
[44] Stuart P. Lloyd. Least squares quantization in PCM.IEEE Transactions on Information
Theory, 28(2):129–137, 1982.https://doi.org/10.1109/TIT.1982.1056489. URLhttps:
//doi.org/10.1109/TIT.1982.1056489.
[45] James C. Bezdek.Pattern Recognition with Fuzzy Objective Function Algorithms. Springer,
1981.https://doi.org/10.1007/978-1-4757-0450-1. URLhttps://doi.org/10.1007/97
8-1-4757-0450-1.
[46] Fionn Murtagh and Pedro Contreras. Algorithms for hierarchical clustering: An overview.
WIREs Data Mining and Knowledge Discovery, 2(1):86–97, 2012.https://doi.org/10.100
2/widm.53. URLhttps://doi.org/10.1002/widm.53.
[47] Junyuan Xie, Ross Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering
analysis. In33rd International Conference on Machine Learning (ICML), pages 478–487, 2016.
https://doi.org/10.48550/arXiv.1511.06335. URLhttps://doi.org/10.48550/arXiv.1
511.06335.
[48] Ian T. Jolliffe.Principal Component Analysis. Springer Series in Statistics. Springer, 2nd
edition, 2002.https://doi.org/10.1007/b98835. URLhttps://doi.org/10.1007/b98835.
[49] Alexander Vergara, Shankar Vembu, Tuba Ayhan, Margaret A. Ryan, Margie L. Homer, and
Ramón Huerta. Chemical gas sensor drift compensation using classifier ensembles.Sensors
and Actuators B: Chemical, 166–167:320–329, 2012.https://doi.org/10.1016/j.snb.2012
.01.074.
[50] Alexander Vergara. Gas sensor array drift dataset. UCI Machine Learning Repository, 2012.
URLhttps://doi.org/10.24432/C5RP6W.
28
Table 2: Reproducibility summary. Every experiment uses the fixed seed and library versions
below, and no setting listed here was tuned on test data. Network architectures and their training
settings are given separately in Table 1, and the disparity network’s architecture, training, and
boundary-perturbed data construction are given in Section 4.8.
Setting Value
Random seed20260614, used for every model, every fold, and every
bootstrap or permutation procedure in this paper
Software Python 3.12, NumPy 2.4, SciPy 1.17, scikit-learn 1.8
DNN implementation ImplementeddirectlyinNumPy, forwardpass, backprop-
agation, and the Adam optimizer all hand-written; no
deep-learning framework is used
Adam optimizer, all three networksβ 1 = 0.9,β 2 = 0.999,ϵ= 10 −8; per-network learning
rate, epochs, and weight decay are given in Table 1 and
Section 4.8
SVM, acorn data scikit-learnSVC, RBF kernel,C= 10,γ=’scale’,
which resolves to1/(n features ·Var(X))≈0.071on the
standardized fourteen-feature data;probability=True,
which fits a Platt-scaling sigmoid using libsvm’s built-in
five-fold internal cross-validation [40]
SVM, drift benchmark scikit-learnLinearSVC,C= 0.5, up to2000iterations,
wrapped inCalibratedClassifierCVwith three-fold in-
ternal cross-validation for Platt-style probability esti-
mates [40]
Random forest, acorn data300trees,max_features=’sqrt’, all other settings at
scikit-learn defaults
Random forest, drift benchmark100trees,max_features=’sqrt’, all other settings at
scikit-learn defaults
k-nearest neighbors, acorn data onlyk= 10, distance-weighted voting
OpenMax, acorn data only Weibull tail fitted on the twenty largest per-class acti-
vation distances, location fixed at zero, scale floored at
10−6, recalibration parameterαequal to the number of
known classes [8]
Temperature scaling, acorn data only Single scalar temperature fitted by minimising negative
log-likelihoodonthetraininglogitswithaboundedscalar
optimizer, searched overT∈[0.05,50][41]
Energy score, acorn data only−logsumexp(logits), no free parameters [42]
29
Table 3: Closed-set and open-set performance under the leave-one-class-out protocol, averaged over
the five withheld pathogens and five blocked cross-validation folds. Accuracy and macro-F1 are
measured on the held-out samples of the known classes and are shared by the four network rows
because they use the same classifier. The novelty operating point is fixed at a five percent known
false-positive rate, at which the true-positive rate (TPR) and the realized false-positive rate (FPR)
are read. NA is the normalized accuracy with equal weight on knowns and unknowns. Higher is
better.
Method Acc. Macro-F1 AUROC TPR FPR NA
DNN, softmax 0.986 0.986 0.567 0.328 0.052 0.633
DNN, temperature 0.986 0.986 0.529 0.071 0.011 0.525
DNN, energy 0.986 0.986 0.380 0.172 0.052 0.554
DNN, Mahalanobis 0.986 0.986 0.971 0.873 0.052 0.906
OpenMax [8] 0.986 0.986 0.928 0.800 0.052 0.868
SVM (RBF) 0.991 0.991 0.958 0.835 0.052 0.889
Random forest 0.996 0.996 0.939 0.817 0.041 0.887
k-nearest neighbors 0.993 0.993 0.643 0.306 0.014 0.644
SVM+DNN, mean rule 0.988 0.988 0.952 0.815 0.052 0.879
SVM+DNN, product rule 0.989 0.989 0.763 0.488 0.052 0.715
Table 4: Novelty AUROC when each pathogen in turn is treated as the unknown class. Values
below 0.5 mean the detector is more confident on the unknown samples than on the known ones.
The Mahalanobis score on the network bottleneck is strong for every pathogen, whereas the softmax
and energy scores collapse for several of them.
MethodFusarium Pythium Phytophthora Cylindrocarpon Rhizoctonia
DNN, softmax 0.926 0.760 0.822 0.107 0.222
DNN, temperature 0.616 0.515 0.526 0.489 0.498
DNN, energy 0.962 0.163 0.344 0.006 0.427
DNN, Mahalanobis 0.984 0.953 0.931 0.998 0.992
OpenMax [8] 0.940 0.995 0.952 0.794 0.960
SVM (RBF) 0.991 0.928 0.937 0.953 0.982
Random forest 0.987 0.822 0.971 0.924 0.990
k-nearest neighbors 0.705 0.513 0.534 0.808 0.654
SVM+DNN, mean rule 0.990 0.936 0.928 0.929 0.975
SVM+DNN, product rule 0.963 0.929 0.891 0.388 0.643
Table 5: Consensus-gated self-training under three seeding and threshold regimes, averaged over five
blocked folds. Precision is computed only over samples the gate actually accepted, and is undefined
when nothing is accepted.
Regime Acceptance
rate
Pseudo-label
precision
Accuracy
before
Accuracy
after
Seed 15%, threshold 90% 0.857 1.000 0.989 0.989
Seed 3%, threshold 90% 0.000 undefined 0.978 0.978
Seed 3%, threshold 80% 0.282 1.000 0.978 0.977
30
Table 6: Contribution of the disparity network to the hybrid novelty test, averaged over the same
twenty-five combinations of withheld pathogen and fold as Table 3. Each criterion is calibrated
separately to a five percent false-positive rate on held-out known samples.
Criterion False-positive rate True-positive rate
Mahalanobis distance alone 0.052 0.873
Disparity network alone 0.052 0.675
Hybrid, both required 0.008 0.668
Table 7: Quarantine and class-creation results across 25 pathogen-by-fold simulations. The trigger
rate is19/25 = 76%. Buffer purity, retention, and new-class recognition describe only the 19
simulations that completed class creation. New-class recognition uses a withheld-pathogen segment
excluded from the stream and updates. The known-class retention fold was reused for threshold
calibration and stream simulation, so retention is descriptive rather than independent.
Quantity Value
Combinations that filled the buffer 19 / 25
Median stream samples needed 54
Buffer purity 0.971
Retention accuracy, before the update 0.987
Retention accuracy, after the update 0.993
New-class recognition accuracy 0.982
Table 8: Outcome of the class-creation cycle by fold. The fold with the lowest closed-set accuracy
before adaptation is also the fold where the cycle most often fails to fill the buffer within the available
stream.
Fold Combinations filled Closed-set accuracy before
adaptation
1 5 / 5 1.000
2 5 / 5 1.000
3 5 / 5 1.000
4 3 / 5 0.999
5 1 / 5 0.936
31
Table 9: Wall-clock inference latency per sample for each component of the framework, measured
on a single core of a generic Intel Xeon server processor at 2.10GHz after training is complete. The
random forest dominates the total because of per-call overhead in scoring one sample at a time
rather than a batch.
Component ms / sample samples / s
DNN, softmax forward pass 0.045 22,200
SVM, RBF kernel 0.070 14,300
Mahalanobis novelty score (incl. DNN feature pass) 0.067 14,800
Disparity network forward pass 0.010 96,700
Random forest 15.407 65
Full pipeline (all three classifiers plus hybrid novelty test) 16.058 62
32
论文原文与出版信息
arXiv